You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my fourth attempt to make it work with Capistrano 3. The experience so far with the new Capistrano has been terrible so I'm not taking any chances. Not proceeding to the next step until this first step of safe_deploy_to works out flawlessly:
$ cap production safe_deploy_to:ensure
G[33f74157] Running /usr/bin/env [ ! -d /.rbenv/versions/2.1.3 ] on IP
DEBUG[33f74157] Command: [ ! -d /.rbenv/versions/2.1.3 ]
DEBUG[33f74157] Finished in 0.782 seconds with exit status 1 (failed).
INFO[2a62b37a] Running /usr/bin/env sudo mkdir -pv /var/www/MyAPP on IP
DEBUG[2a62b37a] Command: ( RBENV_ROOT=/.rbenv RBENV_VERSION=2.1.3 /usr/bin/env sudo mkdir -pv /var/www/MyAPP )
INFO[2a62b37a] Finished in 0.116 seconds with exit status 0 (successful).
DEBUG[6b62784c] Running /usr/bin/env id -un on IP
DEBUG[6b62784c] Command: ( RBENV_ROOT=/.rbenv RBENV_VERSION=2.1.3 /usr/bin/env id -un )
DEBUG[6b62784c] deployer
DEBUG[6b62784c] Finished in 0.112 seconds with exit status 0 (successful).
DEBUG[f467054c] Running /usr/bin/env id -gn on IP
DEBUG[f467054c] Command: ( RBENV_ROOT=/.rbenv RBENV_VERSION=2.1.3 /usr/bin/env id -gn )
DEBUG[f467054c] deployers
DEBUG[f467054c] Finished in 0.106 seconds with exit status 0 (successful).
INFO[7975f592] Running /usr/bin/env sudo chown deployer:deployers /var/www/MyAPP on IP
DEBUG[7975f592] Command: ( RBENV_ROOT=/.rbenv RBENV_VERSION=2.1.3 /usr/bin/env sudo chown deployer:deployers /var/www/MyAPP )
INFO[7975f592] Finished in 0.112 seconds with exit status 0 (successful).
Why does this line say 'failed'?:
DEBUG[33f74157] Command: [ ! -d ~/.rbenv/versions/2.1.3 ]
DEBUG[33f74157] Finished in 0.782 seconds with exit status 1 (failed).
M
The text was updated successfully, but these errors were encountered:
I think the red failed output is generated by that test command. It's overly verbose and scares users.
Now, from what I see in your output everything went out okay because safe_deploy_to:ensure task executed well.
If it comforts you, I just ran the same task on my prod server and I can also see red "failed" output.
As a rule of thumb, if the whole capistrano command executed well, everything is well and don't worry about the intermediate output.
Also, you'll see a lot of scary red output with other plugins as well (for regular use cases). Example capistrano-unicorn-nginx has it.
Closing the issue because everything seems to be ok, but let me know if you have other questions.
This is my fourth attempt to make it work with Capistrano 3. The experience so far with the new Capistrano has been terrible so I'm not taking any chances. Not proceeding to the next step until this first step of safe_deploy_to works out flawlessly:
$ cap production safe_deploy_to:ensure
G[33f74157] Running /usr/bin/env [ ! -d
/.rbenv/versions/2.1.3 ] on IP/.rbenv RBENV_VERSION=2.1.3 /usr/bin/env id -un )DEBUG[33f74157] Command: [ ! -d
/.rbenv/versions/2.1.3 ]/.rbenv RBENV_VERSION=2.1.3 /usr/bin/env sudo mkdir -pv /var/www/MyAPP )DEBUG[33f74157] Finished in 0.782 seconds with exit status 1 (failed).
INFO[2a62b37a] Running /usr/bin/env sudo mkdir -pv /var/www/MyAPP on IP
DEBUG[2a62b37a] Command: ( RBENV_ROOT=
INFO[2a62b37a] Finished in 0.116 seconds with exit status 0 (successful).
DEBUG[6b62784c] Running /usr/bin/env id -un on IP
DEBUG[6b62784c] Command: ( RBENV_ROOT=
DEBUG[6b62784c] deployer
DEBUG[6b62784c] Finished in 0.112 seconds with exit status 0 (successful).
DEBUG[f467054c] Running /usr/bin/env id -gn on IP
DEBUG[f467054c] Command: ( RBENV_ROOT=
/.rbenv RBENV_VERSION=2.1.3 /usr/bin/env id -gn )/.rbenv RBENV_VERSION=2.1.3 /usr/bin/env sudo chown deployer:deployers /var/www/MyAPP )DEBUG[f467054c] deployers
DEBUG[f467054c] Finished in 0.106 seconds with exit status 0 (successful).
INFO[7975f592] Running /usr/bin/env sudo chown deployer:deployers /var/www/MyAPP on IP
DEBUG[7975f592] Command: ( RBENV_ROOT=
INFO[7975f592] Finished in 0.112 seconds with exit status 0 (successful).
Why does this line say 'failed'?:
DEBUG[33f74157] Command: [ ! -d ~/.rbenv/versions/2.1.3 ]
DEBUG[33f74157] Finished in 0.782 seconds with exit status 1 (failed).
The text was updated successfully, but these errors were encountered: