Sympl-monit detect failure

Problem Description

Past few days I have had an issue with this, and I cannot figure it out myself. If anyone can help that’s be great. I have tried service spamassassin start and just get:
Failed to start spamassassin.service: Unit spamassassin.service not found.

So I reinstalled it but I get the same thing.

Any Error Messages

Started sympl-monit.service - Sympl service monitor.
 INFO Runner: spamd: /usr/lib/ruby/vendor_ruby/dbus/bus.rb:340:in `block in send_sync_or_async': No such file or directory; caused by 3 sender=:1.0 -> dest=:1.208208 serial=34228568 reply_serial=32 path=; interface=; member= error_name=org.freedesktop.DBus.Error.FileNotFound (DBus::Error)
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/dbus/bus.rb:514:in `process'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/dbus/bus.rb:456:in `send_sync'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/dbus/bus.rb:339:in `send_sync_or_async'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/dbus/proxy_object_interface.rb:63:in `block (2 levels) in define_method_from_descriptor'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/dbus/proxy_object.rb:108:in `call'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/dbus/proxy_object.rb:108:in `block (3 levels) in define_shortcut_methods'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/dbus/systemd/mixin.rb:35:in `method_missing'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/symbiosis/monitor/service/systemd.rb:117:in `unit_file_state'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/symbiosis/monitor/service/systemd.rb:67:in `enabled?'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/symbiosis/monitor/check.rb:94:in `service_enabled?'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/symbiosis/monitor/check.rb:98:in `ensure_service_enabled'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/symbiosis/monitor/check.rb:175:in `do_check'
 INFO Runner: spamd:    from /etc/sympl/monit.d/spamd:29:in `<main>'
 INFO Runner: spamd: /usr/lib/ruby/vendor_ruby/dbus/bus.rb:340:in `block in send_sync_or_async': No such file or directory (DBus::Error)
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/dbus/bus.rb:514:in `process'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/dbus/bus.rb:456:in `send_sync'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/dbus/bus.rb:339:in `send_sync_or_async'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/dbus/proxy_object_interface.rb:63:in `block (2 levels) in define_method_from_descriptor'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/dbus/proxy_object.rb:108:in `call'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/dbus/proxy_object.rb:108:in `block (3 levels) in define_shortcut_methods'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/dbus/systemd/mixin.rb:35:in `method_missing'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/symbiosis/monitor/service/systemd.rb:117:in `unit_file_state'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/symbiosis/monitor/service/systemd.rb:67:in `enabled?'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/symbiosis/monitor/check.rb:94:in `service_enabled?'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/symbiosis/monitor/check.rb:98:in `ensure_service_enabled'
 INFO Runner: spamd:    from /usr/lib/ruby/vendor_ruby/symbiosis/monitor/check.rb:175:in `do_check'
 INFO Runner: spamd:    from /etc/sympl/monit.d/spamd:29:in `<main>'
 INFO Runner: spamd: Checking service is enabled
 WARN Runner: spamd: FAILED: exit 1
 INFO Runner: RESULT: 9/10 passed.
sympl-monit.service: Main process exited, code=exited, status=1/FAILURE
sympl-monit.service: Failed with result 'exit-code'.
sympl-monit.service: Triggering OnFailure= dependencies.
sympl-monit.service: Consumed 10.554s CPU time.

Environment

  • Sympl Version [9.0/10.0]: 12
  • Sympl Testing Version? [Yes/No] No
  • Debian Version [Buster/Stretch]: Bookworm
  • Hardware Type? [Dedicated/Virtual/Pi] Dedicated
  • Hosted On? [name of hosting co] Bytemark.

Can you try running sudo apt install dbus and see if that helps?

Was this installed from a clean image or an upgrade from Bullseye?

Hiya! Sorry to only just reply!

Here is the result:

root@server:~# sudo apt install dbus
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
dbus is already the newest version (1.14.10-1~deb12u1).
dbus set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I am still getting the same issue.

This is an upgrade from Bullseye

Here is some more Info:
Install / Re Install Spamassassin:

root@server:~# sudo apt install spamassassin
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
spamassassin is already the newest version (4.0.0-6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@server:~# systemctl status spamassassin.service
Unit spamassassin.service could not be found.
root@server:~# systemctl status spamassassin
Unit spamassassin.service could not be found.

Could this be why?? Because it cant ind the service? I cant start it manually either.

root@server:~# service spamassassin start
Failed to start spamassassin.service: Unit spamassassin.service not found.

I have finally managed to fix this - I looked through various files and thought I may aswell try and re install spamd too. It seems that spamd had been uninstalled :confused:

That is what was causing the problem! That was the Missing File! run

sudo apt install spamd

and it was absolutely fine thereafter

1 Like