inertia186 / drotto

Pay-to-play voting bot.
Other
30 stars 42 forks source link

votes get messed up when bot gets stuck voting #8

Closed bitcoiners closed 6 years ago

bitcoiners commented 6 years ago

I've been having this problem lately where there is something that causes bot to get stuck in the middle of voting for bids and I am forced to shut it down and restart. This messes up the voting as bot assumes new round has started and does not finish up remaining votes.

inertia186 commented 6 years ago

Are there errors associated with this behavior? Sounds like maybe you’re out of memory.

bitcoiners commented 6 years ago

It could be memory related, but I also saw connection error message before bot got stuck. Will look into increasing memory. If for whatever reason voting does not complete and bot gets shut down, it should finish up the voting before starting new round, else everybody's votes get messed up.

inertia186 commented 6 years ago

I think if the root cause is resource limitations like lack of memory, it end up causing problems for Radiator looking for the SSL certificate, saying it couldn’t verify the node. One solution is to add memory, but you might be able to set persist: false in config.yml. E.g.:

:chain_options:
  :chain: steem
  :url: https://steemd.steemit.com
  :persist: false
bitcoiners commented 6 years ago

Doubled ram to 8GB,but problem did not go away. It happened again. image At this point bot got stuck, so if I restart it, votes will get messed up again.

bitcoiners commented 6 years ago

Doubled ram again to 16 GB. Will observe if problem is gone.

inertia186 commented 6 years ago

I've never needed to go over 8GB. Did you try :persist: false?