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.

7zip error on macOS

See original GitHub issue
  • Version: 20.31.3
  • Target: macOS

I just upgraded from v20.4.1 to v20.31.3. When running my build, the 7zip step is throwing an error. The hdiutil is also throwing but that may just be a result of 7zip. Weirdly, this happens only on my CI Jenkins machine (macOS v10.12.6), not my local macOS (v10.14.3). Any ideas? Let me know if any other info is helpful. Thanks!

13:07:42 > build --mac
13:07:42 
13:07:42   • electron-builder version=20.31.3
13:07:42   • artifacts will be published if draft release exists reason=CI detected
13:07:42   • loaded configuration file=package.json ("build" field)
13:07:42   • electron-rebuild not required if you use electron-builder, please consider to remove excess dependency from devDependencies
13:07:42 
13:07:42 To ensure your native dependencies are always matched electron version, simply add script `"postinstall": "electron-builder install-app-deps" to your `package.json`
13:07:48   • rebuilding native production dependencies platform=darwin arch=x64
13:08:01   • packaging       platform=darwin arch=x64 electron=4.1.2 appOutDir=dist/mac
13:08:30   • signing         file=dist/mac/Buzz.app identityName=Developer ID Application: Domo, Inc. (UT) (WU68TQFWSR) identityHash=060B0FB98CFCC29D3CBE24EF5966C441F22DE687 provisioningProfile=none
13:09:15   • building        target=macOS zip arch=x64 file=dist/Buzz-2.0.0-mac.zip
13:09:15   • building        target=DMG arch=x64 file=dist/Buzz-2.0.0.dmg
13:10:43 Error: Cannot cleanup: 
13:10:43 
13:10:43 Error #1 --------------------------------------------------------------------------------
13:10:43 Error: Exit code: 2. Command failed: /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/node_modules/7zip-bin/mac/7za a -bd -mx=7 -mtc=off -mm=Deflate -mcu /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/dist/Buzz-2.0.0-mac.zip Buzz.app
13:10:43 
13:10:43 
13:10:43 System ERROR:
13:10:43 E_FAIL
13:10:43 
13:10:43 
13:10:43 7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
13:10:43 p7zip Version 16.02 (locale=utf8,Utf16=on,HugeFiles=on,64 bits,4 CPUs x64)
13:10:43 
13:10:43 Scanning the drive:
13:10:43 143 folders, 179 files, 1514135871 bytes (1444 MiB)
13:10:43 
13:10:43 Creating archive: /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/dist/Buzz-2.0.0-mac.zip
13:10:43 
13:10:43 Items to compress: 322
13:10:43 
13:10:43 
13:10:43 
13:10:43 
13:10:43 System ERROR:
13:10:43 E_FAIL
13:10:43 
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/node_modules/builder-util/src/util.ts:127:16
13:10:43     at ChildProcess.exithandler (child_process.js:298:5)
13:10:43     at ChildProcess.emit (events.js:182:13)
13:10:43     at maybeClose (internal/child_process.js:961:16)
13:10:43     at Socket.stream.socket.on (internal/child_process.js:380:11)
13:10:43     at Socket.emit (events.js:182:13)
13:10:43     at Pipe._handle.close (net.js:598:12)
13:10:43 From previous event:
13:10:43     at _archive (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/out/targets/archive.js:226:19)
13:10:43     at archive (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/out/targets/archive.js:198:19)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/targets/ArchiveTarget.ts:58:13
13:10:43     at Generator.next (<anonymous>)
13:10:43 From previous event:
13:10:43     at ArchiveTarget.build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/targets/ArchiveTarget.ts:16:44)
13:10:43     at Function.buildAsyncTargets (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/platformPackager.ts:139:36)
13:10:43     at MacPackager.packageInDistributableFormat (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/platformPackager.ts:118:24)
13:10:43     at nonMasPromise.then.then (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/macPackager.ts:90:26)
13:10:43     at runCallback (timers.js:696:18)
13:10:43     at tryOnImmediate (timers.js:667:5)
13:10:43     at processImmediate (timers.js:649:5)
13:10:43 From previous event:
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/macPackager.ts:90:10
13:10:43     at Generator.next (<anonymous>)
13:10:43 From previous event:
13:10:43     at MacPackager.pack (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/macPackager.ts:80:95)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:375:24
13:10:43     at Generator.next (<anonymous>)
13:10:43     at xfs.stat (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/node_modules/fs-extra/lib/mkdirs/mkdirs.js:56:16)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/graceful-fs/polyfills.js:285:20
13:10:43     at FSReqWrap.oncomplete (fs.js:159:5)
13:10:43 From previous event:
13:10:43     at Packager.doBuild (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:343:39)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:313:57
13:10:43 From previous event:
13:10:43     at Packager._build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:284:133)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:280:23
13:10:43     at Generator.next (<anonymous>)
13:10:43     at runCallback (timers.js:696:18)
13:10:43     at tryOnImmediate (timers.js:667:5)
13:10:43     at processImmediate (timers.js:649:5)
13:10:43 From previous event:
13:10:43     at Packager.build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:237:14)
13:10:43     at build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/index.ts:58:28)
13:10:43     at build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/electron-builder/src/builder.ts:227:10)
13:10:43     at then (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/electron-builder/src/cli/cli.ts:46:19)
13:10:43 
13:10:43 Error #2 --------------------------------------------------------------------------------
13:10:43 Error: hdiutil exited with code 1
13:10:43     at ChildProcess.childProcess.once.code (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/dmg-builder/node_modules/builder-util/src/util.ts:253:14)
13:10:43     at Object.onceWrapper (events.js:273:13)
13:10:43     at ChildProcess.emit (events.js:182:13)
13:10:43     at maybeClose (internal/child_process.js:961:16)
13:10:43     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
13:10:43 From previous event:
13:10:43     at DmgTarget.build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/dmg-builder/src/dmg.ts:21:42)
13:10:43     at Function.buildAsyncTargets (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/platformPackager.ts:139:36)
13:10:43     at MacPackager.packageInDistributableFormat (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/platformPackager.ts:118:24)
13:10:43     at nonMasPromise.then.then (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/macPackager.ts:90:26)
13:10:43     at runCallback (timers.js:696:18)
13:10:43     at tryOnImmediate (timers.js:667:5)
13:10:43     at processImmediate (timers.js:649:5)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/node_modules/builder-util/src/util.ts:127:16
13:10:43     at ChildProcess.exithandler (child_process.js:298:5)
13:10:43     at ChildProcess.emit (events.js:182:13)
13:10:43     at maybeClose (internal/child_process.js:961:16)
13:10:43     at Socket.stream.socket.on (internal/child_process.js:380:11)
13:10:43     at Socket.emit (events.js:182:13)
13:10:43     at Pipe._handle.close (net.js:598:12)
13:10:43     at _archive (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/out/targets/archive.js:226:19)
13:10:43     at archive (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/out/targets/archive.js:198:19)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/targets/ArchiveTarget.ts:58:13
13:10:43     at Generator.next (<anonymous>)
13:10:43     at ArchiveTarget.build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/targets/ArchiveTarget.ts:16:44)
13:10:43     at Function.buildAsyncTargets (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/platformPackager.ts:139:36)
13:10:43     at MacPackager.packageInDistributableFormat (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/platformPackager.ts:118:24)
13:10:43     at nonMasPromise.then.then (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/macPackager.ts:90:26)
13:10:43     at runCallback (timers.js:696:18)
13:10:43     at tryOnImmediate (timers.js:667:5)
13:10:43     at processImmediate (timers.js:649:5)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/macPackager.ts:90:10
13:10:43     at Generator.next (<anonymous>)
13:10:43     at MacPackager.pack (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/macPackager.ts:80:95)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:375:24
13:10:43     at Generator.next (<anonymous>)
13:10:43     at xfs.stat (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/node_modules/fs-extra/lib/mkdirs/mkdirs.js:56:16)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/graceful-fs/polyfills.js:285:20
13:10:43     at FSReqWrap.oncomplete (fs.js:159:5)
13:10:43     at Packager.doBuild (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:343:39)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:313:57
13:10:43     at Packager._build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:284:133)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:280:23
13:10:43     at Generator.next (<anonymous>)
13:10:43     at runCallback (timers.js:696:18)
13:10:43     at tryOnImmediate (timers.js:667:5)
13:10:43     at processImmediate (timers.js:649:5)
13:10:43     at Packager.build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:237:14)
13:10:43     at build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/index.ts:58:28)
13:10:43     at build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/electron-builder/src/builder.ts:227:10)
13:10:43     at then (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/electron-builder/src/cli/cli.ts:46:19)
13:10:43     at ChildProcess.childProcess.once.code (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/dmg-builder/node_modules/builder-util/src/util.ts:253:14)
13:10:43     at Object.onceWrapper (events.js:273:13)
13:10:43     at ChildProcess.emit (events.js:182:13)
13:10:43     at maybeClose (internal/child_process.js:961:16)
13:10:43     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
13:10:43     at DmgTarget.build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/dmg-builder/src/dmg.ts:21:42)
13:10:43     at Function.buildAsyncTargets (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/platformPackager.ts:139:36)
13:10:43     at MacPackager.packageInDistributableFormat (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/platformPackager.ts:118:24)
13:10:43     at nonMasPromise.then.then (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/macPackager.ts:90:26)
13:10:43     at runCallback (timers.js:696:18)
13:10:43     at tryOnImmediate (timers.js:667:5)
13:10:43     at processImmediate (timers.js:649:5)
13:10:43     at throwError (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/node_modules/builder-util/src/asyncTaskManager.ts:90:11)
13:10:43     at checkErrors (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/node_modules/builder-util/src/asyncTaskManager.ts:53:9)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/node_modules/builder-util/src/asyncTaskManager.ts:67:7
13:10:43 From previous event:
13:10:43     at AsyncTaskManager.awaitTasks (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/node_modules/builder-util/src/asyncTaskManager.ts:44:19)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:387:23
13:10:43 From previous event:
13:10:43     at Packager.doBuild (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:343:39)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:313:57
13:10:43 From previous event:
13:10:43     at Packager._build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:284:133)
13:10:43     at /Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:280:23
13:10:43     at Generator.next (<anonymous>)
13:10:43     at runCallback (timers.js:696:18)
13:10:43     at tryOnImmediate (timers.js:667:5)
13:10:43     at processImmediate (timers.js:649:5)
13:10:43 From previous event:
13:10:43     at Packager.build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/packager.ts:237:14)
13:10:43     at build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/app-builder-lib/src/index.ts:58:28)
13:10:43     at build (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/electron-builder/src/builder.ts:227:10)
13:10:43     at then (/Users/jenkins/node/workspace/one-off-builds/BuzzDesktop/BuzzMac/node_modules/electron-builder/src/cli/cli.ts:46:19)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
emile-fcommented, Feb 10, 2020

A solution that worked for me is not setting the artifactName. When I removed the name the build finishes correctly.

0reactions
pguptcommented, Feb 10, 2020

@emile-f I have not mentioned artifactName in package.json.

Thanks for taking time to reply. appreciate it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix: Unable to Expand Zip File on Mac - Appuals.com
Method 1: Unzip File by Using Terminal · Hold Command and Press Space to open Spotlight, type Terminal to search and Enter ·...
Read more >
How to Solve Unable to Expand Zip File on Mac?
Are you unable to expand Zip files on Mac? Don't worry! Check the reasons that caused this error occurs and the best solutions...
Read more >
Open .7z files on a Mac | OSXDaily
First off, a .7z file is an archive format that stands for 7-zip, you can think of it like any other archive file....
Read more >
How can I unpack .7z files via MacOS terminal? - Ask Different
I have 7zip installed as well. Unfortunately, it said that the archive is damaged and failed to extract the file. Tried installing 7za...
Read more >
Is there a program out there that will repair .zip files in OS x?
Try downloading the file again. It's possible the file was corrupted on download and is missing data which cannot be replaced with a...
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