Error On Install -Please Please Help - Losing The Will To Live
-
Maybe this from terminal will tell more:
smiley@fmjcod4:~/nodebb$ ./nodebb setup
Dependencies outdated or not yet installed.
Installing them now...npm WARN deprecated [email protected]: Please upgrade to the latest version 3.x.x module for improved functionality.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated [email protected]: core-js@<3.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated [email protected]: Fixed a critical issue with BSON serialization documented in CVE-2019-2391, see https://bit.ly/2KcpXdo for more details
npm ERR! Linux 4.15.0-147-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "--production"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code EMISSINGARGnpm ERR! typeerror Error: Missing required argument #1
npm ERR! typeerror at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
npm ERR! typeerror at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
npm ERR! typeerror at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
npm ERR! typeerror at /usr/share/npm/lib/install/deps.js:457:7
npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror at /usr/share/npm/lib/fetch-package-metadata.js:37:12
npm ERR! typeerror at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
npm ERR! typeerror at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
npm ERR! typeerror at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
npm ERR! typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror http://github.com/npm/npm/issuesnpm ERR! Please include the following file with any support request:
npm ERR! /home/smiley/nodebb/npm-debug.log
child_process.js:644
throw err;
^Error: Command failed: npm install --production
at checkExecSyncError (child_process.js:601:13)
at Object.execSync (child_process.js:641:13)
at Object.installAll (/home/smiley/nodebb/src/cli/package-install.js:45:8)
at Object.<anonymous> (/home/smiley/nodebb/src/cli/index.js:58:18)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17) -
A little further but still this on startup??
NodeBB Setup Completed. Run "./nodebb start" to manually start your NodeBB server.
smiley@fmjcod4:~/nodebb$ ./nodebb start
./nodebb startStarting 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 (8359)
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'
} -
Smaller and smaller haha down to this now with ./nodebb start
smiley@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 (9314)
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'
} -
@atayz Hi thx for the reply. Yes i followed that and have updated. I can start the forum in dev mode but not startup normally.
I have this in dev mode:
smiley@fmjcod4:~/nodebb$ ./nodebb dev
NodeBB v1.7.5 Copyright (C) 2013-2014 NodeBB Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it under certain conditions.
For the full license, please visit: http://www.gnu.org/copyleft/gpl.htmlClustering enabled: Spinning up 1 process(es).
2021-07-10T16:25:34.933Z [11405] - info: Initializing NodeBB v1.7.5 https://forum.fmjcod4.com
2021-07-10T16:25:34.934Z [11405] - verbose: * using mongo store at 127.0.0.1:27017
2021-07-10T16:25:34.934Z [11405] - verbose: * using themes stored in: /home/smiley/nodebb/node_modules
[benchpressjs] Unable to build or find a suitable native module, falling back to JS version
2021-07-10T16:25:35.635Z [11405] - verbose: [minifier] utilizing a maximum of 3 additional threads
2021-07-10T16:25:35.646Z [11405] - verbose: Checking dependencies for outdated modules
2021-07-10T16:25:35.850Z [11405] - verbose: [notifications.init] Registering jobs.
2021-07-10T16:25:35.850Z [11405] - verbose: [user/jobs] (Re-)starting user jobs...
2021-07-10T16:25:35.851Z [11405] - verbose: [user/jobs] Starting job (digest.daily)
2021-07-10T16:25:35.853Z [11405] - verbose: [user/jobs] Starting job (digest.weekly)
2021-07-10T16:25:35.854Z [11405] - verbose: [user/jobs] Starting job (digest.monthly)
2021-07-10T16:25:35.854Z [11405] - verbose: [user/jobs] Starting job (reset.clean)
2021-07-10T16:25:35.854Z [11405] - verbose: [user/jobs] 4 jobs started
2021-07-10T16:25:35.854Z [11405] - verbose: [emailer] Setting up SMTP fallback transport
2021-07-10T16:25:35.894Z [11405] - verbose: [emailer] Built custom email templates
2021-07-10T16:25:35.895Z [11405] - info: [themes] Using theme nodebb-theme-persona
2021-07-10T16:25:35.895Z [11405] - verbose: [plugins] Initializing plugins system
2021-07-10T16:25:35.900Z [11405] - verbose: [plugins] Loaded plugin: nodebb-plugin-composer-default
2021-07-10T16:25:35.901Z [11405] - verbose: [plugins] Loaded plugin: nodebb-theme-persona
2021-07-10T16:25:35.916Z [11405] - verbose: [plugins] Loaded plugin: nodebb-plugin-markdown
2021-07-10T16:25:35.924Z [11405] - verbose: [plugins] Loaded plugin: nodebb-plugin-mentions
2021-07-10T16:25:35.925Z [11405] - verbose: [plugins] Loaded plugin: nodebb-widget-essentials
2021-07-10T16:25:35.927Z [11405] - verbose: [plugins] Loaded plugin: nodebb-rewards-essentials
2021-07-10T16:25:35.928Z [11405] - verbose: [plugins] Found 3 sound file(s) for plugin nodebb-plugin-soundpack-default
2021-07-10T16:25:35.928Z [11405] - verbose: [plugins] Loaded plugin: nodebb-plugin-soundpack-default
2021-07-10T16:25:35.966Z [11405] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji
2021-07-10T16:25:35.974Z [11405] - verbose: [plugins] Loaded plugin: nodebb-plugin-emoji-android2021-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.- nodebb-plugin-composer-default
2021-07-10T16:25:35.975Z [11405] - info: [plugins] Plugins OK
2021-07-10T16:25:36.005Z [11405] - verbose: [hotswap] Router with idplugins
replaced successfully
2021-07-10T16:25:36.005Z [11405] - verbose: [plugins] All plugins reloaded and rerouted
2021-07-10T16:25:36.005Z [11405] - verbose: [hotswap] Router with idauth
replaced successfully
2021-07-10T16:25:36.005Z [11405] - info: Routes added
2021-07-10T16:25:36.007Z [11405] - verbose: [meta/blacklist] Loading 0 blacklist rule(s)
2021-07-10T16:25:36.007Z [11405] - info: NodeBB Ready
2021-07-10T16:25:36.008Z [11405] - info: Enabling 'trust proxy'
2021-07-10T16:25:36.009Z [11405] - info: NodeBB is now listening on: 0.0.0.0:4567 -
Upgrade your Node version to 14.
-
@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. -