Heroku Foreman Error 0.0.0.0/10000

I am trying to debug this problem using Heroku Foreman application. My problem is that Foreman is trying to start the process on port 5000 and at the ip address 0.0.0.0. It says that there is something using the port, but I'm not sure how to figure it out, since nothing else works for me. I tried running 'netstat -lnt | grep 5000 'with nothing.

> foreman start
11:16:45 web.1  | started with pid 17758
11:16:46 web.1  | 2013-12-31 11:16:46 [17758] [INFO] Starting gunicorn 18.0
11:16:46 web.1  | 2013-12-31 11:16:46 [17758] [ERROR] Connection in use: ('0.0.0.0', 5000)
11:16:46 web.1  | 2013-12-31 11:16:46 [17758] [ERROR] Retrying in 1 second.
11:16:47 web.1  | 2013-12-31 11:16:47 [17758] [ERROR] Connection in use: ('0.0.0.0', 5000)
11:16:47 web.1  | 2013-12-31 11:16:47 [17758] [ERROR] Retrying in 1 second.

I run the gunicorn command myself and it works fine (so I was able to fix this as a problem):

> gunicorn hellodjango.wsgi
2013-12-31 11:25:33 [17853] [INFO] Starting gunicorn 18.0
2013-12-31 11:25:33 [17853] [INFO] Listening at: http://127.0.0.1:8000 (17853)
2013-12-31 11:25:33 [17853] [INFO] Using worker: sync
2013-12-31 11:25:33 [17856] [INFO] Booting worker with pid: 17856

I run this on my Mac (10.8).

Any understanding of how to understand this would be greatly appreciated.

-rb


After further investigation, I found that 0.0.0.0/10000 is used by Bonjour, an Apple network discovery application. See how to change the port for Foreman.

+4
3

.

- env .

export PORT=5001

> foreman start
13:22:23 web.1  | started with pid 18194
13:22:24 web.1  | 2013-12-31 13:22:24 [18194] [INFO] Starting gunicorn 18.0
13:22:24 web.1  | 2013-12-31 13:22:24 [18194] [INFO] Listening at: http://0.0.0.0:5001 (18194)
13:22:24 web.1  | 2013-12-31 13:22:24 [18194] [INFO] Using worker: sync
13:22:24 web.1  | 2013-12-31 13:22:24 [18197] [INFO] Booting worker with pid: 18197

, OSX, , , .

-rb

+12

, , , , Mac (OSX 10.9.2), " " .

0

answers here, since this page is the top leaflet on Google for "Connection Used: (" 0.0.0.0 ", 5000)"

Reply to Virtual env: Connection error worked fine for me.

"you can find the id for the unicorn to kill it with $ ps ax | grep unicorn, and then using the id of the gunicorn $ kill instance"

0
source

All Articles