Skip to content


Choose a tag to compare
@sogehige sogehige released this 23 Apr 12:28

If you have issues with bot startup due duplication keys issues, please run through cleanup, node tools/cleanup.js

Example of error

(node:14592) UnhandledPromiseRejectionWarning: MongoError: E11000 duplicate key error collection: icebot_db.users index: username_1 dup key: { : "boonee007" }
at /home/bots/icebot/node_modules/mongodb-core/lib/connection/pool.js:598:61
at authenticateStragglers (/home/bots/icebot/node_modules/mongodb-core/lib/c onnection/pool.js:516:16)
at Connection.messageHandler (/home/bots/icebot/node_modules/mongodb-core/li b/connection/pool.js:552:5)
at emitMessageHandler (/home/bots/icebot/node_modules/mongodb-core/lib/conne ction/connection.js:309:10)
at Socket. (/home/bots/icebot/node_modules/mongodb-core/lib/conne ction/connection.js:452:17)
at Socket.emit (events.js:180:13)
at addChunk (_stream_readable.js:269:12)
at readableAddChunk (_stream_readable.js:256:11)
at Socket.Readable.push (_stream_readable.js:213:10)
at TCP.onread (net.js:578:20)
(node:14592) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejectio n id: 1)
(node:14592) [DEP0018] DeprecationWarning: Unhandled promise rejections are depr ecated. In the future, promise rejections that are not handled will terminate th e Node.js process with a non-zero exit code.
  • 1d1c709 database/mongodb: Remove dropDups as it is not supported anymore
  • d59c784 database/mongodb: Create indexes only on cluster
  • 2b7ce8e tools/cleanup: Revert duplicate user clean