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
Thanks for creating this awesome gem, I have been using this gem for a few years. I thought I would share the issue that took me at least 4 hours to debug.
I upgraded the deployment script to use rubber 3.2.1, when I created the instance. It kept showing the "timeout in initial connect, retrying" error.
At this time, I thought the public/private key path, permission may not correct. I tried to ssh to the instance manually, it worked.
After a few hours of debugging, I changed the rubber source code to output the detailed error like
begin
_ensure_key_file_present
_allow_root_ssh
_disable_password_based_ssh_login if cloud.should_disable_password_based_ssh_login?
# If the initial_ssh_user is different than the deploy user, we can terminate the SSH connection
# because from here on out we'll be connecting as the deploy user.
if initial_ssh_user != fetch(:user, nil)
teardown_connections_to(sessions.keys)
end
rescue ConnectionError => e
if e.message =~ /Net::SSH::AuthenticationFailed/
logger.info "Can't connect as user #{initial_ssh_user} to #{ip}, assuming root allowed"
else
sleep 2
error_details = "#{e.class}: #{e}"
error_details += "\n#{e.backtrace.join("\n")}" if e.backtrace
pp "error_details: enable_root_ssh - ", error_details, e
logger.info "Failed to connect to #{ip}, retrying"
retry
end
end
Hi,
Thanks for creating this awesome gem, I have been using this gem for a few years. I thought I would share the issue that took me at least 4 hours to debug.
I upgraded the deployment script to use rubber 3.2.1, when I created the instance. It kept showing the "timeout in initial connect, retrying" error.
At this time, I thought the public/private key path, permission may not correct. I tried to ssh to the instance manually, it worked.
After a few hours of debugging, I changed the rubber source code to output the detailed error like
It printed the error like:
I went a head to check the error, after upgrading net-ssh gem to 2.9.4 (it was 2.6.0), the deployment script ran successfully.
The text was updated successfully, but these errors were encountered: