Actions
action #28711
closed"hermes" died for osd
Start date:
2017-12-01
Due date:
% Done:
0%
Estimated time:
Difficulty:
Description
The IRC bot "hermes" is not there at the moment in #openqa-events
Updated by okurz over 6 years ago
- Related to action #27883: [tools] Deploy bug fetcher on proper VM added
Updated by okurz over 6 years ago
- Status changed from New to Resolved
- Assignee changed from dheidler to okurz
The machine is kazhua.suse.de or also stealth-new.suse.de
So far the bot was started only manually and it stopped with no automatic restarting.
The traceback from the crash:
Traceback (most recent call last):
File "./consume.py", line 96, in <module>
channel.start_consuming()
File "/usr/lib/python3.4/site-packages/pika/adapters/blocking_connection.py", line 1681, in start_consuming
self.connection.process_data_events(time_limit=None)
File "/usr/lib/python3.4/site-packages/pika/adapters/blocking_connection.py", line 656, in process_data_events
self._dispatch_channel_events()
File "/usr/lib/python3.4/site-packages/pika/adapters/blocking_connection.py", line 469, in _dispatch_channel_events
impl_channel._get_cookie()._dispatch_events()
File "/usr/lib/python3.4/site-packages/pika/adapters/blocking_connection.py", line 1310, in _dispatch_events
evt.body)
File "./consume.py", line 76, in msg_cb
ircc.notice(formatter.fmt(topic, msg), router.target_channels(topic, msg))
File "/root/suse_msg/suse_msg/ircclient.py", line 29, in notice
self.connection.notice(','.join(channels), text)
File "/usr/lib/python3.4/site-packages/irc/client.py", line 857, in notice
self.send_raw("NOTICE %s :%s" % (target, text))
File "/usr/lib/python3.4/site-packages/irc/client.py", line 920, in send_raw
raise ServerNotConnectedError("Not connected.")
irc.client.ServerNotConnectedError: Not connected.
I assume it just stopped when the IRC server was restarted the last time.
So I could have just restarted it once or we use while sleep 1; do ./consume.py ; done
. Instead I added to /etc/crontab
*/10 * * * * flock /tmp/suse_msg.lock /root/suse_msg/suse_msg/consume.py
@reboot flock /tmp/suse_msg.lock /root/suse_msg/suse_msg/consume.py
Solved for now, #27883 is for moving to another machine.
Actions