pauby / ChocoPackages

Chocolatey packages I maintain
26 stars 41 forks source link

(vivaldi.portable) Error thrown on upgrade #204

Closed FiveArms closed 9 months ago

FiveArms commented 9 months ago

Chocolatey Version

2.2.2

Chocolatey License

None

Package Version

6.5.3206.39 -> 6.5.3206.42

Current Behaviour

Requesting an upgrade to vivaldi.portable leads to an error - exit code 4 - with the upgrade being NOT successful.

Expected Behaviour

Requesting an upgrade to vivaldi.portable leads to a successful upgrade of vivaldi.portable.

Steps To Reproduce

  1. In "Administrator: Windows PowerShell"
  2. Run choco upgrade -y vivaldi.portable
  3. See the failed upgrade vivaldi.portable (exited 4) - Error while running 'C:\ProgramData\chocolatey\lib\vivaldi.portable\tools\chocolateyinstall.ps1'.

Full output with redactions:

choco upgrade -y vivaldi.portable
Chocolatey v2.2.2
Upgrading the following packages:
vivaldi.portable
By upgrading, you accept licenses for the packages.

You have vivaldi.portable v6.5.3206.39 installed. Version 6.5.3206.48 is available based on your source(s).
[NuGet] One or more unresolved package dependency constraints detected in the Chocolatey lib folder. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'Vivaldi 6.5.3206.42 constraint: vivaldi.portable (= 6.5.3206.42)'
Re-attempting package dependency resolution using additional available package information...
[NuGet] One or more unresolved package dependency constraints detected in the Chocolatey lib folder. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'Vivaldi 6.5.3206.42 constraint: vivaldi.portable (= 6.5.3206.42)'
Progress: Downloading vivaldi.portable 6.5.3206.42... 100%

vivaldi.portable v6.5.3206.42 [Approved]
vivaldi.portable package files upgrade completed. Performing other installation steps.
File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
Hashes match.
Hashes match.
Installing vivaldi...
WARNING: A fatal error occurred during installation process. This is most likely an issue with the 'vivaldi.portable' package and not with Chocolatey itself. Please follow up with the package maintainer(s) directly.
ERROR: Running ["C:\Users\REDACTED\AppData\Local\Temp\chocolatey\vivaldi.portable\6.5.3206.42\Vivaldi.6.5.3206.42.x64.exe" --vivaldi-silent --do-not-launch-chrome ] was not successful. Exit code was '4'. Exit code indicates the following: A fatal error occurred during installation process. This is most likely an issue with the 'vivaldi.portable' package and not with Chocolatey itself. Please follow up with the package maintainer(s) directly..
The upgrade of vivaldi.portable was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\vivaldi.portable\tools\chocolateyinstall.ps1'.
 See log for details.

Chocolatey upgraded 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - vivaldi.portable (exited 4) - Error while running 'C:\ProgramData\chocolatey\lib\vivaldi.portable\tools\chocolateyinstall.ps1'.
 See log for details.

Environment

- Operating System: Microsoft Windows NT 10.0.19045.0
- PowerShell Version: 5.1.19041.3803
- Shell:

Chocolatey Log

https://gist.github.com/FiveArms/a7e57bd26f23d558134ef7025bf7b655

Anything else?

It is possible that this is related to issue #198 where illegal characters are causing a problem with a path when uninstalling vivaldi.portable.

FiveArms commented 9 months ago

On the off chance someone is in a similar predicament - I ran choco upgrade -y vivaldi.portable --version 6.5.3206.48 and now other packages upgrade as expected. I don't understand why calling for an upgrade fails, but calling for a specific version upgrade doesn't, but oh well. Best of luck troubleshooters!

(this bit of documentation was what pushed me towards this solution: https://docs.chocolatey.org/en-us/choco/troubleshooting/dependency-troubles )

pauby commented 9 months ago

Exit code was '4'

The issue you are having is with the Vivaldi installer. It's not a package issue. Perhaps the version that was being upgraded to, 6.5.3206.42, had an issue with upgrades.

However, I'll close this issue as you resolved it. Thanks for letting me know.