electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.69k stars 1.74k forks source link

Cannot download differentially, fallback to full download: Error: Content-Type "multipart/byteranges" is expected, but got "application/x-msdownload" #7161

Closed xzy-96 closed 1 year ago

xzy-96 commented 2 years ago

"electron-builder": "^23.1.0",

============================================================

[2022-09-27 18:44:00.526] [info] https://x.aliyuncs.com/ued-test/cash/1.0.6 [2022-09-27 18:44:00.724] [info] Found version 1.0.6 (url: Setup 1.0.6.exe) [2022-09-27 18:44:00.730] [info] Downloading update from Setup 1.0.6.exe [2022-09-27 18:44:00.736] [info] 当有可用更新时发出 [2022-09-27 18:44:00.737] [info] Downloading update from Setup 1.0.6.exe [2022-09-27 18:44:00.751] [warn] disableWebInstaller is set to false, you should set it to true if you do not plan on using a web installer. This will default to true in a future version. [2022-09-27 18:44:00.753] [info] Download block maps (old: "/ued-test/cash/1.0.5/%E5%B0%8F%E8%8D%94%E4%BA%91%E6%94%B6%E9%93%B6%E7%B3%BB%E7%BB%9F%20Setup%201.0.5.exe.blockmap", new: https://.aliyuncs.com/ued-test/cash/1.0.6/%E5%B0%8F%E8%8D%94%E4%BA%91%E6%94%B6%E9%93%B6%E7%B3%BB%E7%BB%9F%20Setup%201.0.6.exe.blockmap) [2022-09-27 18:44:00.756] [warn] disableWebInstaller is set to false, you should set it to true if you do not plan on using a web installer. This will default to true in a future version. [2022-09-27 18:44:00.757] [info] Download block maps (old: "ued-test/cash/1.0.5/%E5%B0%8F%E8%8D%94%E4%BA%91%E6%94%B6%E9%93%B6%E7%B3%BB%E7%BB%9F%20Setup%201.0.5.exe.blockmap", new: https://aliyuncs.com/ued-test/cash/1.0.6/%E5%B0%8F%E8%8D%94%E4%BA%91%E6%94%B6%E9%93%B6%E7%B3%BB%E7%BB%9F%20Setup%201.0.6.exe.blockmap) [2022-09-27 18:44:00.890] [info] File has 609 changed blocks [2022-09-27 18:44:00.911] [info] Full: 74,194.12 KB, To download: 12,622.43 KB (17%) [2022-09-27 18:44:00.924] [info] File has 609 changed blocks [2022-09-27 18:44:00.926] [info] Full: 74,194.12 KB, To download: 12,622.43 KB (17%) [2022-09-27 18:44:01.726] [error] Cannot download differentially, fallback to full download: Error: Content-Type "multipart/byteranges" is expected, but got "application/x-msdownload" at ClientRequest. (C:\Users\IT\AppData\Local\Programs\electron-vite-vue\XLYS\resources\app.asar\node_modules\electron-updater\out\differentialDownloader\multipleRangeDownloader.js:80:20) at ClientRequest.emit (node:events:526:28) at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:101:6917) at SimpleURLLoaderWrapper.emit (node:events:526:28) [2022-09-27 18:44:01.728] [error] Cannot download differentially, fallback to full download: Error: Content-Type "multipart/byteranges" is expected, but got "application/x-msdownload" at ClientRequest. (C:\Users\IT\AppData\Local\Programs\electron-vite-vue\XLYS\resources\app.asar\node_modules\electron-updater\out\differentialDownloader\multipleRangeDownloader.js:80:20) at ClientRequest.emit (node:events:526:28) at SimpleURLLoaderWrapper. (node:electron/js2c/browser_init:101:6917) at SimpleURLLoaderWrapper.emit (node:events:526:28) [2022-09-27 18:44:02.743] [info] 下载监听:{"total":75974777,"delta":2904518,"transferred":2904518,"percent":3.82300299479655,"bytesPerSecond":2904518} [2022-09-27 18:44:02.775] [info] 下载监听:{"total":75974777,"delta":3668917,"transferred":3668917,"percent":4.8291250660729155,"bytesPerSecond":3668917} [2022-09-27 18:44:03.743] [info] 下载监听:{"total":75974777,"delta":2969400,"transferred":5873918,"percent":7.731405384710771,"bytesPerSecond":2936959} [2022-09-27 18:44:03.782] [info] 下载监听:{"total":75974777,"delta":3964800,"transferred":7633717,"percent":10.047699119932922,"bytesPerSecond":3803546} [2022-09-27 18:44:04.743] [info] 下载监听:{"total":75974777,"delta":3096800,"transferred":8970718,"percent":11.807495005875438,"bytesPerSecond":2990239} [2022-09-27 18:44:04.782] [info] 下载监听:{"total":75974777,"delta":4516400,"transferred":12150117,"percent":15.992303603602547,"bytesPerSecond":4040611} [2022-09-27 18:44:05.750] [info] 下载监听:{"total":75974777,"delta":3208800,"transferred":12179518,"percent":16.03100197319434,"bytesPerSecond":3039560} [2022-09-27 18:44:05.782] [info] 下载监听:{"total":75974777,"delta":4480000,"transferred":16630117,"percent":21.888997449772045,"bytesPerSecond":4150266} [2022-09-27 18:44:06.759] [info] 下载监听:{"total":75974777,"delta":2937200,"transferred":15116718,"percent":19.89702187608922,"bytesPerSecond":3013700} [2022-09-27 18:44:06.783] [info] 下载监听:{"total":75974777,"delta":4760000,"transferred":21390117,"percent":28.154234661327138,"bytesPerSecond":4271189} [2022-09-27 18:44:07.762] [info] 下载监听:{"total":75974777,"delta":3154200,"transferred":18270918,"percent":24.04866288715793,"bytesPerSecond":3035540} [2022-09-27 18:44:07.784] [info] 下载监听:{"total":75974777,"delta":4797800,"transferred":26187917,"percent":34.469225227209286,"bytesPerSecond":4358116} [2022-09-27 18:44:08.777] [info] 下载监听:{"total":75974777,"delta":3239600,"transferred":21510518,"percent":28.312709624669253,"bytesPerSecond":3058078} [2022-09-27 18:44:08.802] [info] 下载监听:{"total":75974777,"delta":4873400,"transferred":31061317,"percent":40.883722501745545,"bytesPerSecond":4420281} [2022-09-27 18:44:09.787] [info] 下载监听:{"total":75974777,"delta":3108000,"transferred":24618518,"percent":32.40354098044934,"bytesPerSecond":3060482} [2022-09-27 18:44:09.806] [info] 下载监听:{"total":75974777,"delta":5213600,"transferred":36274917,"percent":47.7459999652253,"bytesPerSecond":4516862} [2022-09-27 18:44:10.806] [info] 下载监听:{"total":75974777,"delta":5087600,"transferred":41362517,"percent":54.44243291428153,"bytesPerSecond":4580059} [2022-09-27 18:44:10.819] [info] 下载监听:{"total":75974777,"delta":3229800,"transferred":27848318,"percent":36.65468870017216,"bytesPerSecond":3068347} [2022-09-27 18:44:11.807] [info] 下载监听:{"total":75974777,"delta":4914000,"transferred":46276517,"percent":60.910368976798715,"bytesPerSecond":4612890} [2022-09-27 18:44:11.831] [info] 下载监听:{"total":75974777,"delta":3362800,"transferred":31211118,"percent":41.08089451845314,"bytesPerSecond":3093886} [2022-09-27 18:44:12.811] [info] 下载监听:{"total":75974777,"delta":4713800,"transferred":50990317,"percent":67.11479653306517,"bytesPerSecond":4620362} [2022-09-27 18:44:12.834] [info] 下载监听:{"total":75974777,"delta":3164000,"transferred":34375118,"percent":45.24543454731035,"bytesPerSecond":3099370} [2022-09-27 18:44:13.824] [info] 下载监听:{"total":75974777,"delta":4324600,"transferred":55314917,"percent":72.80694881144566,"bytesPerSecond":4590831} [2022-09-27 18:44:13.838] [info] 下载监听:{"total":75974777,"delta":3234000,"transferred":37609118,"percent":49.50211041751396,"bytesPerSecond":3109476} [2022-09-27 18:44:14.825] [info] 下载监听:{"total":75974777,"delta":4639600,"transferred":59954517,"percent":78.91371237588496,"bytesPerSecond":4594216} [2022-09-27 18:44:14.848] [info] 下载监听:{"total":75974777,"delta":3610600,"transferred":41219718,"percent":54.25447711416119,"bytesPerSecond":3145343} [2022-09-27 18:44:15.826] [info] 下载监听:{"total":75974777,"delta":4058600,"transferred":64013117,"percent":84.25574845714914,"bytesPerSecond":4555769} [2022-09-27 18:44:15.848] [info] 下载监听:{"total":75974777,"delta":3110800,"transferred":44330518,"percent":58.34899390359514,"bytesPerSecond":3142894} [2022-09-27 18:44:16.849] [info] 下载监听:{"total":75974777,"delta":3721200,"transferred":48051718,"percent":63.24693522956968,"bytesPerSecond":3180969} [2022-09-27 18:44:16.851] [info] 下载监听:{"total":75974777,"delta":4230800,"transferred":68243917,"percent":89.82443870812547,"bytesPerSecond":4526659} [2022-09-27 18:44:17.851] [info] 下载监听:{"total":75974777,"delta":4015200,"transferred":72259117,"percent":95.10935056775487,"bytesPerSecond":4494844} [2022-09-27 18:44:17.869] [info] 下载监听:{"total":75974777,"delta":4391800,"transferred":52443518,"percent":69.02753791564271,"bytesPerSecond":3252110} [2022-09-27 18:44:18.853] [info] 下载监听:{"total":75974777,"delta":3425800,"transferred":75684917,"percent":99.61847864324761,"bytesPerSecond":4431720} [2022-09-27 18:44:18.871] [info] 下载监听:{"total":75974777,"delta":4097800,"transferred":56541318,"percent":74.42117006806089,"bytesPerSecond":3301105} [2022-09-27 18:44:18.904] [info] 下载监听:{"total":75974777,"delta":289860,"transferred":75974777,"percent":100,"bytesPerSecond":4435447} [2022-09-27 18:44:18.909] [info] New version 1.0.6 has been downloaded to C:\Users\IT\AppData\Local\electron-vite-vue-updater\pending\ Setup 1.0.6.exe [2022-09-27 18:44:19.871] [info] 下载监听:{"total":75974777,"delta":7816200,"transferred":64357518,"percent":84.70905811279972,"bytesPerSecond":3550172} [2022-09-27 18:44:20.871] [info] 下载监听:{"total":75974777,"delta":7312200,"transferred":71669718,"percent":94.3335680998445,"bytesPerSecond":3746848} [2022-09-27 18:44:21.449] [info] 下载监听:{"total":75974777,"delta":4305059,"transferred":75974777,"percent":100,"bytesPerSecond":3855413} [2022-09-27 18:44:21.492] [error] Error: Error: ENOENT: no such file or directory, rename 'C:\Users\IT\AppData\Local\electron-vite-vue-updater\pending\temp- Setup 1.0.6.exe' -> 'C:\Users\IT\AppData\Local\electron-vite-vue-updater\pending\ Setup 1.0.6.exe' [2022-09-27 18:44:21.493] [error] 检测更新查询异常 [2022-09-27 18:44:23.973] [info] Install on explicit quitAndInstall [2022-09-27 18:44:23.974] [info] Install: isSilent: false, isForceRunAfter: true [2022-09-27 18:44:23.981] [info] Cannot run installer: error code: ENOENT, error message: "spawn C:\Users\IT\AppData\Local\electron-vite-vue-updater\pending\ Setup 1.0.6.exe ENOENT", will be executed again using elevate if EACCES" [2022-09-27 18:44:23.982] [error] Error: Error: spawn C:\Users\IT\AppData\Local\electron-vite-vue-updater\pending\Setup 1.0.6.exe ENOENT at ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:478:16) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) [2022-09-27 18:44:23.984] [error] 检测更新查询异常

github-actions[bot] commented 1 year ago

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

github-actions[bot] commented 1 year ago

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