thomasdouwes/lemmy-reply-bot

[bug] Random diconnect and crashing

Closed this issue · 2 comments

The bot will randomly disconnect and crash when trying to subscribe to communities.
log snippet:

Closing connection. Bot will reconnect in 5
Connected to Lemmy Instance
Initializing DB
Logging in
Marking account as bot account
Subscribing to communities
[Error]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lemmy-reply-bot@1.0.0 start: `ts-node bot.ts`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the lemmy-reply-bot@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/thomas/.npm/_logs/2023-06-13T15_32_21_365Z-debug.log

Sometimes this is fixed by restarting the bot, sometimes the entire lemmy instance needs to be restarted.

Upgrading the lemmy instance from 0.17.2 to 0.17.4 seems to have resolved this. I will watch it for a few days before closing.

Well it's not crashed again so I'm going to close this issue