basecamp / kamal

Deploy web apps anywhere.
https://kamal-deploy.org
MIT License
11.69k stars 474 forks source link

issue after changing the IP of your host server for a newone #274

Closed PabloC closed 1 year ago

PabloC commented 1 year ago

Steps:

  1. mrsk deploy to host A
  2. decide to change the IP address of host A to a new IP
  3. mrsk setup to host A
ERROR (SSHKit::Command::Failed): docker exit status: 256
docker stdout: Nothing written
docker stderr: ERROR: error during connect: Get "http://docker.example.com/v1.24/containers/buildx_buildkit_mrsk-et-app-native-remote0/json": command [ssh -l root -- 157.230.106.144 docker system dial-stdio] has exited with exit status 255, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:RlcWoqbkZdHIosb5oVf76+9YY/y0V8eDnKqYe3x7tjw.
Please contact your system administrator.
Add correct host key in /Users/pibefision/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/pibefision/.ssh/known_hosts:46
Host key for 157.230.106.144 has changed and you have requested strict checking.
Host key verification failed.

Issue is related to local docker. There is a local need, after changing the IP, of delete the local docker context first. If it is not deleted, the error of above appears.

Maybe, I forgot do a MRSK remove first, I'am not sure.

PabloC commented 1 year ago

Already reported. Sorry

jasonfb commented 1 year ago

I think this is just an issue with the known_hosts file on your machine as a byproduct of you switching IPs(?)