Azure-Samples / Azure-Samples/python-ms-sql-devcontainer

Failed to fetch template 'ghcr.io/azure-samples/python-ms-sql-devcontainer/python-mssql'.

Đang mở
#5 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Shell
Star
9
Fork
6
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

> Please provide us with the following information:
> ---------------------------------------------------------------

### This issue is for a: (mark with an `x`)
```
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```

### Minimal steps to reproduce
> Open a python folder with VSCode
> Make sure [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension is installed
> Press F1 and select New Dev Container
> Select _Python 3 & Microsoft Sql Server_ configuration
> Select _Trust @Azure-Samples_, then _Create Dev Container_

### Any log messages given by the failure
> Alert box appears with message: _Application of the template failed_
> A click on Show Logs displays:

> [385704 ms] Start: Run: docker version --format {{json .}}
[385764 ms] {"Client":{"Version":"27.4.0","ApiVersion":"1.47","DefaultAPIVersion":"1.47","GitCommit":"bde2b89","GoVersion":"go1.22.10","Os":"windows","Arch":"amd64","BuildTime":"Sat Dec 7 10:40:21 2024","Context":"desktop-linux"},"Server":{"Platform":{"Name":"Docker Desktop 4.37.1 (178610)"},"Components":[{"Name":"Engine","Version":"27.4.0","Details":{"ApiVersion":"1.47","Arch":"amd64","BuildTime":"Sat Dec 7 10:38:57 2024","Experimental":"false","GitCommit":"92a8393","GoVersion":"go1.22.10","KernelVersion":"5.15.153.1-microsoft-standard-WSL2","MinAPIVersion":"1.24","Os":"linux"}},{"Name":"containerd","Version":"1.7.21","Details":{"GitCommit":"472731909fa34bd7bc9c087e4c27943f9835f111"}},{"Name":"runc","Version":"1.1.13","Details":{"GitCommit":"v1.1.13-0-g58aa920"}},{"Name":"docker-init","Version":"0.19.0","Details":{"GitCommit":"de40ad0"}}],"Version":"27.4.0","ApiVersion":"1.47","MinAPIVersion":"1.24","GitCommit":"92a8393","GoVersion":"go1.22.10","Os":"linux","Arch":"amd64","KernelVersion":"5.15.153.1-microsoft-standard-WSL2","BuildTime":"2024-12-07T10:38:57.000000000+00:00"}}
[385770 ms] Start: Run: docker pull alpine:3.16.3
[385867 ms] Start: Run: docker volume ls -q
[393000 ms] Start: Run: docker volume create --label dev.container.volume=true python-mssql-7
[393056 ms] Start: Run: docker run -d --mount type=volume,src=python-mssql-7,dst=/workspaces alpine:3.16.3 sleep infinity
[393476 ms] Preparing to apply Template 'ghcr.io/azure-samples/python-ms-sql-devcontainer/python-mssql'
[393477 ms] Running Dev Containers CLI: templates apply --workspace-folder C:\Users\Drakh\AppData\Local\Temp\tmp-output-dir-1735437201335 --template-id ghcr.io/azure-samples/python-ms-sql-devcontainer/python-mssql --template-args {} --features [] --tmp-dir C:\Users\Drakh\AppData\Local\Temp\tmp-dir-1735437201335 --log-level debug --omit-paths []
[393477 ms] Start: Run: C:\Users\Drakh\AppData\Local\Programs\Microsoft VS Code\Code.exe c:\Users\Drakh\.vscode\extensions\ms-vscode-remote.remote-containers-0.394.0\dist\spec-node\devContainersSpecCLI.js templates apply --workspace-folder C:\Users\Drakh\AppData\Local\Temp\tmp-output-dir-1735437201335 --template-id ghcr.io/azure-samples/python-ms-sql-devcontainer/python-mssql --template-args {} --features [] --tmp-dir C:\Users\Drakh\AppData\Local\Temp\tmp-dir-1735437201335 --log-level debug --omit-paths []
[393639 ms] [2024-12-29T01:53:21.497Z] @devcontainers/cli 0.72.0. Node.js v20.18.1. win32 10.0.26100 x64.
[393644 ms] [2024-12-29T01:53:21.502Z] Loading 42 extra certificates from C:\Users\Drakh\AppData\Local\Temp\vsch\certificates-423651c2fb9da2f1b093b096ae2e536ff4c88f35ed537c4a8b549f716963bb68.pem.
[393804 ms] [2024-12-29T01:53:21.663Z] Start: Run: docker-credential-desktop get
[393855 ms] [2024-12-29T01:53:21.714Z] Stop (51 ms): Run: docker-credential-desktop get
[394001 ms] [2024-12-29T01:53:21.860Z] [httpOci] 401: Credentials for 'ghcr.io' may be expired. Attempting request anonymously.
[394002 ms] [2024-12-29T01:53:21.860Z] {"errors":[{"code":"UNAUTHORIZED","message":"authentication required"}]}
[394002 ms] .
[394151 ms] [2024-12-29T01:53:22.009Z] [httpOci] 401: Failed to fetch bearer token for 'ghcr.io': {"errors":[{"code":"UNAUTHORIZED","message":"authentication required"}]}
[394151 ms] [2024-12-29T01:53:22.010Z] [httpOci] ERR: Failed to fetch Bearer token from registry.
[394151 ms] [2024-12-29T01:53:22.010Z] Request 'https://ghcr.io/v2/azure-samples/python-ms-sql-devcontainer/python-mssql/manifests/latest' failed
[394151 ms] [2024-12-29T01:53:22.010Z] Failed to fetch template manifest for ghcr.io/azure-samples/python-ms-sql-devcontainer/python-mssql
[394151 ms] [2024-12-29T01:53:22.010Z] Failed to fetch template 'ghcr.io/azure-samples/python-ms-sql-devcontainer/python-mssql'.
[394160 ms] Exit code 1
[395439 ms] Start: Run: docker rm -f 80de4c9c26956ed0bb46bf02e909665a3642b3e9cc95fd291b786a9487217d73

### Expected/desired behavior
> I should be able to setup the dev container

### OS and Version?
> Windows 11

### Versions
> Current (at date 29/12/2024)

### Mention any other details that might be useful
> Already tried to fix the 401: Failed to fetch bearer token for 'ghcr.io'_ error by myself, using _docker logout ghcr.io_ withouyt success.

> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.