asconix-old / hetzner-bootstrap-coreos

Interface for the root servers at Hetzner to bootstrap CoreOS
MIT License
22 stars 6 forks source link

Something bad happened unexpectedly: Net::SSH::HostKeyMismatch => fingerprint #5

Open IAlwaysBeCoding opened 8 years ago

IAlwaysBeCoding commented 8 years ago

I get this error after it installs coreos.

[15:22:45][176.9.41.133 ][block in installimage] Remote executing: export TERM=xterm; /tmp/coreos-install -d /dev/sda -C stable -c /tmp/cloud-config.yaml [15:23:26][176.9.41.133 ][block in installimage] /tmp/coreos-install: coreos-cloudinit not found. Could not validate config. Continuing... Downloading the signature for http://stable.release.core-os.net/amd64-usr/current/coreos_production_image.bin.bz2... 2015-11-24 00:22:46 URL:http://stable.release.core-os.net/amd64-usr/current/coreos_production_image.bin.bz2.sig [543/543] -> "/tmp/coreos-install.6u94lPGumF/coreos_production_image.bin.bz2.sig" [1] Downloading, writing and verifying coreos_production_image.bin.bz2... 2015-11-24 00:23:10 URL:http://stable.release.core-os.net/amd64-usr/current/coreos_production_image.bin.bz2 [195385569/195385569] -> "-" [1] gpg: Signature made Thu 05 Nov 2015 03:24:48 AM CET using RSA key ID 1CB5FA26 gpg: key 93D2DCB4 marked as ultimately trusted gpg: checking the trustdb gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u gpg: Good signature from "CoreOS Buildbot (Offical Builds) buildbot@coreos.com" Installing cloud-config... Success! CoreOS stable current is installed on /dev/sda

[15:23:26][176.9.41.133 ][block in[installimage] FINISHED in 47.83799 seconds [15:23:26][176.9.41.133 ][block in[reboot] START
[15:23:30][176.9.41.133 ][block in[reboot] FINISHED in 3.65102 seconds [15:23:30][176.9.41.133 ][block in[wait_for_ssh_down] START
[15:23:32][176.9.41.133 ][rescue in wait_for_ssh_down] SSH down [15:23:32][176.9.41.133 ][block in[wait_for_ssh_down] FINISHED in 2.24040 seconds [15:23:32][176.9.41.133 ][block in[wait_for_ssh_up] START
[15:23:32][176.9.41.133 ][rescue in wait_for_ssh_up] SSH down [15:23:38][176.9.41.133 ][rescue in wait_for_ssh_up] SSH down [15:23:44][176.9.41.133 ][rescue in wait_for_ssh_up] SSH down [15:23:50][176.9.41.133 ][rescue in wait_for_ssh_up] SSH down [15:23:56][176.9.41.133 ][rescue in wait_for_ssh_up] SSH down [15:24:02][176.9.41.133 ][rescue in wait_for_ssh_up] SSH down [15:24:08][176.9.41.133 ][rescue in wait_for_ssh_up] SSH down [15:24:14][176.9.41.133 ][rescue in wait_for_ssh_up] SSH down [15:24:20][176.9.41.133 ][rescue in wait_for_ssh_up] SSH down [15:24:23][176.9.41.133 ][block (2 levels) in wait_for_ssh_up] SSH up [15:24:23][176.9.41.133 ][block in[wait_for_ssh_up] FINISHED in 51.27174 seconds [15:24:23][176.9.41.133 ][block in[verify_installation] START
Something bad happened unexpectedly: Net::SSH::HostKeyMismatch => fingerprint 7b:3d:26:99:5d:ae:b1:35:67:81:cc:56:2a:09:99:f8 does not match for "176.9.41.133"

donbeave commented 8 years ago

The same problem that I have. Tried to clean ~/.ssh/known_hosts before run this script, but it didn't help.

donbeave commented 8 years ago

@IAlwaysBeCoding you can fix this with removing ~/.ssh/known_hosts after system was installed, when you receiving these messages:

[15:23:32][176.9.41.133 ][rescue in wait_for_ssh_up] SSH down
[15:23:38][176.9.41.133 ][rescue in wait_for_ssh_up] SSH down
[15:23:44][176.9.41.133 ][rescue in wait_for_ssh_up] SSH down
IAlwaysBeCoding commented 8 years ago

If I remember correctly, the error I was getting was after installation. After installation is where the problem is, because I couldn't log into the box after that error showed up. In other words, after rebooting(from a clean installation) the script couldn't log into the machine again nor I could manually.
I am more of a python programmer but I did look into it

and I tried this solution :https://www.ruby-forum.com/topic/210002 Net::SSH.start( value_hosts, USER, :password => PASS , :paranoid => false ) do|ssh |

However, it didn't work. The problem is inside the Net::SHH.start where you need to set paranoid to false.