-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vagrant up
crashes with rsa_compat_build_request': undefined method '[]' for nil:NilClass (NoMethodError)
#12408
Comments
vagrant up
crashes with rsa_compat_build_request': undefined method
[]' for nil:NilClass (NoMethodError)`vagrant up
crashes with rsa_compat_build_request': undefined method '[]' for nil:NilClass (NoMethodError)
vagrant up
crashes with rsa_compat_build_request': undefined method '[]' for nil:NilClass (NoMethodError)
vagrant up
crashes with rsa_compat_build_request': undefined method
[]' for nil:NilClass (NoMethodError)
vagrant up
crashes with rsa_compat_build_request': undefined method
[]' for nil:NilClass (NoMethodError)
vagrant up
crashes with rsa_compat_build_request': undefined method \
[]' for nil:NilClass (NoMethodError)`
vagrant up
crashes with rsa_compat_build_request': undefined method \
[]' for nil:NilClass (NoMethodError)`vagrant up
crashes with rsa_compat_build_request': undefined method '[]' for nil:NilClass (NoMethodError)
I'm also getting this error and it's driving me crazy |
This was broken in vagrant 2.2.16, reverting to 2.2.15 fixes this for me |
I can also confirm that reverting to 2.2.15 solves the issue. @chrisroberts I'm guessing it was broken with this commit: a08597d |
Set flag on RSA keys of deprecated RSA SHA1 support when loading keys based on server version of the transport. This ensures keys are properly flagged. Flag name has been updated to provide context on usage. Version matching on the OpenSSH server version has also been updated to handle customized naming in the version string (as seen in the Windows port) and to properly handle when no match is found. Fixes hashicorp#12344 hashicorp#12408 hashicorp#12381
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Vagrant version
Vagrant 2.2.16
Host operating system
CentOS Linux release 8.3.2011
Guest operating system
Cisco IOS-XE 16.09.07
Vagrantfile
Debug output
https://gist.github.com/ggiesen/7d97219467a4ebb3d82899262963eb9a
The Gist contains 3 files:
vagrant up router1
is runvagrant up router1
is runvagrant ssh router1
is runExpected behavior
Bring up box
Actual behavior
The first time I run
vagrant up router1
, vagrant provisions the VM, and then crashes with the following error:/opt/vagrant/embedded/gems/2.2.16/gems/vagrant-2.2.16/lib/vagrant/patches/net-ssh.rb:10:in
rsa_compat_build_request': undefined method[]' for nil:NilClass (NoMethodError)
The VM is left running, however, and I can run
vagrant up router1
a second time and finishes running the trigger. I also encounter no issues usingvagrant ssh router1
If I use password-based authentication, vagrant does not crash (but I have to log into all devices manually).
Steps to reproduce
vagrant up router1
The text was updated successfully, but these errors were encountered: