-
Notifications
You must be signed in to change notification settings - Fork 2k
Mongodb Timeout Zenbot 4 #178
Comments
Experiencing the same issue:
The weird thing is, is that that same mongo is being used by two other instances, which do not have any issues at all. I restarted all (docker) instances a few times and the poloniex.XRP-BTC kept being a problem for some reason. |
same error |
Same error here - locally and remote. I think it may be to do with how Zenbot is creating the connection each time (guess).. |
Same issue with mongodb 2.4.10 on a raspberry pi 3
|
Same issue with mongodb 3.0.2 on a raspberry pi 2... |
Haven't seen this happen in a long while. Closing this for now (also since there doesn't seem to be an active idea for a fix) |
I tried zenbot 4.1.0 on Ubuntu 20.04. MongoDB timeouts only when the |
Just installed zenbot 4, I'm trying to do a backfill after configuring mongo. However, I'm getting a TON of timeouts:
retrying...
{ MongoError: connection 6 to localhost:27017 timed out
at Function.MongoError.create (/root/zenbot/zenbot_test/zenbot/node_modules/mongodb-core/lib/error.js:29:11)
at Socket. (/root/zenbot/zenbot_test/zenbot/node_modules/mongodb-core/lib/connection/connection.js:188:20)
at Object.onceWrapper (events.js:293:19)
at emitNone (events.js:86:13)
at Socket.emit (events.js:188:7)
at Socket._onTimeout (net.js:352:8)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)
name: 'MongoError',
message: 'connection 6 to localhost:27017 timed out',
saved: false,
obj:
{ trade_id: 25018904,
time: 1495411102000,
size: 56.51973033,
price: 0.07220001,
side: 'sell',
id: 'poloniex.ETH-BTC-25018904',
selector: 'poloniex.ETH-BTC' } }
My CPU isn't pegged, I have 16 cores on this system. My RAM isn't full, my disk access isn't full, and zenbot3 is working without throwing timeout errors, it's only the v4 that's doing it. I can't find the URI string to add the timeout info to it, but by default it shouldn't have a timeout, but I'm not sure. How do I troubleshoot and fix this, this system should not be bogged down by traders and mongo, I have way more intensive programs running on less powerful machines, so I believe it's just a config problem on my end, but I'm not sure where.
The text was updated successfully, but these errors were encountered: