question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto-update in Windows 10, stucks after downloading update.

See original GitHub issue
  • electron-builder version: 21.2.0

  • electron version: 6.0.2

  • electron-updater version: 4.1.2
  • Target: Windows 10

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!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:15

github_iconTop GitHub Comments

3reactions
AleshaOlegcommented, Sep 11, 2019

@preslavsh yeah, true. I decided to create a new one because didn’t find exactly case which I described

2reactions
AleshaOlegcommented, Dec 14, 2019

reopen, please

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fixed: Windows Update Stuck on Download after ...
Fix Windows Update stuck on downloading in Windows 10 · Method 1. Restart your device · Method 2. Run the Windows Update troubleshooter...
Read more >
How to fix a stuck Windows 10 update - IT PRO
Press Ctrl + Alt + Delete; Hold Shift and click the power button, then Restart. Once you have restarted: When your system restarts,...
Read more >
How to Fix Windows 10 Update if it Freezes or Becomes Stuck
1. The first step is the safest way to resolve Windows 10 Update issues. The process will automatically scan for and detect problems...
Read more >
Windows Update stuck downloading updates
Windows Update stuck downloading updates · 1] Clear Software Distribution folder contents · 2] Run Windows Module Installer · 3] Check your ...
Read more >
7 Ways to Fix Windows Updates Stuck at 0% Downloading ...
7 Ways to Fix Windows Updates Stuck at 0% Downloading Easily [Partition Manager] · Fix 1. Wait or Restart Computer · Fix 2....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found