MongoDB is the recommended data store.
For development I use redis because it is just easier for me to use (e.g. zrange sortedSet 0 -1 vs db.objects.find({ _key: "sortedSet" }).pretty();)
All three are supported by the NodeBB team 😄
Hello,
i just finished installing NodeBB on a fresh updated Centos 7 and 8 and i cannot start the nodebb application with the command ./nodebb start. Everytime i get this error below. Can someone look it up for me?
[[email protected] forum]$ ./nodebb start
Starting NodeBB
"./nodebb stop" to stop the NodeBB server
"./nodebb log" to view server output
"./nodebb help" for more commands
[[email protected] forum]$ internal/fs/utils.js:811
throw new ERR_INVALID_ARG_TYPE(
^
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (12916)
at Object.writeFileSync (fs.js:1521:5)
at /var/www/forum/loader.js:221:7
at /var/www/forum/node_modules/graceful-fs/graceful-fs.js:343:16
at FSReqCallback.oncomplete (fs.js:179:23) {
code: 'ERR_INVALID_ARG_TYPE'
}
Thank you
What's your node version?
@boston-stanley Might also want to take a gander at your config.json and ensure there are no errors, eh?
fwiw; others have found this tutorial by community rep @scottalanmiller useful:
NodeBB is a powerful, open source package for building online communities and forums. We usually recommend running it on CentOS 8, primarily because of the need for MongoDB deployment support. The current NodeBB release is 1.13.1. By default, NodeBB uses ...
MangoLassi (mangolassi.it)
Have fun!
@gotwf
Thank you. I just tried that script from Mangolass on CentOS 7 and i have the same error, but on Centos 8, it will run successufully. My only problem is with the managing MongoDB (creation of DB and DB user).
Thanks
@boston-stanley said in NodeBB cannot start in Centos:
@gotwf
Thank you. I just tried that script from Mangolass on CentOS 7 and i have the same error, but on Centos 8, it will run successufully. My only problem is with the managing MongoDB (creation of DB and DB user).
Here is @scottalanmiller's CentOS 7 How To
Thanks
You're welcome.
@pitaj said in NodeBB cannot start in Centos:
What's your node version?
Version 1.10.x according to this git link:
git clone -b v1.10.x https://github.com/NodeBB/NodeBB .
@boston-stanley no your Node.js version.
node -v
Also NodeBB 1.10 is like years old at this point. Why are you on such an old version?
@pitaj said in NodeBB cannot start in Centos:
@boston-stanley no your Node.js version.
node -v
Also NodeBB 1.10 is like years old at this point. Why are you on such an old version?
Actually i got that from the NodeBB documentation page. It seems it is not updated, especially on the CentOS installation page.
https://docs.nodebb.org/installing/os/centos/
Thanks for pointing it out.