question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

unauthorized: authentication required when using ACR

See original GitHub issue

I am not able to run my C#-based IoT Edge Module on my Azure Ubuntu 18.04 VM because I see an InternalServiceError.

Expected Behavior

My C# IoT Edge Module should run on my Ubuntu VM

Current Behavior

When I run sudo journalctl -u iotedge I get this error message:

InternalServerError, content: Some(Object({"message": String("Get https://xyz.azurecr.io/v2/entrymodule/manifests/0.0.1-amd64: unauthorized: authentication required")})) })

Steps to Reproduce

  1. Configure an Ubuntu 18.04 Azure VM as described here
  2. Push an Azure IoT C# Module to the device using Visual Studio Code or Visual Studio 2017 as described here to ACR
  3. Deploy the module to the Edge device

Context (Environment)

Device (Host) Operating System

Ubuntu 16.04

Architecture

x86_64

Container Operating System

Linux Container

iotedged

iotedge 1.0.2

Edge Agent

1.0

Edge Hub

1.0

Docker

Client: Version: 18.06.0-dev API version: 1.37 Go version: go1.10.2 Git commit: daf021fe Built: Mon Jun 25 21:07:53 2018 OS/Arch: linux/amd64 Experimental: false Orchestrator: swarm

Server: Engine: Version: dev API version: 1.38 (minimum version 1.12) Go version: go1.10.3 Git commit: 09f5e9d Built: Wed Sep 19 16:55:45 2018 OS/Arch: linux/amd64 Experimental: false

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
myagleycommented, Nov 28, 2018

Can we close this issue if the tutorials have been updated?

1reaction
mroheracommented, Sep 27, 2018

Just to make sure, have you added your ACR credentials via the portal for your specific modules?

Specifically under Your Azure IoT Hub portal --> Click IoT Edge – > Choose your edge device --> Click Set modules. A screen comes up where you can add/edit your ACR credentials.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot login to registry - Azure Container Registry
Unable to login to registry and you receive error unauthorized: authentication required or unauthorized: Application not registered with AAD.
Read more >
Push Docker Image task to ACR fails in Azure "unauthorized
I had this issue when pushing a docker image to Azure Container Registry. unauthorized: authentication required, visit https://aka.ms/acr/ ...
Read more >
"unauthorized: authentication required" which is actually ...
I found this issue when I'm using AKS with ACR. When I pulling image from AKS, it shows unauthorized: authentication required which is...
Read more >
Docker Push Container to Azure ACR "unauthorized
What is going on here? This should work. $ az logout $ az login To sign in, use a web browser to open...
Read more >
Docker push to Azure container registry fails because ...
I'm pushing a large Windows container docker image (>10GB) with docker push . It seems the authentication expires before it finishes. The ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found