GithubHelp home page GithubHelp logo

cap puma:start freezes about capistrano-puma HOT 14 CLOSED

seuros avatar seuros commented on June 25, 2024
cap puma:start freezes

from capistrano-puma.

Comments (14)

seuros avatar seuros commented on June 25, 2024

Try with puma master.

from capistrano-puma.

jvalente avatar jvalente commented on June 25, 2024

@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

from capistrano-puma.

seuros avatar seuros commented on June 25, 2024

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 💤

from capistrano-puma.

jvalente avatar jvalente commented on June 25, 2024

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

from capistrano-puma.

seuros avatar seuros commented on June 25, 2024

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

from capistrano-puma.

seuros avatar seuros commented on June 25, 2024

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

from capistrano-puma.

jvalente avatar jvalente commented on June 25, 2024

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…

from capistrano-puma.

seuros avatar seuros commented on June 25, 2024

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.

from capistrano-puma.

jvalente avatar jvalente commented on June 25, 2024

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.

from capistrano-puma.

jvalente avatar jvalente commented on June 25, 2024

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

from capistrano-puma.

seuros avatar seuros commented on June 25, 2024

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

from capistrano-puma.

seuros avatar seuros commented on June 25, 2024

Any update ? @jvalente

from capistrano-puma.

jvalente avatar jvalente commented on June 25, 2024

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

from capistrano-puma.

seuros avatar seuros commented on June 25, 2024

Glad it worked for you.

from capistrano-puma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.