Botched software update

Hi,

I was doing pikvm-update when the power went out. Now I’m getting http error 500 when trying to access PiKVM web interface. What are my options to get out of this predicament?

You can log in via SSH and try to resume the pikvm-update. If it complains about lock files you can enter rw mode and try removing those, and there might be more details in the Discord history on how to recover from a stuck update (sometimes a different mirror helps speed things up).

If all else fails, make a backup of your /etc/kvmd/ overrides.yaml and meta.yaml and then reflash the microSD and start fresh.

How do I log in via ssh? I’ve tried admin@pikvm with the password that I had set via web interface but got ‘permission denied’.

Discord is not an option, as I can’t get access (“failed to prove to a robot that I’m not a robot” seems to be the Kafkaesque feature of this brave new world).

The SSH user would be root rather than admin (which is a kvmd web only user).

Bingo! root works in ssh. This never crossed my mind as the first thing I do with a new linux box is disable remote root login.

Thank you.

1 Like

Yeah, we probably need to add that to the docs if it isn’t already there, change the root password AND disable root login via password and use an SSH key instead (and/or let Tailscale SSH manage the ACLs for the system so you have a much harder time locking yourself out as long as you don’t let the certs/trust expire).