Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeouts after server running for some time #1275

Closed
ypadlyak opened this issue Apr 18, 2017 · 5 comments
Closed

Timeouts after server running for some time #1275

ypadlyak opened this issue Apr 18, 2017 · 5 comments

Comments

@ypadlyak
Copy link

"upstream timed out (110: Connection timed out) while reading response header from upstream"

The Puma server stopped responding with fore-mentioned timeouts in Nginx logs. If I restart, it works correctly for some time, then it repeats. How do I debug this king of problems?

@pchaganti
Copy link

Hmm. Seeing the same thing. In our case, it seems to timeout for a bit, and then start responding again. The time varies between 1-5 min. This server not really under a lot of load either.

@ypadlyak
Copy link
Author

ypadlyak commented Apr 18, 2017

Yes, the same! But it is processing the request or two and stops again

@ypadlyak
Copy link
Author

I've now rebooted it and the log looks strange (these TERMs):
[2419] - Starting phased worker restart, phase: 5
[2419] + Changing to /home/ubuntu/tickets/current
[2419] - Stopping 3229 for phased upgrade...
[2419] - TERM sent to 3229...
[2419] - TERM sent to 3229...
[2419] - TERM sent to 3229...
[2419] - TERM sent to 3229...
[2419] - TERM sent to 3229...
[2419] - TERM sent to 3229...
[2419] - KILL sent to 3229...
[4812] + Gemfile in context: //20170419101552/Gemfile
I, [2017-04-19T10:19:18.119862 #4812] INFO -- sentry: ** [Raven] Raven 2.4.0 ready to catch errors
[2419] - Worker 1 (pid: 4812) booted, phase: 5
[2419] - Stopping 4356 for phased upgrade...
[2419] - TERM sent to 4356...
[4839] + Gemfile in context: /
/20170419101552/Gemfile
I, [2017-04-19T10:19:27.204147 #4839] INFO -- sentry: ** [Raven] Raven 2.4.0 ready to catch errors
[2419] - Worker 0 (pid: 4839) booted, phase: 5

@ypadlyak
Copy link
Author

I have now tried this suggestion: rails/rails#27455 (comment) . I'll report if it happens again

@nateberkopec
Copy link
Member

This particular issue looks like the above ^^^ If config.eager_load = true doesn't fix it for you, please open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants