kamal icon indicating copy to clipboard operation
kamal copied to clipboard

Kamal 2 Upgrade fails with a host thats only running accessories

Open honzasterba opened this issue 1 year ago • 2 comments

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

honzasterba avatar Oct 05 '24 16:10 honzasterba

Did you try running with -P flag to skip push?

tuladhar avatar Oct 13 '24 19:10 tuladhar

I did not.

honzasterba avatar Oct 13 '24 20:10 honzasterba

Fixed by https://github.com/basecamp/kamal/pull/1508

djmb avatar Apr 18 '25 12:04 djmb