keybase-bot icon indicating copy to clipboard operation
keybase-bot copied to clipboard

it stops working after a few minutes

Open funkyn3rd opened this issue 5 years ago • 6 comments

I have this problem for 2-3 days. Whatever the code, after a few minutes I am forced to restart the script because it no longer receives anything. What could be the problem? Thank you

funkyn3rd avatar Dec 18 '19 10:12 funkyn3rd

Yeah, I'm also having an issue where my bot stops being connected to Keybase after a while. It seems quite random, and usually takes several hours before it gets into this state. Restarting the keybase daemon fixes it, but it's really annoying.

wiz avatar Dec 21 '19 16:12 wiz

push

edit: after playin around, i figured out that this problem happens mostly when i initialize via:

keybase.bot.init(username, paperkey)

it stops working after one/two minutes.

but when i use:

keybase.bot.initFromRunningService()

it seems to be more stable (running since 30mins now). if this happens again, im going to update this post.

please fix this asap. thanks in advance.

update: the bot is now running since about 23hours without any issues. btw, system is osx-mojave, with keybase-app running - not only daemon. so maybe this issue is related to the keybase oneshot api. as said before, for me it only happens when im using paperkeys to initialize.

WizardsOrb avatar Jan 28 '20 17:01 WizardsOrb

I'm currently working on this bug, I'll let you know if/when it gets fixed.

pzduniak avatar Jan 30 '20 14:01 pzduniak

Once this is fixed, I recommend init(username,paperkey) over initFromRunningService.

For a bot that's designed to run for weeks/months, initializing with a username/paperkey is better because it starts its own dedicated service up that can run without interruption. In contrast, the GUI's service will shut down when you apply an update.

malgorithms avatar Jan 30 '20 15:01 malgorithms

Hi,

I can confirm this issue also exists in my instances. Tested on both a MacBook + Ubuntu 18.04 machine. Usually lasted ~30 minutes before crashing.

I’ve mentioned this in the @mkbot channel 10+ times and most could not relate. It makes me very happy to see others are aware of the issues.

Thanks for the great work, devs!

al5ina5 avatar Jan 31 '20 07:01 al5ina5

@al5ina5 @malgorithms Hello is this issue fixed yet?

roychowdhuryrohit-dev avatar Mar 22 '21 20:03 roychowdhuryrohit-dev