Error installing traefik.. again (Host key verification failed)

Hi Wappler,

Seems like a constant issue that everytime a new update is released it breaks something with traefik or docker, or adding a server. Anyway, I just added a new server on and tried to install traefik. Following error as follows:

Bringing Service “traefik” up …
error during connect: Get “http://docker.example.com/v1.24/containers/json?all=1&filters={“label”%3A{“com.docker.compose.config-hash”%3Atrue%2C"com.docker.compose.project%3Dwappler-compose"%3Atrue}}”: command [ssh -o ConnectTimeout=30 -l root – 170.64.134.181 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=Host key verification failed.

Error Launching Services!

Running Docker/NodeJS and latest version of Wappler 6.1.0

Thanks,

Okay to be more precise… the error appears every time I try and deploy and launch Services… not just traefik deploy.

This is the error. This is because, at least once, you reinstalled your server, so the server has a new SSH public key, and your computer is warning you that the key changed (because it’s different from what it saved initially).

The instructions to solve this depend on the Operative System you use. I don’t have time to expand this further, but on MacOS or Linux you can fix it by running the command:

ssh-keygen -R IP_OF_YOUR_SERVER

That command will erase the saved SSH public key, so it’ll look like the 1st time it’s connecting.

Probably you used more than 1 computer to manage this target/server? So the other computer is able to connect to the server, but your current one throws that error

Thank you. Weirdly what I just did was right click the server, and clicked on “_Open SSH terminal” … it signed in, I closed that and redeployed and all seems fine now. Really strange…

Thanks for the update. Probably Wappler ignores host key validation in this particular function (which is not a good practice) and that indirectly solved the problem, the new public key was saved…

So, you won’t experience this error further on this particular computer

I was just going to suggest to do this. We automatically add hosts to your known list when opening an ssh terminal in Wappler. So from then on it should be all fine.

Thank you George, good to know!