Error On Install -Please Please Help - Losing The Will To Live
-
@sampo2910 said in Error On Install -Please Please Help - Losing The Will To Live:
2021-07-10T16:25:35.975Z [11405] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run ./nodebb reset -p PLUGINNAME to disable it.
For some reason the log shows that nodebb-plugin-composer-default is incompatible.
Run this:
./nodebb reset -p nodebb-plugin-composer-default
And let me know if nodebb can start afterwards.
-
@sampo2910 what is the npm version?
-
@volanar npm -v 6.4.13
@Atayz That seems to have cleared that error starting in dev but still cannot start normally. I get this.
smiley@fmjcod4:~/nodebb$ ./nodebb start
Starting NodeBB
"./nodebb stop" to stop the NodeBB server
"./nodebb log" to view server output
"./nodebb help" for more commandssmiley@fmjcod4:~/nodebb$ internal/fs/utils.js:793
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 (6794)
at Object.writeFileSync (fs.js:1517:5)
at /home/smiley/nodebb/loader.js:234:7
at /home/smiley/nodebb/node_modules/graceful-fs/graceful-fs.js:352:16
at FSReqCallback.oncomplete (fs.js:180:23) {
code: 'ERR_INVALID_ARG_TYPE'
} -
@sampo2910 in your original post it says it's version 8
0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '--production' ] 2 info using [email protected] 3 info using [email protected]
So have you upgraded it? Please provide the output of
./nodebb info
-
@pitaj said in Error On Install -Please Please Help - Losing The Will To Live:
@sampo2910 in your original post it says it's version 8
0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '--production' ] 2 info using [email protected] 3 info using [email protected]
So have you upgraded it? Please provide the output of
./nodebb info
Yes I updated it as suggested on another thread here and it had cleared some errors. Here is the out put of ./nodebb.info
[benchpressjs] Unable to build or find a suitable native module, falling back to JS version
version: 1.7.5
Node ver: v14.17.3
git hash: 87c5dd34ea0171ac295bbf3c8d73c68076bc5c57database: mongo
version: 3.6.3
engine: wiredTiger -
Didn't notice this before, but you installed NodeBB v1.7.5, was that on purpose? The latest version is 1.17.2
-
@pitaj said in Error On Install -Please Please Help - Losing The Will To Live:
Didn't notice this before, but you installed NodeBB v1.7.5, was that on purpose? The latest version is 1.17.2
I did not do on purpose ? Damn..can i update in terminal?
-
OK,
I did ./nodebb update and the ./nodebb start and it page is there and running.
Could someone send me a link or instruction how to keep it alive and start again if server reboots?
My other app i do that with PM2. Can i do same with nodebb.
Thank you all for the help. Huge appreciation.
-
@sampo2910
./nodebb update
does not actually update your NodeBB version. You have to do that with git. I recommend starting over from scratch unless you've made a bunch of changes. -