Giter Club home page Giter Club logo

Comments (24)

bmedici avatar bmedici commented on May 28, 2024 1

Oh, found the problem. Has to completely uninstall other versions:

gem uninstall capistrano-puma

from capistrano-puma.

seuros avatar seuros commented on May 28, 2024

what is the output of cap production deploy:check ?

from capistrano-puma.

suratpyari avatar suratpyari commented on May 28, 2024

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.

seuros avatar seuros commented on May 28, 2024

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.

suratpyari avatar suratpyari commented on May 28, 2024

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.

seuros avatar seuros commented on May 28, 2024

bundle update
You are using old version of the gem.

from capistrano-puma.

suratpyari avatar suratpyari commented on May 28, 2024

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.

seuros avatar seuros commented on May 28, 2024

😸 capistrano-puma is another gem.
change gem 'capistrano-puma' to gem 'capistrano3-puma'

from capistrano-puma.

suratpyari avatar suratpyari commented on May 28, 2024

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.

suratpyari avatar suratpyari commented on May 28, 2024

.. Should i change the sockets path?

from capistrano-puma.

seuros avatar seuros commented on May 28, 2024

Did you use cap production puma:nginx_config ?

from capistrano-puma.

suratpyari avatar suratpyari commented on May 28, 2024

No I have added it manually.

from capistrano-puma.

seuros avatar seuros commented on May 28, 2024

You can use it , it will create correct files, then you can edit them.

from capistrano-puma.

suratpyari avatar suratpyari commented on May 28, 2024

Thanks a lot. Finally problem is solved.

from capistrano-puma.

micahalcorn avatar micahalcorn commented on May 28, 2024

@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.

seuros avatar seuros commented on May 28, 2024

@micahalcorn, did you require the gem in your Capfile

from capistrano-puma.

micahalcorn avatar micahalcorn commented on May 28, 2024

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.

seuros avatar seuros commented on May 28, 2024

You have the wrong gem.

gem 'capistrano3-puma'

from capistrano-puma.

micahalcorn avatar micahalcorn commented on May 28, 2024

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.

seuros avatar seuros commented on May 28, 2024

@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.

bmedici avatar bmedici commented on May 28, 2024

Same problem gere, I made a bundle updateand 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.

seuros avatar seuros commented on May 28, 2024

you have to require the nginx task manually.

from capistrano-puma.

bmedici avatar bmedici commented on May 28, 2024

@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.

fruwe avatar fruwe commented on May 28, 2024

@bmedici deleting the old gem helped! thanks

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.