URGENT, Cannot install on Rocky 9
-
@baris , are you one of the developers?
My concern is that since I've had to mess with it so much and rebuilding, I might now have caused some new problems accidentally. I've no way of knowing at this point.If it helps;
$ npm update socket.io up to date, audited 1390 packages in 10s 185 packages are looking for funding run `npm fund` for details 11 vulnerabilities (6 moderate, 5 high) To address all issues possible (including breaking changes), run: npm audit fix --force Some issues need review, and may require choosing a different dependency. Run `npm audit` for details. $ npm audit fix --force npm WARN using --force Recommended protections disabled. npm WARN audit Updating nodebb-plugin-spam-be-gone to 0.4.4, which is a SemVer major change. npm WARN audit Updating request-promise-native to 0.0.0, which is a SemVer major change. npm WARN audit No fix available for coveralls@* npm WARN audit Updating nodebb-plugin-spam-be-gone to 0.4.4, which is a SemVer major change. npm WARN audit No fix available for nodebb-plugin-emoji@>=2.0.0 npm WARN audit No fix available for nodebb-plugin-emoji-android@* npm WARN deprecated [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 added 1 package, removed 13 packages, changed 3 packages, and audited 1378 packages in 9s 182 packages are looking for funding run `npm fund` for details # npm audit report dicer * Severity: high Crash in HeaderParser in dicer - https://github.com/advisories/GHSA-wm7h-9275-46v2 No fix available node_modules/dicer busboy <=0.3.1 Depends on vulnerable versions of dicer node_modules/busboy multer <=2.0.0-rc.3 Depends on vulnerable versions of busboy node_modules/multer nodebb-plugin-emoji >=2.0.0 Depends on vulnerable versions of multer node_modules/nodebb-plugin-emoji nodebb-plugin-emoji-android * Depends on vulnerable versions of nodebb-plugin-emoji node_modules/nodebb-plugin-emoji-android request * Severity: moderate Server-Side Request Forgery in Request - https://github.com/advisories/GHSA-p8p7-x288-28g6 No fix available node_modules/request coveralls * Depends on vulnerable versions of request node_modules/coveralls 7 vulnerabilities (2 moderate, 5 high) Some issues need review, and may require choosing a different dependency.
-
@NodeHam said in URGENT, Cannot install on Rocky 9:
@baris , are you one of the developers?
Yes. Send your forum url and I can tell if you have socket.io problems. If you have a configuration issue it will fail to connect and show up in the browser console/network tab.
-
I do see this...
Uncaught TypeError: C.closest(...) is null
e https://support.domain.com/assets/forum/post-queue.2e0065f9ac9aeaedb963.min.js:1
e https://support.domain.com/assets/forum/post-queue.2e0065f9ac9aeaedb963.min.js:1
init https://support.domain.com/assets/forum/post-queue.2e0065f9ac9aeaedb963.min.js:1
R https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:8
promise callback28234/ajaxify.loadScript/</R</< https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:8
loadScript https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:8
loadScript https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:8
promise callback28234/ajaxify.loadScript https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:8
end https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:8
coldLoad https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:8
b https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
dispatch https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
handle https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
trigger https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
trigger https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
each https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
each https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
trigger https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
v https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:9
fire https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:9
load https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:8
load https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:8
promise callback3155/app.load https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:8
onDomReady https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:8
Ce https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
vt https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
setTimeout handler19755/</Deferred/then/W/< https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
L https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
fireWith https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
fire https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
L https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
fireWith https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
ready https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
setTimeout handler*19755/< https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
19755 https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
19755 https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:62
Ye https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:79
3155 https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:8
Ye https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:79
<anonymous> https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:80
<anonymous> https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:80
<anonymous> https://support.domain.com/assets/nodebb.min.js?v=jjpepc6fr68:80
post-queue.2e0065f9ac9aeaedb963.min.js:1:2155 -
I tried switching back to the previous theme so I could compare errors but it went down and now it won't come up.
Looking at the log as I try to start it;nodebun@nb01:~/nodebb$ ./nodebb log Hit Ctrl-C to exit at Module._findPath (node:internal/modules/cjs/loader:678:18) at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27) at Module._load (node:internal/modules/cjs/loader:920:27) at Module.require (node:internal/modules/cjs/loader:1141:19) at require (node:internal/modules/cjs/helpers:110:18) at Object.<anonymous> (/home/nodebun/nodebb/src/plugins/index.js:9:17) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) [cluster] Child Process (3570) has exited (code: 0, signal: null)
-
Every time I try to change the theme from the command line it shows entire sub-directories missing. I know those were there so I don't know what's removing some of the directories.
This is at the developers level now which I am not.
Require stack: - /home/node/nodebb/node_modules/request-promise-native/lib/rp.js - /home/node/nodebb/src/plugins/index.js - /home/node/nodebb/src/groups/index.js - /home/node/nodebb/src/user/index.js - /home/node/nodebb/src/events.js - /home/node/nodebb/src/cli/reset.js - /home/node/nodebb/src/cli/index.js - /home/node/nodebb/nodebb Error: Cannot find module 'stealthy-require' Require stack:
When I rebuilt, I installed a new setup but there were complaints of missing directories. This one for example;
/node_modules/request-promise-native/lib/rp.js
So I copied those files from the backup I made to put the uploads/... stuff back.2023-05-17T16:34:55.951Z [4567/1918] - ^[[33mwarn^[[39m: [plugins] "nodebb-plugin-question-and-answer" is active but not installed. 2023-05-17T16:34:56.291Z [4567/1918] - ^[[32minfo^[[39m: [api] Adding 0 route(s) to `api/v3/plugins` 2023-05-17T16:34:56.343Z [4567/1918] - ^[[32minfo^[[39m: [router] Routes added 2023-05-17T16:34:56.352Z [4567/1918] - ^[[32minfo^[[39m: 🎉 NodeBB Ready 2023-05-17T16:34:56.355Z [4567/1918] - ^[[32minfo^[[39m: 🤝 Enabling 'trust proxy' 2023-05-17T16:34:56.359Z [4567/1918] - ^[[32minfo^[[39m: 📡 NodeBB is now listening on: 0.0.0.0:4567 2023-05-17T16:34:56.359Z [4567/1918] - ^[[32minfo^[[39m: 🔗 Canonical URL: https://support.domain.com DEPRECATION WARNING on line 68, column 52 of ../../node_modules/bootswatch/dist/flatly/_variables.scss: !default should only be written once for each variable. This will be an error in Dart Sass 2.0.0. ╷ 68 │ $nav-link-padding-y: .5rem !default !default; │ ^^^^^^^^ ╵ DEPRECATION WARNING on line 70, column 56 of ../../node_modules/bootswatch/dist/flatly/_variables.scss: !default should only be written once for each variable. This will be an error in Dart Sass 2.0.0. ╷ 70 │ $nav-link-disabled-color: $gray-600 !default !default; │ ^^^^^^^^ ╵ DEPRECATION WARNING on line 79, column 60 of ../../node_modules/bootswatch/dist/litera/_variables.scss: !default should only be written once for each variable. This will be an error in Dart Sass 2.0.0. ╷ 79 │ $input-group-addon-bg: $gray-200 !default !default; │ ^^^^^^^^ ╵ WARNING: The keyword 'none' must be used as a single argument. ../../node_modules/bootstrap/scss/mixins/_box-shadow.scss 10:9 box-shadow() ../../node_modules/bootstrap/scss/forms/_form-control.scss 40:7 @import bootstrap/scss/_forms.scss 3:9 @import - 18:9 root stylesheet
This error;
[plugins] "nodebb-plugin-question-and-answer" is active but not installed.
is especially odd because I did re-install that plugin.I feel like I have to rebuild yet again because something is getting corrupted and it only seems to keep getting worse.
-
You don't have to rebuild the server because of those errors. If you copied stuff over from another server you are probably missing the dependencies in the node_modules folder. You can fix that by running
npm install
and it will install all the dependencies. Try these commands and post any errors you get../nodebb stop npm install ./nodebb activate nodebb-theme-harmony ./nodebb build ./nodebb start && ./nodebb log
-
The only things I originally copied were the files from the uploads but then I started seeing files being shown as missing as I would work on restoring or restarting etc. That's why I ended up copying those because I wasn't finding enough information to know how to deal with what ever was going on.
nodebb won't come up but I'll follow the steps;
$ ./nodebb stop NodeBB is already stopped. $ npm install up to date, audited 1378 packages in 6s 182 packages are looking for funding run `npm fund` for details 7 vulnerabilities (2 moderate, 5 high) Some issues need review, and may require choosing a different dependency. Run `npm audit` for details. $ ./nodebb activate nodebb-theme-harmony 2023-05-18T18:45:23.477Z [4567/3771] - error: uncaughtException: Cannot find module 'request-promise-core/configure/request2' Require stack: - /home/nodebun/nodebb/node_modules/request-promise-native/lib/rp.js - /home/nodebun/nodebb/src/plugins/index.js - /home/nodebun/nodebb/src/cli/manage.js - /home/nodebun/nodebb/src/cli/index.js - /home/nodebun/nodebb/nodebb Error: Cannot find module 'request-promise-core/configure/request2' Require stack: - /home/nodebun/nodebb/node_modules/request-promise-native/lib/rp.js - /home/nodebun/nodebb/src/plugins/index.js - /home/nodebun/nodebb/src/cli/manage.js - /home/nodebun/nodebb/src/cli/index.js - /home/nodebun/nodebb/nodebb at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) at Module._load (node:internal/modules/cjs/loader:920:27) at Module.require (node:internal/modules/cjs/loader:1141:19) at require (node:internal/modules/cjs/helpers:110:18) at Object.<anonymous> (/home/nodebun/nodebb/node_modules/request-promise-native/lib/rp.js:3:17) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) at Module._load (node:internal/modules/cjs/loader:958:12) at Module.require (node:internal/modules/cjs/loader:1141:19) {"date":"Thu May 18 2023 18:45:23 GMT+0000 (Coordinated Universal Time)","error":{"code":"MODULE_NOT_FOUND","requireStack":["/home/nodebun/nodebb/node_modules/request-promise-native/lib/rp.js","/home/nodebun/nodebb/src/plugins/index.js","/home/nodebun/nodebb/src/cli/manage.js","/home/nodebun/nodebb/src/cli/index.js","/home/nodebun/nodebb/nodebb"]},"exception":true,"os":{"loadavg":[0.47,0.18,0.15],"uptime":85560.47},"process":{"argv":["/usr/bin/node","/home/nodebun/nodebb/nodebb","activate","nodebb-theme-harmony"],"cwd":"/home/nodebun/nodebb","execPath":"/usr/bin/node","gid":1000,"memoryUsage":{"arrayBuffers":402396,"external":1028502,"heapTotal":33976320,"heapUsed":18515728,"rss":72798208},"pid":3771,"uid":1000,"version":"v18.16.0"},"stack":"Error: Cannot find module 'request-promise-core/configure/request2'\nRequire stack:\n- /home/nodebun/nodebb/node_modules/request-promise-native/lib/rp.js\n- /home/nodebun/nodebb/src/plugins/index.js\n- /home/nodebun/nodebb/src/cli/manage.js\n- /home/nodebun/nodebb/src/cli/index.js\n- /home/nodebun/nodebb/nodebb\n at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)\n at Module._load (node:internal/modules/cjs/loader:920:27)\n at Module.require (node:internal/modules/cjs/loader:1141:19)\n at require (node:internal/modules/cjs/helpers:110:18)\n at Object.<anonymous> (/home/nodebun/nodebb/node_modules/request-promise-native/lib/rp.js:3:17)\n at Module._compile (node:internal/modules/cjs/loader:1254:14)\n at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)\n at Module.load (node:internal/modules/cjs/loader:1117:32)\n at Module._load (node:internal/modules/cjs/loader:958:12)\n at Module.require (node:internal/modules/cjs/loader:1141:19)","trace":[{"column":15,"file":"node:internal/modules/cjs/loader","function":"Module._resolveFilename","line":1075,"method":"_resolveFilename","native":false},{"column":27,"file":"node:internal/modules/cjs/loader","function":"Module._load","line":920,"method":"_load","native":false},{"column":19,"file":"node:internal/modules/cjs/loader","function":"Module.require","line":1141,"method":"require","native":false},{"column":18,"file":"node:internal/modules/cjs/helpers","function":"require","line":110,"method":null,"native":false},{"column":17,"file":"/home/nodebun/nodebb/node_modules/request-promise-native/lib/rp.js","function":null,"line":3,"method":null,"native":false},{"column":14,"file":"node:internal/modules/cjs/loader","function":"Module._compile","line":1254,"method":"_compile","native":false},{"column":10,"file":"node:internal/modules/cjs/loader","function":"Module._extensions..js","line":1308,"method":".js","native":false},{"column":32,"file":"node:internal/modules/cjs/loader","function":"Module.load","line":1117,"method":"load","native":false},{"column":12,"file":"node:internal/modules/cjs/loader","function":"Module._load","line":958,"method":"_load","native":false},{"column":19,"file":"node:internal/modules/cjs/loader","function":"Module.require","line":1141,"method":"require","native":false}]} nodebun@nb01:~/nodebb$ ./nodebb log Hit Ctrl-C to exit at Module._findPath (node:internal/modules/cjs/loader:678:18) at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27) at Module._load (node:internal/modules/cjs/loader:920:27) at Module.require (node:internal/modules/cjs/loader:1141:19) at require (node:internal/modules/cjs/helpers:110:18) at Object.<anonymous> (/home/nodebun/nodebb/src/plugins/index.js:9:17) at Module._compile (node:internal/modules/cjs/loader:1254:14) at Module._extensions..js (node:internal/modules/cjs/loader:1308:10) at Module.load (node:internal/modules/cjs/loader:1117:32) [cluster] Child Process (3570) has exited (code: 0, signal: null) ^C
-
BTW, I believe I ran npm install in one of the steps while restoring and initially, all was fine. It just started degrading and now getting worse. It started with only that one sub-directory missing and now it's others. I've not touched any of those modules.
-
There are a huge number of errors during the restore which I thought might be normal since sine indexes already existed from the new install. I also tried by completely removing the nodebb database first then using restore and then starting nodebb after running build and npm. I think but not sure since I've been at this for a while now.
$ node -v v18.16.0 $ npm -v 9.5.1 $ cat package.json { "name": "nodebb", "license": "GPL-3.0", "description": "NodeBB Forum", "version": "3.1.3", "homepage": "https://www.nodebb.org", "repository": { "type": "git", "url": "https://github.com/NodeBB/NodeBB/" }, "main": "app.js", "scripts": { "start": "node loader.js", "lint": "eslint --cache ./nodebb .", "test": "nyc --reporter=html --reporter=text-summary mocha", "coverage": "nyc report --reporter=text-lcov > ./coverage/lcov.info", "coveralls": "nyc report --reporter=text-lcov | coveralls && rm -r coverage" }, "nyc": { "exclude": [ "src/upgrades/*", "test/*" ] }, "lint-staged": { "*.js": [ "eslint --fix" ] }, "dependencies": { "@adactive/bootstrap-tagsinput": "0.8.2", "@isaacs/ttlcache": "1.4.0", "@popperjs/core": "2.11.7", "@socket.io/redis-adapter": "8.2.0", "ace-builds": "1.19.0", "archiver": "5.3.1", "async": "3.2.4", "autoprefixer": "10.4.14", "bcryptjs": "2.4.3", "benchpressjs": "2.5.1", "body-parser": "1.20.2", "bootbox": "6.0.0", "bootstrap": "5.2.3", "bootswatch": "5.2.3", "chalk": "4.1.2", "chart.js": "2.9.4", "cli-graph": "3.2.2", "clipboard": "2.0.11", "colors": "1.4.0", "commander": "10.0.1", "compare-versions": "5.0.3", "compression": "1.7.4", "connect-flash": "0.1.1", "connect-mongo": "5.0.0", "connect-multiparty": "2.2.0", "connect-pg-simple": "8.0.0", "connect-redis": "7.0.1", "cookie-parser": "1.4.6", "cron": "2.3.0", "cropperjs": "1.5.13", "csrf-sync": "4.0.1", "daemon": "1.1.0", "diff": "5.1.0", "esbuild": "0.17.18", "express": "4.18.2", "express-session": "1.17.3", "express-useragent": "1.0.15", "file-loader": "6.2.0", "fs-extra": "11.1.1", "graceful-fs": "4.2.11", "helmet": "6.2.0", "html-to-text": "9.0.5", "ioredis": "5.3.2", "ipaddr.js": "2.0.1", "jquery": "3.6.4", "jquery-deserialize": "2.0.0", "jquery-form": "4.3.0", "jquery-serializeobject": "1.0.0", "jquery-ui": "1.13.2", "jsesc": "3.0.2", "json2csv": "5.0.7", "jsonwebtoken": "9.0.0", "less": "4.1.3", "lodash": "4.17.21", "logrotate-stream": "0.2.9", "lru-cache": "9.1.1", "material-design-lite": "1.3.0", "mime": "3.0.0", "mkdirp": "3.0.1", "mongodb": "5.4.0", "morgan": "1.10.0", "mousetrap": "1.6.5", "multiparty": "4.2.3", "nconf": "0.12.0", "nodebb-plugin-2factor": "7.0.5", "nodebb-plugin-composer-default": "10.1.5", "nodebb-plugin-dbsearch": "6.0.1", "nodebb-plugin-emoji": "5.0.10", "nodebb-plugin-emoji-android": "4.0.0", "nodebb-plugin-markdown": "12.0.3", "nodebb-plugin-mentions": "4.1.1", "nodebb-plugin-ntfy": "1.0.15", "nodebb-plugin-question-and-answer": "^1.0.19", "nodebb-plugin-spam-be-gone": "^0.4.4", "nodebb-rewards-essentials": "0.2.3", "nodebb-theme-harmony": "1.0.24", "nodebb-theme-lavender": "7.0.9", "nodebb-theme-peace": "2.0.22", "nodebb-theme-persona": "13.0.65", "nodebb-widget-essentials": "7.0.12", "nodemailer": "6.9.1", "nprogress": "0.2.0", "passport": "0.6.0", "passport-http-bearer": "1.0.1", "passport-local": "1.0.0", "pg": "8.10.0", "pg-cursor": "2.9.0", "postcss": "8.4.23", "postcss-clean": "1.2.0", "progress-webpack-plugin": "1.0.16", "prompt": "1.3.0", "request": "2.88.2", "request-promise-native": "^0.0.0", "rimraf": "5.0.0", "rss": "1.2.2", "rtlcss": "4.1.0", "sanitize-html": "2.10.0", "sass": "1.62.1", "semver": "7.5.0", "serve-favicon": "2.5.0", "sharp": "0.32.1", "sitemap": "7.1.1", "slideout": "1.0.1", "socket.io": "4.6.1", "socket.io-client": "4.6.1", "sortablejs": "1.15.0", "spdx-license-list": "6.6.0", "spider-detector": "2.0.0", "terser-webpack-plugin": "5.3.8", "textcomplete": "0.18.2", "textcomplete.contenteditable": "0.1.1", "timeago": "1.6.7", "tinycon": "0.6.8", "toobusy-js": "0.5.1", "validator": "13.9.0", "webpack": "5.82.0", "webpack-merge": "5.8.0", "winston": "3.8.2", "xml": "1.0.1", "xregexp": "5.1.1", "yargs": "17.7.2", "zxcvbn": "4.4.2" }, "devDependencies": { "@apidevtools/swagger-parser": "10.1.0", "@commitlint/cli": "17.6.3", "@commitlint/config-angular": "17.6.3", "coveralls": "3.1.1", "eslint": "8.40.0", "eslint-config-nodebb": "0.2.1", "eslint-plugin-import": "2.27.5", "grunt": "1.6.1", "grunt-contrib-watch": "1.1.0", "husky": "8.0.3", "jsdom": "22.0.0", "lint-staged": "13.2.2", "mocha": "10.2.0", "mocha-lcov-reporter": "1.3.0", "mockdate": "3.0.5", "nyc": "15.1.0", "smtp-server": "3.11.0" }, "optionalDependencies": { "sass-embedded": "1.62.0" }, "resolutions": { "*/jquery": "3.6.4" }, "bugs": { "url": "https://github.com/NodeBB/NodeBB/issues" }, "engines": { "node": ">=12" }, "maintainers": [ { "name": "Julian Lam", "email": "[email protected]", "url": "https://github.com/julianlam" }, { "name": "Barış Soner Uşaklı", "email": "[email protected]", "url": "https://github.com/barisusakli" } ] }
-
NodeBB/install/package.json at master · NodeBB/NodeBB
Node.js based forum software built for the modern web - NodeBB/install/package.json at master · NodeBB/NodeBB
GitHub (github.com)
Your package.json has a wrong value. Try replacing it with install/package.json and run the above commands again.