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

actions/deploy-pages v2 failing with HttpError: Invalid artifact url #225

Closed
matthewfeickert opened this issue Sep 22, 2023 · 42 comments
Closed
Assignees
Labels
incident Service incident or outage

Comments

@matthewfeickert
Copy link

Hi. I have a GitHub Pages deployement workflow (at https://github.com/matthewfeickert/chep-2023-proceedings-software-citation) that worked 5 hours ago and now with no changes to the GitHub Actions workflow

...

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
  contents: read
  pages: write
  id-token: write

...

jobs:

...

  deploy:
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    runs-on: ubuntu-latest
    needs: [build]

    steps:
    - name: Setup Pages
      uses: actions/configure-pages@v3

...

    - name: Upload artifact
      uses: actions/upload-pages-artifact@v2

    - name: Deploy to GitHub Pages
      id: deployment
      uses: actions/deploy-pages@v2

actions/upload-pages-artifact@v2 is succeeding (as expected)

With the provided path, there will be 1 file uploaded
Starting artifact upload
For more detailed logs during the artifact upload process, enable step-debugging: https://docs.github.com/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging#enabling-step-debug-logging
Artifact name is valid!
Container for artifact "github-pages" successfully created. Starting upload of file(s)
Total size of all the files uploaded is 91038 bytes
File upload process has finished. Finalizing the artifact upload
Artifact has been finalized. All files have been successfully uploaded!

The raw size of all the files that were specified for upload is 102400 bytes
The size of all the files that were uploaded is 91038 bytes. This takes into account any gzip compression used to reduce the upload size, time and storage

Note: The size of downloaded zips can differ significantly from the reported size. For more information see: https://github.com/actions/upload-artifact#zipped-artifact-downloads 

Artifact github-pages has been successfully uploaded!

but then actions/deploy-pages@v2 is failing with

Artifact exchange URL: https://pipelinesghubeus7.actions.githubusercontent.com/MRRFg7wazEjuUfP6wl9C860DSXHdL0R9UvtunX1JdvJ7cAPJoH/_apis/pipelines/workflows/6275317421/artifacts?api-version=6.0-preview
Creating Pages deployment with payload:
{
	"artifact_url": "https://pipelinesghubeus7.actions.githubusercontent.com/MRRFg7wazEjuUfP6wl9C860DSXHdL0R9UvtunX1JdvJ7cAPJoH/_apis/pipelines/1/runs/6/artifacts?artifactName=github-pages&%24expand=SignedContent",
	"pages_build_version": "342dcb9c508e0f873196d0c332e98c7ac6852dfd",
	"oidc_token": "***"
}
Error: Creating Pages deployment failed
Error: HttpError: Invalid artifact url
    at /home/runner/work/_actions/actions/deploy-pages/v2/webpack:/deploy-pages/node_modules/@octokit/request/dist-node/index.js:86:1
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at createPagesDeployment (/home/runner/work/_actions/actions/deploy-pages/v2/webpack:/deploy-pages/src/internal/api-client.js:126:1)
    at Deployment.create (/home/runner/work/_actions/actions/deploy-pages/v2/webpack:/deploy-pages/src/internal/deployment.js:80:1)
    at main (/home/runner/work/_actions/actions/deploy-pages/v2/webpack:/deploy-pages/src/index.js:30:1)
Error: Error: Failed to create deployment (status: 400) with build version 342dcb9c508e0f873196d0c332e98c7ac6852dfd. Responded with: Invalid artifact url

https://www.githubstatus.com/ is also not currently showing any degraded performance.

Does anyone know what broke?

@jameschensmith
Copy link

I'm experiencing this issue as well. Not sure if this helps, but I noticed the base URL has changed:

  • Successful pipeline: https://pipelines.actions.githubusercontent.com
  • Failed pipeline: https://pipelinesghubeus7.actions.githubusercontent.com

@GlobalMin
Copy link

Experiencing as well and linking to large thread where we have 20 or so confirmations and growing.

https://github.com/orgs/community/discussions/67961

@Bluefissure
Copy link

I think it is a server-side issue, I checked the log of previous successful runs and github was returning the https://pipelines.actions.githubusercontent.com as artifact raw url. Starting earlier today the returned url was changed to the mirror sites, which causes it to be invalid.

@viac92
Copy link

viac92 commented Sep 22, 2023

The last successful deployment of my website was 1 hour ago 16pm CEST, after that I tried few minutes later but every attempts failed.

@rtvkiz
Copy link

rtvkiz commented Sep 22, 2023

Facing same issue, not able to deploy anything to github pages, the artifact url states:

"typeName": "Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server",
    "typeKey": "UnauthorizedRequestException"

@GlobalMin
Copy link

@JamesMGreene looks like you maintain this repo

@ghkdqhrbals
Copy link

There appears to be a permissions issue with the new request URL https://pipelinesghebeus7.actions.githubusercontent.com.

When I checked the URL above, it said The user 'System:PublicAccess;aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not Authorized. From my point of view, System:PublicAccess;aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa is not a common view. So, this access ID has been merged incorrectly.

@dgarcu
Copy link

dgarcu commented Sep 22, 2023

I have experienced problems too. I have also commented on the mentioned thread.

@kstiehl
Copy link

kstiehl commented Sep 22, 2023

We have the same issue here

@v8-j
Copy link

v8-j commented Sep 22, 2023

And me

@akoroliova
Copy link

Upvoting, hope this is fixed soon

@jonjoncardoso
Copy link

Same problem here!

@dahmani-karim
Copy link

Hi ! Same error in my workflow, invalid artifact url errors stop the publish action

@ChrisHammond
Copy link

+1

@mlettini
Copy link

Same

@Ew4n1011
Copy link

Upvoting, same error on my workflow, hopefully fixed soon

@tomfrancis-2211
Copy link

same error is it looking like a server problem?

@JamesMGreene
Copy link
Contributor

JamesMGreene commented Sep 22, 2023

I'll start investigating. Guessing an upstream change rolled out today. 😓
Thanks for raising our awareness! 🙇🏻

@Aripander088e2
Copy link

Okay so it is not just me lol

@tomfrancis-2211
Copy link

tomfrancis-2211 commented Sep 22, 2023 via email

@Aripander088e2
Copy link

Could it be that I was pushing tens of commits out in a short span using the pages

@NadyaNayme
Copy link

Could it be that I was pushing tens of commits out in a short span using the pages

I started a new repo with a single commit for the purpose of deploying it through Pages and encountered this issue. As others have investigated - it looks like the new request URL broke things.

@matthewfeickert
Copy link
Author

I think it is safe to say that this is already under investiagation by teams at GitHub (thanks for moving on this fast 🙏), so I think we can all hold tight and wait until things have been resolved.

@ChrisHammond
Copy link

I think it is safe to say that this is already under investiagation by teams at GitHub (thanks for moving on this fast 🙏), so I think we can all hold tight and wait until things have been resolved.

until I see proof I don't believe! :D

@JamesMGreene
Copy link
Contributor

Update: We have identified the issue internally. It is indeed related to an upstream rollout. We'll get the Pages deployment creation endpoint patched ASAP today to handle the new URL patterns. 👍🏻 I'll let you all know when it has shipped but it will probably be a few hours.

@ChrisHammond
Copy link

Update: We have identified the issue internally. It is indeed related to an upstream rollout. We'll get the Pages deployment creation endpoint patched ASAP today to handle the new URL patterns. 👍🏻 I'll let you all know when it has shipped but it will probably be a few hours.

I believe!

@T313C0mun1s7
Copy link

T313C0mun1s7 commented Sep 22, 2023

@JamesMGreene It would be a good idea to update the status page. The first troubleshooting step says to check that thing, and to all appearances everything is good. So you have hundreds if not thousands of users assuming this is an issue on their end.

@ahsanjb
Copy link

ahsanjb commented Sep 22, 2023

:(

@v8-j
Copy link

v8-j commented Sep 22, 2023

@JamesMGreene It would be a good idea to update the status page. The first troubleshooting step says to check that thing, and to all appearances everything is good. So you have hundreds if not thousands of users assuming this is an issue on their end.

My keyboard is banana shaped now

@JamesMGreene
Copy link
Contributor

@T313C0mun1s7 Very true. I was trying to establish the actual impact first, which should not be affecting all users as I currently understand it. I've set Pages to status yellow 🟡 now. 👍🏻

@jellyfishstar
Copy link

I want to cry

@T313C0mun1s7
Copy link

@JamesMGreene I literally have a README.md and an extremely simple 10 line index.html, and it is just in the root of my main branch.

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Mastodon Verification for T313C0mun1s7</title>
  </head>
  <body>
    <a rel="me" href="https://fosstodon.org/@T313C0mun1s7">https://fosstodon.org/@T313C0mun1s7</a>
  </body>
</html>

So if it is affecting me, I assumed it affected everyone.

@MdNData
Copy link

MdNData commented Sep 22, 2023

Same issue hopefully the guys are taking care of it! :)

@steliancardos
Copy link

It-s not working for me either, i only have a index file and it just throws the following errors:
Error: Creating Pages deployment failed
Error: HttpError: Invalid artifact url

@T313C0mun1s7
Copy link

Status page just went back to green - It is fixed I presume?

@v8-j
Copy link

v8-j commented Sep 22, 2023

It is fixed :)

@T313C0mun1s7
Copy link

Verified, working for me as well.

@Ew4n1011
Copy link

Yeah, works for me too.

@ericleirosario
Copy link

Problema corrigido !

@cldwalker
Copy link

Works for me too. Thanks @JamesMGreene!

@JamesMGreene
Copy link
Contributor

JamesMGreene commented Sep 22, 2023

So if it is affecting me, I assumed it affected everyone.

@T313C0mun1s7 Unfortunately, it has nothing to due with a site's complexity, just which artifact servers it ended up using.


Yes, we're back to status green 🟢: https://www.githubstatus.com/incidents/4ypqyv8zbrck

Nearly everyone should be able to successfully create Pages deployments as before, though the last very small slice of users should be fixed in the next hour or so when my internal pull request gets deployed to fully cover the situation.

Thanks to all for your reporting and patience. This one admittedly caught us by surprise, so we'll be sure to improve our monitoring configurations. ❤️

@jpzwolak
Copy link

works for me now!

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

No branches or pull requests