How do I fix Nodebb installation errors
-
Hello, I installed NodeBB today.
I'm getting a few bugs, can you help with this, please.- 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.
- 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/
-
@neron I did not bother reading all of the docs you linked but they seem dated. Official docs are what you want to grok:
Ubuntu (Recommended) - NodeBB Documentation
Documentation portal for NodeBB Forum Software
(docs.nodebb.org)
Good luck and have fun!
-
-
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?
-
@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:
- What version of NodeBB?
- What version of NodeJS?
- Did you install/setup NodeBB as your NodeBB user? Or perchance might you have done so as root?
- 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!
-
@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.
https://mangolassi.it/topic/21187/deploying-nodebb-1-13-on-centos-8-with-mongodb-4-2
Slightly old, but update to 14 and should work just the same.
-
Oh, even better. Here it is all updated for NodeBB 1.14 and NodeJS updated as well.
https://mangolassi.it/topic/22011/deploying-nodebb-1-14-on-centos-8-with-mongodb-4-2