-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Product install fails when run under System account #36
Comments
Found an old post with similar details running Chef in Azure - https://stackoverflow.com/questions/29723429/chef-webpi-cookbook-fails-install-in-azure |
It's a bit strange because an MSI error 1622 refers to a problem writing a log file. Which is strange because it should be writable by SYSTEM. If you know of a specific workaround we can look at making changes to the cookbook. I'll try and carve out some time to give it a test myself. |
The SO link I posted yesterday has the workaround. THanks! |
This workaround is a bit intrusive as it temporarily changes the AppData path for all users but does set it back to the default after the WebPI install. That being said the alternative is to ask WebPI package authors to update their packages to respect the log path. Many of these package authors are long gone or have moved on to other work and are not likely to fix it. We could make this an optional step and force consumers to explicitly choose to enable it to avoid unintended consequences. WebPI is a very common package manager on Windows, and I think its important to make this situation easier for those new to Chef on Windows. |
Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs. |
Closing due to inactivity. If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs. |
Cookbook version
4.2.1
Chef-client version
13.2.20
Platform Details
Windows Server 2008 R2
Scenario:
Trying to install 'WDeploy36' package with webpi cookbook.
Steps to Reproduce:
Add webpi_product resource with install action to cookbook and update on Chef Server. Next scheduled run of chef-client will pickup new resource and attempt to run under System account.
Expected Result:
Product is installed successfully.
Actual Result:
Product install fails with errors:
Chef Log:
Event Log:
Further notes:
If I run chef-client as my user the install completes successfully. I expect it has something to do with permissions to the System temp directory.
The text was updated successfully, but these errors were encountered: