Unauthorized:authetication required

I am unable to pull the NIM models through docker. Upon trying to pull the docker model with:

{USER REDACTED}:~$ docker pull $IMG_NAME
Error response from daemon: Head “https://nvcr.io/v2/nim/meta/llama3-70b-instruct/manifests/1.0.0”: unauthorized: authentication required

I already received successful login verification by using:
{USER REDACTED}:~$ echo $NGC_API_KEY | docker login nvcr.io --username ‘$oauthtoken’ --password-stdin
WARNING! Your password will be stored unencrypted in {redacted}
Configure a credential helper to remove this warning. See
docker login | Docker Docs

Login Succeeded

2 Likes

I generated a new API key and it is working now. However, it is identifying my GPU as not-available. I have reinstalled all the drivers and pre-installation requirements. RTX4090.

I’m having the same issue. I’ve tried generating a new API key but I still see the authentication error.

@steve157 I believe it’s the personal key you can create here: https://org.ngc.nvidia.com/setup/personal-keys. Let me know if you are successful. I am authenticating and pulling the models now but getting an error about non-free GPU. Running RTX4090.

Hi!

I got a similar issue. The error messages are like below.

Unable to find image 'nvcr.io/nim/meta/llama3-8b-instruct:1.0.0' locally
docker: Error response from daemon: Head "https://nvcr.io/v2/nim/meta/llama3-8b-instruct/manifests/1.0.0": unauthorized: <html>
<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>nginx/1.22.1</center>
</body>
</html>.
See 'docker run --help'.

You have to add your unix user to the docker group.

See here: How to fix docker: Got permission denied while trying to connect to the Docker daemon socket | DigitalOcean

1 Like

Same error to me even after creating a new key. I intentionally selected all services when creating the new key, which can access NV-CLOUD-FUNCTIONS, ARTIFACT-CATALOG, PRIVATE-REGISTRY and SECRETS-MANAGER now.

Same problem here, I’ve tried all combination of personal and api keys, not working in any way!

1 Like

I am also having this issue. Verification is successful, but when I try to pull the image, I get an error. I tried multiple keys and doing the whole process in root, but nothing worked. Did anyone find solution?

EDIT: I tried running the login command with full path to the model:
echo "$NGC_API_KEY" | docker login nvcr.io/v2/nim/meta/llama3-8b-instruct/manifests/1.0.0 --username '$oauthtoken' --password-stdin
This still return login successful, but when I try to pull it, I get authentification error.

You must be able to login successfully to NGC by your docker command first. Be aware of login by “docker” without sudo or with sudo command. Use the same docker command in login and run script.