Page MenuHomePhabricator
Paste P17060

(An Untitled Masterwork)
ActivePublic

Authored by MatthewVernon on Aug 23 2021, 9:51 AM.
Tags
None
Referenced Files
F34617691: raw-paste-data.txt
Aug 23 2021, 9:51 AM
Subscribers
None
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not find resource 'Exec['systemctl try-restart prometheus-mysqld-exporter']' in parameter 'notify' on node zarcillo0.mariadb104-test.eqiad1.wikimedia.cloud
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
cf
#We only want to restart if the service is running
#(which it won't be if mariadb isn't)
exec { 'systemctl try-restart prometheus-mysqld-exporter':
refreshonly => true,
}
ensure_packages('prometheus-mysqld-exporter', {'notify' => "Exec['systemctl try-restart prometheus-mysqld-exporter']"})

Event Timeline

-    ensure_packages('prometheus-mysqld-exporter', {'notify' => "Exec['systemctl try-restart prometheus-mysqld-exporter']"})
+    ensure_packages('prometheus-mysqld-exporter', {'notify' => Exec['systemctl try-restart prometheus-mysqld-exporter']})

is the fix