electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.69k stars 1.74k forks source link

Connection to remote builder refused, while building linux package #3569

Closed vanmxpx closed 5 years ago

vanmxpx commented 5 years ago

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 () 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 () 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 () 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)`

aslau4 commented 5 years ago

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

konrad-ch commented 5 years ago

Same here. Any fix??

eirikkar commented 5 years ago

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

takashi1kun commented 5 years ago

I have the same problem

ghost commented 5 years ago

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

Ahriana commented 5 years ago

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)
Seblor commented 5 years ago

Any update ?

JoshuaDFair commented 5 years ago

Also getting this error while trying to build for Linux. Any updates?

Seblor commented 5 years ago

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

robsonos commented 5 years ago

Same here

VadimSkrupskiy commented 5 years ago

+1

Puyodead1 commented 5 years ago

+1

Ahriana commented 5 years ago

i think it comes down to building native or switching to a new builder, they dont seam intrested in this

lunaneff commented 5 years ago

I guess I'll just have to fire up a linux VM to build my app for linux

cat998 commented 5 years ago

So, there is no solution here...

ArjunAtlast commented 5 years ago

Same issue

dhanyn10 commented 5 years ago

@codebytere please say something

mslavkovski commented 5 years ago

It's been too long without any response. We do need some kind of information whether this project is abandoned or not? Should we use another solution? Anybody? Ping?

develar commented 5 years ago

I just need time to setup build service again, as in any case I still pay 40 euro every month :) Sorry for delay.

Should we use another solution?

Build linux targets on linux/mac, as this build service is required if you want to build linux targets on Windows.

brotherhui commented 5 years ago

same problem, any updates?

mthrodrigues301 commented 5 years ago

up, i have the same problem

jackelalien commented 5 years ago

Any updates on when this will be up again @develar?

kastwey commented 5 years ago

Hi,

Same for me. I cannot build electron.net package.

Please, some idea when it will be up again?

I want to generate a new release of my application and I cannot do that.

Thanks,

Juanjo.

Bouncue commented 5 years ago

Make this feature available again please

eatmyvenom commented 5 years ago

For people looking this error up online, there is no solution so far for building on windows so here ya go

I just need time to setup build service again, as in any case I still pay 40 euro every month :) Sorry for delay.

Should we use another solution?

Build linux targets on linux/mac, as this build service is required if you want to build linux targets on Windows.

develar commented 5 years ago

Duplicates https://github.com/electron-userland/electron-build-service/issues/5

develar commented 5 years ago

Done https://github.com/electron-userland/electron-build-service/issues/5#issuecomment-503689880

ihor-zinchenko commented 5 years ago

same issue(

btzsoft commented 5 years ago

the same issue

btzsoft commented 5 years ago

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

ihor-zinchenko commented 5 years ago

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

you can build on ubuntu

Skriptach commented 5 years ago

@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.

mohsenmahoski commented 5 years ago

is service.electron.build still down ??

Get https://service.electron.build/find-build-agent?no-cache=1er2h1m: 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.

Is there any solution?

electron-builder  version=21.2.0 os=6.1.7601
loaded configuration  file=package.json ("build" field)
loaded parent configuration  preset=react-cra
writing effective config  file=dist\builder-effective-config.yaml
packaging       platform=linux arch=x64 electron=7.0.0 appOutDir=dist\linux-unpacked
scheduling remote build  target=snap arch=x64
scheduling remote build  target=appImage arch=x64
ihor-zinchenko commented 5 years ago

@mohsenmahoski Virtual Box + Ubuntu was the solution for me but that is not the best way(

KariiO commented 4 years ago

any news?

matvelloso commented 4 years ago

Also trying to find a solution for this, looks like this issue has been there since 2018? Any pointers? Thanks

kavil commented 4 years ago

Did the authorities give up?

suprimex commented 4 years ago

Same problem still.

Thomas-DaxBrin commented 4 years ago

Same problem, if i going to linux, i will be able to compile my app ?

y4n6 commented 4 years ago

Same problem, if i going to linux, i will be able to compile my app ?

I have compiled successfully on Linux.

package.json: vue-cli3.0 electron7.1.2 typescript3.5.3 eslint5.16.0 linux3.10

1.Install VNC. 2.Copy the source code to Linux. mkdir node_modules chmod 775 node_modules npm install --unsafe-perm 3.npm run vue-cli-service electron:build 4.You will get the .Appimage file. 5.https://appimage.org/

dmtask commented 4 years ago

I have a similar defect. Anybody got any ideas? I build in a Docker Image Windows 32 and 64 Builds:

  ⨯ Get https://github-production-release-asset-2e65be.s3.amazonaws.com/9384267/e2051180-981c-11e9-954f-10e08df6b73e?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200115%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200115T111909Z&X-Amz-Expires=300&X-Amz-Signature=ed08a6e2533dbd28e1f99fc6af3f0e0df7426deb602afdc269f65efc1315bc89&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Delectron-v5.0.6-win32-x64.zip&response-content-type=application%2Foctet-stream: EOF
github.com/develar/app-builder/pkg/download.(*Part).doRequest
    /Volumes/data/Documents/app-builder/pkg/download/Part.go:108
github.com/develar/app-builder/pkg/download.(*Part).download
    /Volumes/data/Documents/app-builder/pkg/download/Part.go:47
github.com/develar/app-builder/pkg/download.(*Downloader).DownloadResolved.func1.1
    /Volumes/data/Documents/app-builder/pkg/download/downloader.go:107
github.com/develar/app-builder/pkg/util.MapAsyncConcurrency.func2
    /Volumes/data/Documents/app-builder/pkg/util/async.go:68
runtime.goexit
    /usr/local/Cellar/go/1.12.7/libexec/src/runtime/asm_amd64.s:1337  
  ⨯ /project/node_modules/app-builder-bin/linux/x64/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE  stackTrace=
                                                                                                                        Error: /project/node_modules/app-builder-bin/linux/x64/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
                                                                                                                            at ChildProcess.childProcess.once.code (/project/node_modules/builder-util/src/util.ts:239:14)
                                                                                                                            at Object.onceWrapper (events.js:285:13)
                                                                                                                            at ChildProcess.emit (events.js:197:13)
                                                                                                                            at maybeClose (internal/child_process.js:984:16)
                                                                                                                            at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
FurkanDGN commented 4 years ago

Same problem...

dmtask commented 4 years ago

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

yincolor commented 4 years ago

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.

skorunka commented 4 years ago

Same problem :(

Yunorga commented 4 years ago

Same problem...

DigiTorus86 commented 4 years ago

Yup, same issue. Seems like a very "cold case".

zNoobs commented 4 years ago

Does someone know how to use electron-builder with Cygwin on Windows? I tried, on a Cygwin terminal: electron-builder build --linux

But it still tries to do the remote build, so it fails.

Tucsky commented 4 years ago
⨯ Get https://service.electron.build/find-build-agent?no-cache=1fbiiu7: dial tcp 51.15.76.176:443: connectex: No connection could be made because the target machine actively refused it.  
 ERROR  Error: C:\Users\Tucsky\Documents\Development\safe-orthopedic\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE

Hello??

zhanjinfeng commented 4 years ago

building on a virtual machine, ubuntu is ok