yagop / telegram-bot

UNMAINTAINED - A Telegram Bot based on plugins
GNU General Public License v2.0
848 stars 502 forks source link

Does not respond to messages after some time. #311

Open fionnlagh opened 9 years ago

fionnlagh commented 9 years ago

The error message that occurs is: .luarocks/share/lua/5.2/redis.lua:264: connection error: closed

This is because the redis server by default terminates idle connections after 300 seconds, but the script does not automatically reconnect to the redis-server. A manual restart of the bot is required. However, a temporary fix would be setting the connection timeout to 0 (disable) in /etc/redis/redis-server.conf