Errors with Electron build

drew.berkemeyer's Avatar

drew.berkemeyer

06 Feb, 2020 09:27 PM

Hi,
Has anything around the Appveyor build system change recently in a way that would cause node native builds to fail as far as you know?

We have a build process that used to work and I recently discovered it is breaking, but can't discern why. It works on my machine and I don't get any errors. However, when I push to Appveyor it is breaking (see log snippet below). I've even tried rolling the branch back to a version that used to build on Appveyor and it is failing with the same error.

Any advice or help you can provide is greatly appreciated.

Here is a snippet from the build log that includes the errors:

> sqlite3@4.1.1 install C:\projects\presopresentation-g0f9b\Preso.Electron\dist\node_modules\sqlite3
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download 
node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.1.1/electron-v3.1-win32-ia32.tar.gz 
node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.1.1 and electron@3.1.0 (electron-v3.1 ABI, unknown) (falling back to source compile with node-gyp) 
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: 403 status code downloading arm64 iojs.lib
gyp ERR! stack     at Request.<anonymous> (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\lib\install.js:335:22)
gyp ERR! stack     at emitOne (events.js:121:20)
gyp ERR! stack     at Request.emit (events.js:211:7)
gyp ERR! stack     at Request.onRequestResponse (C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\request\request.js:1066:10)
gyp ERR! stack     at emitOne (events.js:116:13)
gyp ERR! stack     at ClientRequest.emit (events.js:211:7)
gyp ERR! stack     at HTTPParser.parserOnIncomingClient (_http_client.js:552:21)
gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17)
gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:454:20)
gyp ERR! stack     at emitOne (events.js:116:13)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\projects\\presopresentation-g0f9b\\Preso.Electron\\dist\\node_modules\\sqlite3\\lib\\binding\\electron-v3.1-win32-ia32\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\projects\\presopresentation-g0f9b\\Preso.Electron\\dist\\node_modules\\sqlite3\\lib\\binding\\electron-v3.1-win32-ia32" "--napi_version=4" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=electron-v3.1"
gyp ERR! cwd C:\projects\presopresentation-g0f9b\Preso.Electron\dist\node_modules\sqlite3
gyp ERR! node -v v8.17.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files (x86)\nodejs\node.exe C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\projects\presopresentation-g0f9b\Preso.Electron\dist\node_modules\sqlite3\lib\binding\electron-v3.1-win32-ia32\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\projects\presopresentation-g0f9b\Preso.Electron\dist\node_modules\sqlite3\lib\binding\electron-v3.1-win32-ia32 --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v3.1' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:\projects\presopresentation-g0f9b\Preso.Electron\dist\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:915:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\projects\\presopresentation-g0f9b\\Preso.Electron\\dist\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\projects\presopresentation-g0f9b\Preso.Electron\dist\node_modules\sqlite3
node-pre-gyp ERR! node -v v8.17.0
node-pre-gyp ERR! node-pre-gyp -v v0.11.0
node-pre-gyp ERR! not ok 
Failed to execute 'C:\Program Files (x86)\nodejs\node.exe C:\Program Files (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\projects\presopresentation-g0f9b\Preso.Electron\dist\node_modules\sqlite3\lib\binding\electron-v3.1-win32-ia32\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\projects\presopresentation-g0f9b\Preso.Electron\dist\node_modules\sqlite3\lib\binding\electron-v3.1-win32-ia32 --napi_version=4 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v3.1' (1)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@4.1.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the sqlite3@4.1.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\appveyor\AppData\Roaming\npm-cache\_logs\2020-02-06T21_01_42_677Z-debug.log
  • exited          command=node.exe code=1 pid=4316
Error: C:\Program Files (x86)\nodejs\node.exe exited with code 1
    at ChildProcess.childProcess.once.code (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\builder-util\src\util.ts:244:14)
    at Object.onceWrapper (events.js:317:30)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
From previous event:
    at _rebuild (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\src\util\yarn.ts:179:5)
    at rebuild (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\out\util\yarn.js:163:19)
    at C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\src\util\yarn.ts:20:11
From previous event:
    at _installOrRebuild (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\out\util\yarn.js:71:28)
    at installOrRebuild (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\out\util\yarn.js:55:28)
    at C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\electron-builder\src\cli\install-app-deps.ts:56:9
    at Generator.next (<anonymous>)
    at runCallback (timers.js:810:20)
    at tryOnImmediate (timers.js:768:5)
    at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
    at _installAppDeps (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\electron-builder\out\cli\install-app-deps.js:176:26)
    at installAppDeps (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\electron-builder\out\cli\install-app-deps.js:144:26)
    at then (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\electron-builder\src\cli\cli.ts:46:19)
    at <anonymous>
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Preso@0.1.8 postinstall: `electron-builder install-app-deps`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the Preso@0.1.8 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\appveyor\AppData\Roaming\npm-cache\_logs\2020-02-06T21_01_42_779Z-debug.log
  • exited          command=node.exe code=1 pid=2020
