NodeBB database problem Cloud9

Bug Reports
  • #1

    Hello,

    I go to do
    ./nodebb build

    but it cant connect to my database for some reason:

    it shows the error:

    17/3 22:20:09 [7400] - error: NodeBB could not connect to your Mongo database. Mongo returned the following error: failed to connect to server [127.0.0.1:27017] on first connect
    17/3 22:20:09 [7400] - error: [build] Encountered error preparing for build: failed to connect to server [127.0.0.1:27017] on first connect

    To be honest I'm new to this and I may not have it installed correctly but pretty sure I've done everything right, or at least I have.

    Here is my config:

    {
    "url": "http://localhost:4567",
    "secret": "SECRET",
    "database": "mongo",
    "mongo": {
    "host": "127.0.0.1",
    "port": "27017",
    "username": "USERNAME",
    "password": "PASSWORD",
    "database": "nodebb"
    }
    }

    Can you help me with this?

  • Plugin & Theme Dev
    #2

    @Mr.Geeza make sure mongo is running.


Suggested Topics


  • 0 Votes
    5 Posts
    136 Views

  • 0 Votes
    4 Posts
    1402 Views

  • 0 Votes
    5 Posts
    2557 Views

  • 0 Votes
    19 Posts
    2975 Views

  • 0 Votes
    21 Posts
    5980 Views

| | | |