# Error starting nitrogen project: Bad value on output port 'tcp\_inet'

**URL:** <https://erlangforums.com/t/error-starting-nitrogen-project-bad-value-on-output-port-tcp-inet/2164>\
**Category:** Nitrogen Forum\
**Tags:** nitrogen-questions, learning-erlang, beginner, inets, erlang\
**Created:** [December 14, 2022, 4:20am UTC](https://erlangforums.com/t/error-starting-nitrogen-project-bad-value-on-output-port-tcp-inet/2164 "2022-12-14T04:20:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ookma-Kyi](https://erlangforums.com/user_avatar/erlangforums.com/ookma-kyi/32/1207_2.png) [@Ookma-Kyi](https://erlangforums.com/u/Ookma-Kyi)\
**Post date:** [December 14, 2022, 4:20am UTC](https://erlangforums.com/t/error-starting-nitrogen-project-bad-value-on-output-port-tcp-inet/2164/1 "2022-12-14T04:20:28Z")

</div>

When typing ‘bin/nitrogen console’ into my terminal the normal text scrolls then when i try accessing the root page i get:

```plaintext
 =PROGRESS REPORT==== 12-Dec-2022::17:02:41.303590 ===
     application: nitrogen
     started_at: 'ookma-kyi-core@127.0.0.1'
 
 =INFO REPORT==== 12-Dec-2022::17:03:27.980212 ===
 Body: []
 Query: []
 =INFO REPORT==== 12-Dec-2022::17:03:28.028507 ===
 Recaching Template: ./site/templates/bare.html
 
 =ERROR REPORT==== 12-Dec-2022::17:03:28.080745 ===
 Bad value on output port 'tcp_inet'
 
 
 =INFO REPORT==== 12-Dec-2022::17:03:28.084095 ===
 Body: []
 Query: []
 =ERROR REPORT==== 12-Dec-2022::17:03:28.084728 ===
 Bad value on output port 'tcp_inet'
 
 
 =INFO REPORT==== 12-Dec-2022::17:03:28.088548 ===
 Body: []
 Query: []
 =ERROR REPORT==== 12-Dec-2022::17:03:28.089187 ===
 Bad value on output port 'tcp_inet'
 
 
 =INFO REPORT==== 12-Dec-2022::17:03:28.092824 ===
 Body: []
 Query: []
 =ERROR REPORT==== 12-Dec-2022::17:03:28.093751 ===
 Bad value on output port 'tcp_inet'
 
 
 =INFO REPORT==== 12-Dec-2022::17:03:28.097430 ===
 Body: []
 Query: []
 =ERROR REPORT==== 12-Dec-2022::17:03:28.098055 ===
 Bad value on output port 'tcp_inet'
 
 
 =INFO REPORT==== 12-Dec-2022::17:03:28.101345 ===
 Body: []
 Query: []
 =ERROR REPORT==== 12-Dec-2022::17:03:28.102214 ===
 Bad value on output port 'tcp_inet'
 
 
 =INFO REPORT==== 12-Dec-2022::17:03:28.105805 ===
 Body: []
 Query: []
 =ERROR REPORT==== 12-Dec-2022::17:03:28.106822 ===
 Bad value on output port 'tcp_inet'
 
 
 =INFO REPORT==== 12-Dec-2022::17:03:28.111530 ===
 Body: []
 Query: []
 =ERROR REPORT==== 12-Dec-2022::17:03:28.112100 ===
 Bad value on output port 'tcp_inet'
 

 =INFO REPORT==== 12-Dec-2022::17:03:28.115242 ===
 Body: []
 Query: []
 =ERROR REPORT==== 12-Dec-2022::17:03:28.115843 ===
 Bad value on output port 'tcp_inet'
 
 
 =INFO REPORT==== 12-Dec-2022::17:03:28.119530 ===
 Body: []
 Query: []
 =ERROR REPORT==== 12-Dec-2022::17:03:28.120106 ===
 Bad value on output port 'tcp_inet'

```

 ![image](https://erlangforums.com/uploads/default/original/2X/b/b9814f5172ee2e11072d7d1e087b3d5065f93924.png)

I am on WSL2 and already tried a full reinstall to no success. I am running the inets server if that helps.

---

<div class="post-metadata">

**Author:** ![Mustermann](https://erlangforums.com/letter_avatar_proxy/v4/letter/m/87869e/32.png) [@Mustermann](https://erlangforums.com/u/Mustermann)\
**Post date:** [December 22, 2022, 11:43pm UTC](https://erlangforums.com/t/error-starting-nitrogen-project-bad-value-on-output-port-tcp-inet/2164/2 "2022-12-22T23:43:03Z")

</div>

If you have solved this I would love to know what you did. I have the same issue like you. On a fresh Fedora install.

---

<div class="post-metadata">

**Author:** ![fizfaz](https://erlangforums.com/user_avatar/erlangforums.com/fizfaz/32/1224_2.png) [@fizfaz](https://erlangforums.com/u/fizfaz)\
**Post date:** [December 23, 2022, 9:47am UTC](https://erlangforums.com/t/error-starting-nitrogen-project-bad-value-on-output-port-tcp-inet/2164/3 "2022-12-23T09:47:10Z")

</div>

no solution, but using cowboy instead of inets works for me. (I get the same error using inets, Erlang 25.0 on macOS).

If you follow [Nitrogen - Documentation](https://nitrogenproject.com/doc/index.html#sec-3) just use `make rel_cowboy` instead of `make rel_inets`. The rest stays the same.

---

<div class="post-metadata">

**Author:** ![gumm](https://erlangforums.com/user_avatar/erlangforums.com/gumm/32/688_2.png) [@gumm](https://erlangforums.com/u/gumm)\
**Post date:** [December 23, 2022, 3:22pm UTC](https://erlangforums.com/t/error-starting-nitrogen-project-bad-value-on-output-port-tcp-inet/2164/4 "2022-12-23T15:22:59Z")

</div>

Interesting both of you.

The Body and Query messages are troubleshooting lines in Simple Bridge - I should get them removed today.

But the fact that so many are running into issues with different platforms is a little concerning. I’d been chatting with the OP in slack, so I thought it was just a WSL problem (I’m struggling to get WSL working in a VM running in Linux, so there’s that).

I may fire up a fedora VM and see if I can replicate the crash, though. That shouldn’t be the case.

Thanks for the reports!

---

<div class="post-metadata">

**Author:** ![Mustermann](https://erlangforums.com/letter_avatar_proxy/v4/letter/m/87869e/32.png) [@Mustermann](https://erlangforums.com/u/Mustermann)\
**Post date:** [December 23, 2022, 5:57pm UTC](https://erlangforums.com/t/error-starting-nitrogen-project-bad-value-on-output-port-tcp-inet/2164/5 "2022-12-23T17:57:39Z")

</div>

Yes, cowboy did work. Thank you for the workaround solution. 🙂

---

<div class="post-metadata">

**Author:** ![Mustermann](https://erlangforums.com/letter_avatar_proxy/v4/letter/m/87869e/32.png) [@Mustermann](https://erlangforums.com/u/Mustermann)\
**Post date:** [December 23, 2022, 5:58pm UTC](https://erlangforums.com/t/error-starting-nitrogen-project-bad-value-on-output-port-tcp-inet/2164/6 "2022-12-23T17:58:31Z")

</div>

IDK if it helps but I have also tried it in a Ubuntu VM and had the same issue there with the inets webserver.  
Thank you for looking into that.

---

<div class="post-metadata">

**Author:** ![Ookma-Kyi](https://erlangforums.com/user_avatar/erlangforums.com/ookma-kyi/32/1207_2.png) [@Ookma-Kyi](https://erlangforums.com/u/Ookma-Kyi)\
**Post date:** [December 26, 2022, 4:14am UTC](https://erlangforums.com/t/error-starting-nitrogen-project-bad-value-on-output-port-tcp-inet/2164/7 "2022-12-26T04:14:33Z")

</div>

@fizfaz Thanks for the workaround.

@gumm What are the differences between inets and cowboy?

---

<div class="post-metadata">

**Author:** ![gumm](https://erlangforums.com/user_avatar/erlangforums.com/gumm/32/688_2.png) [@gumm](https://erlangforums.com/u/gumm)\
**Post date:** [December 29, 2022, 11:44pm UTC](https://erlangforums.com/t/error-starting-nitrogen-project-bad-value-on-output-port-tcp-inet/2164/8 "2022-12-29T23:44:45Z")

</div>

Hey Folks, just following up. The inets crash has been fixed in mainline simple\_bridge - sorry for that - that’s 100% on me.

@Ookma-Kyi as for the differences between the webservers, I briefly cover that on [Nitrogen - Downloads](https://nitrogenproject.com/downloads) if you click the little link that says “Not sure which webserver to use?” While I make the effort to keep Nitrogen webserver agnostic, practically, most projects seem to either use Cowboy or Yaws in production.

---

<div class="post-metadata">

**Author:** ![Mustermann](https://erlangforums.com/letter_avatar_proxy/v4/letter/m/87869e/32.png) [@Mustermann](https://erlangforums.com/u/Mustermann)\
**Post date:** [December 30, 2022, 12:01am UTC](https://erlangforums.com/t/error-starting-nitrogen-project-bad-value-on-output-port-tcp-inet/2164/9 "2022-12-30T00:01:14Z")

</div>

Silly question, but is the fix with nitrogen or inets? I checked the nitrogen repo and did not see an update.

---

<div class="post-metadata">

**Author:** ![Mustermann](https://erlangforums.com/letter_avatar_proxy/v4/letter/m/87869e/32.png) [@Mustermann](https://erlangforums.com/u/Mustermann)\
**Post date:** [December 30, 2022, 12:28am UTC](https://erlangforums.com/t/error-starting-nitrogen-project-bad-value-on-output-port-tcp-inet/2164/10 "2022-12-30T00:28:47Z")

</div>

Actually never mind. You did your magic on your end lol.  
Just tried it with inets and it works now.  
Thank you! 🙂

---

<div class="post-metadata">

**Author:** ![gumm](https://erlangforums.com/user_avatar/erlangforums.com/gumm/32/688_2.png) [@gumm](https://erlangforums.com/u/gumm)\
**Post date:** [December 30, 2022, 4:59am UTC](https://erlangforums.com/t/error-starting-nitrogen-project-bad-value-on-output-port-tcp-inet/2164/11 "2022-12-30T04:59:54Z")

</div>

Yeah, the bugfix was in simple\_bridge, that’s why you’re not seeing the commit in nitrogen or nitrogen\_core.
