Electron-builder: Unable to build AppImage on Windows (service.electron.build)

Created on 13 Oct 2019  Â·  21Comments  Â·  Source: electron-userland/electron-builder

  • Version: 21.2.0

  • Target: linux AppImage

  • Description:
    Building a Linux AppImage on a Windows device has been unavailable for the past couple of months thanks to an outage. More information below.

error=Get https://service.electron.build/find-build-agent?no-cache=1eq6jtp: dial tcp 51.15.76.176:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Most helpful comment

i am getting this same error trying to build for debian...

All 21 comments

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.

This is still relevant and has not been addressed yet.

cannot get, wait error=Get https://service.electron.build/find-build-agent?no-cache=1evftno: dial tcp 51.15.76.176:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
attempt=1
waitTime=4

Get https://service.electron.build/find-build-agent?no-cache=1evftno: dial tcp 51.15.76.176:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

FYI I seem to be stuck with the same error...

same error...

i am getting this same error trying to build for debian...

Same error here on Win 7, just trying a simple --linux build with defaults.

Is there any fix or work around for this.

Is there any fix or work around for this.

Building directly on a linux system. You can also build windows images on linux using Wine.

Has anyone had luck with the Windows Linux Subsystem?

Same issue here. Trying to build linux package for snap using electron-builder --linux snap

Why is this still not addressed after half a year???

@o5k It's a free service after all, and you can still create Linux builds on a Linux host (and Windows builds using wine on Linux).

Same error. Any updates?

I have the same error with deb and appImage I go to the site and this site is down

I have the same error on Windows 10.
Curiously, if I try the same project on macOS, it doesn't reproduce.

I have the same error on Windows 10.
Curiously, if I try the same project on macOS, it doesn't reproduce.

Electron builder supports building Windows binaries on non-Windows machines. See:
https://www.electron.build/multi-platform-build

This is also a work-around for this problem. You can use a Linux/macOS build machine to provide both the platform's own binaries and Windows binaries.

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.

still relevant

"electron": "^10.1.2",
"electron-builder": "^22.8.1",

Got the same error today. Trying to build on windows 10 with electron-builder --linux snap.
The error:

cannot get, wait  error=Get "https://service.electron.build/find-build-agent?no-cache=1fm6tp0": dial tcp 51.15.76.176:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
                      attempt=0
                      waitTime=2
  • cannot get, wait  error=Get "https://service.electron.build/find-build-agent?no-cache=1fm6tp0": dial tcp 51.15.76.176:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
                      attempt=1
                      waitTime=4
  • cannot get, wait  error=Get "https://service.electron.build/find-build-agent?no-cache=1fm6tp0": dial tcp 51.15.76.176:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
                      attempt=2
                      waitTime=6
  ⨯ Get "https://service.electron.build/find-build-agent?no-cache=1fm6tp0": dial tcp 51.15.76.176:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
  ⨯ C:\Code\electron-cgi-calculator-demo\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE  stackTrace=
Error: C:\Code\electron-cgi-calculator-demo\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
at ChildProcess.childProcess.once.code (C:\Code\electron-cgi-calculator-demo\node_modules\builder-util\src\util.ts:243:14)
at Object.onceWrapper (events.js:286:20)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
From previous event:
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
From previous event:
at RemoteBuilder.build (C:\Code\electron-cgi-calculator-demo\node_modules\app-builder-lib\src\remoteBuilder\RemoteBuilder.ts:52:28)
at RemoteTarget.finishBuild (C:\Code\electron-cgi-calculator-demo\node_modules\app-builder-lib\src\linuxPackager.ts:99:30)

Unfortunately the https://service.electron.build has been down since months and it doesn't seem that such issue will be fixed anytime soon, as we can see from the amount of (mostly open) GitHub issues that have been opened from users that are trying to deal with such problem in the past months.

Here's a viable alternative to build a redistributable Linux package on a Windows 10 environment: I'll try to explain it using a step-by-step approach in order to make it as easy as possible for those who don't know Docker well.

  • Install Docker from here
  • Download the electronuserland/builder Docker image with the following console command:
    docker pull electronuserland/builder
  • From the Electron project's root folder (such as C:\MyApp), type the following command-line command to run the container and map the Electron project's root folder to the /project virtual path:
    docker run -rm -ti -v C:\MyApp\:/project -w /project electronuserland/builder
  • From inside the container, type the following commands to upgrade the Electron project's Yarn packages, globally install the electron-builder package and build the Linux redistributable package:
cd /project
yarn upgrade
yarn global add electron-builder
electron-builder -l

If everything went smooth, you should be able to locate your MyApp.deb file (or rpm, AppImage, or anything you've configured within the electron-builder's package.json file) inside the Electron project's /dist/ folder.

For further info about this whole procedure and a bit of background, check out this post on my blog.

Unfortunately the https://service.electron.build has been down since months and it doesn't seem that such issue will be fixed anytime soon, as we can see from the amount of (mostly open) GitHub issues that have been opened from users that are trying to deal with such problem in the past months.

Here's a viable alternative to build a redistributable Linux package on a Windows 10 environment: I'll try to explain it using a step-by-step approach in order to make it as easy as possible for those who don't know Docker well.

  • Install Docker from here
  • Download the electronuserland/builder Docker image with the following console command:
    docker pull electronuserland/builder
  • From the Electron project's root folder (such as C:\MyApp), type the following command-line command to run the container and map the Electron project's root folder to the /project virtual path:
    docker run -rm -ti -v C:\MyApp\:/project -w /project electronuserland/builder
  • From inside the container, type the following commands to upgrade the Electron project's Yarn packages, globally install the electron-builder package and build the Linux redistributable package:
cd /project
yarn upgrade
yarn global add electron-builder
electron-builder -l

If everything went smooth, you should be able to locate your MyApp.deb file (or rpm, AppImage, or anything you've configured within the electron-builder's package.json file) inside the Electron project's /dist/ folder.

For further info about this whole procedure and a bit of background, check out this post on my blog.

It works,but the command should be:
docker run --rm -ti -v C:\MyApp\:/project -w /project electronuserland/builder
The -rm flag should be --rm

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JohnWeisz picture JohnWeisz  Â·  3Comments

popod picture popod  Â·  3Comments

antonycourtney picture antonycourtney  Â·  3Comments

philcockfield picture philcockfield  Â·  3Comments

alexstrat picture alexstrat  Â·  3Comments