#Can't init dagger project on hello-dagger repo

1 messages · Page 1 of 1 (latest)

ember vale
#

Trying to follow the tutorial but am stuck on this step. Important to note that I'm using rootless podman on this system (Nobara 41) and I have used dagger in the past (version 0.10) without issues.

❯ dagger init --sdk=typescript --source=./dagger
✘ connect 5.0s
! start engine: new client: interrupted
│ ✔ starting engine 0.2s
│ ✘ connecting to engine 4.8s
│ ! new client: interrupted
│ │ ✘ moby.buildkit.v1.Control/Info 0.1s
│ │ ! connection error: desc = "error reading server preface: command [docker exec -i dagger-engine-v0.16.2 buildctl dial-stdio] has exited with exit status 1, make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=Error: dial unix /run/buildkit/buildkitd.sock: connect: no such file or directory\nUsage:\n dial-stdio [flags]\n\nFlags:\n --addr string The address serving the grpc api (default "unix:///run/buildkit/buildkitd.sock")\n -h, --help help for dial-stdio\n --timeout int The timeout in seconds for connecting to the grpc api (default 5)\n\n"

I have also docker script in my path that just calls podman:

❯ docker version
Client: Podman Engine
Version: 5.4.0
API Version: 5.4.0
Go Version: go1.23.5
Built: Tue Feb 11 01:00:00 2025
Build Origin: Fedora Project
OS/Arch: linux/amd64

oak cedar
#

👋 can you try running dagger core version and provide the output?

ember vale
#

I get the same output and same errors running dagger core version

#

It seems to me like dagger CLI can't connect to the engine

bitter mural
#

I assume you're probably hitting one of those pre-requisites

ember vale
#

This is the output from inside the dagger-engine container:

https://gist.github.com/moljac024/0e2357f066f5bbf6380b683cb9e60653

I am not quite sure what I need to do in order to fix this. The documentation mentions podman machine but I have no podman machine since I'm running on linux. It's not clear from the docs what actions I need to take in order to fix this.

Any help would be appreciated and I would be willing to open a PR to improve the documentation here

Gist

GitHub Gist: instantly share code, notes, and snippets.

bitter mural