kamal
kamal copied to clipboard
Kamal 2 Upgrade fails with a host thats only running accessories
If a host does not have the image the tagging fails, I feel like it should be done only on primary host. The log seems self-explanatory.
INFO [e693dc5b] Running docker tag registry.gitlab.com/image:latest registry.gitlab.com/image:latest on HOST1
INFO [e693dc5b] Running docker tag registry.gitlab.com/image:latest registry.gitlab.com/image:latest on HOST2
...
INFO [e693dc5b] Finished in 0.090 seconds with exit status 0 (successful).
INFO [2e229f51] Finished in 0.108 seconds with exit status 0 (successful).
Releasing the deploy lock...
ERROR (SSHKit::Command::Failed): Exception while executing on host HOST2: docker exit status: 1
docker stdout: Nothing written
docker stderr: Error response from daemon: No such image: registry.gitlab.com/image:latest
Did you try running with -P flag to skip push?
I did not.
Fixed by https://github.com/basecamp/kamal/pull/1508