Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Build Sonic image failed when make configure: " ERROR FROM docker.io/library/sonic-slave-buster:43558ab93ee" #16301

Closed
VerifyL opened this issue Aug 28, 2023 · 5 comments
Labels
Triaged this issue has been triaged

Comments

@VerifyL
Copy link

VerifyL commented Aug 28, 2023

Hello,
I attempted to build sonic branch master source based on the VS platform for the first time, but failed when executed 'make configure PLATFORM=vs'.
And does anyone have any idea for it.

Step followed:
Step1: git clone --recurse-submodules https://github.com/sonic-net/sonic-buildimage.git
Step2: sudo modprobe overlay
Step3: cd sonic-buildimage
Step4: make init
Step5: make configure PLATFORM=vs

Configure failed in Step5.

ERROR:

Unable to find image 'sonic-slave-buster:43558ab93ee' locally
Error response from daemon: pull access denied for sonic-slave-buster, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Error: No such container:path: sonic-slave-buster-43558ab93ee:/etc/os-release
Error: No such container:path: sonic-slave-buster-43558ab93ee:/usr/local/share/buildinfo/pre-versions
Error: No such container:path: sonic-slave-buster-43558ab93ee:/usr/local/share/buildinfo/post-versions
Error response from daemon: No such image: sonic-slave-buster:43558ab93ee
[+] Building 2.5s (4/5)
 => [internal] load build definition from Dockerfile.cleanup                                                                                                                                                0.2s
 => => transferring dockerfile: 318B                                                                                                                                                                        0.0s
 => [internal] load .dockerignore                                                                                                                                                                           0.4s
 => => transferring context: 2B                                                                                                                                                                             0.0s
 => ERROR FROM docker.io/library/sonic-slave-buster:43558ab93ee                                                                                                                                             1.9s
 => => resolve docker.io/library/sonic-slave-buster:43558ab93ee                                                                                                                                             1.9s
 => [auth] library/sonic-slave-buster:pull token for registry-1.docker.io                                                                                                                                   0.0s
------
 > FROM docker.io/library/sonic-slave-buster:43558ab93ee:
------
failed to load cache key: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
[+] Building 2.1s (4/4) FINISHED
 => [internal] load build definition from Dockerfile.cleanup                                                                                                                                                0.3s
 => => transferring dockerfile: 46B                                                                                                                                                                         0.0s
 => [internal] load .dockerignore                                                                                                                                                                           0.5s
 => => transferring context: 2B                                                                                                                                                                             0.0s
 => ERROR [internal] load metadata for docker.io/library/sonic-slave-buster:43558ab93ee                                                                                                                     1.5s
 => [auth] library/sonic-slave-buster:pull token for registry-1.docker.io                                                                                                                                   0.0s
------
 > [internal] load metadata for docker.io/library/sonic-slave-buster:43558ab93ee:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
Error: No such image: tmp-sonic-slave-buster:43558ab93ee
Error: No such container:path: sonic-slave-buster-43558ab93ee:/usr/local/share/buildinfo/log

the results you expected:
Build Pass

Output of my env:
Docker version:

Client:
 Version:           20.10.25
 API version:       1.41
 Go version:        go1.20.3
 Git commit:        20.10.25-0ubuntu1~20.04.2
 Built:             Thu Aug 10 20:14:50 2023
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          20.10.25
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.20.3
  Git commit:       20.10.25-0ubuntu1~20.04.2
  Built:            Thu Aug  3 18:03:37 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.2
  GitCommit:
 runc:
  Version:          1.1.7-0ubuntu1~20.04.1
  GitCommit:
 docker-init:
  Version:          0.19.0
  GitCommit:

Linux: Linux hanubuntu 5.15.0-79-generic #86~20.04.2-Ubuntu SMP Mon Jul 17 23:27:17 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

By the way, there is no docker "sonic-slave-buster:43558ab93ee" in docker hub.

Is there anyone who can advise ? Thanks.

@vmittal-msft
Copy link
Contributor

docker vs is building fine in latest run. please check -
https://dev.azure.com/mssonic/build/_build/results?buildId=350335&view=results

@vmittal-msft vmittal-msft added the Triaged this issue has been triaged label Aug 30, 2023
@VerifyL
Copy link
Author

VerifyL commented Sep 1, 2023

Hi,
However it still has the issue in my env.

Unable to find image 'sonic-slave-buster:a9261254d2c' locally
Error response from daemon: pull access denied for sonic-slave-buster, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Error: No such container:path: sonic-slave-buster-a9261254d2c:/etc/os-release
Error: No such container:path: sonic-slave-buster-a9261254d2c:/usr/local/share/buildinfo/pre-versions
Error: No such container:path: sonic-slave-buster-a9261254d2c:/usr/local/share/buildinfo/post-versions
Error response from daemon: No such image: sonic-slave-buster:a9261254d2c

What should i do for it? any docker configuration?
Thanks.

Best regards

@liushilongbuaa
Copy link
Contributor

@VerifyL , It's not the fatal error. When it pull docker image failed, It will build sonic-slave-buster.
Can you provide more logs?

@VerifyL
Copy link
Author

VerifyL commented Sep 27, 2023

@liushilongbuaa Thanks for your suggestion, i got it. And i had built the sonic-slave-buster successfully. The reason is that my network can't access some repository.

@VerifyL VerifyL closed this as completed Sep 27, 2023
@CaiBIRen
Copy link

@VerifyL ,hello,i have same error:
"Error response from daemon: pull access denied for sonic-slave-buster, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"

" > FROM docker.io/library/sonic-slave-buster:e9693d8ea5a:

failed to load cache key: failed to authorize: rpc error: code = Unknown desc = failed to fetch oauth token: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fsonic-slave-buster%3Apull&service=registry.docker.io: proxyconnect tcp: EOF"

I would like to ask what the specific network problem is? And I used a proxy and can docker pull hello-world normally

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Triaged this issue has been triaged
Projects
None yet
Development

No branches or pull requests

4 participants