WebFaction
Community site: login 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 04 Mar '12, 12:28

ddrake
517
accept rate: 0%


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

permanent link

answered 04 Mar '12, 13:11

bmeyer71 ♦♦
1.5k3613
accept rate: 33%

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

(04 Mar '12, 15:16) ddrake
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×186
×108

question asked: 04 Mar '12, 12:28

question was seen: 2,592 times

last updated: 04 Mar '12, 15:16

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM