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

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

Open
kevinkyle4 opened this issue Sep 6, 2024 · 2 comments

Comments

@kevinkyle4
Copy link

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: #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.

@mmaietta
Copy link
Collaborator

mmaietta commented Sep 9, 2024

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.

@kevinkyle4
Copy link
Author

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?

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