Need help with Mongodb

Technical Support

Suggested Topics


  • Move MongoDB to clean NodeBB

    Solved Technical Support
    0 Votes
    1 Posts
    311 Views

    Hello, I'm hosting my NodeBB on Digital Ocean and I want to move everything to an other database. We use MongoDB and we have a few problems. We don't know the MongoDB admin password/username.

    Do you know a way to do this or is there a plugin that makes this easier to do?
    Any help/advice is welcome and are there things we should do and don't do?

  • 0 Votes
    1 Posts
    212 Views

    Hello,

    In order to connect to the MongoDB of my VPS by means of MongoDB Community Compass installed on my PC, I need to provide authentication: username, password and authentication database. Which credentials may I set here? The username admin and the authentication database admin, or the username nodebb and the authentication database nodebb? Also, what must I do with the connection configuration options "SRV Record", "Read Preference" and "SSL"? May I set something here?

    Regards,
    Néstor Llamas Llopis

  • MongoDB 4.x supported ?

    Technical Support
    0 Votes
    3 Posts
    715 Views

    2018-09-09T10:11:48.922Z [9648] - info: NodeBB is now listening on: 127.0.0.1:4569
    2018-09-09T10:16:43.603Z [11388] - error: MongoError: cursor id 27285299524 not found
    at X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:598:61
    at authenticateStragglers (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:516:16)
    at Connection.messageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:552:5)
    at emitMessageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:309:10)
    at Socket.<anonymous> (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:452:17)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
    2018-09-09T10:16:43.603Z [11388] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    2018-09-09T10:16:43.605Z [11388] - info: [app] Web server closed to connections.
    2018-09-09T10:16:43.606Z [11388] - info: [app] Database connection closed.
    2018-09-09T10:16:43.606Z [11388] - info: [app] Shutdown complete.
    2018-09-09T10:16:43.621Z [5504] - error: MongoError: cursor id 28811112366 not found
    at X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:598:61
    at authenticateStragglers (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:516:16)
    at Connection.messageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:552:5)
    at emitMessageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:309:10)
    at Socket.<anonymous> (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:452:17)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
    2018-09-09T10:16:43.625Z [5504] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    2018-09-09T10:16:43.627Z [5504] - info: [app] Web server closed to connections.
    2018-09-09T10:16:43.632Z [5504] - info: [app] Database connection closed.
    2018-09-09T10:16:43.632Z [5504] - info: [app] Shutdown complete.
    [cluster] Child Process (11388) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    [cluster] Child Process (5504) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    2018-09-09T10:16:43.723Z [9648] - error: MongoError: cursor id 28796318791 not found
    at X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:598:61
    at authenticateStragglers (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:516:16)
    at Connection.messageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:552:5)
    at emitMessageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:309:10)
    at Socket.<anonymous> (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:452:17)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
    2018-09-09T10:16:43.724Z [9648] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    2018-09-09T10:16:43.732Z [9648] - info: [app] Web server closed to connections.
    2018-09-09T10:16:43.734Z [9648] - info: [app] Database connection closed.
    2018-09-09T10:16:43.734Z [9648] - info: [app] Shutdown complete.
    [cluster] Child Process (9648) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    2018-09-09T10:16:44.114Z [9396] - error: MongoError: cursor id 28075153536 not found
    at X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:598:61
    at authenticateStragglers (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:516:16)
    at Connection.messageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\pool.js:552:5)
    at emitMessageHandler (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:309:10)
    at Socket.<anonymous> (X:\NodeBB\node_modules\mongodb\node_modules\mongodb-core\lib\connection\connection.js:452:17)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
    2018-09-09T10:16:44.114Z [9396] - info: [app] Shutdown (SIGTERM/SIGINT) Initialised.
    2018-09-09T10:16:44.115Z [9396] - info: [app] Web server closed to connections.
    2018-09-09T10:16:44.118Z [9396] - info: [app] Database connection closed.
    2018-09-09T10:16:44.118Z [9396] - info: [app] Shutdown complete.
    [cluster] Child Process (9396) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    2018-09-09T10:16:45.087Z [12300] - info: Initializing NodeBB v1.10.1 https://beep.com/forum
    2

  • 0 Votes
    6 Posts
    2k Views

    😆 That's the real deal, they use better chocolate over there too.

  • Help with DNS

    Technical Support
    0 Votes
    5 Posts
    2k Views

    @nhl-pl and @julian , all is cool as they say, got help from digital ocean and am good to go now, thanks again to you both for helping - the post is here for anyone else that's looking.

    regards, Lee 😁 😃