How do I fix Nodebb installation errors



  • Hello, I installed NodeBB today.
    I'm getting a few bugs, can you help with this, please.

    1. Error: Cannot login to admin panel. I login as a user, but when I try to login / admin, the page loads and freezes constantly.

    2.Error: I am constantly receiving an error, your connection to nodebb has been lost.

    1. problem: The third problem is that even though I completed the installation without any problems during installation, SSL is not active. can this cause the problem?

    /------------------------------------------/
    config.json;

    {
        "url": "http://myip:4567",
        "secret": "ededededeededededededswsw",
        "database": "mongo",
        "port": "4567",
        "mongo": {
            "host": "127.0.0.1",
            "port": "27017",
            "username": "nodebb",
            "password": "#£#$½¾$½{[¾",
            "database": "nodebb"
        }
    }
    
    

    The document I use for the nodebb installation: https://www.howtoforge.com/how-to-install-nodebb-forum-on-ubuntu-1804-lts/


  • Community Rep

    @neron I did not bother reading all of the docs you linked but they seem dated. Official docs are what you want to grok:

    Good luck and have fun!



  • @gotwf said in How do I fix Nodebb installation errors:

    @neron I did not bother reading all of the docs you linked but they seem dated. Official docs are what you want to grok:

    There is no difference between this document and what I submitted 🙂


  • Global Moderator

    What url are you using to access your nodebb? Are there any errors in the nodebb log? Are there any errors in your browser console?

    What is your version of nodebb, nodejs, etc?

    What is your nginx config?


  • Community Rep

    @neron Like I said, I did not read entirety but I did catch the dated nodejs and nodebb version numbers. In any case, now you have a pointer to the official docs. 😜

    Expanding a bit on the above:

    Regarding issues #1 and #2: I don't think this is nginx related, as you're hitting the NodeBB app server directly via ip address on port 4567. And your config.json otherwise looks fine.

    Some info that may help:

    1. What version of NodeBB?
    2. What version of NodeJS?
    3. Did you install/setup NodeBB as your NodeBB user? Or perchance might you have done so as root?
    4. Please double check permissions and ownership of your nodebb directory.

    Regarding problem #3:

    NodeBB itself does not handle TLS, which is all configured and managed proxy side, e.g. nginx. Presuming you are doing so (and not trying to hit nodebb app server itself directly via https), we will likely need to take a look at your nginx.conf in addition to the above.

    I believe config.json "url" needs to be using https and hostname. But maybe not - just seem to have something about this sticking in the back of my mind - never tried tested TLS using IP address so I could be misremembering. Should work provided your config.json and nginx.conf are congruent.

    NodeBB Console Messages/Logs:

    $ cd /some/dir/nodebb
    
    $ ./nodebb -l start
    

    Then copy pasta the resulting spewage fer' further diagnosis, eh?

    Rock on! 🎸



  • Thank you all for your answers.
    I completely erased the server. I got angry and erased when the errors constantly increased during the installation.

    I am thinking of re-installing NodeBB on the new server. Does anyone want to help me with this?


  • Community Rep

    @neron I expect if you follow those official docs you should be fine. If not, post up your logs and such and we'll get ya' sorted. 👌


  • Community Rep

    @neron said in How do I fix Nodebb installation errors:

    Thank you all for your answers.
    I completely erased the server. I got angry and erased when the errors constantly increased during the installation.

    I am thinking of re-installing NodeBB on the new server. Does anyone want to help me with this?

    Sure. I'll send a guide that I made and use for building them.

    Slightly old, but update to 14 and should work just the same.


  • Community Rep

    Oh, even better. Here it is all updated for NodeBB 1.14 and NodeJS updated as well.


Log in to reply
 

Suggested Topics

  • 4
  • 22
  • 5
  • 5
  • 9
| |