electron-builder: Connection to remote builder refused, while building linux package

Good day. Trying to build linux package remotely getting the error. What’s wrong with remote builder?

• electron-builder version=20.38.4

Linux target AppImage, deb

`> electron-builder --linux

• electron-builder version=20.38.4 • loaded configuration file=package.json (“build” field) • description is missed in the package.json appPackageFile=C:\Users\nick\Projects\TournamentTRN\test\package.json • writing effective config file=distElectron\builder-effective-config.yaml • no native production dependencies • packaging platform=linux arch=x64 electron=4.0.0 appOutDir=distElectron\linux-unpacked • scheduling remote build target=appImage arch=x64 • cannot get, wait attempt=0 error=Get https://service.electron.build/find-build-agent?no-cache=1e247ur: dial tcp 51.38.69.239:443: connectex: No connection could be made because the target machine actively refused it. waitTime=2 • cannot get, wait attempt=1 error=Get https://service.electron.build/find-build-agent?no-cache=1e247ur: dial tcp 51.38.69.239:443: connectex: No connection could be made because the target machine actively refused it. waitTime=4 • cannot get, wait attempt=2 error=Get https://service.electron.build/find-build-agent?no-cache=1e247ur: dial tcp 51.38.69.239:443: connectex: No connection could be made because the target machine actively refused it. waitTime=6 ⨯ Get https://service.electron.build/find-build-agent?no-cache=1e247ur: dial tcp 51.38.69.239:443: connectex: No connection could be made because the target machine actively refused it.

Error: C:\Users\nick\Projects\TournamentTRN\test\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code 1 at ChildProcess.childProcess.once.code (C:\Users\nick\Projects\TournamentTRN\test\node_modules\builder-util\src\util.ts:244:14) at Object.onceWrapper (events.js:273:13) at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:962:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) From previous event: at RemoteBuilder._build (C:\Users\nick\Projects\TournamentTRN\test\node_modules\app-builder-lib\src\remoteBuilder\RemoteBuilder.ts:57:83) at _bluebirdLst.default.mapSeries.arch (C:\Users\nick\Projects\TournamentTRN\test\node_modules\app-builder-lib\src\remoteBuilder\RemoteBuilder.ts:52:19) From previous event: at RemoteBuilder.build (C:\Users\nick\Projects\TournamentTRN\test\node_modules\app-builder-lib\src\remoteBuilder\RemoteBuilder.ts:51:28) at C:\Users\nick\Projects\TournamentTRN\test\node_modules\app-builder-lib\src\linuxPackager.ts:99:30 From previous event: at RemoteTarget.finishBuild (C:\Users\nick\Projects\TournamentTRN\test\node_modules\app-builder-lib\src\linuxPackager.ts:97:20) at C:\Users\nick\Projects\TournamentTRN\test\node_modules\app-builder-lib\src\packager.ts:438:36 at Generator.next (<anonymous>) at runCallback (timers.js:705:18) at tryOnImmediate (timers.js:676:5) at processImmediate (timers.js:658:5) From previous event: at Packager.doBuild (C:\Users\nick\Projects\TournamentTRN\test\node_modules\app-builder-lib\src\packager.ts:396:24) at C:\Users\nick\Projects\TournamentTRN\test\node_modules\app-builder-lib\src\packager.ts:366:57 at Generator.next (<anonymous>) at C:\Users\nick\Projects\TournamentTRN\test\node_modules\graceful-fs\graceful-fs.js:111:16 at C:\Users\nick\Projects\TournamentTRN\test\node_modules\graceful-fs\graceful-fs.js:45:10 at FSReqWrap.oncomplete (fs.js:141:20) From previous event: at Packager._build (C:\Users\nick\Projects\TournamentTRN\test\node_modules\app-builder-lib\src\packager.ts:335:133) at C:\Users\nick\Projects\TournamentTRN\test\node_modules\app-builder-lib\src\packager.ts:331:23 at Generator.next (<anonymous>) at runCallback (timers.js:705:18) at tryOnImmediate (timers.js:676:5) at processImmediate (timers.js:658:5) From previous event: at Packager.build (C:\Users\nick\Projects\TournamentTRN\test\node_modules\app-builder-lib\src\packager.ts:288:14) at build (C:\Users\nick\Projects\TournamentTRN\test\node_modules\app-builder-lib\src\index.ts:59:28) at build (C:\Users\nick\Projects\TournamentTRN\test\node_modules\electron-builder\src\builder.ts:227:10) at then (C:\Users\nick\Projects\TournamentTRN\test\node_modules\electron-builder\src\cli\cli.ts:46:19)`

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 31
  • Comments: 66 (4 by maintainers)

Commits related to this issue

Most upvoted comments

Seriously, being unable to build for Linux just because the host https://service.electron.build is down seems like a major flaw.

I know how to solve it now. If you want to build a package for linux, you have to build it on Linux. And then you will get a program with the suffix AppImage ♥

My problem solved itself. I assume that this is some kind of network problem and the site was either unavailable or timed out.

Facing this same issue currently. Has anyone gotten to resolve this?

