Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Mongojs error #1571

Closed
theposs101 opened this issue Apr 30, 2018 · 7 comments
Closed

Mongojs error #1571

theposs101 opened this issue Apr 30, 2018 · 7 comments

Comments

@theposs101
Copy link

theposs101 commented Apr 30, 2018

System information

  • Have I written custom code (as opposed to using zenbot vanilla): no
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
  • Zenbot version (commit ref, or version): 4.1.0
  • Zenbot branch: unstable
  • NodeJS version: 9.11.1
  • Python version (when using a python script): n/a
  • Exact command to reproduce (include everything): ./zenbot.sh binance.BTC-USDT —paper —strategy neural
  • **Did I make any changes to conf-sample.js? Yes, https://pastebin.com/hPKwZzHn

Describe the problem

After running zenbot for about 5 or so minutes, it throws an error. Seems to be an issue with the mongo module, after researching and looking at the error.

Source code / Error logs

/root/zenbot/node_modules/mongodb/lib/utils.js:132
throw err;
^
MongoError: cursor id 34859244662 not found
at /root/zenbot/node_modules/mongodb-core/lib/connection/pool.js:598:61
at authenticateStragglers (/root/zenbot/node_modules/mongodb-core/lib/connection/pool.js:516:16)
at Connection.messageHandler (/root/zenbot/node_modules/mongodb-core/lib/connection/pool.js:552:5)
at emitMessageHandler (/root/zenbot/node_modules/mongodb core/lib/connection/connection.js:309:10)
at Socket. (/root/zenbot/node_modules/mongodb-core/lib/connection/connection.js:452:17)
at Socket.emit (events.js:180:13)
at addChunk (_stream_readable.js:274:12)
at readableAddChunk (_stream_readable.js:261:11)
at Socket.Readable.push (_stream_readable.js:218:10)
at TCP.onread (net.js:581:20

@theposs101
Copy link
Author

This also seems to happen when the bot does a sell.

@theposs101
Copy link
Author

theposs101 commented Apr 30, 2018

Seems that updating the mongojs module fixes it

@theposs101
Copy link
Author

Just got the error again, reopening.

@theposs101 theposs101 reopened this Apr 30, 2018
@kenorb
Copy link

kenorb commented Apr 30, 2018

See: mongodb-js/mongodb-core/issues/199

@theposs101
Copy link
Author

Managed to fix it by downgrading to Ubuntu 16.04. I've had it run for 24 hours without issue. It might be an issue related to MongoDB and/or NodeJS's MongoJS module on Ubuntu 18.04. Thanks!

@vovchisko
Copy link

Same issue.
mongodb server v3.6.5
mongodb module v3.0.10
nodejs v10.2.1

@vovchisko
Copy link

@PossibilitiesMC What MongoDB version you have now?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants