Hey, doing auto-update feature in my app. Basically app itself located here - https://github.com/ubergrape/grape-electron/blob/new/src/index.js. For macOS working like a charm, but in Windows stucks after downloading an update, according to logs. Basically after New version <version> has been downloaded to nothing happens.
Here are some logs:
[2019-08-27 03:17:00.378] [info] Checking for update
[2019-08-27 03:17:06.984] [info] Update for version 3.0.0-alpha.3 is not available (latest version: 3.0.0-alpha.3, downgrade is disallowed).
[2019-08-27 03:17:07.000] [debug] checkForUpdatesAndNotify called, downloadPromise is null
[2019-08-27 03:17:36.750] [info] Checking for update
[2019-08-27 03:17:41.052] [info] Found version 3.0.0-alpha.4 (url: Grape-Setup-3.0.0-alpha.4.exe)
[2019-08-27 03:17:41.063] [info] Downloading update from Grape-Setup-3.0.0-alpha.4.exe
[2019-08-27 03:17:41.078] [debug] updater cache dir: C:\Users\IEUser\AppData\Local\grape-updater
[2019-08-27 03:17:41.105] [info] Cached update sha512 checksum doesn't match the latest available update. New update must be downloaded. Cached: j/noBSOjm+VfTUQUn5gV/yfpQn6KYwZp2VWWBwGkrJc4ZCxprqUPKloHtM1/hITBpyJ3WCPW7TZtI83CiZz56g==, expected: zonCQ3j6VIt+QgId41bQuk5a+5g1eqRyjVKywa6O9ghjRL2j/TaXaWX0iNgKfTbzRIaErWfmoPijGDRpUksPGA==. Directory for cached update will be cleaned
[2019-08-27 03:17:41.123] [info] Download block maps (old: "https://github.com/ubergrape/grape-electron/releases/download/v3.0.0-alpha.3/Grape-Setup-3.0.0-alpha.3.exe.blockmap", new: https://github.com/ubergrape/grape-electron/releases/download/v3.0.0-alpha.4/Grape-Setup-3.0.0-alpha.4.exe.blockmap)
[2019-08-27 03:17:42.454] [info] File has 97 changed blocks
[2019-08-27 03:17:42.509] [debug] [
{
"kind": 1,
"start": 0,
"end": 15450
},
{
"kind": 0,
"start": 15450,
"end": 154178
},
{
"kind": 1,
"start": 154178,
"end": 197844
},
{
"kind": 0,
"start": 197842,
"end": 244225
},
{
"kind": 1,
"start": 244227,
"end": 257006
},
{
"kind": 0,
"start": 257004,
"end": 8540639
},
{
"kind": 1,
"start": 8540641,
"end": 8905047
},
{
"kind": 0,
"start": 8905112,
"end": 11231343
},
{
"kind": 1,
"start": 11231278,
"end": 12049847
},
{
"kind": 0,
"start": 12049912,
"end": 12062068
},
{
"kind": 1,
"start": 12062003,
"end": 12127539
},
{
"kind": 0,
"start": 12127604,
"end": 12152477
},
{
"kind": 1,
"start": 12152412,
"end": 12394525
},
{
"kind": 0,
"start": 12394590,
"end": 38097197
},
{
"kind": 1,
"start": 38097132,
"end": 38220247
},
{
"kind": 0,
"start": 38220319,
"end": 38276177
},
{
"kind": 1,
"start": 38276105,
"end": 38292126
},
{
"kind": 0,
"start": 38292198,
"end": 42263346
},
{
"kind": 1,
"start": 42263274,
"end": 42343678
},
{
"kind": 0,
"start": 42343722,
"end": 43293016
},
{
"kind": 1,
"start": 43292972,
"end": 43305687
},
{
"kind": 0,
"start": 43305732,
"end": 43537164
},
{
"kind": 1,
"start": 43537119,
"end": 43709344
}
]
[2019-08-27 03:17:42.594] [info] Full: 42,684.91 KB, To download: 1,920.9 KB (5%)
[2019-08-27 03:17:44.804] [info] Differential download: https://github.com/ubergrape/grape-electron/releases/download/v3.0.0-alpha.4/Grape-Setup-3.0.0-alpha.4.exe
[2019-08-27 03:17:44.816] [debug] download range: bytes=0-15449
[2019-08-27 03:17:45.181] [info] Redirect to https://github-production-release-asset-2e65be.s3.amazonaws.com/49578318/eefcba80-c8ca-11e9-9799-bc8c7ead8818
[2019-08-27 03:17:45.736] [debug] download range: bytes=154178-197843
[2019-08-27 03:17:46.252] [debug] download range: bytes=244227-257005
[2019-08-27 03:17:46.703] [debug] download range: bytes=8540641-8905046
[2019-08-27 03:17:48.484] [debug] download range: bytes=11231278-12049846
[2019-08-27 03:17:51.423] [debug] download range: bytes=12062003-12127538
[2019-08-27 03:17:51.932] [debug] download range: bytes=12152412-12394524
[2019-08-27 03:17:53.325] [debug] download range: bytes=38097132-38220246
[2019-08-27 03:17:54.151] [debug] download range: bytes=38276105-38292125
[2019-08-27 03:17:54.521] [debug] download range: bytes=42263274-42343677
[2019-08-27 03:17:55.114] [debug] download range: bytes=43292972-43305686
[2019-08-27 03:17:55.504] [debug] download range: bytes=43537119-43709343
[2019-08-27 03:18:14.017] [info] New version 3.0.0-alpha.4 has been downloaded to C:\Users\IEUser\AppData\Local\grape-updater\pending\Grape-Setup-3.0.0-alpha.4.exe
Thanks in advance for helping!
What are your electron-builder settings? Im having a similar issue where the PerMachine install is just uninstalling the app when there is an update and failing to install the new version. The PerUser installs are working as expected.
@dsarfati here is my config - https://github.com/ubergrape/grape-electron/blob/new/package.json#L19
Should I try to set perMachine to true? I'm also thinking maybe it's somehow related to EV code signature. What you think?
Just released version without EV code signature, stucks on the same line.
[2019-09-02 03:51:32.881] [info] New version 3.0.0-alpha.8 has been downloaded to C:\Users\IEUser\AppData\Local\grape-updater\pending\Grape-Setup-3.0.0-alpha.8.exe
Also, tried to downgrade electron to 4, electron-builder to 20.34.0 and electron-updater to 4.0.0. Still no luck :(
I have been trying different combinations of perMachine myself and not sure I'm seeing a difference. We use a USB based cert for our signing.
The issue looks similar to #4143 #3632 #2709 and several more.
@preslavsh yeah, true. I decided to create a new one because didn't find exactly case which I described
I'm seeing this same issue. Were you able to solve it?
It appears as if for me, the download-progress event fires fine and makes it to 100%, but update-downloaded is never invoked.
Hey @raymondjacobson, unfortunately, I didn't resolve the issue.
Same goes for me download-progress fires, but the app itself never updates.
In case of any updates, I'll write them here.
Has anyone else been getting this / know of a workaround? Still can't seem to get past this point and it's blocking windows releases for us :'-(
@raymondjacobson try to downgrade to ‘electron@^4.0.6’ and ‘electron-builder@^20.38.5’. At least I know a person who has a working auto-update feature with those versions. But I can’t confirm that is working workaround, didn’t try yet.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
reopen, please
Right now using 22.4. Everything seems to work correctly
Most helpful comment
@preslavsh yeah, true. I decided to create a new one because didn't find exactly case which I described