docker login crg.apkg.io/rmituniversity/alz-iac-deploy -u user-email
When I try to push images
uelz-deployment-pipeline % docker push crg.apkg.io/rmituniversity/alz-iac-deploy:latest
The push refers to repository [crg.apkg.io/rmituniversity/alz-iac-deploy]
4d259e149220: Preparing
dffb3ad77836: Preparing
ebb83fe39ef8: Preparing
4a7caa5ea194: Preparing
c5ac12e764b6: Preparing
09276cfb9100: Waiting
9dc0e37e3f6d: Waiting
5f70bf18a086: Waiting
8760046bd5c1: Waiting
ea1e85f185a0: Waiting
fd60710b96d7: Waiting
a1d4b8c8cf4f: Waiting
59b223680ef9: Waiting
denied: requested access to the resource is denied
can you help me why?
Thank you for testing out Bitbucket Packages and reporting the issue you experienced.
After tracing through the logs, we noticed that you used an API token without any scopes. Can you try creating a new API token with the `read:package:bitbucket` and `write:package:bitbucket` scopes? Then use that token to interact with Bitbucket's container registry.
Let me know if you encounter any other issues.
Kind regards,
Joshua
hello @Joshua Tang
thanks. It worked after I added scope token with read:package:bitbucket` and `write:package:bitbucket`.
I was able to push the image after setting
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The configuration you have defined there should be sufficient to allow the Pipelines runner to pull the image. Are you able to confirm if you're setting the correct value in the $API_TOKEN variable? I was able to reproduce the error message you got when I set an invalid API token so wonder if this is the same issue you're experiencing.
Kind regards,
Joshua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hello @Joshua Tang
I was able to build and push the image using step
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've check our access logs and it's showing that you've provided invalid credentials which resulted in the 401 error you're seeing.
Are the push and pull pipelines steps you shared running in the same repository with the same ATLASSIAN_EMAIL and API_TOKEN variables setup?
If we need to debug this further, can you raise a support ticket with us so that we can look into your instance and your setup?
Kind regards,
Joshua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Joshua Tang
Yes. They are just 2 steps in the same pipeline file. I can add that full file if you want.
sequence is first stage pushes the image and after a few scan stages, I am using this image using the same credentials
I am happy to create a new support ticket. Could you guide me on how to raise that ticket
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay maybe it's easier to look into your instance at this point as I can't reproduce the issue you're experiencing. You can raise a support ticket at https://support.atlassian.com/contact/ and link this community post. Then the support team should redirect the request to me to look into it further.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am having this same issue. The docker login is successful. I have the API Token given both package read and write permissions, but fails to successfully push to the package resource.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Curtis
Thank you for testing out Bitbucket Packages too. Our support team will be reaching out for more details about your Bitbucket workspace so we can trace through the logs in our systems.
Kind regards,
Joshua
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.