Error: C:\Program Files (x86)\nodejs\node.exe exited with code 1
    at ChildProcess.childProcess.once.code (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\builder-util\src\util.ts:244:14)
    at Object.onceWrapper (events.js:317:30)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
From previous event:
    at runCallback (timers.js:810:20)
    at tryOnImmediate (timers.js:768:5)
    at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
    at _installOrRebuild (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\out\util\yarn.js:71:28)
    at installOrRebuild (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\out\util\yarn.js:55:28)
    at C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\src\packager.ts:509:13
    at Generator.next (<anonymous>)
From previous event:
    at Packager.installAppDependencies (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\src\packager.ts:470:70)
    at C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\src\packager.ts:420:20
    at Generator.next (<anonymous>)
From previous event:
    at Packager.doBuild (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\src\packager.ts:396:24)
    at C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\src\packager.ts:366:57
From previous event:
    at Packager._build (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\src\packager.ts:335:133)
    at C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\src\packager.ts:331:23
    at Generator.next (<anonymous>)
    at runCallback (timers.js:810:20)
    at tryOnImmediate (timers.js:768:5)
    at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
    at Packager.build (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\src\packager.ts:288:14)
    at build (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\app-builder-lib\src\index.ts:59:28)
    at Object.build (C:\projects\presopresentation-g0f9b\Preso.Electron\node_modules\electron-builder\src\builder.ts:228:10)
    at Object.<anonymous> (C:\projects\presopresentation-g0f9b\Preso.Electron\electron-installer-script.js:30:17)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function.Module.runMain (module.js:694:10)
    at startup (bootstrap_node.js:204:16)
    at bootstrap_node.js:625:3```
  1. Support Staff 1 Posted by Feodor Fitsner on 06 Feb, 2020 09:50 PM

    Feodor Fitsner's Avatar

    Hi Drew,

    Could you drop a link to the last successful build please? Have you tried running on 'previous' image?

  2. 2 Posted by drew.berkemeyer on 06 Feb, 2020 09:55 PM

    drew.berkemeyer's Avatar

    I will search for a successful build. I have been working on the back end of the application for several months and haven't been keeping up with this. I just turned my attention to updating our Electron build process a couple of days ago and discovered these errors.

    Yes I have tried running an older version. The logs I posted above are from a commit that I believe worked back in October. I have just rolled it back again to see if maybe something older will build. My plan is to keep rolling it back until I find something that works.

    At the same time I am finding just a couple of issues posted on github that seem related, but I haven't been able to tell if it is the same or not.

    Here's the search I'm using:
    https://www.google.com/search?rlz=1C1CHBF_enUS776US776&ei=OXg8XqLcI52_0PEPs5-N2A0&q=sqlite+%22403+status+code+downloading+arm64+iojs.lib%22&oq=sqlite+%22403+status+code+downloading+arm64+iojs.lib%22&gs_l=psy-ab.3...3056.11266..11487...0.0..0.271.939.11j0j1......0....1..gws-wiz.......0i30j0i7i30.9pLW3v0Uk6c&ved=0ahUKEwji3PKL473nAhWdHzQIHbNPA9sQ4dUDCAs&uact=5

    Thank you for the fast response! I REALLY appreciate any help you can provide.

  3. 3 Posted by drew.berkemeyer on 06 Feb, 2020 10:12 PM

    drew.berkemeyer's Avatar

    I responded via the website issue page.

    Drew Berkemeyer
    Contractor - Software Development
    E: [email blocked]<mailto:[email blocked]>
    M: +1 (573) 944.2667
    Lynden, Washington United States

  4. Support Staff 4 Posted by Feodor Fitsner on 06 Feb, 2020 10:13 PM

    Feodor Fitsner's Avatar

    Got it. So, what is the name of the project you are having issues with?

  5. 5 Posted by drew.berkemeyer on 06 Feb, 2020 10:17 PM

    drew.berkemeyer's Avatar

    Preso Client Installer Build Test

    It looks like I may have gotten it working. I just switched my appveyor yaml file to use yarn instead of npm based on some stuff I read here:
    https://github.com/nodejs/node-gyp/issues/1933

    That seems to have made this older test branch work. I’ve just made the same change to our development branch to see if it fixes the latest build as well.

    I’ll keep you posted.

    Drew Berkemeyer
    Contractor - Software Development
    E: [email blocked]<mailto:[email blocked]>
    M: +1 (573) 944.2667
    Lynden, Washington United States

  6. 6 Posted by drew.berkemeyer on 06 Feb, 2020 10:34 PM

    drew.berkemeyer's Avatar

    OK! Apparently that was/is the problem. Our current develop branch seems to have built once I changed from npm to yarn. I will run a few more tests to ensure all is well.

    Thank you again for your very fast responses.

  7. Support Staff 7 Posted by Feodor Fitsner on 06 Feb, 2020 11:27 PM

    Feodor Fitsner's Avatar

    OK, thanks for the update!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac