Jump to content

User:Razzi/Looking into The following units failed: wmf auto restart prometheus-mysqld-exporter@matomo.service

From Wikitech
razzi@matomo1002:/var/log$ systemctl cat wmf_auto_restart_prometheus-mysqld-exporter@matomo.service
# /lib/systemd/system/wmf_auto_restart_prometheus-mysqld-exporter@matomo.service
[Unit]
Description=Auto restart job: prometheus-mysqld-exporter@matomo

[Service]
User=root
ExecStart=/usr/local/sbin/wmf-auto-restart -s prometheus-mysqld-exporter@matomo

The error is:

razzi@matomo1002:/var/log$ j wmf_auto_restart_prometheus-mysqld-exporter@matomo.service
-- Logs begin at Sat 2022-01-29 02:12:50 UTC. --
Jan 31 06:48:06 matomo1002 systemd[1]: Started Auto restart job: prometheus-mysqld-exporter@matomo.
Jan 31 06:48:06 matomo1002 wmf-auto-restart[25127]: INFO: 2022-01-31 06:48:06,228 : Service prometheus-mysqld-exporter@matomo not present or not running
Jan 31 06:48:06 matomo1002 systemd[1]: wmf_auto_restart_prometheus-mysqld-exporter@matomo.service: Main process exited, code=exited, status=1/FAILURE
Jan 31 06:48:06 matomo1002 systemd[1]: wmf_auto_restart_prometheus-mysqld-exporter@matomo.service: Failed with result 'exit-code'.
Feb 01 06:48:03 matomo1002 systemd[1]: Started Auto restart job: prometheus-mysqld-exporter@matomo.
Feb 01 06:48:03 matomo1002 wmf-auto-restart[394]: INFO: 2022-02-01 06:48:03,819 : Service prometheus-mysqld-exporter@matomo not present or not running
Feb 01 06:48:03 matomo1002 systemd[1]: wmf_auto_restart_prometheus-mysqld-exporter@matomo.service: Main process exited, code=exited, status=1/FAILURE
Feb 01 06:48:03 matomo1002 systemd[1]: wmf_auto_restart_prometheus-mysqld-exporter@matomo.service: Failed with result 'exit-code'.

Ben claimed it, ongoing work for https://phabricator.wikimedia.org/T299762, and I acked the alert for a week.