Skip to content
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

11.16.4 Omnibus install on Windows = ruby not found #2291

Closed
jblaine opened this issue Oct 24, 2014 · 5 comments
Closed

11.16.4 Omnibus install on Windows = ruby not found #2291

jblaine opened this issue Oct 24, 2014 · 5 comments
Labels
Platform: Windows Status: Good First Issue An issue ready for a new contributor. Triage: Needs Information Indicates an issue needs more information in order to work on it. Type: Bug Does not work as expected.

Comments

@jblaine
Copy link
Contributor

jblaine commented Oct 24, 2014

Between 11.12.2 (worked) and 11.16.4 (fails), someone modified the code somewhere (I'm assuming) that generates (?) the C:\opscode\chef\bin*.bat files so that only

@"ruby.exe" ... args ...

is called instead of something like the following found in your UNIX/Linux-land builds:

@"C:\opscode\chef\embedded\bin\ruby.exe" ...args...

As a result, the 11.16.4 on Windows is a dead-end for us. After install, running chef-client fails to find Ruby.

To replicate:

  1. Run the installer by hand in a cmd.exe with: msiexec /qb /i chef-windows-11.16.4-1.windows.msi ADDLOCAL="ChefClientFeature"
  2. Then immediately try to run chef-client from that same cmd.exe.
@jaym
Copy link
Contributor

jaym commented Oct 24, 2014

Are you going over ssh?

On Fri, Oct 24, 2014 at 9:13 AM, Jeff Blaine notifications@github.com
wrote:

Between 11.12.2 (worked) and 11.16.4 (fails), someone modified the code
somewhere (I'm assuming) that generates (?) the C:\opscode\chef\bin*.bat
files so that only

@"ruby.exe" ... args ...

is called instead of something like the following found in your
UNIX/Linux-land builds:

@"C:\opscode\chef\embedded\bin\ruby.exe" ...args...

As a result, the 11.16.4 on Windows is a dead-end for us. After install,
running chef-client fails to find Ruby.

To replicate:

  1. Run the installer by hand in a cmd.exe with: msiexec /qb /i
    chef-windows-11.16.4-1.windows.msi ADDLOCAL="ChefClientFeature"
  2. Then immediately try to run chef-client from that same cmd.exe.


Reply to this email directly or view it on GitHub
#2291.

@jaym
Copy link
Contributor

jaym commented Oct 24, 2014

Sorry, looks like you are going directly to cmd.exe. I'll test it out.
Thanks!

@jblaine
Copy link
Contributor Author

jblaine commented Oct 24, 2014

I would also like to point out that this appears to not be the first time this has been a regression. Perhaps when the fix is in some sort of test should be added to the suite of tests.

@smurawski
Copy link
Contributor

@jdmundrawala @jblaine Has this been resolved by the referenced pull request?

@jblaine
Copy link
Contributor Author

jblaine commented Jun 8, 2015

Yes, no problems with 11.18.0-1 or 12.3.0-1 for us.

@thommay thommay added Type: Bug Does not work as expected. Type: Jump In and removed Bug labels Jan 25, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
@tas50 tas50 added Help: Good First Issue Platform: Windows Triage: Needs Information Indicates an issue needs more information in order to work on it. and removed Type: Jump In labels Jan 2, 2019
@tas50 tas50 added Status: Good First Issue An issue ready for a new contributor. and removed Help: Good First Issue labels Jan 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: Windows Status: Good First Issue An issue ready for a new contributor. Triage: Needs Information Indicates an issue needs more information in order to work on it. Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

5 participants