https://linen.dev logo
Can't deploy locally
# help
w
Tried first with docker rootless, then with normal docker.
make images
and
make up
work fine, except for datadog which seems to be in a restart loop. Creating a project works fine. But when I try to deploy anything, I get errors like this:
Copy code
2022-12-31T15:36:27.956692353Z  INFO Entering queued state
2022-12-31T15:36:27.959661775Z DEBUG hyper::client::connect::http: connecting to 10.99.0.7:8001
2022-12-31T15:36:27.976201572Z DEBUG hyper::client::connect::http: connected to 10.99.0.7:8001
2022-12-31T15:36:27.995258298Z DEBUG hyper::client::pool: pooling idle connection for ("http", gateway:8001)

2022-12-31T15:36:28.009011293Z  INFO Entering building state
2022-12-31T15:36:28.953878890Z  INFO     Updating `shuttle-crates-io-mirror` index

2022-12-31T15:36:29.426941012Z  INFO Entering crashed state
2022-12-31T15:36:29.438892459Z ERROR {error="Build error: no matching package named `anyhow` found\nlocation searched: registry `crates-io`\nrequired by package `hello-world-b4145134-8d42-4cc5-9148-8b7afb2a48b9 v0.1.0 (/opt/shuttle/shuttle-builds/hello-world-poise-bot)`"} shuttle_deployer::deployment::queue: service build encountered an error
I was trying to get it working locally for this: https://github.com/shuttle-hq/shuttle/pull/560
k
Hey 👋
What does your
docker ps
look like?
w
docker ps:
k
Hmm, it looks fine. Which OS are you on?
I was able to reproduce it on main too, so it's not something you did, we'll look into this on monday.
Thanks for the PR btw ❤️
w
Ok, thanks!
k
So for some background on this, we mirror crates.io using panamax, since all project traffic goes through our proxy and thus fetch the index from the same IP, we would get rate-limited by crates.io. This issue you are having appears to be caused by an issue with the panamax container, but I haven't figured out what's wrong yet. I'll get back to you when I do.
So the issue is it needs to download 100GB of crates. This is a bit much to ask of contributors, so feel free to disable this for now and use crates.io, you can comment out these lines: and remake the deployer image.
And kill the panamax container.
w
With that it works even on Docker rootless, thanks!
s
Awesome!! And wait, you can get gateway to communicate with deployer in rootless mode?
w
Since it works, I assume yes? https://asciinema.org/a/YqUG1DJQzzbnsLz7Z3749KZPY I just
export DOCKER_HOST=unix:///run/user/1000/docker.sock
with the rootless socket and changed the host side of the relevant docker volumes in the
docker-compose.yml
Copy code
diff
-      - /var/run/docker.sock:/var/run/docker.sock:ro
+      - /run/user/1000/docker.sock:/var/run/docker.sock:ro
s
Nice 🤩 My rootless podman failed in the past, but I don't remember changing the docker volume... will try that...