1
24.1 Legacy Series / git backup: ssh hostkey has changed fatal error, but git backup happens
« on: August 15, 2024, 11:16:55 pm »
I'm on 24.4.1_3 of the Business version of opnsense.
I had set up git, running on a proxmox VM, for configuration backups just under a month ago. I recently noticed a crash report that's filled with php fatal errors of what looks to be the scheduled git backup saying that the ssh hostkey has changed. See below.
Now, there is an outside chance that the hostkey was changed as I was tweaking some things.
The changes in backups are making it to git. A test of the git in the backups section of configuration succeeds, so obviously even though this is a FATAL error, it's not blocking the functionality.
Where can I reset that key, so these stop happening. I care because right now, I basically ignore the fact that there are Crash Reporter errors becuase I know they aren't errors. I'd like to clear this so that a crash report means I should do something.
Sample php error:
I had set up git, running on a proxmox VM, for configuration backups just under a month ago. I recently noticed a crash report that's filled with php fatal errors of what looks to be the scheduled git backup saying that the ssh hostkey has changed. See below.
Now, there is an outside chance that the hostkey was changed as I was tweaking some things.
The changes in backups are making it to git. A test of the git in the backups section of configuration succeeds, so obviously even though this is a FATAL error, it's not blocking the functionality.
Where can I reset that key, so these stop happening. I care because right now, I basically ignore the fact that there are Crash Reporter errors becuase I know they aren't errors. I'd like to clear this so that a crash report means I should do something.
Sample php error:
Code: [Select]
[15-Aug-2024 15:17:00 Etc/UTC] PHP Fatal error: Uncaught Exception: ssh hostkey changed in /usr/local/opnsense/mvc/app/library/OPNsense/Backup/Git.php:181
Stack trace:
#0 /usr/local/opnsense/scripts/system/remote_backup.php(17): OPNsense\Backup\Git->backup()
#1 {main}
thrown in /usr/local/opnsense/mvc/app/library/OPNsense/Backup/Git.php on line 181
[15-Aug-2024 17:17:00 Etc/UTC] PHP Fatal error: Uncaught Exception: ssh hostkey changed in /usr/local/opnsense/mvc/app/library/OPNsense/Backup/Git.php:181
Stack trace:
#0 /usr/local/opnsense/scripts/system/remote_backup.php(17): OPNsense\Backup\Git->backup()
#1 {main}
thrown in /usr/local/opnsense/mvc/app/library/OPNsense/Backup/Git.php on line 181