简体   繁体   中英

Rails - Capistrano deployment failing

I'm trying to figure out why a deployment is failing but can't see anything in the logs:

* 2017-12-04 11:54:56 executing `staging'
triggering start callbacks for `deploy'
* 2017-12-04 11:54:56 executing `multistage:ensure'
* 2017-12-04 11:54:56 executing `deploy'
triggering before callbacks for `deploy'
* 2017-12-04 11:54:56 executing `slack:starting'
* 2017-12-04 11:54:59 executing `deploy:update'
** transaction: start
* 2017-12-04 11:54:59 executing `deploy:update_code'
updating the cached checkout on all servers
* executing "if [ -d /home/rails/apps/premium-
tours/staging/shared/cached-copy ]; then cd /home/rails/apps/premium-tours/staging/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 6bc353816fce7aa0b70ac97c3e46f79ee6ced659 && git clean -q -d -x -f; else git clone -q -b staging git@github.com:rawnet/premium-tours /home/rails/apps/premium-tours/staging/shared/cached-copy && cd /home/rails/apps/premium-tours/staging/shared/cached-copy && git checkout -q -b deploy 6bc353816fce7aa0b70ac97c3e46f79ee6ced659; fi"
servers: ["94.236.126.220"]
*** [deploy:update_code] rolling back
* executing "rm -rf /home/rails/apps/premium-tours/staging/releases/20171204115614; true"

 servers: ["94.236.126.220"]
 ** [deploy:update_code] exception while rolling back: Capistrano::ConnectionError, connection failed for: 94.236.126.220 (Errno::ETIMEDOUT: Operation timed out - connect(2) for "94.236.126.220" port 22)
connection failed for: 94.236.126.220 (Errno::ETIMEDOUT: Operation timed out - connect(2) for "94.236.126.220" port 22)

Any help is appreciated - like I say I don't know what to look for and can't see any error messages before it starts rolling back

Its connection issue, check the ip and port. Try this:

config/deploy/production.rb

server "#{server_ip_here}", user: "deploy", roles: %w{web app db}, port: 222

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM