electron-builder: Electron-Updater differential update fails with operation overlaps previous operation
- electron-builder: Version 20.36.2
- electron-updater: Version 4.0.4
- Target: nsis-web
- System: Windows
The AutoUpdater gives me this error…
[2018-11-18 17:01:42.356] [error] Cannot download differentially, fallback to full download: Error: operation (block index: 23902, checksum: Vx/fVEzWD3gMPbOsQJC+QZlJ, kind: COPY) overlaps previous operation (checksum: Vx/fVEzWD3gMPbOsQJC+QZlJ): abs: 7267809 until 500356092 and 500206446 until 500238540
… using this configuration
"build": {
"appId": "<appId>",
"nsisWeb": {
"oneClick": true,
"perMachine": false,
"differentialPackage": true
},
"publish": {
"provider": "generic",
"url": "https://<username>:<password>@<URL>"
},
"win": {
"icon": "./lib/resources/icons/icon.ico",
"target": "nsis-web"
},
"files": [
"*.js",
"build/**/*",
"node_modules/**/*"
]
},
The connection to the server seems to work as the updater can find the new version and successfully falls back to the full download. The package.7z exists in the {User}/AppData/Local/{name}-updater.
Thanks in advance.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (10 by maintainers)
Links to this issue
Commits related to this issue
- fix(electron-updater): disable differential download operation validation for now Close #3485 — committed to develar/electron-builder by develar 6 years ago
Please reopen this issue.
Was facing the same error for a while and finally found the right combination for my app! Hope this helps anyone still searching:
electron: 4.0.6 electron-updater: 3.2.3 electron-builder: 20.34.0
Also got this error with
nsistargetValidation disabled for now, because assert message is clear that probably validation is too strict. Please try electron-updater 4.0.5.
@zhaoterryy Thanks for sorting issues out — participation of such VIP users like you, increase issue priority, nearly as donation 😃
@sandeep1995 Is it possible to provide old and new blockmap files? These files contain only blake2 hashes and sizes.