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

Failed to download package for ghcr.io/tailscale/codespace #25

Closed
rhettg opened this issue Jul 19, 2023 · 2 comments · Fixed by #31
Closed

Failed to download package for ghcr.io/tailscale/codespace #25

rhettg opened this issue Jul 19, 2023 · 2 comments · Fixed by #31

Comments

@rhettg
Copy link

rhettg commented Jul 19, 2023

I can't seem to get this to work anymore. I created a test repository here and it fails to create a codespace with the devcontainer.json configured as

{
  "image":"mcr.microsoft.com/devcontainers/universal:2",
  "runArgs": ["--device=/dev/net/tun"],
  "features": {
    // ...
    "ghcr.io/tailscale/codespace": {}
    // ...
  }
}

I see:

=================================================================
2023-07-19 21:00:15.891Z: Creating container...
2023-07-19 21:00:15.893Z: $ devcontainer up --id-label Type=codespaces --workspace-folder /var/lib/docker/codespacemount/workspace/stunning-sniffle --mount type=bind,source=/.codespaces/agent/mount/cache,target=/vscode --user-data-folder /var/lib/docker/codespacemount/.persistedshare --container-data-folder .vscode-remote/data/Machine --container-system-data-folder /var/vscode-remote --log-level trace --log-format json --update-remote-user-uid-default never --mount-workspace-git-root false --omit-config-remote-env-from-metadata --skip-non-blocking-commands --skip-post-create --remove-existing-container --config "/var/lib/docker/codespacemount/workspace/stunning-sniffle/.devcontainer/devcontainer.json" --override-config /root/.codespaces/shared/merged_devcontainer.json --default-user-env-probe loginInteractiveShell --container-session-data-folder /workspaces/.codespaces/.persistedshare/devcontainers-cli/cache --secrets-file /root/.codespaces/shared/user-secrets-envs.json
2023-07-19 21:00:16.105Z: @devcontainers/cli 0.48.0. Node.js v18.16.1. linux 5.15.0-1041-azure x64.
2023-07-19 21:00:16.752Z: Resolving Feature dependencies for 'ghcr.io/tailscale/codespace'...
2023-07-19 21:00:17.898Z: {"outcome":"error","message":"Failed to download package for ghcr.io/tailscale/codespace","description":"An error occurred setting up the container."}
2023-07-19 21:00:17.902Z: Error: Failed to download package for ghcr.io/tailscale/codespace
2023-07-19 21:00:17.903Z:     at fg (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:1830:18327)
2023-07-19 21:00:17.904Z:     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2023-07-19 21:00:17.905Z:     at async pN (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:1830:25540)
2023-07-19 21:00:17.907Z:     at async Lee (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:1830:24135)
2023-07-19 21:00:17.909Z:     at async Lf (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:1830:26289)
2023-07-19 21:00:17.911Z:     at async mg (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:1830:26513)
2023-07-19 21:00:17.913Z:     at async xg (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:1935:2368)
2023-07-19 21:00:17.914Z:     at async zf (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:1937:1830)
2023-07-19 21:00:17.916Z:     at async Fg (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:1937:280)
2023-07-19 21:00:17.919Z:     at async cC (/usr/lib/node_modules/@devcontainers/cli/dist/spec-node/devContainersSpecCLI.js:2007:1729)
2023-07-19 21:00:17.920Z: devcontainer process exited with exit code 1

====================================== ERROR ====================================
2023-07-19 21:00:17.939Z: Failed to create container.
=================================================================================
2023-07-19 21:00:17.944Z: Error: Failed to download package for ghcr.io/tailscale/codespace
2023-07-19 21:00:17.945Z: Error code: 1302 (UnifiedContainersErrorFatalCreatingContainer)

====================================== ERROR ====================================
2023-07-19 21:00:17.959Z: Container creation failed.
=================================================================================

Is this just me? Am I doing something wrong?

@artis3n
Copy link

artis3n commented Jul 22, 2023

More details in #21 , but you need:

"ghcr.io/tailscale/codespace/tailscale:1": {},

@rhettg
Copy link
Author

rhettg commented Jul 22, 2023

Yup that fixed it. Thank you!

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

Successfully merging a pull request may close this issue.

2 participants