-
Notifications
You must be signed in to change notification settings - Fork 492
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
problems with restarting puma #245
Comments
So you say when your deploying using mina it doesn't run, but as I can see, when you ssh to your server and run mina puma:restart everything seems to be ok? Can you please copy your deploy.rb file (only the deploy task), and can you run deploy with the -v parameter (mina deploy -v) and also write me the response down. |
I actually run I have to run this repeteatly until it suddenly works (page loads). So again after a normal deploy, the site doesn't load and after running Here is the deploy file for one project: I thought it actually happens only on this project, but just now it happened on another. I have examined puma restarting code
and it seems ok.. but it's here that things break in the first place.. I don't know how to proceed in finding the fault, but it looks like it's puma's problem, right? |
now I have the webapp in not-running state after a deploy:
|
Maybe it has something to do with rsync I'm using? Because my friends who deploy with mina don't have any issues, but they don't use rsync method... I was thinking that because I haven't been excluding /tmp (as I probably should) when rsyncing, that this got on the server (and puma socket and state are there).. but I don't know how it could be in the way because symlinking to /shared/tmp is working and it happens before puma restart. |
It wasn't that because today it happened again and those directories were excluded... I also upgraded puma from 2.9.0 to 2.9.2... it's a bit frustrating :( Should I ask at Puma's side as well? |
I now tried replacing
And it happened again on 3rd deploy... so it seems that's not a mina problem in any way... |
I have some new info.... puma/puma#598 ... still not sure where is the problem but apparently puma rejects phased restart and after normal restart it cannot find the Gemfile for some reason... |
Turns out you cannot use phased restart with preloading the app... I hope it will be ok now and that this helps others ... more about this: https://github.com/puma/puma/blob/master/DEPLOYMENT.md#restarting |
The last link seems returning 404, another links: |
It's puma issue. The problem i that puma is not actually starts daemon immediately after start. System kills puma process when ssh session is closed. You can fix it by adding For example:
|
I'm very often left with non-working web app after deploy...
puma somehow dies...
(here the website is down)
(note the line Puma is not running)
Sometimes I have to repeat
mina puma:restart
multiple times to get it working...Is this a puma problem? I have some sinatra apps and when I send SIGUSR2, it always restarts correctly... Maybe on Rails it has problems and it's not a mina issue? How can I get more debug data about this?
The text was updated successfully, but these errors were encountered: