Page MenuHomePhabricator

ircecho doesn't attempt to open log files created after startup
Closed, ResolvedPublic

Description

Something else that didn't work well: the current version of ircecho doesn't seem to attempt reopening the files it is supposed to look for in /var/log/icinga. I have "fixed" this by creating said .log files and then restarting ircecho, which then did properly open/tail the files

Event Timeline

Logs from ircecho.service

Mar 05 15:14:33 alert2001 ircecho[1136326]: Failed to open file: /var/log/icinga/irc-analytics.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: [2024-03-05 15:14:33,941 pyinotify ERROR] add_watch: cannot watch /var/log/icinga/irc-analytics.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: ERROR:pyinotify:add_watch: cannot watch /var/log/icinga/irc-analytics.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: Opening: /var/log/icinga/irc-cloud-feed.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: Failed to open file: /var/log/icinga/irc-cloud-feed.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: [2024-03-05 15:14:33,943 pyinotify ERROR] add_watch: cannot watch /var/log/icinga/irc-cloud-feed.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: ERROR:pyinotify:add_watch: cannot watch /var/log/icinga/irc-cloud-feed.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: Opening: /var/log/icinga/irc-databases.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: Failed to open file: /var/log/icinga/irc-databases.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: [2024-03-05 15:14:33,945 pyinotify ERROR] add_watch: cannot watch /var/log/icinga/irc-databases.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: ERROR:pyinotify:add_watch: cannot watch /var/log/icinga/irc-databases.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: Opening: /var/log/icinga/irc-dcops.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: Failed to open file: /var/log/icinga/irc-dcops.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: [2024-03-05 15:14:33,948 pyinotify ERROR] add_watch: cannot watch /var/log/icinga/irc-dcops.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: ERROR:pyinotify:add_watch: cannot watch /var/log/icinga/irc-dcops.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: Opening: /var/log/icinga/irc-fundraising.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: Failed to open file: /var/log/icinga/irc-fundraising.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: [2024-03-05 15:14:33,949 pyinotify ERROR] add_watch: cannot watch /var/log/icinga/irc-fundraising.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: ERROR:pyinotify:add_watch: cannot watch /var/log/icinga/irc-fundraising.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: Opening: /var/log/icinga/irc-interactive.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: Failed to open file: /var/log/icinga/irc-interactive.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: [2024-03-05 15:14:33,951 pyinotify ERROR] add_watch: cannot watch /var/log/icinga/irc-interactive.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: ERROR:pyinotify:add_watch: cannot watch /var/log/icinga/irc-interactive.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: Opening: /var/log/icinga/irc-performance.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: Failed to open file: /var/log/icinga/irc-performance.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: [2024-03-05 15:14:33,953 pyinotify ERROR] add_watch: cannot watch /var/log/icinga/irc-performance.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: ERROR:pyinotify:add_watch: cannot watch /var/log/icinga/irc-performance.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: Opening: /var/log/icinga/irc-reading-web.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: Failed to open file: /var/log/icinga/irc-reading-web.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: [2024-03-05 15:14:33,954 pyinotify ERROR] add_watch: cannot watch /var/log/icinga/irc-reading-web.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: ERROR:pyinotify:add_watch: cannot watch /var/log/icinga/irc-reading-web.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: Opening: /var/log/icinga/irc-releng.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: Failed to open file: /var/log/icinga/irc-releng.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: [2024-03-05 15:14:33,956 pyinotify ERROR] add_watch: cannot watch /var/log/icinga/irc-releng.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: ERROR:pyinotify:add_watch: cannot watch /var/log/icinga/irc-releng.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: Opening: /var/log/icinga/irc-team-data-platform.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: Failed to open file: /var/log/icinga/irc-team-data-platform.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: [2024-03-05 15:14:33,958 pyinotify ERROR] add_watch: cannot watch /var/log/icinga/irc-team-data-platform.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: ERROR:pyinotify:add_watch: cannot watch /var/log/icinga/irc-team-data-platform.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: Opening: /var/log/icinga/irc.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: Failed to open file: /var/log/icinga/irc.log
Mar 05 15:14:33 alert2001 ircecho[1136326]: [2024-03-05 15:14:33,959 pyinotify ERROR] add_watch: cannot watch /var/log/icinga/irc.log WD=-1, Errno=No such file or directory (ENOENT)
Mar 05 15:14:33 alert2001 ircecho[1136326]: ERROR:pyinotify:add_watch: cannot watch /var/log/icinga/irc.log WD=-1, Errno=No such file or directory (ENOENT)

Change 1009256 had a related patch set uploaded (by Filippo Giunchedi; author: Filippo Giunchedi):

[operations/puppet@production] icinga: create ircecho log files

https://gerrit.wikimedia.org/r/1009256

Change 1009256 merged by Filippo Giunchedi:

[operations/puppet@production] icinga: create ircecho log files

https://gerrit.wikimedia.org/r/1009256

Calling this done, albeit with an hack