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.

Error on windows updates - spawn setup.exe EACCES

See original GitHub issue
  • Version: builder v20.38.5 and updater v4.0.6

  • Target: --win --x64 --ia32

See the following test application as an example: https://github.com/kspearrin/electron-updater-issue

Hi @develar , I have donated in hopes of raising the priority on this issue. It is creating a bit of a large problem with our app that we are trying to release updates to.

Our apps current production version uses Electron v3.0.13, electron-builder v20.31.2, and electron-updater v3.0.3. Whenever we published an update of our app, all users now get the following error whenever the update-downloaded event runs:

autoUpdater.on('update-downloaded', (info) => {
   autoUpdater.quitAndInstall(false, true);
});
Uncaught Exception:
Error: spawn C:\Users\me\AppData\Roaming\electron-updater-example\__update__\electron-updater-example-web-setup-2.0.1.exe EACCES
    at Process.ChildProcess._handle.onexit (internal/child_process.js:229:19)
    at onErrorNT (internal/child_process.js:406:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)

capture

This problem seems to only occur on Windows. It didn’t error on macOS, but I have yet to test Linux.

I guess it is a permissions issue. Running the application in administrator mode solves the problem, but this is not a good solutions for thousands of users of the application currently.

This looks like a similar issue: https://github.com/electron-userland/electron-builder/issues/3480

We’ve also tried publishing an update which upgrades electron-builder to the latest v20.38.5 and electron-updated to v4.0.6, but the same problem still occurs. I believe the broken version is currently in production, so I am not sure how repair this problem for the thousands of users currently using the broken version.

Reproduction steps

Using the sample app at: https://github.com/kspearrin/electron-updater-issue/releases

  1. Download and install version v2.0.0. This version uses builder v20.31.2, and updater v3.0.3
  2. Run the application. It will try to update to v3.0.1. This version uses builder v20.38.5 and updater v4.0.6.
  3. Observe the error.

You can see that this problem was resolved in the latest builder/updater versions by first installing v3.0.0 and seeing it successfully update to v3.0.1. Both of these use the latest builder v20.38.5 and updater v4.0.6.


How do we repair this problem for our existing users on the broken version so that they can automatically update without having to run the application in administrator mode? This would create a support nightmare if users have to manually work around this error.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:14 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
agjscommented, Apr 15, 2019

@develar We are having the exact same issue. Would appreciate the response. Thanks 😃

0reactions
npc1437commented, Nov 24, 2022

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix this Error: spawn EACCES - Edward Beazer Blog
This error comes up when you don't have full permissions to the project folder. You want to run the chmod command in order...
Read more >
Unable to install Update inside non-admin user's machine at ...
Cannot run installer: error code: EACCES, error message: "spawn C:\Users<>\AppData\Local<>-updater\pending\update.exe EACCES", ...
Read more >
Error spawning 'C:\Windows\System32\cmd.exe' - MSDN
I'm running - Windows 7 64-bit - Visual Studio 2008 with updates. Trying to build "exercise.cu" that comes from a NVIDIA CUDA course...
Read more >
You receive an access violation error and the system may ...
Fixes a problem in which you receive an access violation error when you install an update from Windows Update after you apply update...
Read more >
Blank desktop after you log on - Windows Client
The Windows logon process has failed to spawn a user application. ... user access token is then used to launch the Explorer.exe process...
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