any news?

having the same issues, crashes out on linux builds

  • electron-builder version=20.38.5
  • loaded configuration file=package.json ("build" field)
  • no native production dependencies
  • packaging       platform=linux arch=x64 electron=4.0.2 appOutDir=build\linux-unpacked
  • scheduling remote build target=snap arch=x64
  • scheduling remote build target=appImage arch=x64
  • no native production dependencies
  • packaging       platform=win32 arch=x64 electron=4.0.2 appOutDir=build\win-unpacked
  • cannot get, wait          attempt=0 error=Get https://service.electron.build/find-build-agent?no-cache=1e4kl10: dial tcp 51.38.69.239:443: connectex: No connection could be made because the target machine actively refused it. waitTime=2
  • default Electron icon is used reason=application icon is not set
  • building        target=nsis file=build\rcd Setup 0.0.1.exe archs=x64 oneClick=true perMachine=false
  • cannot get, wait          attempt=1 error=Get https://service.electron.build/find-build-agent?no-cache=1e4kl10: dial tcp 51.38.69.239:443: connectex: No connection could be made because the target machine actively refused it. waitTime=4
  • cannot get, wait          attempt=2 error=Get https://service.electron.build/find-build-agent?no-cache=1e4kl10: dial tcp 51.38.69.239:443: connectex: No connection could be made because the target machine actively refused it. waitTime=6
  ⨯ Get https://service.electron.build/find-build-agent?no-cache=1e4kl10: dial tcp 51.38.69.239:443: connectex: No connection could be made because the target machine actively refused it.

  • building block map blockMapFile=build\rcd Setup 0.0.1.exe.blockmap
Error: __REMOVED__\rcd\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code 1
    at ChildProcess.childProcess.once.code (__REMOVED__\rcd\node_modules\builder-util\src\util.ts:244:14)
    at Object.onceWrapper (events.js:273:13)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:978:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
From previous event:
    at RemoteBuilder._build (__REMOVED__\rcd\node_modules\app-builder-lib\src\remoteBuilder\RemoteBuilder.ts:57:83)
    at _bluebirdLst.default.mapSeries.arch (__REMOVED__\rcd\node_modules\app-builder-lib\src\remoteBuilder\RemoteBuilder.ts:52:19)
From previous event:
    at RemoteBuilder.build (__REMOVED__\rcd\node_modules\app-builder-lib\src\remoteBuilder\RemoteBuilder.ts:51:28)
    at __REMOVED__\rcd\node_modules\app-builder-lib\src\linuxPackager.ts:99:30
From previous event:
    at RemoteTarget.finishBuild (__REMOVED__\rcd\node_modules\app-builder-lib\src\linuxPackager.ts:97:20)
    at __REMOVED__\rcd\node_modules\app-builder-lib\src\packager.ts:438:36
From previous event:
    at Packager.doBuild (__REMOVED__\rcd\node_modules\app-builder-lib\src\packager.ts:396:24)
    at __REMOVED__\rcd\node_modules\app-builder-lib\src\packager.ts:366:57
From previous event:
    at Packager._build (__REMOVED__\rcd\node_modules\app-builder-lib\src\packager.ts:335:133)
    at __REMOVED__\rcd\node_modules\app-builder-lib\src\packager.ts:331:23
    at Generator.next (<anonymous>)
    at processImmediate (timers.js:632:19)
From previous event:
    at Packager.build (__REMOVED__\rcd\node_modules\app-builder-lib\src\packager.ts:288:14)
    at build (__REMOVED__\rcd\node_modules\app-builder-lib\src\index.ts:59:28)
    at build (__REMOVED__\rcd\node_modules\electron-builder\src\builder.ts:227:10)
    at then (__REMOVED__\rcd\node_modules\electron-builder\src\cli\cli.ts:46:19)
	```

Same here… Hello?

guys, seriously? can’t build app without service.highlight.com. there’s no any way to build?

you can build on ubuntu

Same here. Any fix??

Same issue

Same problem…

Get https://service.electron.build/find-build-agent?no-cache=1f5fiuf: dial tcp 51.15.76.176:443: connectex: No connection could be made because the target machine actively refused it.

Same problem still.

I have this problem too, is there something we can do ?

I have the same problem

Same here. Been at this for a while now. Frustrating as ¤%"# 😦 I’m at version 20.38.5

The problem on Windows persist but i ✅ solved using the WSL 2 for Windows.

  • Enable WSL resource on your Windows. (learn more on: https://docs.microsoft.com/windows/wsl/install-win10).
  • Download any Linux WSL img from the Microsoft Store. (I’m using Ubuntu)
  • Execute the Ubuntu terminal and navigate to your project folder (windows folders has mounted in “/mnt”), so just type “cd /mnt”
  • Try run the build command again, after that, close the terminal and the tar.xz or .deb will be in the dist folder.
  • Done.

@IhorVimmi Are you sure about that?

What if somebody already have Azure Cloud and CI there? Or have only a custom Windows Server?…

And to fetch binaries during build is a bad practise. They should be downloaded during install.

Same issue