ctubio / Krypto-trading-bot

Self-hosted crypto trading bot (automated high frequency market making) written in C++
https://127.0.0.1:3000
Other
3.32k stars 819 forks source link

Segfaults en masse SSL_get_error #1112

Closed durrhurr991 closed 3 years ago

durrhurr991 commented 3 years ago

now after having the gui running properly and being able to make quite high frequency trades it seems to start crashing after a certain amount of trades in the history or keeps getting quota errors and then have to restart

06/11 21:17:34.631297 Errrror: Segmentation fault (Three-Headed Monkey found):

this the crashlog it seems to be ssl related

ctubio commented 3 years ago

i dont know how to repdocue this error, what browser are you using to access the UI? and what certificates are you using in the bot?

ctubio commented 3 years ago

i would say you are having some issue with the certificates, can you see if https://github.com/ctubio/Krypto-trading-bot/issues/1016 helps?

durrhurr991 commented 3 years ago

firefox 89 on Linux VirtualBox 5.8.0-55-generic #62~20.04.1-Ubuntu SMP x86_64 (standard unaltered 20.04.1) runs now with without-ssl but besides that nothing out of the ordinary settings.

also noticed that once in a while it just hangs or has oderbook issues but i think that is kucoin exclusive. havent tried any other exchange yet but will probably have a second instance on binance

durrhurr991 commented 3 years ago

but other than that im pretty amazed about how the trade freq to profit ratio is just right even with more or less stock settings

i`ll just allocate another core or even a little more ram and vram and see how that goes it seems a bit laggy even with 2cores and 8gb

ctubio commented 3 years ago

note is a single thread application, so only uses 1 core always; and also the ram in-use for each instance is very little, you can see it displayed in the bottom of the frontend; should be less than 100Mb

durrhurr991 commented 3 years ago

20MB even lmao. might setup an alpine box for that then just ssh into it and give it a passthrough for webui

ctubio commented 3 years ago

:koala: in case you still wana fix this issue, let me know if you using the built-in certificate or are you using --ssl-crt and --ssl-key arguments