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

macOS EACCES: permission denied, open '/var/folders/...' #7994

Open
skident opened this issue Jan 19, 2024 · 3 comments
Open

macOS EACCES: permission denied, open '/var/folders/...' #7994

skident opened this issue Jan 19, 2024 · 3 comments
Labels

Comments

@skident
Copy link

skident commented Jan 19, 2024

"electron-builder": "^23.3.3",

node v18.15.0

"electron": "^25.9.8",

macOS

During the building process the electron-builder exits with an error 'EACCES: permission denied', so eventually it cannot create a temp folder but there weren't any changes in build scripts and it just started occurring.
Logs:

19-Jan-2024 14:01:32 | • packaging       platform=darwin arch=arm64 electron=25.9.8 appOutDir=dist/mac-universal--arm64
-- | --
19-Jan-2024 14:01:39 | • packaging       platform=darwin arch=universal electron=25.9.8 appOutDir=dist/mac-universal
19-Jan-2024 14:02:04 | ⨯ EACCES: permission denied, open '/var/folders/yk/3b0gcr5j4fv7hf40s2qflfgw0000gp/T/electron-universal-dy58dV/Tmp.app/Contents/Resources/app.asar.unpacked/node_modules/@serialport/bindings/build/node_gyp_bins/python3'  failedTask=build stackTrace=Error: EACCES: permission denied, open '/var/folders/yk/3b0gcr5j4fv7hf40s2qflfgw0000gp/T/electron-universal-dy58dV/Tmp.app/Contents/Resources/app.asar.unpacked/node_modules/@serialport/bindings/build/node_gyp_bins/python3'
19-Jan-2024 14:02:04 | Failing task since return code of [/bin/sh /User/agent-home/temp/ScriptBuildTask-4296830561218924952.sh] was 1 while expected 0
19-Jan-2024 14:02:04 | Finished task 'build' with result: Failed
@mmaietta
Copy link
Collaborator

Did something change with your OS/node versions or CI runner?
Seems odd that a system-related issue would appear without changing the electron-builder version either

@skident
Copy link
Author

skident commented Jan 23, 2024

No, there were no significant changes in code or environment like you mentioned. I have tried to use a custom tmp folder location but it didn't help, the error remained the same. Other than that I ran the build with a more detailed build logs but it didn't give more context about the error.
Is there any documentation which mentions in which cases the tmp folder could be used?

Copy link
Contributor

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants