electron-builder icon indicating copy to clipboard operation
electron-builder copied to clipboard

Difficulties with electron-updater (cannot download differentially or at all)

Open kevinkyle4 opened this issue 1 year ago • 2 comments

electron-builder version: ^24.9.1 node version: v19.9.0 electron version: ^28.2.0 electron-updater version: ^6.2.1

Have followed tutorial shown in electronjs.org for creating electron update server (https://github.com/ArekSredzki/electron-release-server).

Initially was getting the updates then have been getting same error repeatedly and seems there is no fix. This Github issue is same issue which doesn't appear to have been resolved: https://github.com/electron-userland/electron-builder/issues/4736

Below is my full error where it shows I cannot download differentially:

Cannot download differentially, fallback to full download: Error: Cannot parse blockmap error: Error: incorrect header check

Then it tries the full download which also fails due to

UnhandledPromiseRejectionWarning: Error: sha512 checksum mismatch, expected yODslm/lssAJ/Cbm3Y8gFib7rNmmtBjFATa/V4/z25Efl782vFpF9CWwRKXtguDiRGP20hTnxVdBzKRTNoJtDA==, got 8caLXdBUlgNo5JkwfhZ1I3POGV/M7rAqRLidcCBv3hroz4mrRG9BnM0jEqDxm1Qr8I/oBRuHQbkv/arrppHOiw==

Trying to use the https://github.com/ArekSredzki/electron-release-server as it comes with a UI which makes it easier to manage version control and updates but this error has me bogged down for weeks. If someone can provide assistance would be much appreciated.

kevinkyle4 avatar Sep 06 '24 16:09 kevinkyle4

Can you please add additional logging to electron-updater and post back the updater logs?

    const log = require("electron-log")
    log.transports.file.level = "debug"
    autoUpdater.logger = log

Wondering if we could get more info about the Error: incorrect header check. Might be worth you also checking the network logs to debug that further.

mmaietta avatar Sep 09 '24 00:09 mmaietta

The issue I believe is due to the ReverseProxy I'm using for the service which is changing the header. Do you know how to maintain the header electron-updater uses if using something like ReverseProxy or ProxyPassReverse in Apache so the header isnt impacted?

kevinkyle4 avatar Sep 10 '24 13:09 kevinkyle4

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Mar 27 '25 00:03 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity.

github-actions[bot] avatar Apr 26 '25 00:04 github-actions[bot]