Authorization Failed NodeBB Setup

Technical Support
  •                                             **THIS HAS BEEN SOLVED**
    

    The problem was for some reason MongoDB didn't setup a directory automatically for /data/db and once I created that myself it worked flawlessly. However you do have to remake your users & DB!

    Hello! I've been trying to install NodeBB for the past hour and I keep hitting the same exact road block when run ./nodebb setup as a non-root (or even root) account.

    cde13a6c-5931-4327-acbb-097c653957f9-image.png

    I've been following this guide: https://docs.nodebb.org/installing/os/debian/

    I'm running Ubuntu Server 16.04 LTS with the latest updates & upgrades, I had 0 errors up until this point.

    mongo -u admin -p mypassword --authenticationDatabase=admin <-- This logs in successfully

    If I don't login with my admin account then I get authentication errors so I know authentication is working, here's my users in my nodebb database:
    91beb0e3-e2c9-45ff-8733-ddecd26ffce8-image.png

    I am unsure why this isn't working, I'm not sure what more information to provide but ask away and I'll send. This is a near stock Ubuntu Server installation. ☹

    Thank you in advance

  • Try the Ubuntu docs instead of the Debian docs. They're more up to date.


Suggested Topics


  • 0 Votes
    4 Posts
    358 Views

    @julian What do I call the boot method؟

  • 0 Votes
    7 Posts
    3k Views

    @baris said in Changes to theme .tpl files don't show live:

    @Jarko Yes the id field in plugin.json is not used, you need to change the name field in package.json

    ...and that was the issue indeed! Thank you! 💃

  • 0 Votes
    1 Posts
    2k Views

    I am spinning up a new community and found the following warnings during my install.

    Anything I should do about these?

    [root@bna-com ~]# nvm install v7.2.0 ######################################################################## 100.0% Computing checksum with sha256sum Checksums matched! Now using node v7.2.0 (npm v3.10.9) Creating default alias: default -> v7.2.0 [root@bna-com ~]# cd /opt/bnacmty/ [root@bna-com bnacmty]# git clone -b v1.x.x https://github.com/NodeBB/NodeBB nodebb Cloning into 'nodebb'... remote: Counting objects: 112796, done. remote: Compressing objects: 100% (101/101), done. remote: Total 112796 (delta 38), reused 2 (delta 2), pack-reused 112693 Receiving objects: 100% (112796/112796), 34.86 MiB | 9.87 MiB/s, done. Resolving deltas: 100% (84665/84665), done. [root@bna-com bnacmty]# cd nodebb [root@bna-com nodebb]# npm install npm WARN deprecated [email protected]: use uuid module instead npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years. npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated [email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. [email protected] /opt/bnacmty/nodebb
  • NodeBB on Uberspace

    Technical Support
    0 Votes
    1 Posts
    763 Views

    Dear all,

    as the topic title states I am trying to run a NodeBB forum on the shared hoster Uberspace. I am following the fairly recent guide from Til Zöller. It works fine until I change the user registration to "Admin Invite". Once a user tries to register he gets a registration error with the message

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>502 Proxy Error</title> </head><body> <h1>Proxy Error</h1> <p>The proxy server received an invalid
    response from an upstream server.<br />
    The proxy server could not handle the request <em><a href="/register">POST /register</a></em>.<p> Reason: <strong>Error reading from remote server</strong></p></p> <hr> <address>Apache/2.2.15 (CentOS) Server at xxx.xxx.uberspace.de Port 80</address> </body></html>

    Any help would be highly appreciated.

  • 0 Votes
    6 Posts
    4k Views

    Here's how I got NodeBB up and running on the Google Cloud Platform.
    The following are the steps I took:

    Created VPC firewall rule with 4567 port.

    Deployed Compute Engine VM Instance with Ubuntu Pro 20.04

    Install NodeBB via the Web Interface.

    Install Let's Encrypt Wildcard SSL on Nginx.

    The documentation for setting up NodeBB on Compute Engine can be found here.
    [Installing NodeBB on Compute Engine] (https://www.incapio.com/post/install-nodebb-forum-on-compute-engine-google-cloud-gcp)