#dagger.connectors.docker.ProvisionError Failed to copy engine session binary None

1 messages · Page 1 of 1 (latest)

fallow folio
#

Hi, trying the Python SDK, Python 3.10, installed dagger-io package in venv and copied the example code.

However, when running the code I get this error:

Traceback (most recent call last):
  File "/home/codewithcheese/py-dagger/venv/lib/python3.10/site-packages/dagger/connectors/docker.py", line 87, in start
    subprocess.run(
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['docker', 'run', '--rm', '--entrypoint', '/bin/cat', 'ghcr.io/dagger/engine:v0.3.4@sha256:666b958a2f716c0d6b22d869c585d6fe07954133ec769bb3d1f310e931cb118f', '/usr/bin/dagger-engine-session-linux-amd64']' returned non-zero exit status 125.

Removed the full stack trace since it pushed the message over the character limit.

    raise ProvisionError(
dagger.connectors.docker.ProvisionError: Failed to copy engine session binary: None

It appears to be trying to copy the engine from an image, however trying to pull that image manually is denied

$ docker run ghcr.io/dagger/engine:v0.3.4@sha256:666b958a2f716c0d6b22d869c585d6fe07954133ec769bb3d1f310e931cb118f
Unable to find image 'ghcr.io/dagger/engine:v0.3.4@sha256:666b958a2f716c0d6b22d869c585d6fe07954133ec769bb3d1f310e931cb118f' locally
docker: Error response from daemon: Get "https://ghcr.io/v2/dagger/engine/manifests/sha256:666b958a2f716c0d6b22d869c585d6fe07954133ec769bb3d1f310e931cb118f": denied: denied.
turbid lark
#

Do you use a GITHUB_TOKEN?

#

See if it has read:packages permissions maybe.

fallow folio
#

@turbid lark I am running locally, does it need to be run from GitHub actions?

turbid lark
#

No, should run from anywhere.

fallow folio
#

ok, there may be a chance my environment is using an invalid token ive been playing with ghcr a bit, ill check

#

thanks for your help

#

I can pull the image now, after running docker logout ghcr.io