Comments (24)
Oh, found the problem. Has to completely uninstall other versions:
gem uninstall capistrano-puma
from capistrano-puma.
what is the output of cap production deploy:check
?
from capistrano-puma.
Its successful
localhost:blazarsol apple$ cap production deploy:check
/Users/apple/.rvm/gems/ruby-2.0.0-p451/gems/bundler-1.5.3/lib/bundler/runtime.rb:220: warning: Insecure world writable dir /usr/local in PATH, mode 040777
INFO[abf3fc13] Running /usr/bin/env mkdir -p /tmp/blazarsol/ on 54.169.166.162
DEBUG[abf3fc13] Command: /usr/bin/env mkdir -p /tmp/blazarsol/
INFO[abf3fc13] Finished in 1.812 seconds with exit status 0 (successful).
DEBUGUploading /tmp/blazarsol/git-ssh.sh 0.0%
INFOUploading /tmp/blazarsol/git-ssh.sh 100.0%
INFO[2c816447] Running /usr/bin/env chmod +x /tmp/blazarsol/git-ssh.sh on 54.169.166.162
DEBUG[2c816447] Command: /usr/bin/env chmod +x /tmp/blazarsol/git-ssh.sh
INFO[2c816447] Finished in 0.283 seconds with exit status 0 (successful).
Please enter branch (master):
DEBUG[5af67792] Running /usr/bin/env git ls-remote -h [email protected]:suratpyari/blazarsol.git on 54.169.166.162
DEBUG[5af67792] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/blazarsol/git-ssh.sh /usr/bin/env git ls-remote -h [email protected]:suratpyari/blazarsol.git )
DEBUG[5af67792] 74394761f053cb9139e6c0e4e92e1c400a341da7
DEBUG[5af67792]
DEBUG[5af67792] refs/heads/master
DEBUG[5af67792]
DEBUG[5af67792] Finished in 3.880 seconds with exit status 0 (successful).
INFO[0706fc20] Running /usr/bin/env mkdir -pv /var/www/apps/blazarsol/shared /var/www/apps/blazarsol/releases on 54.169.166.162
DEBUG[0706fc20] Command: /usr/bin/env mkdir -pv /var/www/apps/blazarsol/shared /var/www/apps/blazarsol/releases
INFO[0706fc20] Finished in 0.305 seconds with exit status 0 (successful).
INFO[e7e90397] Running /usr/bin/env mkdir -pv /var/www/apps/blazarsol/shared/public/static_pages /var/www/apps/blazarsol/shared/log /var/www/apps/blazarsol/shared/tmp /var/www/apps/blazarsol/shared/vendor/bundle /var/www/apps/blazarsol/shared/public/system on 54.169.166.162
DEBUG[e7e90397] Command: /usr/bin/env mkdir -pv /var/www/apps/blazarsol/shared/public/static_pages /var/www/apps/blazarsol/shared/log /var/www/apps/blazarsol/shared/tmp /var/www/apps/blazarsol/shared/vendor/bundle /var/www/apps/blazarsol/shared/public/system
INFO[e7e90397] Finished in 0.286 seconds with exit status 0 (successful).
INFO[818254ac] Running /usr/bin/env mkdir -pv /var/www/apps/blazarsol/shared/config on 54.169.166.162
DEBUG[818254ac] Command: /usr/bin/env mkdir -pv /var/www/apps/blazarsol/shared/config
INFO[818254ac] Finished in 0.288 seconds with exit status 0 (successful).
DEBUG[e1e9843f] Running /usr/bin/env [ -f /var/www/apps/blazarsol/shared/config/database.yml ] on 54.169.166.162
DEBUG[e1e9843f] Command: [ -f /var/www/apps/blazarsol/shared/config/database.yml ]
DEBUG[e1e9843f] Finished in 0.280 seconds with exit status 0 (successful).
from capistrano-puma.
cap production puma:config
kill puma in the server and try to deploy again.
It look like the state file was not created for some reason.
from capistrano-puma.
I am using capistrano-puma (0.2.3) and puma (2.10.1). cap production puma:config is not working.
localhost:blazarsol apple$ cap production puma:config
/Users/apple/.rvm/gems/ruby-2.0.0-p451/gems/bundler-1.5.3/lib/bundler/runtime.rb:220: warning: Insecure world writable dir /usr/local in PATH, mode 040777
cap aborted!
Don't know how to build task 'puma:config'
from capistrano-puma.
bundle update
You are using old version of the gem.
from capistrano-puma.
I have following gems
gem 'capistrano'
gem 'capistrano-puma', require: false
gem 'capistrano-rails', require: false
gem 'capistrano-bundler', require: false
gem 'rvm1-capistrano3', require: false
I ran bundle install and then cap production puma:config. Getting same problem
Don't know how to build task 'puma:config'
from capistrano-puma.
😸 capistrano-puma is another gem.
change gem 'capistrano-puma'
to gem 'capistrano3-puma'
from capistrano-puma.
Thanks. This problem is resolved and I have successfully deployed my application. But now getting another issue. nginx showing me following error.
2014/11/26 16:48:48 [crit] 11535#0: *105 connect() to unix:///var/www/apps/blazarsol/shared/tmp/sockets/puma.sock failed (40: Too many levels of symbolic links) while connecting to upstream, client: 130.211.134.106, server: blazarsol.com, request: "GET / HTTP/1.0", upstream: "http://unix:///var/www/apps/blazarsol/shared/tmp/sockets/puma.sock:/", host: "blazarsol.com"
from capistrano-puma.
.. Should i change the sockets path?
from capistrano-puma.
Did you use cap production puma:nginx_config
?
from capistrano-puma.
No I have added it manually.
from capistrano-puma.
You can use it , it will create correct files, then you can edit them.
from capistrano-puma.
Thanks a lot. Finally problem is solved.
from capistrano-puma.
@seuros I am having a similar issue. I cannot run cap production puma:config
(Don't know how to build task).
Here is my Gemfile.lock after running bundle update
and bundle install
.
When I run cap production deploy:initial --trace
, I get "Status file not found: /home/myuser/apps/myapp/shared/tmp/pids/puma.state".
Any suggestions?
from capistrano-puma.
@micahalcorn, did you require the gem in your Capfile
from capistrano-puma.
Capfile:
require 'capistrano/setup'
require 'capistrano/deploy'
require 'capistrano/rails'
require 'capistrano/bundler'
require 'capistrano/rvm'
require 'capistrano/puma'
require 'capistrano/puma/nginx'
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
cap -T
output:
...
cap install # Install Capistrano, cap install STAGES=staging,p...
cap puma:make_dirs # Create Directories for Puma Pids and Socket
cap puma:nginx_config # Setup nginx configuration
cap puma:overview # Show status of puma for all applications
cap puma:restart # Restart puma instance for this application
cap puma:start # Start puma instance for this application
cap puma:status # Show status of puma for this application
cap puma:stop # Stop puma instance for this application
cap rvm:check # Prints the RVM and Ruby version on the target host
from capistrano-puma.
You have the wrong gem.
gem 'capistrano3-puma'
from capistrano-puma.
My Gemfile.lock is showing the following:
GIT
remote: git://github.com/seuros/capistrano-puma.git
revision: 5fd95d92e52bf1a2169cc126c6196f3f8991e265
specs:
capistrano3-puma (0.8.5)
Do I need something different in the Capfile?
from capistrano-puma.
@micahalcorn : There is something wrong then, i dont have cap puma:make_dirs # Create Directories for Puma Pids and Socket
in this gem.
I can take a quick look at your app if the repo is public or if you can add me temporary (contact me by email).
from capistrano-puma.
Same problem gere, I made a bundle update
and have this in my Gemfile.lock:
capistrano3-puma (0.9.0)
capistrano (~> 3.0)
puma (>= 2.6)
When trying to build nginx configuration
$ cap staging puma:nginx_config
...
cap aborted!
Don't know how to build task 'puma:nginx_config'
And the rake tasks I see
$ cap -T | grep -i puma
cap puma:overview # Show status of puma for all applications
cap puma:restart # Restart puma instance for this application
cap puma:start # Start puma instance for this application
cap puma:status # Show status of puma for this application
cap puma:stop # Stop puma instance for this application
Any idea ?
from capistrano-puma.
you have to require the nginx task manually.
from capistrano-puma.
@seuros thanks for your suggestion, right, I added
require 'capistrano/puma/nginx'
but still have an error with template_puma
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing on host XXXXXXXX: undefined method `template_puma' for #<SSHKit::Backend::Netssh:0x007fe677223340>
NoMethodError: undefined method `template_puma' for #<SSHKit::Backend::Netssh:0x007fe677223340>
Tasks: TOP => puma:nginx_config
Should this generate the right puma.rb
at every deploy or only when triggered manually ?
from capistrano-puma.
@bmedici deleting the old gem helped! thanks
from capistrano-puma.
Related Issues (20)
- Does the latest version work with rhel/centos? HOT 1
- Service "Type" should be configurable, or the sd_notify gem should be a dependency of this gem HOT 3
- Why does Capistrano not launch my Rails app itself? Why do I need capistrano-puma gem? HOT 1
- `cap production puma:config` results in `Don't know how to build task 'puma:config'` HOT 1
- `Failed to get D-Bus connection: No such file or directory` when trying to deploy HOT 11
- Puma 6.x HOT 4
- Permission denied with puma_access.log HOT 11
- Couple of issues with 6.0.beta HOT 2
- puma:restart service not found during deploy HOT 4
- Multiple X-Forwarded-Proto headers causing issues HOT 1
- WatchdogSec causes error when using Type=simple HOT 1
- Deploying a new app to a staging server won't start/restart puma/systemd HOT 3
- support for Puma v6.0 and upwards HOT 1
- release 5.x with support for Puma v6.0 HOT 1
- v6.0.0.beta.1 breaks Nginx functionality HOT 2
- Failed with result 'watchdog'. HOT 2
- capistrano doesn't support puma:stop task HOT 1
- When 6.0 GA? HOT 1
- after gem updates deploy fails with can't find service HOT 1
- Release 6.0.0 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capistrano-puma.