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

Release 3.10.0 fails depending on the file system permissions #306

Open
adriantrunzo opened this issue Oct 24, 2024 · 7 comments
Open

Release 3.10.0 fails depending on the file system permissions #306

adriantrunzo opened this issue Oct 24, 2024 · 7 comments

Comments

@adriantrunzo
Copy link

adriantrunzo commented Oct 24, 2024

Description

I've started seeing the following failures with the latest release:

✘ [ERROR] EACCES: permission denied, mkdir '/opt/wranglerArtifacts'

The failures started at the same time as the 3.10.0 release. Indeed, that release references the /opt/wranglerArtifacts directory: 3ec7f89#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R317.

I do not have the ability to change permissions in these runners. Setting WRANGLER_OUTPUT_FILE_DIRECTORY didn't have any effect.

Expected Behavior

No failure.

Possible Solution

  • Simply ignore the new functionality if a file system error occurs
  • Add a configuration option for the output directory
  • Use WRANGLER_OUTPUT_FILE_DIRECTORY
@JadCham
Copy link

JadCham commented Oct 24, 2024

I was about to submit an issue for the exact same error.

Workaround
Pin version to cloudflare/[email protected]

What we tried
Pinning wranglerVersion only to 3.78.10 in order to get around the DEFAULT_WRANGLER_VERSION bump but that did not work.
https://github.com/cloudflare/wrangler-action/pull/303/files#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80L19

Which points to the issue being in the action only as @adriantrunzo mentioned 3ec7f89#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R317

@adriantrunzo
Copy link
Author

Thanks for sharing what you tried @JadCham. I tried with the latest version of wrangler, 3.12.0, in addition to an older one like you did.

I can also confirm that pinning the version to 3.9.0 is the workaround.

@kashalls
Copy link

Running into this issue with self-hosted runner's as well.

🚀 Running Wrangler Commands
  /home/runner/_work/_tool/node/18.20.4/x64/bin/npx wrangler pages deploy --project-name=kubernetes-schemas --branch main .
  ✘ [ERROR] EACCES: permission denied, mkdir '/opt/wranglerArtifacts'

@brianzhou13
Copy link

+1

1 similar comment
@BRAVO68WEB
Copy link

+1

@kashalls
Copy link

Updated to v3.11.0, issue "fixed"

@BRAVO68WEB
Copy link

GG

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

5 participants