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

No such file or directory - "[APP_PATH]shared/tmp/puma/sock" #1

Closed
kyledecot opened this issue Oct 25, 2013 · 6 comments
Closed

No such file or directory - "[APP_PATH]shared/tmp/puma/sock" #1

kyledecot opened this issue Oct 25, 2013 · 6 comments

Comments

@kyledecot
Copy link
Contributor

I have installed the gem, added require "capistrano/puma" to my Capfile and ran cap production puma:config but when I run cap production puma:start but am getting the following output. Is there an additional step that I'm missing?

 INFO [bea3709a] Running cd /var/www/skateboxes/current && bundle exec puma -C /var/www/skateboxes/shared/config/puma.rb on [Host]
DEBUG [bea3709a] Command: cd /var/www/skateboxes/current && bundle exec puma -C /var/www/skateboxes/shared/config/puma.rb
DEBUG [bea3709a]    Puma starting in single mode...
DEBUG [bea3709a]
DEBUG [bea3709a]    * Version 2.6.0, codename: Pantsuit Party
DEBUG [bea3709a]
DEBUG [bea3709a]    * Min threads: 0, max threads: 16
DEBUG [bea3709a]
DEBUG [bea3709a]    * Environment: production
DEBUG [bea3709a]
DEBUG [bea3709a]    * Listening on unix:///var/www/skateboxes/shared/tmp/puma/sock
DEBUG [bea3709a]
DEBUG [bea3709a]
DEBUG [bea3709a]    /var/www/skateboxes/shared/bundle/ruby/2.0.0/gems/puma-2.6.0/lib/puma/binder.rb:270:in `initialize'
DEBUG [bea3709a]
DEBUG [bea3709a]    :
DEBUG [bea3709a]
DEBUG [bea3709a]    No such file or directory - "/var/www/skateboxes/shared/tmp/puma/sock"
DEBUG [bea3709a]
DEBUG [bea3709a]     (
DEBUG [bea3709a]
DEBUG [bea3709a]    Errno::ENOENT
DEBUG [bea3709a]
DEBUG [bea3709a]    )
DEBUG [bea3709a]
DEBUG [bea3709a]        from /var/www/skateboxes/shared/bundle/ruby/2.0.0/gems/puma-2.6.0/lib/puma/binder.rb:270:in `new'
DEBUG [bea3709a]
DEBUG [bea3709a]        from /var/www/skateboxes/shared/bundle/ruby/2.0.0/gems/puma-2.6.0/lib/puma/binder.rb:270:in `add_unix_listener'
DEBUG [bea3709a]
DEBUG [bea3709a]        from /var/www/skateboxes/shared/bundle/ruby/2.0.0/gems/puma-2.6.0/lib/puma/binder.rb:114:in `block in parse'
DEBUG [bea3709a]
DEBUG [bea3709a]        from /var/www/skateboxes/shared/bundle/ruby/2.0.0/gems/puma-2.6.0/lib/puma/binder.rb:82:in `each'
DEBUG [bea3709a]
DEBUG [bea3709a]        from /var/www/skateboxes/shared/bundle/ruby/2.0.0/gems/puma-2.6.0/lib/puma/binder.rb:82:in `parse'
DEBUG [bea3709a]
DEBUG [bea3709a]        from /var/www/skateboxes/shared/bundle/ruby/2.0.0/gems/puma-2.6.0/lib/puma/runner.rb:111:in `load_and_bind'
DEBUG [bea3709a]
DEBUG [bea3709a]        from /var/www/skateboxes/shared/bundle/ruby/2.0.0/gems/puma-2.6.0/lib/puma/single.rb:73:in `run'
DEBUG [bea3709a]
DEBUG [bea3709a]        from /var/www/skateboxes/shared/bundle/ruby/2.0.0/gems/puma-2.6.0/lib/puma/cli.rb:442:in `run'
DEBUG [bea3709a]
DEBUG [bea3709a]        from /var/www/skateboxes/shared/bundle/ruby/2.0.0/gems/puma-2.6.0/bin/puma:10:in `<top (required)>'
DEBUG [bea3709a]
DEBUG [bea3709a]        from /var/www/skateboxes/shared/bundle/ruby/2.0.0/bin/puma:23:in `load'
DEBUG [bea3709a]
DEBUG [bea3709a]        from /var/www/skateboxes/shared/bundle/ruby/2.0.0/bin/puma:23:in `<main>'
cap aborted!
cd /var/www/skateboxes/current && bundle exec puma -C /var/www/skateboxes/shared/config/puma.rb stdout: Nothing written
cd /var/www/skateboxes/current && bundle exec puma -C /var/www/skateboxes/shared/config/puma.rb stderr: Nothing written
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/sshkit-1.1.0/lib/sshkit/command.rb:94:in `exit_status='
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:125:in `block (4 levels) in _execute'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:551:in `call'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:551:in `do_request'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:561:in `channel_request'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:465:in `dispatch_incoming_packets'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:221:in `preprocess'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:205:in `process'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `block in loop'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `loop'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `loop'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:269:in `wait'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:147:in `block (2 levels) in _execute'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:514:in `call'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/channel.rb:514:in `do_open_confirmation'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:545:in `channel_open_confirmation'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:465:in `dispatch_incoming_packets'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:221:in `preprocess'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:205:in `process'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `block in loop'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `loop'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/net-ssh-2.7.0/lib/net/ssh/connection/session.rb:169:in `loop'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:149:in `block in _execute'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:106:in `tap'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:106:in `_execute'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:54:in `execute'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/bundler/gems/capistrano-puma-4068552029ae/lib/capistrano/tasks/puma.cap:32:in `block (3 levels) in <top (required)>'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:42:in `instance_exec'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/sshkit-1.1.0/lib/sshkit/backends/netssh.rb:42:in `run'
/Users/kyledecot/.rvm/gems/ruby-2.0.0-p247@skateboxes/gems/sshkit-1.1.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
Tasks: TOP => puma:start
@kyledecot
Copy link
Contributor Author

Also, it seems like Capistrano (or Rails) creates a shared/tmp/sockets directory. Should this directory be used instead of creating a directory just for puma?

@seuros
Copy link
Owner

seuros commented Oct 25, 2013

@kyledecot I changed the directory to match capistrano's sockets folder, however you will have to create the Puma directory if you want to use the jungle (the script ask for that) for now. In future release, you will be able to configure it.

I also updated the README with some missing informations. Let me know if you if there is any other issue.
Thank you

@kyledecot
Copy link
Contributor Author

I don't believe I'm using the jungle. I simply ran the two commands I indicated and received the error. What/who is responsible for creating this sock file?

@seuros
Copy link
Owner

seuros commented Oct 25, 2013

puma try to create the socket after reading from /var/www/skateboxes/shared/config/puma.rb

Did you run puma:config ? if you did :
bundle update (to get the lastest version) and rerun it.
This time, the socket will be created in sockets folder.

You still have to set puma_state and puma_pid in other folder, if you don't have the puma folder in the shared path.

@seuros
Copy link
Owner

seuros commented Oct 25, 2013

I pushed a new version, now you won't have to create any extra folder. Just puma:config (once) and then puma:start

@kyledecot
Copy link
Contributor Author

Starting works much better now. Stopping on the other hand is a different story, haha. I'll open another issue. Thanks for your help so far!

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