-
Notifications
You must be signed in to change notification settings - Fork 163
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
NoMethodError: undefined method `gsub' for nil:NilClass following net-ssh patch upgrade #263
Comments
Just to be more precise on the versions involved here in the source 'https://rubygems.org'
gem 'chef-dk', '0.3.5'
gem 'chef-provisioning', '0.17'
gem 'chef-provisioning-fog', '0.11'
gem 'net-ssh', '= 2.9.1' |
@esciara is there an easy way i can reproduce this? net-ssh/net-ssh@v2.9.1...v2.9.2 |
@mfazekas if you create the most basic recipe possible with 1 machine in vagrant and uses net-ssh 2.9.2 it will fail, at least it does for me |
@mfazekas yes. Do as follow (from memory but I am pretty sure it will work, with little addition):
|
@mfazekas having said that, (following on @Afterglow 's comment) if you don't have credentials for AWS, you could also use the vagrant set up as follows:
I reproduced the problem following these exact steps just now. |
I was able to reproduce the issue - strage |
Looks like this commit - from opscode - is to blame: @jkeiser can you please take a look? Looks like from code at |
Got this (there is a patch now!). Working on getting backlog to the point where things are easier to respond to. |
when I do "gem install chef-provisioning chef-provisioning-vagrant" I still get this problem... have the gems been updated? |
If you install the latest ChefDK (0.4.0) do you still get this issue? |
I had this problem and 0.4.0 fixed it. (so happy). specifically i believe it's 0.18 of chef-provisioning which is included in chefdk 0.4.0 |
Works for me too. |
Woohoo! Okay, I'm going to close this unless @jkeiser or anyone else wants it open. |
As discussed on gitter, a problem appeared following the patch
2.9.2
of thenet-ssh
gem. Symptoms are that the error below show when converging achef-provisioning
recipe (output in debug mode):The problem is resolved by locking the
net-ssh
version to2.9.1
. An example simpleGemfile
on a recipe using the fog driver is:Two issues here:
NoMethodError: undefined method 'gsub' for nil:NilClass
is somewhat cryptic and has made it difficult to find the origin of the problem (see discussion here: https://gitter.im/opscode/chef-provisioning/archives/2014/12/31; or ticket here: confusing exception thrown when chef_server_url is not a full URI )chef-dk
's?The text was updated successfully, but these errors were encountered: