Skip to content

container pull from ghcr registry DENIED #339

@StephenKing

Description

@StephenKing

What happened?
DevPod somehow stopped working for me. I've now reset everything and end up with

[12:14:36] debug devcontainer up build image get image build info get image config remotely retrieve image ghcr.io/devcontainers/templates/alpine:3.4.0 GET https://ghcr.io/token?scope=repository%3Adevcontainers%2Ftemplates%2Falpine%3Apull&service=ghcr.io: DENIED: denied

What did you expect to happen instead?

Provisioning to work and IDE to start

How can we reproduce the bug? (as minimally and precisely as possible)

Add the AWS provider

$ devpod provider add skevetter/devpod-provider-aws \
  --name aws-skevetter \
  -o AWS_INSTANCE_PROFILE_ARN=arn:aws:iam::123456789012:instance-profile/foobar \
  -o AWS_DISK_SIZE=100 \
  -o AWS_SECURITY_GROUP_ID=sg-abcdefg \
  -o AWS_SUBNET_ID=subnet-abcdef \
  -o AWS_USE_SESSION_MANAGER=true \
  -o AWS_INSTANCE_TAGS=Name=Creator,Value=steffen

Important

I'm using AWS SSM, maybe this plays a role

Create Workspace

My devcontainer.json:

{
  "image": "ghcr.io/devcontainers/templates/alpine:3.4.0"
}

Options

set to default after rm -r ~/.devpod/

Opening the Woskspace

initial start fails with, probably because SSM not yet ready

[12:12:37] debug done creating devcontainer
[12:12:38] fatal executing agent command injection timeout after 1 attempts

logs-initial.txt

subsequent click on Open does provisioning, but then fails with

[12:14:35] info No containers need to be restarted.
[12:14:36] debug devcontainer up build image get image build info get image config remotely retrieve image ghcr.io/devcontainers/templates/alpine:3.4.0 GET https://ghcr.io/token?scope=repository%3Adevcontainers%2Ftemplates%2Falpine%3Apull&service=ghcr.io: DENIED: denied
[12:14:36] debug failed to rerun as root
[12:14:36] debug error parsing workspace info rerun as root exit status 1
[12:14:36] info No user sessions are running outdated binaries.
[12:14:36] debug SSH session closed
[12:14:36] debug done inject
[12:14:36] debug SSH client closed
[12:14:36] debug tunnel server started, waiting for command completion
[12:14:36] debug done creating devcontainer
[12:14:36] debug done injecting
[12:14:36] debug run provider command
[12:14:36] debug retrying
[12:14:36] debug done executing SSH server helper command
[12:14:36] debug agent injection metrics
[12:14:36] debug done exec
[12:14:37] fatal run agent command failed: Process exited with status 1
error parsing workspace info rerun as root exit status 1

logs-subsequent.txt

Local Environment:

  • DevPod Version: v0.9.4
  • Operating System: mac
  • ARCH of the OS: ARM64

DevPod Provider:

  • Cloud Provider: aws
  • Custom provider: provide imported provider.yaml config file

Anything else we need to know?

  • thanks for your efforts!
  • for sure, I can pull the image on the machine manually

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions