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:
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.