URGENT, Cannot install on Rocky 9
-
Ok, ran all four then ran build and restarted the board.
test> use nodebb switched to db nodebb nodebb> db.objects.removeMany({_key: "analyticsKeys"}); TypeError: db.objects.removeMany is not a function nodebb> db.objects.deleteMany({_key: "analyticsKeys"}); { acknowledged: true, deletedCount: 51 } nodebb> db.objects.createIndex({ _key: 1, score: -1 }, { background: true }); _key_1_score_-1 nodebb> db.objects.createIndex({ _key: 1, value: -1 }, { background: true, unique: true, sparse: true }); _key_1_value_-1 nodebb> db.objects.createIndex({ expireAt: 1 }, { expireAfterSeconds: 0, background: true }); expireAt_1 nodebb> exit
It always complains about the questions plugin;
nodebun@nb01:~/nodebb$ ./nodebb build started 2023-05-18T22:32:11.596Z [4567/4717] - warn: [plugins] "nodebb-plugin-question-and-answer" is active but not installed. 2023-05-18T22:32:11.642Z [4567/4717] - info: [build] Building in parallel mode 2023-05-18T22:32:11.645Z [4567/4717] - info: [build] plugin static dirs build started 2023-05-18T22:32:11.647Z [4567/4717] - info: [build] requirejs modules build started 2023-05-18T22:32:11.648Z [4567/4717] - info: [build] client js bundle build started 2023-05-18T22:32:11.649Z [4567/4717] - info: [build] admin js bundle build started 2023-05-18T22:32:11.650Z [4567/4717] - info: [build] client side styles build started 2023-05-18T22:32:11.651Z [4567/4717] - info: [build] admin control panel styles build started 2023-05-18T22:32:11.652Z [4567/4717] - info: [build] templates build started 2023-05-18T22:32:11.653Z [4567/4717] - info: [build] languages build started 2023-05-18T22:32:12.335Z [4567/4717] - info: [build] plugin static dirs build completed in 0.69sec 2023-05-18T22:32:13.868Z [4567/4717] - info: [build] client js bundle build completed in 2.22sec 2023-05-18T22:32:13.868Z [4567/4717] - info: [build] admin js bundle build completed in 2.219sec 2023-05-18T22:32:22.318Z [4567/4717] - info: [build] client side styles build completed in 10.667sec 2023-05-18T22:32:23.079Z [4567/4717] - info: [build] admin control panel styles build completed in 11.427sec 2023-05-18T22:32:23.510Z [4567/4717] - info: [build] languages build completed in 11.857sec 2023-05-18T22:32:24.053Z [4567/4717] - info: [build] templates build completed in 12.401sec 2023-05-18T22:32:24.212Z [4567/4717] - info: [build] requirejs modules build completed in 12.565sec 2023-05-18T22:32:24.212Z [4567/4717] - info: [build] Bundling with Webpack. 2023-05-18T22:32:24.235Z [4567/4717] - warn: [plugins] "nodebb-plugin-question-and-answer" is active but not installed. 2023-05-18T22:32:46.180Z [4567/4717] - info: [build] Bundling took 18077 ms 2023-05-18T22:32:46.199Z [4567/4717] - info: [build] Asset compilation successful. Completed in 34.537sec.
However, I did install it when rebuilding the board.
$ history | grep question 63 npm install nodebb-plugin-question-and-answer 162 history | grep question
I've re-installed it and ran build again.
This time, no complaints so I started the board again.
Few complaints coming up but the board came up.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; │ ^^^^^^^^ ╵
The errors keep showing up but the board is running now.
I'll test everything I can and see how it's going now. -
Is it too early to understand what happened? I can document all of the steps I took. Every time I goofed something up because I could not find enough documentation, I noted that and tried again so that eventually, I had all the steps needed. However, I still ended up with these problems.. maybe others?
-
You had 2 different problems .
Your package.json had a broken version for
request-promise-native
and you didn't have indices when you restored your database.Not sure how the first one happened but the missing indices happens when you only export the objects collection from mongodb. If you want to export the whole database you can use
mongodump --db <name_of_db>
-
But how do you think it originally started?
The fact that my backup had a broken package.json means it was a while that this started ago.
The indexes, I've no idea since all I did was to restore.All looks ok now but one weird thing. I noticed there was an upgrade so I upgraded. The text showed upgrade completed without errors but on the back end, it still shows 3.1.4 upgrade available. Also, can I get back to persona now?
-
Well, I just found it crashed again. It seemed to be running fine then this.
While this seems to be OS related, the forum won't come up. I then ran 'nodebb build' and restarted it and it came up but with some errors.
2023-06-07T19:18:37.188Z [4567/1968] - 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-rewards-essentials
2023-06-07T19:18:37.545Z [4567/1968] - info: [api] Adding 1 route(s) to
api/v3/plugins
2023-06-07T19:18:37.600Z [4567/1968] - info: [router] Routes added
2023-06-07T19:18:37.612Z [4567/1968] - info: NodeBB Ready
2023-06-07T19:18:37.616Z [4567/1968] - info: Enabling 'trust proxy'
2023-06-07T19:18:37.622Z [4567/1968] - info: NodeBB is now listening on: 0.0.0.0:4567And it keeps showing warnings;
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 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-select.scss 31:7 @import bootstrap/scss/_forms.scss 4:9 @import - 18:9 root stylesheet DEPRECATION WARNING on line 62, column 208 of ../../node_modules/bootswatch/dist/solar/_variables.scss: !default should only be written once for each variable. This will be an error in Dart Sass 2.0.0. ╷ 62 │ $font-family-sans-serif: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default !default; │ ^^^^^^^^ ╵ DEPRECATION WARNING on line 116, column 63 of ../../node_modules/bootswatch/dist/solar/_variables.scss: !default should only be written once for each variable. This will be an error in Dart Sass 2.0.0. ╷ 116 │ $navbar-light-color: rgba($black, .4) !default !default; │ ^^^^^^^^ ╵ DEPRECATION WARNING on line 117, column 63 of ../../node_modules/bootswatch/dist/solar/_variables.scss: !default should only be written once for each variable. This will be an error in Dart Sass 2.0.0. ╷ 117 │ $navbar-light-active-color: rgba($black, .7) !default !default; │ ^^^^^^^^ ╵
-
@NodeHam Are you sure you added the forum to autorun when you restart the server?
Running NodeBB - NodeBB Documentation
Documentation portal for NodeBB Forum Software
(docs.nodebb.org)
This warnings from bootswatch about errors in default styles, you can ignore this.