adamedx / winbox

Chef recipe for developer workstation for Windows
39 stars 18 forks source link

Unable to bootstrap chef node using "knife" due to net-ssh requiring gems #22

Open mwalters12 opened 7 years ago

mwalters12 commented 7 years ago

Hi, I am unsure if this is an issue with using your "winbox" or not since Ruby is setup during the install. Have you ever seen this issue below? I am unable to bootstrap due to gem issues. (I am very new to Ruby)

I initially added the bug here, but still no resolutions yet: https://github.com/net-ssh/net-ssh/issues/521

Expected behavior

I should be able to bootstrap a node into the chef server.

Actual behavior

I run into an error message and the command fails.

System configuration

Example App

knife bootstrap -N dev-chefnode.example.com dev-chefnode.example.com -x admin -i ..\.ssh\admin-private.pem --sudo
C:/Users/USER/AppData/Local/chefdk/gem/ruby/2.3.0/gems/rbnacl-4.0.2/lib/rbnacl/sodium/version.rb:10: warning: already initialized constant RbNaCl::Sodium::Version::MINIMUM_LIBSODIUM_VERSION
C:/Users/USER/AppData/Local/chefdk/gem/ruby/2.3.0/gems/rbnacl-4.0.2/lib/rbnacl/sodium/version.rb:10: warning: previous definition of MINIMUM_LIBSODIUM_VERSION was here
C:/Users/USER/AppData/Local/chefdk/gem/ruby/2.3.0/gems/rbnacl-4.0.2/lib/rbnacl/sodium/version.rb:11: warning: already initialized constant RbNaCl::Sodium::Version::MINIMUM_LIBSODIUM_VERSION_FOR_ARGON2
C:/Users/USER/AppData/Local/chefdk/gem/ruby/2.3.0/gems/rbnacl-4.0.2/lib/rbnacl/sodium/version.rb:11: warning: previous definition of MINIMUM_LIBSODIUM_VERSION_FOR_ARGON2 was here
Creating new client for dev-chefnode.example.com
Creating new node for dev-chefnode.example.com
Connecting to dev-chefnode.example.com
ERROR: NotImplementedError: OpenSSH keys only supported if ED25519 is available
net-ssh requires the following gems for ed25519 support:
 * rbnacl (>= 3.2, < 5.0)
 * rbnacl-libsodium, if your system doesn't have libsodium installed.
 * bcrypt_pbkdf (>= 1.0, < 2.0)
See https://github.com/net-ssh/net-ssh/issues/478 for more information
LoadError : "Could not open library '.dll': The specified module could not be found.
"