Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

gcloud artifacts docker upgrade migrate issue

Hi there!

I am trying to migrate my container registry to artifact registry. I get the following error when running 

"gcloud artifacts docker upgrade migrate".

Screenshot 2024-12-26 at 10.57.10.png

 I run the command given in the error and then rerun the first command, but I still get the same error message. I would appreciate any help on this! 

Thanks in advance!

Solved Solved
0 2 941
1 ACCEPTED SOLUTION

Hi @ChelseaBright,

Welcome to Google Cloud Community!

Based on the error you've encountered, the storage.objectViewer role is missing from your service account. This role is required to access Artifact Registry images. If you have tried running the provided command, note that it may take a few minutes for the changes to be propagated. If the issue persists, you may try adding this role using the Google Cloud Console UI then try to re-run the command.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

View solution in original post

2 REPLIES 2

Hi @ChelseaBright,

Welcome to Google Cloud Community!

Based on the error you've encountered, the storage.objectViewer role is missing from your service account. This role is required to access Artifact Registry images. If you have tried running the provided command, note that it may take a few minutes for the changes to be propagated. If the issue persists, you may try adding this role using the Google Cloud Console UI then try to re-run the command.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.

Dear Cassandra,

Thank you very much for your response! It worked by adding storage.objectViewer role in the console.