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

GPT4All update fails #16

Open
KuraiAndras opened this issue Dec 18, 2024 · 4 comments
Open

GPT4All update fails #16

KuraiAndras opened this issue Dec 18, 2024 · 4 comments

Comments

@KuraiAndras
Copy link

output:

gpt4all v3.5.3
gpt4all package files upgrade completed. Performing other installation steps.
WARNING: gpt4all is already installed, using update parameter.
Downloading gpt4all 64 bit
  from 'https://github.com/nomic-ai/gpt4all/releases/download/v3.5.3/gpt4all-installer-win64-v3.5.3.exe'
Progress: 100% - Completed download of C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe (702.3 MB).
Download of gpt4all-installer-win64-v3.5.3.exe (702.3 MB) completed.
Hashes match.
Installing gpt4all...
ERROR: Running ["C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe" update --accept-licenses --default-answer --confirm-command] was not successful. Exit code was '1'. See log for possible error messages.
The upgrade of gpt4all was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\gpt4all\tools\chocolateyInstall.ps1'.
 See log for details.

running the command manually yields the following ouput:

[0] Arguments: C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe, update, --accept-licenses, --default-answer, --confirm-command
[8] Operations sanity check succeeded.
[15] Using metadata cache from "C:/Users/kandr/AppData/Local/cache\\qt-installer-framework\\9c11e018-d3aa-3c3a-9118-829c9ab85b1c"
[16] Found 0 cached items.
[18] Loaded control script ":/metadata/installer-config/installer_control_qs.qs"
[18] Warning: Cannot update packages with installer.
@jonasw234
Copy link
Owner

Hard to tell with the information you provided. Could you please try upgrading again after restarting your computer?
If that doesn’t help, please upload the log files and/or try running choco upgrade with the --debug flag. I don’t use GPT4All, so I cannot test it myself at the moment.

@KuraiAndras
Copy link
Author

This has been the case since the 3.5.0 update. Maybe something has changed in the installer? Or this might be an issue with gpt4all itself?

Debug log:

---------------------------Script Execution---------------------------
Running 'ChocolateyScriptRunner' for gpt4all v3.5.3 with packageScript 'C:\ProgramData\chocolatey\lib\gpt4all\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\gpt4all', installArguments: '', packageParameters: '', preRunHookScripts: '', postRunHookScripts: '',
Running package script 'C:\ProgramData\chocolatey\lib\gpt4all\tools\chocolateyInstall.ps1'
Running Get-UninstallRegistryKey -softwareName 'GPT4All'
Registry uninstall keys on system: 591
Error handling check: 'Get-ItemProperty' fails if a registry key is encoded incorrectly.
Found 1 uninstall registry key(s) with SoftwareName:'GPT4All'
WARNING: gpt4all is already installed, using update parameter.
Running Install-ChocolateyPackage -silentArgs 'update --accept-licenses --default-answer --confirm-command' -checksum64 '6e4ed5fd53bfa36af10a291d6e8db06b51627462385e39c0b83e688608e2d1b3' -fileType 'exe' -url64bit 'https://github.com/nomic-ai/gpt4all/releases/download/v3.5.3/gpt4all-installer-win64-v3.5.3.exe' -checksumType64 'sha256' -packageName 'gpt4all'
Running Get-ChocolateyWebFile -packageName 'gpt4all' -fileFullPath 'C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4allInstall.exe' -url '' -url64bit 'https://github.com/nomic-ai/gpt4all/releases/download/v3.5.3/gpt4all-installer-win64-v3.5.3.exe' -checksum '' -checksumType '' -checksum64 '6e4ed5fd53bfa36af10a291d6e8db06b51627462385e39c0b83e688608e2d1b3' -checksumType64 'sha256' -options 'System.Collections.Hashtable' -getOriginalFileName 'True'
Running Get-OSArchitectureWidth -compare '64'
CPU is 64 bit
Setting url to 'https://github.com/nomic-ai/gpt4all/releases/download/v3.5.3/gpt4all-installer-win64-v3.5.3.exe' and bitPackage to 64
Running Get-WebFileName -url 'https://github.com/nomic-ai/gpt4all/releases/download/v3.5.3/gpt4all-installer-win64-v3.5.3.exe' -defaultName 'gpt4allInstall.exe'
Using header 'Content-Disposition' to determine file name.
File name determined from url is 'gpt4all-installer-win64-v3.5.3.exe'
Running Get-WebHeaders -url 'https://github.com/nomic-ai/gpt4all/releases/download/v3.5.3/gpt4all-installer-win64-v3.5.3.exe' -ErrorAction 'Stop'
Setting the UserAgent to 'chocolatey command line'
Request Headers:
  'Accept':'*/*'
  'User-Agent':'chocolatey command line'
Response Headers:
  'Connection':'keep-alive'
  'x-ms-request-id':'6caf20f7-601e-0061-7002-50c216000000'
  'x-ms-version':'2024-11-04'
  'x-ms-creation-time':'Mon, 16 Dec 2024 21:26:10 GMT'
  'x-ms-lease-status':'unlocked'
  'x-ms-lease-state':'available'
  'x-ms-blob-type':'BlockBlob'
  'Content-Disposition':'attachment; filename=gpt4all-installer-win64-v3.5.3.exe'
  'x-ms-server-encrypted':'true'
  'Fastly-Restarts':'1'
  'Age':'2598'
  'X-Served-By':'cache-iad-kcgs7200175-IAD, cache-vie6358-VIE'
  'X-Cache':'HIT, HIT'
  'X-Cache-Hits':'164, 1'
  'X-Timer':'S1734627620.927244,VS0,VE7'
  'Accept-Ranges':'bytes'
  'Content-Length':'736417744'
  'Content-Type':'application/octet-stream'
  'Date':'Thu, 19 Dec 2024 17:00:20 GMT'
  'ETag':'"0x8DD1E1842A2B55F"'
  'Last-Modified':'Mon, 16 Dec 2024 21:26:10 GMT'
  'Server':'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0'
  'Via':'1.1 varnish, 1.1 varnish'
Downloading gpt4all 64 bit
  from 'https://github.com/nomic-ai/gpt4all/releases/download/v3.5.3/gpt4all-installer-win64-v3.5.3.exe'
Running Get-WebFile -url 'https://github.com/nomic-ai/gpt4all/releases/download/v3.5.3/gpt4all-installer-win64-v3.5.3.exe' -fileName 'C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe' -options 'System.Collections.Hashtable'
Setting request timeout to  30000
Setting read/write timeout to  2700000
Setting the UserAgent to 'chocolatey command line'
Downloading https://github.com/nomic-ai/gpt4all/releases/download/v3.5.3/gpt4all-installer-win64-v3.5.3.exe to C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe
Progress: 100% - Completed download of C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe (702.3 MB).
Download of gpt4all-installer-win64-v3.5.3.exe (702.3 MB) completed.
No runtime virus checking built into FOSS Chocolatey. Check out Pro/Business - https://chocolatey.org/compare
Verifying package provided checksum of '6e4ed5fd53bfa36af10a291d6e8db06b51627462385e39c0b83e688608e2d1b3' for 'C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe'.
Running Get-ChecksumValid -file 'C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe' -checksum '6e4ed5fd53bfa36af10a291d6e8db06b51627462385e39c0b83e688608e2d1b3' -checksumType 'sha256' -originalUrl 'https://github.com/nomic-ai/gpt4all/releases/download/v3.5.3/gpt4all-installer-win64-v3.5.3.exe'
checksum.exe found at 'C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe'
Executing command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="6e4ed5fd53bfa36af10a291d6e8db06b51627462385e39c0b83e688608e2d1b3" -t="sha256" -f="C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe"]
Hashes match.
Command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="6e4ed5fd53bfa36af10a291d6e8db06b51627462385e39c0b83e688608e2d1b3" -t="sha256" -f="C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe"] exited with '0'.
Running Install-ChocolateyInstallPackage -packageName 'gpt4all' -fileType 'exe' -silentArgs 'update --accept-licenses --default-answer --confirm-command' -file 'C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe' -validExitCodes '0' -useOnlyPackageSilentArguments 'False'
Running Get-OSArchitectureWidth -compare '32'
Installing gpt4all...
Running Start-ChocolateyProcessAsAdmin -validExitCodes '0' -workingDirectory 'C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3' -statements 'update --accept-licenses --default-answer --confirm-command' -exeToRun 'C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe'
Running Test-ProcessAdminRights
Test-ProcessAdminRights: returning True
Finishing 'Test-ProcessAdminRights'
Elevating permissions and running ["C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe" update --accept-licenses --default-answer --confirm-command]. This may take a while, depending on the statements.
Command ["C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe" update --accept-licenses --default-answer --confirm-command] exited with '1'.
ERROR: Running ["C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe" update --accept-licenses --default-answer --confirm-command] was not successful. Exit code was '1'. See log for possible error messages.
 at Start-ChocolateyProcessAsAdmin, C:\ProgramData\chocolatey\helpers\functions\Start-ChocolateyProcessAsAdmin.ps1: line 396
