Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hdiutil failures block building macOS versions #7137

Closed
Nokel81 opened this issue Sep 14, 2022 · 6 comments
Closed

hdiutil failures block building macOS versions #7137

Nokel81 opened this issue Sep 14, 2022 · 6 comments

Comments

@Nokel81
Copy link
Contributor

Nokel81 commented Sep 14, 2022

  • Electron-Builder Version: 23.3.3
  • Node Version: 16.11.59
  • Electron Version: 19.0.16
  • Electron Type (current, beta, nightly): current
  • Target: macOS 11

Similar to #4606

While running on github actions we very often run into the following error:

Exit code: 16. Command failed: hdiutil detach -force /dev/disk2
hdiutil: couldn't eject "disk2" - Resource busy

hdiutil: couldn't eject "disk2" - Resource busy
  failedTask=build stackTrace=Error: Exit code: 16. Command failed: hdiutil detach -force /dev/disk2
hdiutil: couldn't eject "disk2" - Resource busy

If I rerun it then it generally passes but that wastes times.

@mmaietta
Copy link
Collaborator

I don't think we have a way for determining if the resource is still busy, we simply can't move forward with the rest of the build process.
We already retry ejecting the dmg 3 times.

@roryabraham
Copy link
Contributor

We also encountered this in electron-builder 23.5.0

@roryabraham
Copy link
Contributor

roryabraham commented Jun 6, 2023

Also experiencing the same thing in 24.4.0 w/ macos-12

@roryabraham
Copy link
Contributor

Created #7600 to attempt to resolve this issue.

@mmaietta
Copy link
Collaborator

Released 24.5.0

@doyeonOh
Copy link

electron: 26.6.2
electron-builder: 24.9.4

I had the same error, so I searched all the related information and searched for a week.

And I solved it in the following way.

  • After booting into Mac safe mode, the build was completed normally.
    (My case is suspected to be either antivirus or Office Keeper)

Hope it helps someone...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants