Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

rbreadline crashes if HOMEDRIVE is unavailable #415

Closed
jaym opened this issue Jun 9, 2015 · 1 comment
Closed

rbreadline crashes if HOMEDRIVE is unavailable #415

jaym opened this issue Jun 9, 2015 · 1 comment

Comments

@jaym
Copy link
Contributor

jaym commented Jun 9, 2015

This is causing issues for enterprise users. We should patch this in our omnibus package and submit a fix upstream if it will work for everyone.

PS C:\Users\vagrant> berks -v
C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rbreadline.rb:1097:in `<module:RbReadline>': HOME environment variable (or HOMEDRIVE and HOMEPATH) must be set and point to a directory (RuntimeError)
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rbreadline.rb:17:in `<top (required)>'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/readline.rb:10:in `<module:Readline>'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/readline.rb:8:in `<top (required)>'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/line_editor/readline.rb:2:in `<top
 (required)>'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/line_editor.rb:2:in `<top (require
d)>'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:8:in `<top (required)>'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:2:in `<top (required)>'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/apps/berkshelf/lib/berkshelf.rb:10:in `<top (required)>'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/apps/berkshelf/lib/berkshelf/cli.rb:1:in `<top (required)>'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from C:/opscode/chefdk/embedded/apps/berkshelf/bin/berks:3:in `<top (required)>'
        from C:/opscode/chefdk/bin/berks:43:in `load'
        from C:/opscode/chefdk/bin/berks:43:in `<main>'
jaym added a commit to chef-boneyard/omnibus-chef that referenced this issue Jun 10, 2015
These hacks to the environment pick a reasonable HOME directory
on Windows if `ENV['HOME']` does not exist. Should should fix
issues like chef-boneyard/chef-dk#415

This file can be run automagically by setting RUBYOPT='-rchefdk_envhacks'
jaym added a commit to chef-boneyard/omnibus-chef that referenced this issue Jun 11, 2015
These hacks to the environment pick a reasonable HOME directory
on Windows if `ENV['HOME']` does not exist. Should should fix
issues like chef-boneyard/chef-dk#415

This file can be run automagically by setting RUBYOPT='-rchefdk_envhacks'
jaym added a commit to chef-boneyard/omnibus-chef that referenced this issue Jun 12, 2015
These hacks to the environment pick a reasonable HOME directory
on Windows if `ENV['HOME']` does not exist. Should should fix
issues like chef-boneyard/chef-dk#415

This file can be run automagically by setting RUBYOPT='-rchefdk_envhacks'
@danielsdeleo
Copy link
Contributor

Looks like you fixed this in omnibus, closing.

ksubrama pushed a commit that referenced this issue Jan 11, 2016
@chef-boneyard chef-boneyard locked and limited conversation to collaborators Feb 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants