-
Notifications
You must be signed in to change notification settings - Fork 136
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
AutoUninstaller runs every time in 0.9.9.x #134
Comments
With Chocolatey v0.9.9.11 it also runs the incorrect exec, but it looks like it's trying to find use the findstr for the 0.9.10.x versions. Debug: Exec[chocolatey_autouninstaller_enable](provider=windows): Executing check 'cmd.exe /c C:\ProgramData\chocolatey\bin\choco.exe feature list -r | findstr /B /I /C:"autoUninstaller|enabled|"'
Debug: Executing 'cmd.exe /c C:\ProgramData\chocolatey\bin\choco.exe feature list -r | findstr /B /I /C:"autoUninstaller|enabled|"'
Debug: Exec[chocolatey_autouninstaller_enable](provider=windows): Executing 'C:\ProgramData\chocolatey\bin\choco.exe feature -r enable -n autoUninstaller'
Debug: Executing 'C:\ProgramData\chocolatey\bin\choco.exe feature -r enable -n autoUninstaller'
Notice: /Stage[main]/Chocolatey::Config/Exec[chocolatey_autouninstaller_enable]/returns: executed successfully |
Hmm, perhaps the logic is flipped? |
I think not. I have almost 50 machines. Most of them are working fine, but few of them are stubborn. |
No, the logic is wrong. I just looked closer. The version comes from a fact. If the version is 0, we should do nothing. Only do the secondary check when there is a 0.9.9.x version. |
Remember that facts go up to the server and come back down. Guess what that fact evaluates to on first install? 0, because it has just been provided up to the master for compilation before there is even a Chocolatey version. If you are still seeing this after a few runs, I think there is another issue at play, possibly in how it gathers the version. This has been fixed over in puppetlabs-chocolatey, but puppetlabs-chocolatey doesn't yet contain these fixes. |
Sorry Rob, I don't know much about puppet language. Just confirmed that all new host added today, with symptoms like in a subject are WIndows Server 2012 R2 hosts. facter -p shows:
|
There is no change after first 200 runs ;) |
Okay. So definitely a continued bug then. :/ |
Rob, I feel stupid :( |
@Koshersalt are you still seeing this with 1.2.5? |
Going to leave this open as it could still be an issue. |
Yes, I'm still seeing this with 1.2.5 and chocolatey version 0.9.9.11. |
In 0.9.10, auto uninstaller should be enabled by default, so there is no need to run to enable it.
In 0.9.10, auto uninstaller should be enabled by default, so there is no need to run to enable it.
In 0.9.10, auto uninstaller should be enabled by default, so there is no need to run to enable it.
…installer (GH-134) Only Enable AutoUninstaller in 0.9.9.x
@Koshersalt I just released 1.2.6 that should handle this. |
* master: (version) 1.2.6 (MODULES-3536) modsync update (maint) Remove travis and metadata-json-lint gems (chocolatey-archiveGH-134) Only Enable AutoUninstaller in 0.9.9.x (version) 1.2.5 (maint) prep for release of 1.2.5 (chocolatey-archiveGH-128) PowerShell 1.x provider fixes for "else" (chocolatey-archiveGH-133) Feature list update for 0.9.10 (version) 1.2.4 (chocolatey-archiveGH-125) Compatible Up to PowerShell Provider 3.x (chocolatey-archiveGH-125) Wrap PowerShell Redirect in Try/Catch (chocolatey-archiveGH-69) Fix - default provider example (doc) make that text a bit more prominent (version) 1.2.3 for real (version) 1.2.3 (doc) add editions of Chocolatey (chocolatey-archiveGH-100) Do not call choco with --debug --verbose (version) 1.2.2 Sign the installer script template (chocolatey-archiveGH-119) Implement PowerShell Redirection Fix
Related to #133
Tested with choco 0.9.10.1/0.9.10.2/0.9.10.3
Despite choco_version being updated to the latest, versioncmp from config.pp returns values other than 0.
Next 'exec' with 'unless' is running on every puppet agent cycle because of wrong separator.
Debug: Executing 'cmd.exe /c C:\ProgramData\chocolatey\bin\choco.exe feature list -r | findstr /B /I /C:"autoUninstaller - [enabled]"'
The text was updated successfully, but these errors were encountered: