Configuration Error: unknown database

  • Trying to install NodeBB, followed the tutorial exactly and I'm stuck at the config part. When I'm prompted to add the created mongo database credentials I get this error

    warn: NodeBB Setup Aborted.
    Error: unknown database : nodebb
       at getDatabaseConfig (/home/admin/web/mywebsite/public_html/install/databases.js:42:19)
       at /home/admin/web/mywebsite/public_html/install/databases.js:16:4
       at nextTask (/home/admin/web/mywebsite/public_html/node_modules/async/dist/async.js:5324:14)
       at Object.waterfall (/home/admin/web/mywebsite/public_html/node_modules/async/dist/async.js:5334:5)
       at module.exports (/home/admin/web/mywebsite/public_html/install/databases.js:13:8)
       at /home/admin/web/mywebsite/public_html/src/install.js:140:4
       at nextTask (/home/admin/web/mywebsite/public_html/node_modules/async/dist/async.js:5324:14)
       at next (/home/admin/web/mywebsite/public_html/node_modules/async/dist/async.js:5331:9)
       at /home/admin/web/mywebsite/public_html/node_modules/async/dist/async.js:969:16
       at /home/admin/web/mywebsite/public_html/node_modules/prompt/lib/prompt.js:336:32

    I don't know what could be wrong as I'm not used with mongo databases. Thank you for any help.

  • NodeBB Admin

    It seems like the setup is asking you which database to use redis or mongo but you are typing nodebb I am guessing that is your database name in mongodb. First type mongo and then when it asks for the database name use nodebb.

  • @baris Thank you so much. Caught in the installing process didn't saw that. Now I have a working NodeBB site. For the first test install used everything as is in the tutorial so database is nodebb.

Suggested Topics

| | | |