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

(etcher) Error "Cannot process command" during upgrade from 1.18.11 to 1.19.21 #245

Open
stefan-muc opened this issue Jun 3, 2024 · 1 comment

Comments

@stefan-muc
Copy link

stefan-muc commented Jun 3, 2024

Expected Behavior

Upgrading should succeed

Current Behavior

Upgrading the package yields this error:
imageDuring upgrade, balenaEtcher opens - which I would not expect.
After re-trying the upgrade, the error stays the same, but balenaEtcher application is upgraded.

Possible Solution

Steps to Reproduce (for bugs)

  1. Install 1.18.11
  2. Upgrade to 1.19.21

Context

Upgrading a regular install

Your Environment

  • Package Version used: 1.18.11 and 1.19.21
  • Operating System and version: Win 10 22H2 and Win 11 23H2
  • Chocolatey version: 2.2.2
  • Install/uninstall gist: (from Win 11 upgrade):
2024-06-03 10:28:27,646 4128 [INFO ] - Installing etcher...
2024-06-03 10:28:27,772 4128 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0' -workingDirectory 'C:\ProgramData\chocolatey\lib\etcher\tools' -statements '/S ' -exeToRun 'C:\ProgramData\chocolatey\lib\etcher\tools\balenaEtcher-1.19.21.Setup.exe' 
2024-06-03 10:28:27,805 4128 [DEBUG] - Test-ProcessAdminRights: returning True
2024-06-03 10:28:27,815 4128 [DEBUG] - Elevating permissions and running ["C:\ProgramData\chocolatey\lib\etcher\tools\balenaEtcher-1.19.21.Setup.exe" /S ]. This may take a while, depending on the statements.
2024-06-03 10:28:34,830 4128 [DEBUG] - Command ["C:\ProgramData\chocolatey\lib\etcher\tools\balenaEtcher-1.19.21.Setup.exe" /S ] exited with '0'.
2024-06-03 10:28:34,838 4128 [DEBUG] - Finishing 'Start-ChocolateyProcessAsAdmin'
2024-06-03 10:28:34,841 4128 [INFO ] - etcher has been installed.
2024-06-03 10:28:39,062 4128 [INFO ] - cmdlet Set-Content at command pipeline position 1
2024-06-03 10:28:39,065 4128 [WARN ] - Value
2024-06-03 10:28:39,067 4128 [WARN ] -   Confirmation (`-y`) is set.
  Respond within 30 seconds or the default selection will be chosen.
2024-06-03 10:29:09,126 4128 [ERROR] - ERROR: Cannot process command because of one or more missing mandatory parameters: Value.
2024-06-03 10:29:09,160 4128 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = '';[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\etcher\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null'] exited with '-1'.
@LanceHaverkamp
Copy link

Confirmed--and I'm trying to update from an earlier version (1.5.116) so the 'from' in the title may not matter.

Edition Windows 10 Home
Version 22H2
Installed on ‎4/‎6/‎2024
OS build 19045.4412
Experience Windows Feature Experience Pack 1000.19056.1000.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants