question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AppImage autoupdates: sha512 checksum mismatch error

See original GitHub issue

I’m getting the following error on AppImage -

Builder configuration for version which is trying to update -

app version: v2.0.0 electron-builder: v20.8.1 electron-updater: v2.21.4

Builder configuration for latest release -

app version: v2.3.1 electron-builder: v20.13.4 electron-updater: v2.21.10

[2018-05-24 22:58:15:0459] [info] Checking for update
[2018-05-24 22:58:29:0128] [info] Found version 2.3.1 (url: Zulip-2.3.1-x86_64.AppImage)
[2018-05-24 22:58:29:0129] [info] Downloading update from Zulip-2.3.1-x86_64.AppImage
[2018-05-24 22:58:29:0164] [info] No cached update available
[2018-05-24 22:58:31:0078] [error] Cannot download differentially, fallback to full download: Error: invalid code lengths set
    at InflateRaw.zlibOnError (zlib.js:152:15)
From previous event:
    at readBlockMap (/tmp/.mount_Zulip-b5BFOs/app/resources/app.asar/node_modules/electron-updater/src/differentialDownloader/DifferentialDownloader.ts:224:28)
    at FileWithEmbeddedBlockMapDifferentialDownloader.download (/tmp/.mount_Zulip-b5BFOs/app/resources/app.asar/node_modules/electron-updater/src/differentialDownloader/FileWithEmbeddedBlockMapDifferentialDownloader.ts:10:31)
    at <anonymous>
[2018-05-24 22:59:53:0425] [error] Error: Error: sha512 checksum mismatch, expected HHDt+ZTPF4HRT/hi18gzivF6+5FQEhog3tcyVIzzS3y1WIonvhaUTaACUE9Gn3cdbgyG33Zx6AxM28VIvYU7eQ==, got kRI3WciD97vsiS8eLFs+U5y++B0Pby5sHGdfX9Z7ZzIbfP8xsWxd31NK2zzGaGvRoEgXaEl5L/EayyeHqdKBuA==
    at newError (/tmp/.mount_Zulip-b5BFOs/app/resources/app.asar/node_modules/builder-util-runtime/src/index.ts:23:17)
    at DigestTransform.validate (/tmp/.mount_Zulip-b5BFOs/app/resources/app.asar/node_modules/builder-util-runtime/src/httpExecutor.ts:283:13)
    at DigestTransform._flush (/tmp/.mount_Zulip-b5BFOs/app/resources/app.asar/node_modules/builder-util-runtime/src/httpExecutor.ts:266:14)
    at DigestTransform.prefinish (_stream_transform.js:137:10)
    at emitNone (events.js:105:13)
    at DigestTransform.emit (events.js:207:7)
    at prefinish (_stream_writable.js:576:14)
    at finishMaybe (_stream_writable.js:584:5)
    at endWritable (_stream_writable.js:595:3)
    at DigestTransform.Writable.end (_stream_writable.js:546:5)
    at IncomingMessage.onend (_stream_readable.js:584:10)
    at Object.onceWrapper (events.js:314:30)
    at emitNone (events.js:105:13)
    at IncomingMessage.emit (events.js:207:7)
    at endReadableNT (_stream_readable.js:1045:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
From previous event:
    at CancellationToken.createPromise (/tmp/.mount_Zulip-b5BFOs/app/resources/app.asar/node_modules/builder-util-runtime/src/CancellationToken.ts:51:5)
    at ElectronHttpExecutor.download (/tmp/.mount_Zulip-b5BFOs/app/resources/app.asar/node_modules/electron-updater/src/electronHttpExecutor.ts:19:44)
    at task (/tmp/.mount_Zulip-b5BFOs/app/resources/app.asar/node_modules/electron-updater/src/AppImageUpdater.ts:78:35)
    at <anonymous>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6

github_iconTop GitHub Comments

3reactions
Pandaklscommented, Aug 20, 2019

Same problem here. Using the classique options for electron builder an receiving this kind of stack randomely among my app updates:

sha512 checksum mismatch, expected at newError (/tmp/resources/app.asar/node_modules/builder-util-runtime/src/index.ts:29:17) at DigestTransform.validate (/tmp/resources/app.asar/node_modules/builder-util-runtime/src/httpExecutor.ts:378:13) at DigestTransform._flush (/tmp/resources/app.asar/node_modules/builder-util-runtime/src/httpExecutor.ts:361:14) at DigestTransform.prefinish (_stream_transform.js:141:10) at DigestTransform.emit (events.js:182:13) at DigestTransform.EventEmitter.emit (domain.js:442:20) at prefinish (_stream_writable.js:630:14) at finishMaybe (_stream_writable.js:638:5) at endWritable (_stream_writable.js:649:3) at DigestTransform.Writable.end (_stream_writable.js:589:5) at IncomingMessage.onend (_stream_readable.js:634:10) at Object.onceWrapper (events.js:273:13) at IncomingMessage.emit (events.js:182:13) at IncomingMessage.EventEmitter.emit (domain.js:442:20) at endReadableNT (_stream_readable.js:1090:12) at process._tickCallback (internal/process/next_tick.js:63:19) From previous event: at ElectronHttpExecutor.download (/tmp/resources/app.asar/node_modules/electron-updater/src/electronHttpExecutor.ts:23:73) at Object. (/tmp/resources/app.asar/node_modules/electron-updater/src/AppImageUpdater.ts:62:35) at Generator.throw ()

1reaction
Pandaklscommented, Oct 4, 2019

Still the same problem after updating to :

“electron-builder”: “21.2.0”, “electron-updater”: “4.1.2”,

I insist on the “Randomly” property of the bug. The last time I reproduce was like :

  • Update version of app
  • App is being updated correctly
  • Close the app
  • Reopen the app > Crash when check for update (sha512 error mismatch)
  • Wait 5 minutes
  • Reopen the app > everything is correct

EDIT : Seems that’s i had cache problems with the latests.yml

Read more comments on GitHub >

github_iconTop Results From Across the Web

AppImage autoupdates: sha512 checksum mismatch error
I'm getting the following error on AppImage -. Builder configuration for version which is trying to update -. app version: v2.0.0
Read more >
Checksum mismatch after code sign Electron Builder / Updater
After it gets to the server, electron-updater fails with a sha512 checksum mismatch (which the error occurs during the install, after it has ......
Read more >
Auto Update - electron-builder
macOS application must be signed in order for auto updating to work. Auto-updatable Targets¶. macOS: DMG. Linux: AppImage. Windows: NSIS. All these targets...
Read more >
electron-builder-squirrel-windows | Yarn - Package Manager
Bug Fixes. app-builder-lib: export missing TS types (#7297 (9ce7448). Features. Introducing deb and rpm auto-updates (#7060 (1d13001). (2022-11-22).
Read more >
LPub3D - Browse /2.4.5 at SourceForge.net
Change: Add LDraw archive libraries to Ubuntu AppImage. ... This release contains mostly bug fixes and the under-the-hood changes needed to improve ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found