Oxidized not starting after OS upgrade from Ubuntu 20.04.6 to 22.04.3

Hello!

We upgraded OS to Ubuntu 22.04.3 and are struggling to get oxidized to work.

Due to this error we are unable to see the configuration of this device:

root@:/usr/local/bin# sudo systemctl status oxidized
● oxidized.service - Oxidized - Network Device Configuration Backup Tool
Loaded: loaded (/lib/systemd/system/oxidized.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Thu 2024-02-08 12:45:39 CET; 1min 14s ago
Process: 521840 ExecStart=/usr/local/bin/oxidized (code=exited, status=203/EXEC)
Main PID: 521840 (code=exited, status=203/EXEC)
CPU: 2ms
Feb 08 12:45:39 systemd[521840]: oxidized.service: Failed at step EXEC spawning /usr/local/bin/oxidized: No such file or directory
Feb 08 12:45:39 systemd[1]: oxidized.service: Main process exited, code=exited, status=203/EXEC
Feb 08 12:45:39 systemd[1]: oxidized.service: Failed with result ‘exit-code’.
root@:/usr/local/bin# date
Thu Feb 8 12:46:58 PM CET 2024
root@:/usr/local/bin#

root@:/usr/local/bin# cat oxidized
#!/usr/bin/ruby2.7

This file was generated by RubyGems.

The application ‘oxidized’ is installed as part of a gem, and

this file is here to facilitate running it.

require ‘rubygems’

version = “>= 0.a”
str = ARGV.first
if str
str = str.b[/\A_(.*)_\z/, 1]
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end
if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path(‘oxidized’, ‘oxidized’, version)
else
gem “oxidized”, version
load Gem.bin_path(“oxidized”, “oxidized”, version)
end

Could someone please suggest what action is needed?

Thank you.

Try installing the gem again, it’s showing that oxidized isn’t in your path.