Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Install mkdocs-material-insiders with docker leads to an insufficient_scope error #5170

Closed
2 tasks done
robingenz opened this issue Mar 8, 2023 · 1 comment
Closed
2 tasks done
Labels
documentation Issue concerns the documentation

Comments

@robingenz
Copy link
Sponsor Contributor

Description

I am trying to install mkdocs-material-insiders with Docker as described here.
I followed the steps exactly and after creating the GitHub release I get the following error message in the GitHub Actions workflow in the Publish Docker image step:

...
#37 exporting attestation manifest sha256:be81eefd5c44acc495e20f19a82a05d30f229cf128b02c673ddc9c9296cd487b 0.0s done
#37 ...

#38 [auth] robingenz/mkdocs-material-insiders:pull,push token for registry-1.docker.io
#38 DONE 0.0s

#37 exporting to image
#37 exporting manifest list sha256:db83a971881c921604296ee13b74c81098ae2c3667e1a1af0a379b1717d49ad3 done
#37 pushing layers
#37 ...

#39 [auth] robingenz/mkdocs-material-insiders:pull,push token for registry-1.docker.io
#39 DONE 0.0s

#40 [auth] robingenz/mkdocs-material-insiders:pull,push token for registry-1.docker.io
#40 DONE 0.0s

#41 [auth] robingenz/mkdocs-material-insiders:pull,push token for registry-1.docker.io
#41 DONE 0.0s

#42 [auth] robingenz/mkdocs-material-insiders:pull,push token for registry-1.docker.io
#42 DONE 0.0s

#37 exporting to image
#37 pushing layers 0.3s done
#37 ERROR: failed to push robingenz/mkdocs-material-insiders:9.1.1-insiders-4.32.2: server message: insufficient_scope: authorization failed
------
 > exporting to image:
------
ERROR: failed to solve: failed to push robingenz/mkdocs-material-insiders:9.1.1-insiders-4.32.2: server message: insufficient_scope: authorization failed
Error: buildx failed with: ERROR: failed to solve: failed to push robingenz/mkdocs-material-insiders:9.1.1-insiders-4.32.2: server message: insufficient_scope: authorization failed

Related links

Proposed change

No response

Before submitting

@robingenz robingenz added the documentation Issue concerns the documentation label Mar 8, 2023
@squidfunk
Copy link
Owner

Thanks for reporting. The error message is actually pretty clear – the access token has insufficient scopes. More specifically, the write:packages scope seems to be missing. Please note that you need to use a specific token, called GHCR_TOKEN – just in case you missed it. Additionally, please make sure that you really followed the steps outlined in the documentation, because this is what we all use successfully to build the Docker image. Specifically:

Converting to discussion, since this I'm confident that this is not an issue with our documentation.

Repository owner locked and limited conversation to collaborators Mar 9, 2023
@squidfunk squidfunk converted this issue into discussion #5171 Mar 9, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
documentation Issue concerns the documentation
Projects
None yet
Development

No branches or pull requests

2 participants