Hi, first time posting and not fluent in Linux so bear with me.
I have inherited an environment which has a single VM running Ubuntu which hosts LibreNMS and Oxidized.
It was running fine until recently, Oxidized is unable to pull any config backups and reloading the nodes within the Oxidized Tools section fails as well.
“We couldn’t retrieve the device information from Oxidized”.
“An error occurred while reloading the Oxidized nodes list”.
We had performed OS patching to Ubuntu earlier in June, so I restored the VM from before the patching but it still had the same errors which was surprising.
I’ve tried changing the user within the oxidized.service config from “oxidized” to “root” but it made no difference.
root@inf-librenms:/home/administrator# systemctl status oxidized
● oxidized.service - Oxidized - Network Device Configuration Backup Tool
Loaded: loaded (/lib/systemd/system/oxidized.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2023-07-05 11:05:48 CDT; 30min ago
Process: 944129 ExecStart=/usr/local/bin/oxidized (code=exited, status=1/FAILURE)
Main PID: 944129 (code=exited, status=1/FAILURE)
Jul 05 11:05:48 inf-librenms systemd[1]: Started Oxidized - Network Device Configuration Backup Tool.
Jul 05 11:05:48 inf-librenms oxidized[944129]: I, [2023-07-05T11:05:48.876590 #944129] INFO – : Oxidized starting, running as pid 944129
Jul 05 11:05:48 inf-librenms oxidized[944129]: I, [2023-07-05T11:05:48.878004 #944129] INFO – : lib/oxidized/nodes.rb: Loading nodes
Jul 05 11:05:48 inf-librenms oxidized[944129]: F, [2023-07-05T11:05:48.878162 #944129] FATAL – : Oxidized crashed, crashfile written in /home/oxidized/crash
Jul 05 11:05:48 inf-librenms oxidized[944129]: No such file or directory @ rb_sysopen - /root/.config/oxidized/router.db
Jul 05 11:05:48 inf-librenms systemd[1]: oxidized.service: Main process exited, code=exited, status=1/FAILURE
Jul 05 11:05:48 inf-librenms systemd[1]: oxidized.service: Failed with result ‘exit-code’.
root@inf-librenms:/home/administrator# which oxidized
/usr/local/bin/oxidized
Gems:
oxidized (0.28.0, 0.26.3)
oxidized-script (0.6.0)
oxidized-web (0.13.1)
root@inf-librenms:/home/administrator# cat /lib/systemd/system/oxidized.service
#For debian 8 put it in /lib/systemd/system/
#To set OXIDIZED_HOME instead of the default:
#~${oxidized_user}/.config/oxidized in debian 8, then uncomment
#(and modify as required) the “Environment” variable below so
#systemd sets the correct environment. Tested only on Debian 8.8.
#YMMV otherwise.
#For RHEL / CentOS 7 put it in /etc/systemd/system/
#and call it with systemctl start oxidized.service
[Unit]
Description=Oxidized - Network Device Configuration Backup Tool
After=network-online.target multi-user.target
Wants=network-online.target
[Service]
ExecStart=/usr/local/bin/oxidized
User=root
KillSignal=SIGKILL
Environment=“OXIDIZED_HOME=/home/oxidized”
[Install]
WantedBy=multi-user.target
Does this output imply my router.db file is missing?
root@inf-librenms:/home/administrator# ls ~/.config/oxidized/
config crash logs
Any help is greatly appreciated Thank you