Skip to content

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

Description

@mwalters12

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: net-ssh/net-ssh#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

  • net-ssh version: (4.1.0)
  • Ruby version: 2.3.1p112 (2016-04-26 revision 54768)

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.
"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions