login community faq

Hi,

I have a simple Rails 3.2 application that seems to be working fine, but every 20 minutes, a set of errors like this shows up in my webapps/rails/nginx/logs/error.log

2012/03/04 12:01:01 [emerg] 15418#0: bind() to 0.0.0.0:13304 failed (98: Address already in use)
2012/03/04 12:01:01 [emerg] 15418#0: bind() to 0.0.0.0:13304 failed (98: Address already in use)
2012/03/04 12:01:01 [emerg] 15418#0: bind() to 0.0.0.0:13304 failed (98: Address already in use)
2012/03/04 12:01:01 [emerg] 15418#0: bind() to 0.0.0.0:13304 failed (98: Address already in use)
2012/03/04 12:01:01 [emerg] 15418#0: bind() to 0.0.0.0:13304 failed (98: Address already in use)
2012/03/04 12:01:01 [emerg] 15418#0: still could not bind()

The address that is in use is the port that my application is running on. Each time this happens, the identifier after [emerg] changes. Is anyone else seeing this? Any ideas why it's happening or how to fix it?

Thanks!

asked Mar 04 '12 at 12:28

ddrake's gravatar image

ddrake
51


You are seeing those messages because of your cronjob that is trying to restart your application every 20 minutes.

answered Mar 04 '12 at 13:11

bmeyer71's gravatar image

bmeyer71 ♦♦
8512310

Thanks, that makes perfect sense. I can see from $ crontab -l that each of my rails apps has a cron job associated with it. It even mentions in the app doc displayed when creating a new rails app: "A cron job is created to restart the nginx server every 20 minutes if it is not already running."

(Mar 04 '12 at 15:16) ddrake ddrake's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited