Net::SSH::AuthenticationFailed

406 views
Skip to first unread message

sol

unread,
May 14, 2014, 4:15:16 AM5/14/14
to capis...@googlegroups.com
Versions:
  • Ruby 2.1.1
  • Capistrano 2.15.5

Platform:
  • Linux
cap deploy fails with:

....
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
    triggering load callbacks
  * executing `staging'
    triggering start callbacks for `deploy:setup'
  * executing `multistage:ensure'
  * executing `deploy:setup'
    triggering before callbacks for `deploy:setup'
  * executing `rvm:install_ruby'
  * executing multiple commands in parallel
    -> "else" :: "__LAST_STATUS=0; export CURL_HOME=\"${TMPDIR:-${HOME}}/.rvm-curl-config.$$\"; mkdir ${CURL_HOME}/; { [[ -r ${HOME}/.curlrc ]] && cat ${HOME}/.curlrc; echo \"silent\"; echo \"show-error\"; } > $CURL_HOME/.curlrc; if id | grep ' groups=.*(rvm)' >/dev/null ; then /usr/local/rvm/bin/rvm --autolibs=2 install 2.1.1 ; else sudo -p 'sudo password: ' sg rvm -c '/usr/local/rvm/bin/rvm --autolibs=2 install 2.1.1 ' ; fi ; if id | grep ' groups=.*(rvm)' >/dev/null ; then /usr/local/rvm/bin/rvm 2.1.1 do rvm gemset create permissions ; else sudo -p 'sudo password: ' sg rvm -c '/usr/local/rvm/bin/rvm 2.1.1 do rvm gemset create permissions' ; fi || __LAST_STATUS=$?; rm -rf $CURL_HOME; exit ${__LAST_STATUS}"
    -> "else" :: "__LAST_STATUS=0; export CURL_HOME=\"${TMPDIR:-${HOME}}/.rvm-curl-config.$$\"; mkdir ${CURL_HOME}/; { [[ -r ${HOME}/.curlrc ]] && cat ${HOME}/.curlrc; echo \"silent\"; echo \"show-error\"; } > $CURL_HOME/.curlrc; if id | grep ' groups=.*(rvm)' >/dev/null ; then /usr/local/rvm/bin/rvm --autolibs=2 install 2.1.1 ; else sudo -p 'sudo password: ' sg rvm -c '/usr/local/rvm/bin/rvm --autolibs=2 install 2.1.1 ' ; fi ; if id | grep ' groups=.*(rvm)' >/dev/null ; then /usr/local/rvm/bin/rvm 2.1.1 do rvm gemset create permissions ; else sudo -p 'sudo password: ' sg rvm -c '/usr/local/rvm/bin/rvm 2.1.1 do rvm gemset create permissions' ; fi || __LAST_STATUS=$?; rm -rf $CURL_HOME; exit ${__LAST_STATUS}"
    servers: ["vbdev-ldap01.example.com", "vbdev-ldap02.example.com"]
Password: stty: standard input: Inappropriate ioctl for device stty: standard input: Inappropriate ioctl for device stty: standard input: Inappropriate ioctl for device connection failed for: vbdev-ldap02.example.com (Net::SSH::AuthenticationFailed: deployer), vbdev-ldap01.example.com (Net::SSH::AuthenticationFailed: deployer)


I found: http://stackoverflow.com/questions/21560297/capistrano-sshauthenticationfailed-not-prompting-for-password
and switched back to net-ssh 2.7.0 and net-ssh-gateway 1.2.0 - still got the above error

passwordless ssh from the console is fine, other apps deploy without a problem.. and I couldn't spot any differences

Thanks a lot,
Christoph

Bruno Sutic

unread,
May 14, 2014, 10:12:22 AM5/14/14
to capis...@googlegroups.com
Hi,
while unfortunately I'm clueless about the solution for this problem, I noticed you're still using "old" capistrano 2.
"New" capistrano 3 has been out for almost a year now, is upgrading an option? I think you'd be able to get better support that way - at least via this forum.

sol

unread,
May 14, 2014, 10:26:41 AM5/14/14
to capis...@googlegroups.com
That's embarassing.. I don't know why this is still on the old version :)

I will upgrade first

Thanks for the hint!
Reply all
Reply to author
Forward
0 new messages