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.

Travis CI: 7za No such file or directory

See original GitHub issue

electron-builder@3.21.0 node 5.10.0 npm 3.9.0

travis.yml copy from https://github.com/develar/onshape-desktop-shell/blob/master/.travis.yml

CI detected, so artifacts will be published if draft release exists
Rebuilding app dependencies for arch x64 to /home/travis/build/mbrainiac/pencil/app
  electron-builder Spawning /home/travis/.nvm/versions/node/v5.10.0/bin/node /home/travis/.nvm/versions/node/v5.10.0/lib/node_modules/npm/bin/npm-cli.js rebuild --production +0ms
  electron-builder Download fpm from https://github.com/develar/fpm-self-contained/releases/download/v1.5.0-2.3.1/fpm-1.5.0-2.3.1-linux-x86_64.7z to /home/travis/.cache/fpm/4812-0-1463114555804.7z +29ms
  electron-builder Spawning /home/travis/build/mbrainiac/pencil/node_modules/7zip-bin-linux/7za x /home/travis/.cache/fpm/4812-0-1463114555804.7z -o4812-0-1463114555804 -bd -bb3 +2s
Unhandled rejection Error: spawn /home/travis/build/mbrainiac/pencil/node_modules/7zip-bin-linux/7za ENOENT
    at exports._errnoException (util.js:890:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)
    at onErrorNT (internal/child_process.js:348:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
From previous event:
    at Object.spawn (/home/travis/build/mbrainiac/pencil/node_modules/electron-builder/src/util.ts:101:9)
    at /home/travis/build/mbrainiac/pencil/node_modules/electron-builder/src/fpmDownload.ts:63:14
    at [object Generator].next (native)
    at WriteStream.g (events.js:273:16)
    at emitNone (events.js:80:13)
    at WriteStream.emit (events.js:179:7)
    at fs.js:1851:14
    at /home/travis/build/mbrainiac/pencil/node_modules/graceful-fs/graceful-fs.js:43:10
    at FSReqWrap.oncomplete (fs.js:82:15)
From previous event:
    at tsAwaiter (/home/travis/build/mbrainiac/pencil/node_modules/electron-builder/src/awaiter.ts:10:47)
    at Object.build (/home/travis/build/mbrainiac/pencil/node_modules/electron-builder/src/builder.ts:30:59)
    at Object.<anonymous> (/home/travis/build/mbrainiac/pencil/node_modules/electron-builder/src/build-cli.ts:47:2)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:146:18)
    at node.js:404:3
$ ls -al $TRAVIS_BUILD_DIR/node_modules/7zip-bin-linux
total 1608
drwxrwxr-x   2 travis travis    4096 May 13 07:54 .
drwxrwxr-x 254 travis travis   12288 May 13 08:50 ..
-rwxrwxr-x   1 travis travis 1620784 Mar 23 19:33 7za
-rw-rw-r--   1 travis travis      70 Apr  8 05:44 index.js
-rw-rw-r--   1 travis travis    1910 May 13 07:54 package.json

$ $TRAVIS_BUILD_DIR/node_modules/7zip-bin-linux/7za
home/travis/build.sh: line 45: /home/travis/build/mbrainiac/pencil/node_modules/7zip-bin-linux/7za: No such file or directory

It seems like electron-builder use 32bit version of 7za.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, May 13, 2016

Problem not in the binary. Something strange on Travis — i.e. our tests passed on one CI server, app correctly builds in the docker container, desktop linux machine, but on Travis failed. ENOENT doesn’t mean that 7za not found, it also means that some argument is invalid.

i.e. you can try to set USE_SYSTEM_7ZA (update 7zip-bin to 1.0.5 — i.e. clear travis cache if you cache node_modules) — doesn’t help.

1reaction
mbrainiaccommented, May 13, 2016

@develar Why not use system 7za, install p7z easier than ruby and fpm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"No such file or directory" on script - Travis CI Community
Hi there, I have the following repository that I'm trying to build on Travis, It has a “script” folder that contains a “cibuild”...
Read more >
travis-ci : error during the build (No such file or directory)
OK, I found the solution. I had to add the search.json into the jekyll site.keep_files . First to do is to create a...
Read more >
How To Build A Java Project Using Travis CI On Windows ...
You can easily configure Travis CI by adding a file named .travis.yml to the root directory of the GitHub repository. Travis CI was...
Read more >
Common Build Problems - Travis CI Docs
Another reason could be that the repo setting Clone or import is set to OFF. In this case, no information from the repository...
Read more >
User Guide — py7zr – 7-zip archive library - Read the Docs
Features is not implemented to update and append a 7z file. py7zr does not ... under the current directory 'd', command line become...
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