Problem With Setup: "Database type not set!"

General Discussion
  • #1

    Hello, I've been trying to install NodeBB on my server with MongoDB, but I always get the following error when I run "node app --setup":

    info: Configuration Saved OK
    info: Database type not set! Run node app --setup

    I'm sure this isn't because of Mongo, as I was trying to set it up with Redis before (did some research, but decided against RAM storage, for scalability reasons), and got the same error. This is what I enter:

    node app --setup
    info: NodeBB v0.2.1 Copyright (C) 2013 DesignCreatePlay Inc.
    info: This program comes with ABSOLUTELY NO WARRANTY.
    info: This is free software, and you are welcome to redistribute it under certain conditions.
    info: NodeBB Setup Triggered via Command Line
    info: Welcome to NodeBB!
    info: This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed.
    info: Press enter to accept the default setting (shown in brackets).
    URL of this installation (http://localhost)
    Port number of your NodeBB (4567)
    Use a port number to access NodeBB? (y)
    IP or Hostname to bind to (
    Which database to use (redis) mongo
    Host IP or address of your MongoDB instance (
    Host port of your MongoDB instance (27017)
    MongoDB username (I enter my username)
    Password of your MongoDB database (I enter my password)
    Which database to use (0..n) (0) (I enter my alphabetical forum name)
    info: Configuration Saved OK
    info: Database type not set! Run node app --setup

  • #2

    I feel like an idiot. I forgot to "sudo" the command. Gonna keep this up just in case anyone else runs into the same "problem"

  • GNU/Linux


    Weird, you should not have to use sudo to set up NodeBB...

  • #4

    Well, I'm not a sysadmin and I was just testing it out on a cheap VPS before launching it to Heroku, which is where the production site will reside.
    **Edit: ** The limitations of Heroku have become a painful reality. Moving back to my "cheap" VPS

  • #5

    Yeah I don't really find heroku viable at all, apart from the fact that the workflow is a total pain (unless I'm missing something)... the cost is just too much. What's your "cheap" VPS? Fancy a VPS hosted on SSDs for just $5 a month?

Suggested Topics

| | | |