Open tito opened 3 years ago
which version did you use?
Didn't see this bug popping up for a while, anyone still has it?
I encountered it like less than a month ago running the bot in a raspberry pi 4.
Sorted it replacing engine = create_engine("sqlite:///data/crypto_trading.db") in database.py engine = create_engine("sqlite:///data/crypto_trading.db?check_same_thread=False")
Its strange because I had it running in other devices and had no issues :S
Yeah, we know setting check_same_thread=False
solves this, but that check is there for a reason... No idea why this bug keeps surfacing.
I got that backtrace during the night:
And after that i think the bot is stuck, no more transactions for the last 24h. After restarting it, it started trading.