I was able to install it by following the instructions from here: https://products.containerize.com/discussion-forum/nodebb
I already have node.js installed on my computer. I did not install redis or nginx.
I have a mac, so on Terminal, after I created a directory called "nodebb", I skipped the first few lines of the instructions, and just pointed to the directory I created, by using the "cd" command. I then created another directory called NodeBB inside the nodebb directory. You may skip creating two directories and just create a directory called "NodeBB". I pointed to this directory by using the cd command.
Then this line
"git clone -b v1.15.x https://github.com/NodeBB/NodeBB.git ."
was the key for me.
After I typed that, nodebb was cloned to the directory.
Then I ran "./nodebb setup".
I used mongo for the database.
When prompted, I pasted the connection string that I got from mongodb's site. I substituted "nodebb" for the database part in the string. (I set up mongodb (Cloud Atlas) beforehand). The instructions that come up on Terminal will tell you to call your database "nodebb".
After that step, the program ran automatically and installed the files. It asked me to put in the username and password for mongodb and it also asked me to choose a name for admin and password. You might have to wait a while as it pauses for a long time after "Confirm Password". I thought there was some problem and was tempted to abort the operation, as it was taking a long time, but it did come up with further instructions after a while.
I typed "./nodebb start" when the setup finished and then went to "localhost:4567", and this time, I was able to see a normal board, and could log in as admin.
I write this follow-up in case another mac user has trouble installing nodebb. In the end, setup was pretty straightforward and did not involve a lot of steps. My OS is High Sierra.
The instructions, including the ones for Linux, at the official nodebb site did not work for me.
UREGENT PROBLEM
-
@julian said in UREGENT PROBLEM:
Anyone can, actually. If anybody here wants to help @kacemlight out, please DM him with your bid.
A failed Mongo instance and that post says the db file is missing. My money is on no backups either. Not wasting my time even thinking about it anymore. Good luck to anyone that attempts something here.
-
Looks like you have not been keeping your system up to date. That's an ancient version of NodeBB.
Your database says that its data is missing. Not much we can do there. Do you have backups? What happened when the site went down? Have you rebooted? Tons of the issues you've had here (not including the missing data) would have been fixed in a split second with a quick reboot.
-
Probably the files are not lost at all - I don't know whether
mongod
uses a default configuration file or just default configuration if nothing is specified via--config
.
Maybe your system usessystemd
which means you're supposed to start mongodb withsystemctl start mongodb
, replacestart
withrestart
,stop
orstatus
for respective actions.And if it's not
systemd
you're using, it might be any other init system with similar structure, in that case we'd need to know more about the system.uname -a
would be a start. -
@frissdiegurke Yeah we can only speculate at this point but my guess is he's not on Xenial which means he's on upstart, not systemd.
Does Xenial even load a proper systemd config for mongo anyway?
-
This post is deleted!
-
Good point, what OS is this even on? And did you try rebooting like I said?
-
@yariplus said in UREGENT PROBLEM:
Does Xenial even load a proper systemd config for mongo anyway?
Nope.
One of the many reasons that we use CentOS 7 for NodeBB / MongoDB systems. Unless you are an existing all-Ubuntu shop or an Ubuntu exclusive expert, I don't know why anyone would play with it in this case and clearly it isn't the right tool for the job for the OP. Unnecessarily complex and not properly supported.
-
@kacemlight said in UREGENT PROBLEM:
@julian Ok. How can I pay you to resolve this problem ?
If the matter is urgent, responding will help.