MightyMoud / sidekick

Bare metal to production ready in mins; your own fly server on your VPS.
https://www.sidekickdeploy.com
GNU General Public License v3.0
5.94k stars 97 forks source link

Stuck on init #41

Closed kalafut closed 4 weeks ago

kalafut commented 1 month ago

After entering my IP and email during sidekick init I get:

2024/10/15 08:08:00 Failed to read known_hosts: %!s(<nil>)

After that, subsequent invocations of sidekick init return:

ERROR   Sidekick config not found. Please run sidekick init.

Deleting ~/.config/sidekick fixes that bit.

kalafut commented 1 month ago

Small bug here, where you should be reporting knErr:

https://github.com/MightyMoud/sidekick/blob/aa540c41674fb0a0203ec83d0e367d6b6e97515a/utils/auth.go#L98

I fixed that locally and saw the real error:

/Users/kalafut/.ssh/known_hosts:5: ssh: unsupported DSA key size 2048

Sort of annoying, since that line is some ancient host that should be irrelevant to setting up the new VPS.

I deleted it and things proceeded OK.

MightyMoud commented 1 month ago

Hi @kalafut,

Thanks dude. I'll sort this error out on next release.

Also that first error when init failed shouldn't happen. I'll sort that out too.

Damn man, need to set sometime aside to add tests... it's not cool like this...

MightyMoud commented 4 weeks ago

This is now fixed with latest version 0.6.6