Hello,
I’m trying to deploy to fly as part of a GitLab workflow. This worked for months until now, probably something changed in GitLab, but no idea what it could be.
...
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
kikobeats/my-service next 202cfe7e3e0f About a minute ago 4.23GB
kikobeats/my-service <none> ff167cfd3b12 8 minutes ago 4.23GB
$ fly doctor
Testing authentication token... PASSED
Testing flyctl agent... FAILED
(Error: couldn't ping agent: agent not running)
Can't communicate with flyctl's background agent.
Run 'flyctl agent restart'.
$ fly agent restart
$ cat $(ls -1d ~/.fly/agent-logs/* | head -n 1)
2024/02/15 13:01:13.143018 srv OK 213
2024/02/15 13:01:13.143031 srv monitoring for token expiration
2024/02/15 13:01:13.191667 #1 connected ...
2024/02/15 13:01:13.191711 #1 <- ( 4) "ping"
2024/02/15 13:01:13.191798 #1 -> ( 53) "3\x00ok {\"PID\":213,\"Version\":\"0.2.4\",\"Background\":true}\n"
2024/02/15 13:01:13.191819 #1 dropped.
$ fly scale count 1 --vm-cpus 2 --vm-cpu-kind shared --vm-memory=1024 --yes --app microlink-next
App already scaled to desired state. No need for changes
$ fly deploy -e NODE_ENV=staging --image=kikobeats/my-service:next --image-label=next --local-only --update-only --app microlink-next
==> Verifying app config
--> Verified app config
Validating /builds/microlink/api/fly.toml
✓ Configuration is valid
==> Building image
WARN Error connecting to local docker daemon:cannot apply host to transport: *otelhttp.Transport
WARN failed to create build in graphql: input:3: createBuild Could not find App
Error: failed to fetch an image or build from source: no docker daemon available
Cleaning up project directory and file based variables
00:00
ERROR: Job failed: exit code 1
Any idea about what’s happening here?