-
Notifications
You must be signed in to change notification settings - Fork 3.9k
SQLITE_BUSY: database is locked #1189
Comments
What operating system are you running? |
Sorry I forgot that detail |
Have you tried changing the journal mode from WAL to DEL in plugins/sqlite/handle.js? Possibly totally unrelated but I have had issues in the past with sqlite and database locking and for me my problem was solved by changing the journal mode. |
Thanks for your quick answer, but that did not fix the problem. The behavior and stacktrace are exactly the same |
I see that there is a mongodb pulgin. Can I use it instead of sqlite ? How ? I cannot find anything related in the documentation |
Running |
Nope, still an error. However, I have noticed something really interesting: |
This works for me, try to add
This raises busyTimeout. |
i had this same issue for paper trader on version 0.5.8 for BTC Markets. i just recompiled the version 0.5.9 and the same issue is still occurring. i have tried Poloniex and its not happening on that market. it has not been fixed for BTC Markets Error messsage in the console: Error: SQLITE_BUSY: database is locked |
@darkcloud8 can you be more specific in what you are doing: When this happens how many gekkos are running (UI + commandline)? How many of those use BTC-markets? |
Only 1 gekko running in UI mode. |
And the exact same behaviour doesn't happen on any other exchange? That's
really weird, the error you are seeing has nothing to do with BTC-markets.
…On Tue, Oct 24, 2017 at 4:51 PM, darkcloud8 ***@***.***> wrote:
Only 1 gekko running in UI mode.
I start Paper Trader for BTC-markets and set it to AUD to BTC. Left
everything else on default and click start.
Within 5secs of starting it those the Child process has died on the UI and
i check the console it gives me that error message above.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1189 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA7MDz96tzoBR3G_TGIY67R4czYwbYLLks5svbMKgaJpZM4PxXsm>
.
--
PGP key at keybase.io/mikevanrossum
<https://keybase.io/mikevanrossum/key.asc>
|
I have only tested Poloniex but i will test the rest now and get back to you. |
Can be related to the number of transaction ? BTC has generally more volume/transactions to write on DB. I think is related on hardware too, I see the problem only on raspberry (on my notebook works good), but with 1500 timeout I've no problems. What hardware have you? |
I'm running it on my QNAP TS-453A in the Container Station. My setup on the QNAP is running 3 docker containers All 3 containers have separate history folders |
@askmike i have tested all the markets, the ones below throw me errors on Paper Trader with default options. It seems like the error i'm getting on BTC-Markets is happening on kraken too. All the others looks like different errors. Hope that is useful information. bx.in.th /usr/src/app/core/budfox/tradeBatcher.js:40 cexio /usr/src/app/core/budfox/tradeBatcher.js:40 kraken Error: SQLITE_BUSY: database is locked lakebtc |
Ah you picked some very old exchanges haha. Anyway:
This is most likely related to your NAS. Especially if you are not running any other Gekko at the same time. Would you be able to test Gekko on anything else (laptop, computer, server) to see if Kraken, Poloniex, Bitstamp or GDAX works? |
i tried it on my laptop, Kraken, Poloniex, Bitstamp and GDAX all works fine but with BTC-Markets i still get a Child process has died error on the UI. The Watcher still looks like its running, i can confirm about the Paper Trader part has stopped updating. |
i tried Kraken on a few different Currency to Asset setup and everything else on default on Paper Trader. I have notice that Kraken and BTC-Market both imports massive amount of data depend on what time of the day it is. Anything over 4-5hours of data the Paper Trader will crash and throw the Child process has died error. |
Started from a clean repo (first time with gekko)
Ran
npm install
Ran
node gekko --ui
Added a new 'paper trader' gekko using the interface, with default options
Immediate
alert()
popup saying 'GEKKO ERROR: Child process has died.'Stacktrace here
P.S
I saw the other related issues. In other threads, the problems occurs after a few hours, mine occurs immediately.
I do not have multiple instances of gekko running.
The text was updated successfully, but these errors were encountered: