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

Azure Blockchain Workbench container registry throwing Unauthorized #238

Open
vermaaditya opened this issue Sep 15, 2020 · 10 comments
Open
Assignees

Comments

@vermaaditya
Copy link

Hi Team,

We have deployed a brand new version of the Azure Blockchain workbench on our Azure Subscription.
On the day of provisioning the services, everything was working fine and the API as well as the Workbench dashboard was working fine.
But after 3-4 days, when visiting back the workbench, the below error is what we encounter -
image

when looking into the docker logs, below is what I see -

2020-09-15T00:02:39.011Z ERROR - Image pull failed: Verify docker image configuration and credentials (if using private repository) 2020-09-15T00:02:39.024Z INFO - Stopping site pocblkchainsept-2gtmxa-api because it failed during startup. 2020-09-15T00:07:38.419Z INFO - Pulling image from Docker hub: blockchainworkbenchprod.azurecr.io/appbuilder.api:1.8.1 2020-09-15T00:07:38.990Z ERROR - DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Get https://blockchainworkbenchprod.azurecr.io/v2/appbuilder.api/manifests/1.8.1: unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information."}

The similar issue was reported in the link - https://social.msdn.microsoft.com/Forums/en-US/5233adb9-efe8-4f23-94d1-1b6706007beb/azure-blockchain-workbench-container-registry?forum=opensourcedevwithazure but there are no resolutions / workarounds.

Kindly provide inputs.

@vermaaditya
Copy link
Author

adding @venbhavip to the loop from my team.

@vermaaditya
Copy link
Author

@mmercuri - will it be possible for you to pitch in here?

@caleteeter
Copy link
Contributor

Thanks @vermaaditya , I am looking into this now.

@caleteeter caleteeter self-assigned this Sep 16, 2020
@caleteeter
Copy link
Contributor

@vermaaditya this is working currently, just did a fresh deployment. Is your instance still broken? Maybe restart your VM scale set?

@caleteeter caleteeter added the question Further information is requested label Sep 16, 2020
@vermaaditya
Copy link
Author

vermaaditya commented Sep 16, 2020

@caleteeter - the old instance for which i have provided the screenshot and logs is deleted as it was unusable, and was being billed against our subscription.
We have created a fresh instance today some 6 hours back.

@caleteeter
Copy link
Contributor

Think we need to investigate the ACR that holds these images to see what was up there, intermittently not available. Keep this issue open for feedback and resolution for this.

@caleteeter caleteeter removed the question Further information is requested label Sep 16, 2020
@vermaaditya
Copy link
Author

vermaaditya commented Sep 16, 2020

Screenshot of the container settings tab on Web as well as API -
image

Dont know how the app is working right now. Is it something to do with caching ?
Please let me know if we can have a quick call to understand this ?

@caleteeter
Copy link
Contributor

I don't believe this is an caching issue, but rather the fact that an image was attempted to be pulled that should exist but didn't at the time of this screenshot. Following up internal here.

@sudobenny
Copy link

Has there been any solution on this issue? I'm getting the same " :( Application Error" after 2 days of the blockchain workbench app working. I'm not sure what to do except delete the resource group and redeploy Blockchain Workbench and try again. Thanks
ERROR:
2020-11-04T01:18:35.088Z ERROR - Image pull failed: Verify docker image configuration and credentials (if using private repository)
2020-11-04T01:18:35.099Z INFO - Stopping site infloblockchain-klr6up because it failed during startup.
2020-11-04T01:19:06.018Z INFO - Pulling image from Docker hub: blockchainworkbenchprod.azurecr.io/webapp:1.8.1
2020-11-04T01:19:06.224Z ERROR - DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Get https://blockchainworkbenchprod.azurecr.io/v2/webapp/manifests/1.8.1: unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information."}
https://docs.microsoft.com/en-ca/azure/container-registry/container-registry-auth-service-principal

@vermaaditya
Copy link
Author

@sudobenny - check comment from @caleteeter on Sept 16th. The actual resolution isnt provided as such. For me it stopped reproducing after it was reported here.

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

No branches or pull requests

3 participants