NodeBB cannot start in Centos
-
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?[nodebbadmin@nodebb01 forum]$ ./nodebb start Starting NodeBB "./nodebb stop" to stop the NodeBB server "./nodebb log" to view server output "./nodebb help" for more commands [nodebbadmin@nodebb01 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:
https://mangolassi.it/topic/21187/deploying-nodebb-1-13-on-centos-8-with-mongodb-4-2
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.