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

Post Chocolatey upgrade provider is broken #50

Closed
genebean opened this issue Mar 5, 2015 · 6 comments · Fixed by #49
Closed

Post Chocolatey upgrade provider is broken #50

genebean opened this issue Mar 5, 2015 · 6 comments · Fixed by #49

Comments

@genebean
Copy link

genebean commented Mar 5, 2015

My puppet reports show that chocolatey updated itself from from 0.9.8.33 to 0.9.9 yesterday and ever since I get "Provider chocolatey is not functional on this host". The full output is below... any ideas?

err /Package[zabbix-agent]  Provider chocolatey is not functional on this host
err /Stage[main]/Base::Install/Package[chocolatey]/ensure   change from 0.9.8.33 to 0.9.9 failed: Could not update: Execution of 'C:\ProgramData\chocolatey\chocolateyInstall\chocolatey.cmd update chocolatey ' returned 1: !!ATTENTION!! The next version of Chocolatey (v0.9.9) will require -y to perform behaviors that change state without prompting for confirmation. Start using it now in your automated scripts. For details on the all new Chocolatey, visit http://bit.ly/new_choco Updating chocolatey from 0.9.8.33 to 0.9.9 Chocolatey (v0.9.8.33) is installing 'chocolatey' and dependencies. By installing you accept the license for 'chocolatey' and each dependency you are installing. chocolatey v0.9.9 Chocolatey v0.9.9 Chocolatey is unpacking required files for use. Overwriting? True Creating ChocolateyInstall as an environment variable (targeting 'Machine') Setting ChocolateyInstall to 'C:\ProgramData\chocolatey' WARNING: It's very likely you will need to close and reopen your shell before you can use choco. Adding Modify permission for current user to 'C:\ProgramData\chocolatey' We are setting up the Chocolatey package repository. The packages themselves go to 'C:\ProgramData\chocolatey\lib' (i.e. C:\ProgramData\chocolatey\lib\yourPackageName). A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin' and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'. Creating Chocolatey folders if they do not already exist. WARNING: You can safely ignore errors related to missing log files when upgrading from a version of Chocolatey less than 0.9.9. 'Batch file could not be found' is also safe to ignore. 'The system cannot find the file specified' - also safe. Chocolatey v0.9.9 Chocolatey is unpacking required files for use. Overwriting? True Ensuring 'C:\ProgramData\chocolatey\lib\chocolatey' exists. Chocolatey (choco.exe) is now ready. You can call choco from anywhere, command line or powershell by typing choco. Run choco /? for a list of functions. You may need to shut down and restart powershell and/or consoles first prior to using choco. Finished installing 'chocolatey' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure. The batch file cannot be found.
err Puppet  Could not update: Execution of 'C:\ProgramData\chocolatey\chocolateyInstall\chocolatey.cmd update chocolatey ' returned 1: !!ATTENTION!! The next version of Chocolatey (v0.9.9) will require -y to perform behaviors that change state without prompting for confirmation. Start using it now in your automated scripts. For details on the all new Chocolatey, visit http://bit.ly/new_choco Updating chocolatey from 0.9.8.33 to 0.9.9 Chocolatey (v0.9.8.33) is installing 'chocolatey' and dependencies. By installing you accept the license for 'chocolatey' and each dependency you are installing. chocolatey v0.9.9 Chocolatey v0.9.9 Chocolatey is unpacking required files for use. Overwriting? True Creating ChocolateyInstall as an environment variable (targeting 'Machine') Setting ChocolateyInstall to 'C:\ProgramData\chocolatey' WARNING: It's very likely you will need to close and reopen your shell before you can use choco. Adding Modify permission for current user to 'C:\ProgramData\chocolatey' We are setting up the Chocolatey package repository. The packages themselves go to 'C:\ProgramData\chocolatey\lib' (i.e. C:\ProgramData\chocolatey\lib\yourPackageName). A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin' and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'. Creating Chocolatey folders if they do not already exist. WARNING: You can safely ignore errors related to missing log files when upgrading from a version of Chocolatey less than 0.9.9. 'Batch file could not be found' is also safe to ignore. 'The system cannot find the file specified' - also safe. Chocolatey v0.9.9 Chocolatey is unpacking required files for use. Overwriting? True Ensuring 'C:\ProgramData\chocolatey\lib\chocolatey' exists. Chocolatey (choco.exe) is now ready. You can call choco from anywhere, command line or powershell by typing choco. Run choco /? for a list of functions. You may need to shut down and restart powershell and/or consoles first prior to using choco. Finished installing 'chocolatey' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure. The batch file cannot be found. Wrapped exception: Execution of 'C:\ProgramData\chocolatey\chocolateyInstall\chocolatey.cmd update chocolatey ' returned 1: !!ATTENTION!! The next version of Chocolatey (v0.9.9) will require -y to perform behaviors that change state without prompting for confirmation. Start using it now in your automated scripts. For details on the all new Chocolatey, visit http://bit.ly/new_choco Updating chocolatey from 0.9.8.33 to 0.9.9 Chocolatey (v0.9.8.33) is installing 'chocolatey' and dependencies. By installing you accept the license for 'chocolatey' and each dependency you are installing. chocolatey v0.9.9 Chocolatey v0.9.9 Chocolatey is unpacking required files for use. Overwriting? True Creating ChocolateyInstall as an environment variable (targeting 'Machine') Setting ChocolateyInstall to 'C:\ProgramData\chocolatey' WARNING: It's very likely you will need to close and reopen your shell before you can use choco. Adding Modify permission for current user to 'C:\ProgramData\chocolatey' We are setting up the Chocolatey package repository. The packages themselves go to 'C:\ProgramData\chocolatey\lib' (i.e. C:\ProgramData\chocolatey\lib\yourPackageName). A shim file for the command line goes to 'C:\ProgramData\chocolatey\bin' and points to an executable in 'C:\ProgramData\chocolatey\lib\yourPackageName'. Creating Chocolatey folders if they do not already exist. WARNING: You can safely ignore errors related to missing log files when upgrading from a version of Chocolatey less than 0.9.9. 'Batch file could not be found' is also safe to ignore. 'The system cannot find the file specified' - also safe. Chocolatey v0.9.9 Chocolatey is unpacking required files for use. Overwriting? True Ensuring 'C:\ProgramData\chocolatey\lib\chocolatey' exists. Chocolatey (choco.exe) is now ready. You can call choco from anywhere, command line or powershell by typing choco. Run choco /? for a list of functions. You may need to shut down and restart powershell and/or consoles first prior to using choco. Finished installing 'chocolatey' and dependencies - if errors not shown in console, none detected. Check log for errors if unsure. The batch file cannot be found.

On the same hosts, choco /? and choco -v work fine and return 0.9.9.

@ferventcoder
Copy link
Contributor

We know - everyone is playing catch up. See #49

@ferventcoder
Copy link
Contributor

For now if you depend on the provider you should stay on 0.9.8.33.

@ferventcoder
Copy link
Contributor

Sorry, closing as a dupe. Although its not really a duplicate - reopening

@ferventcoder ferventcoder reopened this Mar 5, 2015
@genebean
Copy link
Author

genebean commented Mar 5, 2015

I had seen #49 but had no idea this was related. Anything I can do to help? I don't mind putting some time into it.

@ferventcoder
Copy link
Contributor

Try the code over there and see how well it works for 0.9.9?

@ferventcoder
Copy link
Contributor

The code passes all the right params but hasn't been tested since I just wrote most of the functional changes this morning

@ferventcoder ferventcoder added this to the 0.5.0 milestone Jul 7, 2015
@ferventcoder ferventcoder self-assigned this Jul 7, 2015
ferventcoder pushed a commit to ferventcoder/puppet-chocolatey that referenced this issue Nov 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants