You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a choco upgrade command specifying more than one package I receive the following error.
No backup has been created before trying to reset the current configuration, and removal of the backup was not requested.
What is Expected?
This should just upgrade the packages I define in the command with no error.
How Did You Get This To Happen? (Steps to Reproduce)
Have Chocolatey V 1.2.0 installed
Run a choco upgrade googlechrome putty -y
You'll receive the following error: No backup has been created before trying to reset the current configuration, and removal of the backup was not requested.
Tested this running choco V 1.1.0 and works as expected.
System Details
OS Build: 10.0.19045.0
Windows PowerShell version: 5.1.19041.1682
Chocolatey version: 1.2.0
Output Log
Relevant Part of Chocolatey Log
2022-11-09 10:51:29,771 6960 [ERROR] - No backup has been created before trying to reset the current configuration, and removal of the backup was not requested.
2022-11-09 10:51:29,771 6960 [ERROR] - More Details: System.InvalidOperationException: No backup has been created before trying to reset the current configuration, and removal of the backup was not requested.
at chocolatey.infrastructure.app.configuration.ChocolateyConfiguration.reset_config(Boolean removeBackup)
at chocolatey.infrastructure.app.services.NugetService.upgrade_run(ChocolateyConfiguration config, Action`1 continueAction, Boolean performAction, Action`1 beforeUpgradeAction)
at chocolatey.infrastructure.app.services.NugetService.upgrade_run(ChocolateyConfiguration config, Action`1 continueAction, Action`1 beforeUpgradeAction)
at chocolatey.infrastructure.app.services.ChocolateyPackageService.perform_source_runner_function[T](ChocolateyConfiguration config, Func`2 function) at chocolatey.infrastructure.app.services.ChocolateyPackageService.upgrade_run(ChocolateyConfiguration config) at chocolatey.infrastructure.app.runners.GenericRunner.run(ChocolateyConfiguration config, Container container, Boolean isConsole, Action`1 parseArgs) at chocolatey.infrastructure.app.runners.ConsoleApplication.run(String[] args, ChocolateyConfiguration config, Container container) at chocolatey.console.Program.Main(String[] args)2022-11-09 10:51:29,771 6960 [DEBUG] - Exiting with 1
What You Are Seeing?
When running a choco upgrade command specifying more than one package I receive the following error.
No backup has been created before trying to reset the current configuration, and removal of the backup was not requested.
What is Expected?
This should just upgrade the packages I define in the command with no error.
How Did You Get This To Happen? (Steps to Reproduce)
choco upgrade googlechrome putty -y
No backup has been created before trying to reset the current configuration, and removal of the backup was not requested.
Tested this running choco V 1.1.0 and works as expected.
System Details
Output Log
Relevant Part of Chocolatey Log
References
The text was updated successfully, but these errors were encountered: