Guys,
Need help, suddenly oxidized proccess fails due to the following errors, please advise
[root@dc10-librenms01 librenms]# sudo systemctl status oxidized
● oxidized.service - Oxidized - Network Device Configuration Backup Tool
Loaded: loaded (/usr/lib/systemd/system/oxidized.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-01-03 20:19:39 UTC; 1min 53s ago
Process: 17529 ExecStart=/usr/local/bin/oxidized (code=exited, status=1/FAILURE)
Main PID: 17529 (code=exited, status=1/FAILURE)
Jan 03 20:19:39 dc10-librenms01.pan.local oxidized[17529]: from /usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/core.rb:14:in initialize' Jan 03 20:19:39 dc10-librenms01.pan.local oxidized[17529]: from /usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/core.rb:4:in
new’
Jan 03 20:19:39 dc10-librenms01.pan.local oxidized[17529]: from /usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/core.rb:4:in new' Jan 03 20:19:39 dc10-librenms01.pan.local oxidized[17529]: from /usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/cli.rb:12:in
run’
Jan 03 20:19:39 dc10-librenms01.pan.local oxidized[17529]: from /usr/local/share/gems/gems/oxidized-0.20.0/bin/oxidized:9:in <top (required)>' Jan 03 20:19:39 dc10-librenms01.pan.local oxidized[17529]: from /usr/local/bin/oxidized:23:in
load’
Jan 03 20:19:39 dc10-librenms01.pan.local oxidized[17529]: from /usr/local/bin/oxidized:23:in `'
Jan 03 20:19:39 dc10-librenms01.pan.local systemd[1]: oxidized.service: main process exited, code=exited, status=1/FAILURE
Jan 03 20:19:39 dc10-librenms01.pan.local systemd[1]: Unit oxidized.service entered failed state.
Jan 03 20:19:39 dc10-librenms01.pan.local systemd[1]: oxidized.service failed.
I also see these logs
[root@dc10-librenms01 librenms]# cat /root/.config/oxidized/crash
2018-01-03 20:19:39 UTC
no source http url config, edit ~/.config/oxidized/config [Oxidized::NoConfig]
/usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/source/http.rb:10:in setup' /usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/manager.rb:19:in
load’
/usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/manager.rb:53:in add_source' /usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/nodes.rb:13:in
block in load’
/usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/nodes.rb:127:in synchronize' /usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/nodes.rb:127:in
with_lock’
/usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/nodes.rb:10:in load' /usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/nodes.rb:122:in
initialize’
/usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/core.rb:14:in new' /usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/core.rb:14:in
initialize’
/usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/core.rb:4:in new' /usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/core.rb:4:in
new’
/usr/local/share/gems/gems/oxidized-0.20.0/lib/oxidized/cli.rb:12:in run' /usr/local/share/gems/gems/oxidized-0.20.0/bin/oxidized:9:in
<top (required)>’
/usr/local/bin/oxidized:23:in `load’
Did you change anything in the oxidized config? Any recent OS updates to the Oxidized server?
I moved Librenms http to https login
Are you running Oxideized on the same server as LibreNMS?
yep, I succeeded to fix it by changing the login back from https to http
and then from http to https , it fixed it, not sure why it’s happened
1 Like
I have the same issue but cant identify what is causing the service not to run. I am able to run oxidized successfully. Any advice would be appreciated.
root@Ubuntu-srv02:/# cat /lib/systemd/system/oxidized.service
WorkingDirectory=/var/lib/gems/2.3.0/gems/oxidized-0.21.0
GNU nano 2.5.3 File: /lib/systemd/system/oxidized.service
#For debian 8 put it in /lib/systemd/system/
#For RHEL / CentOS 7 put it in /etc/systemd/system/
#and call it with systemctl start oxidized.service
root@Ubuntu-srv02:/# nano /lib/systemd/system/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=SIGINT
[Install]
WantedBy=multi-user.target
root@Ubuntu-srv02:/# cat /.config/oxidized/crash
--------------------------------------------------
2018-04-14 21:59:13 UTC
no output file config, edit ~/.config/oxidized/config [Oxidized::NoConfig]
--------------------------------------------------
/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/output/file.rb:15:in setup'**_ _**/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/manager.rb:19:in
load’
/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/manager.rb:40:in add_output'**_ _**/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/node.rb:155:in
resolve_output’
/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/node.rb:22:in initialize'**_ _**/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:19:in
new’
/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:19:in block (2 levels) in load'**_ _**/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:15:in
each’
/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:15:in block in load'**_ _**/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:128:in
synchronize’
/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:128:in with_lock'**_ _**/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:10:in
load’
/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/nodes.rb:123:in initialize'**_ _**/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/core.rb:14:in
new’
/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/core.rb:14:in initialize'**_ _**/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/core.rb:4:in
new’
/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/core.rb:4:in new'**_ _**/var/lib/gems/2.3.0/gems/oxidized-0.21.0/lib/oxidized/cli.rb:12:in
run’
/var/lib/gems/2.3.0/gems/oxidized-0.21.0/bin/oxidized:9:in <top (required)>'**_ _**/usr/local/bin/oxidized:23:in
load’
/usr/local/bin/oxidized:23:in `'
--------------------------------------------------
root@Ubuntu-srv02:/# oxidized
I, [2018-04-28T17:40:52.156907 #25140] INFO – : Oxidized starting, running as pid 25140
I, [2018-04-28T17:40:52.158900 #25140] INFO – : lib/oxidized/nodes.rb: Loading nodes
I, [2018-04-28T17:40:52.222602 #25140] INFO – : lib/oxidized/nodes.rb: Loaded 3 nodes
Puma starting in single mode…
- Version 3.11.4 (ruby 2.3.1-p112), codename: Love Song
- Min threads: 0, max threads: 16
- Environment: development
- Listening on tcp://127.0.0.1:8888
Use Ctrl-C to stop
Guys,
In my case it gives me the following errors:
[xxxxxxxxxxx]# oxidized
oxidized-web not found: sudo gem install oxidized-web -
or disable web support by setting “rest: false” in your configuration
/usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:22:in rescue in initialize': oxidized-web not found: sudo gem install oxidized-web - \ (Oxidized::OxidizedError) or disable web support by setting "rest: false" in your configuration from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:19:in
initialize’
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:4:in new' from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/core.rb:4:in
new’
from /usr/local/share/gems/gems/oxidized-0.21.0/lib/oxidized/cli.rb:12:in run' from /usr/local/share/gems/gems/oxidized-0.21.0/bin/oxidized:9:in
<top (required)>’
from /usr/local/bin/oxidized:23:in load' from /usr/local/bin/oxidized:23:in
’
If I try to use the following command sudo gem install oxidized-web
it gives me the following output
ERROR: Error installing oxidized-web:
rack-test requires Ruby version >= 2.2.2.
If I check ruby version I’m above 2.2.2 which should be ok
[xxx]ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]