at Install-ChocolateyInstallPackage, C:\ProgramData\chocolatey\helpers\functions\Install-ChocolateyInstallPackage.ps1: line 369
at Install-ChocolateyPackage, C:\ProgramData\chocolatey\helpers\functions\Install-ChocolateyPackage.ps1: line 423
at <ScriptBlock>, C:\ProgramData\chocolatey\lib\gpt4all\tools\chocolateyInstall.ps1: line 22
at <ScriptBlock>, C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1: line 63
at <ScriptBlock>, <No file>: line 1
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\gpt4all\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null'] exited with '1'.
Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a']
Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116'
Capturing package files in 'C:\ProgramData\chocolatey\lib\gpt4all'
There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\gpt4all.3.5.3\.files'
The upgrade of gpt4all was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\gpt4all\tools\chocolateyInstall.ps1'.
 See log for details.
Moving C:\ProgramData\chocolatey\lib\gpt4all to C:\ProgramData\chocolatey\lib-bad\gpt4all\3.5.3
Attempting rollback
Moving C:\ProgramData\chocolatey\lib-bkp\gpt4all\3.4.2 to C:\ProgramData\chocolatey\lib\gpt4all

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

Failures
 - gpt4all (exited 1) - Error while running 'C:\ProgramData\chocolatey\lib\gpt4all\tools\chocolateyInstall.ps1'.
 See log for details.
Exiting with 1

@KuraiAndras
Copy link
Author

The log that I initially posted:

[0] Arguments: C:\Users\kandr\AppData\Local\Temp\chocolatey\gpt4all\3.5.3\gpt4all-installer-win64-v3.5.3.exe, update, --accept-licenses, --default-answer, --confirm-command
[8] Operations sanity check succeeded.
[15] Using metadata cache from "C:/Users/kandr/AppData/Local/cache\\qt-installer-framework\\9c11e018-d3aa-3c3a-9118-829c9ab85b1c"
[16] Found 0 cached items.
[18] Loaded control script ":/metadata/installer-config/installer_control_qs.qs"
[18] Warning: Cannot update packages with installer.

comes from invoking the command that is ran by the upgrade script

.\gpt4all-installer-win64-v3.5.3.exe update --accept-licenses --default-answer --confirm-command

@jonasw234
Copy link
Owner

Okay, it seems like their installer can no longer be used for upgrading or uninstalling the package. I opened nomic-ai/gpt4all#3326 so that they will hopefully fix this as it makes little sense for me to try and work around this every time something with their installer changes.

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