Hi everyone. Ive got a fresh (friday) ubuntu OVA install of librenms and while i got all my devices in and working, I cannot get oxidized to work. When running “oxidized” twice from the command line I get the following output:
librenms@ubuntu:~$ oxidized
edit ~/.config/oxidized/config
librenms@ubuntu:~$ oxidized
Error loading config : undefined method ‘unsafe load’ for Psych:Module
Did you mean? safe load
librenms@ubuntu:~$
Google hasn’t been much help. I’ve since restarted the server, and even deleted the config file and tried again to no avail. I’m familiar with ubuntu, but this is somewhat over my head. Nothing has been updated past the initial OVA setup, as this is an airgapped network with no internet access.
I’m trying to follow the install guides, but unsure how much is needed from me to setup since it’s pre-installed via the ova. any help would be tremendous.
For anyone wondering, i had to copy the psych 3.3.2 gem over from another system.
opened 02:41PM - 10 May 23 UTC
closed 04:15PM - 29 Jun 23 UTC
Hello,
I fixed the `unsafe_load' for Psych:Module #2769 bug ( https://github.co… m/ytti/oxidized/issues/2769 ) but I still cannot get this stack to load properly, can someone please tell me what I am doing wrong?
It states that there is no router.db - but if you look at the output below, there clearly IS a router.db
Thanks
<pre>
administrator@DO-SVR-R220:/etc/oxidized$ sudo docker run -v /etc/oxidized:/home/oxidized/.config/oxidized -p 8888:8888/tcp -t oxidized/oxidized:latest
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/10_syslog-ng.init...
May 9 18:23:44 aa778a613161 syslog-ng[14]: syslog-ng starting up; version='3.35.1'
*** Booting runit daemon...
*** Runit started as PID 23
May 9 18:23:45 aa778a613161 cron[30]: (CRON) INFO (pidfile fd = 3)
May 9 18:23:45 aa778a613161 cron[30]: (CRON) INFO (Running @reboot jobs)
I, [2023-05-09T18:23:45.516858 #32] INFO -- : Oxidized starting, running as pid 32
I, [2023-05-09T18:23:45.517890 #32] INFO -- : lib/oxidized/nodes.rb: Loading nodes
F, [2023-05-09T18:23:45.519230 #32] FATAL -- : Oxidized crashed, crashfile written in /home/oxidized/.config/oxidized/crash
No such file or directory @ rb_sysopen - /etc/oxidized/router.db
I, [2023-05-09T18:23:46.726302 #39] INFO -- : Oxidized starting, running as pid 39
I, [2023-05-09T18:23:46.726830 #39] INFO -- : lib/oxidized/nodes.rb: Loading nodes
F, [2023-05-09T18:23:46.728113 #39] FATAL -- : Oxidized crashed, crashfile written in /home/oxidized/.config/oxidized/crash
No such file or directory @ rb_sysopen - /etc/oxidized/router.db
I, [2023-05-09T18:23:47.936318 #41] INFO -- : Oxidized starting, running as pid 41
I, [2023-05-09T18:23:47.936934 #41] INFO -- : lib/oxidized/nodes.rb: Loading nodes
F, [2023-05-09T18:23:47.938348 #41] FATAL -- : Oxidized crashed, crashfile written in /home/oxidized/.config/oxidized/crash
No such file or directory @ rb_sysopen - /etc/oxidized/router.db
I, [2023-05-09T18:23:49.146811 #43] INFO -- : Oxidized starting, running as pid 43
I, [2023-05-09T18:23:49.147320 #43] INFO -- : lib/oxidized/nodes.rb: Loading nodes
F, [2023-05-09T18:23:49.147386 #43] FATAL -- : Oxidized crashed, crashfile written in /home/oxidized/.config/oxidized/crash
No such file or directory @ rb_sysopen - /etc/oxidized/router.db
^C*** Shutting down runit daemon (PID 23)...
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown...
May 9 18:23:50 aa778a613161 syslog-ng[14]: syslog-ng shutting down; version='3.35.1'
*** Init system aborted.
*** Killing all processes...
administrator@DO-SVR-R220:/etc/oxidized$ ls
config crash logs oxidized oxidized-latest router.db
administrator@DO-SVR-R220:/etc/oxidized$
</pre>
sudo gem install psych -v 3.3.2
opened 12:17PM - 26 Apr 23 UTC
Hi, i get repeated errors loading config when i start the image i built of 0.29.… 1.
✔ Container oxidized Created 0.0s
Attaching to oxidized
oxidized | *** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
oxidized | *** Running /etc/my_init.d/10_syslog-ng.init...
oxidized | Apr 26 11:54:18 076ea1cf96d2 syslog-ng[14]: syslog-ng starting up; version='3.35.1'
oxidized | *** Booting runit daemon...
oxidized | *** Runit started as PID 22
oxidized | Apr 26 11:54:19 076ea1cf96d2 cron[28]: (CRON) INFO (pidfile fd = 3)
oxidized | Apr 26 11:54:19 076ea1cf96d2 cron[28]: (CRON) INFO (Running @reboot jobs)
oxidized | Error loading config: undefined method 'unsafe_load' for Psych:Module
oxidized | Did you mean? safe_load
oxidized | Error loading config: undefined method 'unsafe_load' for Psych:Module
oxidized | Did you mean? safe_load
yup. i had to do that on a identical dummy system and copy the gem over and install it manually in order to get it to come up. Not having internet access is a pain.