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

cap puma:start freezes #58

Closed
jvalente opened this issue Aug 5, 2014 · 14 comments
Closed

cap puma:start freezes #58

jvalente opened this issue Aug 5, 2014 · 14 comments

Comments

@jvalente
Copy link

jvalente commented Aug 5, 2014

I have no movement after that: https://gist.github.com/jvalente/b81a9c589548330a36b6
Processor stays at 100% for a minute or so and then drops to normal.

@seuros
Copy link
Owner

seuros commented Aug 5, 2014

Try with puma master.

@jvalente
Copy link
Author

jvalente commented Aug 5, 2014

@seuros thanks, still slow but working now.
Now the task stops because of the non existent socket file. I've added %w{tmp/pids tmp/sockets log} to linked_dirs, is there anything else I'm missing? Cheers.

DEBUG[a23835e0]     * Listening on unix:/home/deployer/apps/ensina/shared/tmp/sockets/puma.sock
DEBUG[a23835e0]     IOError: bind failed: No such file or directory

@seuros
Copy link
Owner

seuros commented Aug 5, 2014

run puma:config to update puma.rb

Try to have the puma.sock in /tmp/puma.sock if that still not work.

Jruby is weird 💤

@jvalente
Copy link
Author

jvalente commented Aug 5, 2014

U don't say… I'm about to kill myself.
The previous comment I made was already considering the up-to-date puma.rb

@seuros
Copy link
Owner

seuros commented Aug 5, 2014

You probably talking about the puma gem.
puma.rb is a file created by this gem, located in config/. You can ssh into your machine and see it.

https://github.com/puma/puma/blob/master/examples/config.rb << this is the file, i renamed it puma.rb

@seuros
Copy link
Owner

seuros commented Aug 5, 2014

sorry you will find it in /home/deployer/apps/ensina/shared/

@jvalente
Copy link
Author

jvalente commented Aug 5, 2014

hmmm, seems like the old one to me: https://gist.github.com/jvalente/04439e0261aa8452fd95 can u confirm?
I'm using the gem via master however…

@seuros
Copy link
Owner

seuros commented Aug 5, 2014

Sorry for delay, i had some issues to fix.
You can't preload! and have 0 workers. Please increase the puma workers to at least 1.

@jvalente
Copy link
Author

jvalente commented Aug 5, 2014

Yeah, I've tried that before. Doing a bit of investigation on why I'm getting ERROR: worker mode not supported on JRuby or Windowswhen I increase the workers to be > 0.

@jvalente
Copy link
Author

jvalente commented Aug 5, 2014

Puma documentation isn't very clear on how to work around. https://github.com/puma/puma#platform-constraints

@seuros
Copy link
Owner

seuros commented Aug 5, 2014

then turn off the preloading .
Puma was build for RBX not for jruby.

@seuros
Copy link
Owner

seuros commented Aug 7, 2014

Any update ? @jvalente

@jvalente
Copy link
Author

jvalente commented Aug 8, 2014

Hi @seuros, I am now being able to run the app with a jruby / puma / nginx stack. I believe I was working with a machine that wasn't powerful enough to handle the JVM since I'm now using a 2 CPUs and everything is running fine.
Thank you so much for your help

@seuros
Copy link
Owner

seuros commented Aug 8, 2014

Glad it worked for you.

@seuros seuros closed this as completed Aug 8, 2014
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

2 participants