-
Notifications
You must be signed in to change notification settings - Fork 79
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
Getting deployment_perms_error
when trying to run this action since June 16
#188
Comments
We get this too, opened up a PR to bump to v2 but sad that this seems like it would not fix it. Did you by chance find a workaround? |
@onbjerg I could not. The error is about permissions, so I tried adding more permissions that maybe could have been related (specifically I tried |
Hitting the endpoint manually using {
"status": ""
} which is a bit odd. The deployments do show up under the "Environments" tab of the repository as well, all marked as failed, even though you can explore the deployments and they seem to look fine 🤷🏻♂️ I did this to test: gh api /repos/<owner>/<repo>/deployments
# use the latest deployment id
gh api /repos/<owner>/<repo>/pages/deployments/<id> This seems to follow what the action itself does |
I've just checked in my repo, and the deployment does not update - I'm still getting the ones from the last successful deploy from before June 16. But the "Last deployed" in the "GitHub Pages" setting does update. |
I am encountering the same issue: failing job. |
Same here. Begin to fail from 2 days ago also
Is there anywhere I can find details about the "incorrect file permissions"? Originally posted by @DCNick3 in #187 (comment) |
cc @tsusdere |
👋 there is a README updated today. You can use the similar command to troubleshooting the incorrect file permissions :) |
Apologies for not getting the documentation published on time. If you get a permissions issue, that means your artifacts are not in the form we expect. You can fix that with an extra step, see https://github.com/actions/upload-pages-artifact#file-permissions (as per @YiMysty above 🙇). We used to proactively fix permissions on your behalf but for many sites (with lots of files), that would delay Pages deployments by a lot and not be needed. We decided to just surface the error slightly better and document a mitigation step. Also note that this typically only happens if you have a custom workflow (dockers builds can be impacted). |
Hopefully that was just it, although I feel like this should have been a breaking version bump on |
It worked! Just a note here from me, turns out that the only file with incorrect permissions for my Rust based project was the |
That did the trick. |
The website deployment action has been failing lately. Looking at the issue, it seems to be related to actions/deploy-pages#188 that is due to https://github.com/actions/upload-pages-artifact#file-permissions.
The website deployment action has been failing lately. Looking at the issue, it seems to be related to actions/deploy-pages#188 that is due to https://github.com/actions/upload-pages-artifact#file-permissions.
Fixes #517. Relates to actions/deploy-pages#188
See actions/deploy-pages#188 (comment) for more details. This will avoid timeouts like this: Getting Pages deployment status... Current status: deployment_perms_error Getting Pages deployment status... Current status: deployment_perms_error Error: Timeout reached, aborting! Error: Timeout reached, aborting!
See actions/deploy-pages#188 (comment) for more details. This will avoid timeouts like this: Getting Pages deployment status... Current status: deployment_perms_error Getting Pages deployment status... Current status: deployment_perms_error Error: Timeout reached, aborting! Error: Timeout reached, aborting!
Thanks everyone. It worked. Additionally, i added the following for my Rust project:
Maybe the final workflow file is more informative |
I found other users reporting a similar issue: actions/deploy-pages#188 The root cause seems to be that the deploy-pages action changed to stop correcting permissions problems in the upload since it was slowing down deployment. The recommended fix is to set the permissions before uploading the artifact. Let's see if this works.
I found other users reporting a similar issue: actions/deploy-pages#188 The root cause seems to be that the deploy-pages action changed to stop correcting permissions problems in the upload since it was slowing down deployment. The recommended fix is to set the permissions before uploading the artifact. Let's see if this works. Fixes #5376
I agree. I'm going to revert that change in the I'll drop an update here once that's cleaned up. |
The part that most concerns me now is that it sounds like the
We should still investigate and/or write a test for that scenario. 🧪 |
Ah, the repetitive error status polling until timing out was unfortunately a clerical error on our part: we had not yet published the latest release containing the changes from PR #187. If you update to use Such errors will need to be corrected before attempting to deploy, by doing something similar to one of the following:
|
Two days ago (June 16) this action stopped working. This is the first run where I've seen it fail - https://github.com/idanarye/bevy-yoleck/actions/runs/5293695779/jobs/9592352399.
When I look at the logs, I see these lines repeating 5 times after the
Created deployment for <...>, ID: <...>
log:And then these lines repeating over a hundred times:
Followed by:
Note that:
actions/deploy-pages@v2
, but the problem still repeats.So I think maybe something was changed in GitHub that either broke this action or caused it to require some additional configuration/permissions.
Note that six hours before that first failed run linked above I had a run that managed to pass and deploy the pages: https://github.com/idanarye/bevy-yoleck/actions/runs/5285227962/jobs/9563650017. So whatever changed probably happened during these six hours.
The text was updated successfully, but these errors were encountered: