Can't login with admin [Merry Christmas]



  • So, after installation, and finally getting everything up and running, I accessed the forum. I went to the admin dashboard, and tried entering my mongoDB admin username/password as I'm supposed to, no?

    But I get this error:

    Login Unsuccessful Invalid login credentials

    I searched for possible solutions, but there is none. I was able to create another account, and login with that one, but the admin account is a no go. So if I go to 'users', there's an admin account and the account I created.

    What could possibly be causing this?

    In the console, I receive this:
    Failed to load resource: the server responded with a status of 403 (Forbidden)

    If that's any help. I sort of feel like my mongoDB is somehow configured improperly, but I do not see how, as I followed all instructions. But which DB should I use? As the instructions said to create two users, an admin username/password (in admin DB) and a nodebb user/password(in nodebb DB). So accessing mongo, should I say use nodebb, or use admin? I've tried both, though, no luck.

    Hmm, is there any way that I can access my admin username/password?

    Thank you, and Merry Christmas!


  • Global Moderator

    Your mongodb password is not the same as your admin login credentials. Those are input when you run ./nodebb setup



  • @pitaj
    Ok, I wasn't too sure. What is the admin login credentials then? Or where do I get(or set) those?


  • Global Moderator

    Did you ever run ./nodebb setup? If so, you would have set the credentials there.

    Otherwise, you can db.dropDatabase(); and run ./nodebb setup again, it should generate admin credentials and print them out last.



  • @pitaj
    yes, I'm pretty sure I did. I don't remember what I did though.. Should I run db.dropDatabase(); after running use nodebb ? Because there are two, I think set up: admin and nodebb.

    so, in mongo:
    use nodebb
    db.dropDatabase();

    Like so?


  • Global Moderator

    @username1001 yes that should work. Then run ./nodebb setup


 

| |