Chatbot crashed and cannot be restarted
Fout the poocess crashed
logging:chatbot FATAL Exited too quickly (process log may have details)
We tried severl time sto restart it but it dies after a few seconds. Here is the log
File “scripts/chatbot.py”, line 160, in <module>
main()
File “scripts/chatbot.py”, line 156, in main
run()
File “scripts/chatbot.py”, line 47, in run
bot.run()
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/RocketChatBot.py”, line 135, in run
for im in self.api.im_list().json().get(‘ims’):
TypeError: ‘NoneType’ object is not iterable
Traceback (most recent call last):
File “scripts/chatbot.py”, line 160, in <module>
main()
File “scripts/chatbot.py”, line 156, in main
run()
File “scripts/chatbot.py”, line 47, in run
bot.run()
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/RocketChatBot.py”, line 120, in run
self.load_channel_ts(channel.get(‘id’))
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/RocketChatBot.py”, line 79, in load_channel_ts
self.load_ts(channel_id, self.api.channels_history(channel_id).json()[‘messages’])
KeyError: ‘messages’
Traceback (most recent call last):
File “scripts/chatbot.py”, line 160, in <module>
main()
File “scripts/chatbot.py”, line 156, in main
run()
File “scripts/chatbot.py”, line 47, in run
bot.run()
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/RocketChatBot.py”, line 120, in run
self.load_channel_ts(channel.get(‘id’))
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/RocketChatBot.py”, line 79, in load_channel_ts
self.load_ts(channel_id, self.api.channels_history(channel_id).json()[‘messages’])
KeyError: ‘messages’
Traceback (most recent call last):
File “scripts/chatbot.py”, line 160, in <module>
main()
File “scripts/chatbot.py”, line 156, in main
run()
File “scripts/chatbot.py”, line 47, in run
bot.run()
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/RocketChatBot.py”, line 120, in run
self.load_channel_ts(channel.get(‘_id’))
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/RocketChatBot.py”, line 79, in load_channel_ts
self.load_ts(channel_id, self.api.channels_history(channel_id).json()[‘messages’])
KeyError: ‘messages’
Traceback (most recent call last):
File “scripts/chatbot.py”, line 160, in <module>
main()
File “scripts/chatbot.py”, line 156, in main
run()
File “scripts/chatbot.py”, line 47, in run
bot.run()
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/RocketChatBot.py”, line 120, in run
self.load_channel_ts(channel.get(‘_id’))
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/RocketChatBot.py”, line 79, in load_channel_ts
self.load_ts(channel_id, self.api.channels_history(channel_id).json()[‘messages’])
KeyError: ‘messages’
Traceback (most recent call last):
File “scripts/chatbot.py”, line 41, in <module>
CHANNEL_ID = get_channel_id(CHANNEL)
File “scripts/chatbot.py”, line 33, in get_channel_id
rocket = RocketChat(BOTNAME, PASSWORD, server_url=URL)
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/rocketchat_API/rocketchat.py”, line 29, in __init
self.login(user, password)
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/rocketchat_API/rocketchat.py”, line 104, in login
raise RocketConnectionException()
rocketchat_API.APIExceptions.RocketExceptions.RocketConnectionException
Traceback (most recent call last):
File “scripts/chatbot.py”, line 41, in <module>
CHANNEL_ID = get_channel_id(CHANNEL)
File “scripts/chatbot.py”, line 33, in get_channel_id
rocket = RocketChat(BOTNAME, PASSWORD, server_url=URL)
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/rocketchat_API/rocketchat.py”, line 29, in init
self.login(user, password)
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/rocketchat_API/rocketchat.py”, line 104, in login
raise RocketConnectionException()
rocketchat_API.APIExceptions.RocketExceptions.RocketConnectionException
Traceback (most recent call last):
File “scripts/chatbot.py”, line 41, in <module>
CHANNEL_ID = get_channel_id(CHANNEL)
File “scripts/chatbot.py”, line 33, in get_channel_id
rocket = RocketChat(BOTNAME, PASSWORD, server_url=URL)
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/rocketchat_API/rocketchat.py”, line 29, in init
self.login(user, password)
File “/home/monitoring/.pyenv/versions/3.6.8/lib/python3.6/site-packages/rocketchat_API/rocketchat.py”, line 104, in login
raise RocketConnectionException()
rocketchat_API.APIExceptions.RocketExceptions.RocketConnectionException