Upgrading to 2.0.0 crashed the forum
Unsolved
Technical Support
-
Upgrade did not work
I tried a clean install of 2.0.0 and a connection to the previous Mongo database
Search did not work
I tried to turn off the plugin and build again
And did not work
Attached are the steps from the terminalnodebb@mail:~/nodebb$ ./nodebb setup Dependencies outdated or not yet installed. Installing them now... 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 npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: Breaking dependency change (moved from moment to luxon). Please move to 2.0.0. npm WARN deprecated [email protected]: support for ECMAScript is superseded by `uglify-js` as of v3.13.0 npm WARN deprecated [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 added 935 packages, and audited 936 packages in 2m 76 packages are looking for funding run `npm fund` for details found 0 vulnerabilities OK 2022-05-06T02:41:08.284Z [3134] - info: NodeBB Setup Triggered via Command Line Welcome to NodeBB v2.0.0! This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed. Press enter to accept the default setting (shown in brackets). 2022-05-06T02:41:08.378Z [3134] - info: Now configuring mongo database: 2022-05-06T02:41:08.565Z [3134] - info: [database] Checking database indices. 2022-05-06T02:41:08.575Z [3134] - info: [database] Checking database indices done! 2022-05-06T02:41:09.676Z [3134] - verbose: [minifier] utilizing a maximum of 5 additional threads Configuration Saved OK Populating database with default configs, if not already set... 2022-05-06T02:41:09.723Z [3134] - warn: [cache-buster] could not read cache buster ENOENT: no such file or directory, open '/home/nodebb/nodebb/build/cache-buster' {"code":"ENOENT","errno":-2,"path":"/home/nodebb/nodebb/build/cache-buster","stack":"Error: ENOENT: no such file or directory, open '/home/nodebb/nodebb/build/cache-buster'","syscall":"open"} Previous theme detected, skipping enabling default theme Categories OK. Found 106 categories. Administrator found, skipping Admin setup 2022-05-06T02:41:09.743Z [3134] - info: Global Moderators group found, skipping creation! Enabling default plugins 2022-05-06T02:41:09.776Z [3134] - info: [install/defaultPlugins] customDefaults undefined 2022-05-06T02:41:09.777Z [3134] - info: [install/enableDefaultPlugins] activating default plugins {"0":"nodebb-plugin-composer-default","1":"nodebb-plugin-markdown","2":"nodebb-plugin-mentions","3":"nodebb-widget-essentials","4":"nodebb-rewards-essentials","5":"nodebb-plugin-emoji","6":"nodebb-plugin-emoji-android"} 2022-05-06T02:41:09.836Z [3134] - verbose: [build] Querying CPU core count for build strategy 2022-05-06T02:41:09.837Z [3134] - verbose: [build] System returned 6 cores, opting for parallel build strategy 2022-05-06T02:41:09.837Z [3134] - verbose: [build] building the following targets: plugin static dirs, requirejs modules, client js bundle, admin js bundle, client side styles, admin control panel styles, templates, languages started 2022-05-06T02:41:09.860Z [3134] - verbose: [plugins] loading the following fields from plugin data: staticDirs, modules, clientScripts, acpScripts, cssFiles, lessFiles, acpLessFiles, languageData 2022-05-06T02:41:09.868Z [3134] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-composer-default 2022-05-06T02:41:09.869Z [3134] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-markdown 2022-05-06T02:41:09.870Z [3134] - verbose: [plugins] Found 1 css file(s) for plugin nodebb-widget-essentials 2022-05-06T02:41:09.871Z [3134] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-emoji 2022-05-06T02:41:09.871Z [3134] - verbose: [plugins] Found 1 acpLess file(s) for plugin nodebb-plugin-emoji 2022-05-06T02:41:09.872Z [3134] - verbose: [plugins] Found 12 AMD-style module(s) for plugin nodebb-plugin-composer-default 2022-05-06T02:41:09.873Z [3134] - verbose: [plugins] Found 1 AMD-style module(s) for plugin nodebb-plugin-markdown 2022-05-06T02:41:09.873Z [3134] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-markdown 2022-05-06T02:41:09.874Z [3134] - verbose: [plugins] Found 1 AMD-style module(s) for plugin nodebb-plugin-mentions 2022-05-06T02:41:09.874Z [3134] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-mentions 2022-05-06T02:41:09.875Z [3134] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-rewards-essentials 2022-05-06T02:41:09.875Z [3134] - verbose: [plugins] Found 5 AMD-style module(s) for plugin nodebb-plugin-emoji 2022-05-06T02:41:09.876Z [3134] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-emoji 2022-05-06T02:41:09.876Z [3134] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-emoji 2022-05-06T02:41:09.878Z [3134] - verbose: [plugins] found 1 static directories for nodebb-rewards-essentials 2022-05-06T02:41:09.878Z [3134] - verbose: [plugins] found 1 static directories for nodebb-plugin-emoji 2022-05-06T02:41:09.880Z [3134] - verbose: [plugins] Found 2 js file(s) for plugin nodebb-plugin-composer-default 2022-05-06T02:41:09.880Z [3134] - verbose: [plugins] found 1 static directories for nodebb-plugin-markdown 2022-05-06T02:41:09.884Z [3134] - info: [build] Building in parallel mode 2022-05-06T02:41:09.885Z [3134] - info: [build] plugin static dirs build started 2022-05-06T02:41:09.887Z [3134] - info: [build] requirejs modules build started 2022-05-06T02:41:09.888Z [3134] - info: [build] client js bundle build started 2022-05-06T02:41:09.888Z [3134] - info: [build] admin js bundle build started 2022-05-06T02:41:09.888Z [3134] - info: [build] client side styles build started 2022-05-06T02:41:09.889Z [3134] - info: [build] admin control panel styles build started 2022-05-06T02:41:09.889Z [3134] - info: [build] templates build started 2022-05-06T02:41:09.890Z [3134] - info: [build] languages build started 2022-05-06T02:41:10.124Z [3134] - info: [build] plugin static dirs build completed in 0.238sec 2022-05-06T02:41:11.397Z [3134] - info: [build] admin js bundle build completed in 1.509sec 2022-05-06T02:41:11.658Z [3134] - info: [build] client js bundle build completed in 1.769sec 2022-05-06T02:41:12.801Z [3134] - warn: [meta/templates] Partial not loaded: partials/topic/browsing-users.tpl 2022-05-06T02:41:12.954Z [3134] - info: [build] languages build completed in 3.064sec 2022-05-06T02:41:13.194Z [3134] - warn: [meta/templates] Partial not loaded: partials/topic/browsing-users.tpl 2022-05-06T02:41:13.216Z [3134] - verbose: [meta/templates] Successfully compiled templates. 2022-05-06T02:41:13.216Z [3134] - info: [build] templates build completed in 3.327sec 2022-05-06T02:41:13.313Z [3134] - info: [build] requirejs modules build completed in 3.425sec 2022-05-06T02:41:14.880Z [3134] - info: [build] client side styles build completed in 4.991sec 2022-05-06T02:41:15.097Z [3134] - info: [build] admin control panel styles build completed in 5.208sec 2022-05-06T02:41:15.098Z [3134] - info: [build] Bundling with Webpack. 304 assets 847 modules WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. Assets: 03371bf1d5cbb1eab58e3a0130d1e9c2.js (491 KiB) nodebb.min.js (1.1 MiB) admin.min.js (1.15 MiB) 8522.29b4b3a5215e23298727.min.js (471 KiB) 4793.874eeda7b33b3d945f82.min.js (455 KiB) WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. Entrypoints: nodebb (1.1 MiB) nodebb.min.js admin (1.15 MiB) admin.min.js webpack 5.72.0 compiled with 2 warnings in 29476 ms 2022-05-06T02:41:45.199Z [3134] - info: [build] Asset compilation successful. Completed in 35.313sec. ============================================================================================================== NodeBB Setup Completed. Run "./nodebb start" to manually start your NodeBB server. nodebb@mail:~/nodebb$ ./nodebb start ./nodebb start Starting NodeBB "./nodebb stop" to stop the NodeBB server "./nodebb log" to view server output "./nodebb help" for more commands nodebb@mail:~/nodebb$ ./nodebb setup 2022-05-06T02:44:32.165Z [3485] - info: NodeBB Setup Triggered via Command Line Welcome to NodeBB v2.0.0! This looks like a new installation, so you'll have to answer a few questions about your environment before we can proceed. Press enter to accept the default setting (shown in brackets). 2022-05-06T02:44:32.304Z [3485] - info: Now configuring mongo database: 2022-05-06T02:44:32.495Z [3485] - info: [database] Checking database indices. 2022-05-06T02:44:32.504Z [3485] - info: [database] Checking database indices done! 2022-05-06T02:44:33.410Z [3485] - verbose: [minifier] utilizing a maximum of 5 additional threads Configuration Saved OK Populating database with default configs, if not already set... Previous theme detected, skipping enabling default theme Categories OK. Found 106 categories. Administrator found, skipping Admin setup 2022-05-06T02:44:33.482Z [3485] - info: Global Moderators group found, skipping creation! Enabling default plugins 2022-05-06T02:44:33.511Z [3485] - info: [install/defaultPlugins] customDefaults undefined 2022-05-06T02:44:33.512Z [3485] - info: [install/enableDefaultPlugins] activating default plugins {"0":"nodebb-plugin-composer-default","1":"nodebb-plugin-markdown","2":"nodebb-plugin-mentions","3":"nodebb-widget-essentials","4":"nodebb-rewards-essentials","5":"nodebb-plugin-emoji","6":"nodebb-plugin-emoji-android"} 2022-05-06T02:44:33.580Z [3485] - verbose: [build] Querying CPU core count for build strategy 2022-05-06T02:44:33.581Z [3485] - verbose: [build] System returned 6 cores, opting for parallel build strategy 2022-05-06T02:44:33.581Z [3485] - verbose: [build] building the following targets: plugin static dirs, requirejs modules, client js bundle, admin js bundle, client side styles, admin control panel styles, templates, languages started 2022-05-06T02:44:33.602Z [3485] - verbose: [plugins] loading the following fields from plugin data: staticDirs, modules, clientScripts, acpScripts, cssFiles, lessFiles, acpLessFiles, languageData 2022-05-06T02:44:33.611Z [3485] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-composer-default 2022-05-06T02:44:33.612Z [3485] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-markdown 2022-05-06T02:44:33.612Z [3485] - verbose: [plugins] Found 1 css file(s) for plugin nodebb-widget-essentials 2022-05-06T02:44:33.613Z [3485] - verbose: [plugins] Found 1 less file(s) for plugin nodebb-plugin-emoji 2022-05-06T02:44:33.613Z [3485] - verbose: [plugins] Found 1 acpLess file(s) for plugin nodebb-plugin-emoji 2022-05-06T02:44:33.615Z [3485] - verbose: [plugins] Found 12 AMD-style module(s) for plugin nodebb-plugin-composer-default 2022-05-06T02:44:33.615Z [3485] - verbose: [plugins] Found 1 AMD-style module(s) for plugin nodebb-plugin-markdown 2022-05-06T02:44:33.615Z [3485] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-markdown 2022-05-06T02:44:33.616Z [3485] - verbose: [plugins] Found 1 AMD-style module(s) for plugin nodebb-plugin-mentions 2022-05-06T02:44:33.616Z [3485] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-mentions 2022-05-06T02:44:33.617Z [3485] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-rewards-essentials 2022-05-06T02:44:33.617Z [3485] - verbose: [plugins] Found 5 AMD-style module(s) for plugin nodebb-plugin-emoji 2022-05-06T02:44:33.617Z [3485] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-emoji 2022-05-06T02:44:33.618Z [3485] - verbose: [plugins] Found 1 js file(s) for plugin nodebb-plugin-emoji 2022-05-06T02:44:33.618Z [3485] - verbose: [plugins] Found 1 AMD-style module(s) for plugin nodebb-plugin-dbsearch 2022-05-06T02:44:33.619Z [3485] - verbose: [plugins] found 1 static directories for nodebb-rewards-essentials 2022-05-06T02:44:33.620Z [3485] - verbose: [plugins] found 1 static directories for nodebb-plugin-emoji 2022-05-06T02:44:33.625Z [3485] - verbose: [plugins] Found 2 js file(s) for plugin nodebb-plugin-composer-default 2022-05-06T02:44:33.626Z [3485] - verbose: [plugins] found 1 static directories for nodebb-plugin-markdown 2022-05-06T02:44:33.633Z [3485] - info: [build] Building in parallel mode 2022-05-06T02:44:33.634Z [3485] - info: [build] plugin static dirs build started 2022-05-06T02:44:33.637Z [3485] - info: [build] requirejs modules build started 2022-05-06T02:44:33.639Z [3485] - info: [build] client js bundle build started 2022-05-06T02:44:33.640Z [3485] - info: [build] admin js bundle build started 2022-05-06T02:44:33.640Z [3485] - info: [build] client side styles build started 2022-05-06T02:44:33.641Z [3485] - info: [build] admin control panel styles build started 2022-05-06T02:44:33.642Z [3485] - info: [build] templates build started 2022-05-06T02:44:33.642Z [3485] - info: [build] languages build started 2022-05-06T02:44:34.180Z [3485] - info: [build] plugin static dirs build completed in 0.546sec 2022-05-06T02:44:34.640Z [3485] - info: [build] client js bundle build completed in 1.001sec 2022-05-06T02:44:34.641Z [3485] - info: [build] admin js bundle build completed in 1.001sec 2022-05-06T02:44:37.038Z [3485] - warn: [meta/templates] Partial not loaded: partials/topic/browsing-users.tpl 2022-05-06T02:44:37.175Z [3485] - info: [build] languages build completed in 3.533sec 2022-05-06T02:44:37.414Z [3485] - warn: [meta/templates] Partial not loaded: partials/topic/browsing-users.tpl 2022-05-06T02:44:37.428Z [3485] - verbose: [meta/templates] Successfully compiled templates. 2022-05-06T02:44:37.428Z [3485] - info: [build] templates build completed in 3.786sec 2022-05-06T02:44:37.539Z [3485] - info: [build] requirejs modules build completed in 3.902sec 2022-05-06T02:44:38.303Z [3485] - info: [build] client side styles build completed in 4.663sec 2022-05-06T02:44:38.571Z [3485] - info: [build] admin control panel styles build completed in 4.93sec 2022-05-06T02:44:38.572Z [3485] - info: [build] Bundling with Webpack. 305 assets 848 modules WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). This can impact web performance. Assets: 03371bf1d5cbb1eab58e3a0130d1e9c2.js (491 KiB) nodebb.min.js (1.1 MiB) admin.min.js (1.15 MiB) 8522.29b4b3a5215e23298727.min.js (471 KiB) 4793.874eeda7b33b3d945f82.min.js (455 KiB) WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance. Entrypoints: nodebb (1.1 MiB) nodebb.min.js admin (1.15 MiB) admin.min.js webpack 5.72.0 compiled with 2 warnings in 28451 ms 2022-05-06T02:45:07.630Z [3485] - info: [build] Asset compilation successful. Completed in 33.995sec. ============================================================================================================== NodeBB Setup Completed. Run "./nodebb start" to manually start your NodeBB server. nodebb@mail:~/nodebb$ ./nodebb start ./nodebb start Starting NodeBB "./nodebb stop" to stop the NodeBB server "./nodebb log" to view server output "./nodebb help" for more commands Process "3415" from pidfile already running, exiting nodebb@mail:~/nodebb$ ./nodebb reset -p 2022-05-06T02:46:40.049Z [4567/3625] - verbose: [minifier] utilizing a maximum of 5 additional threads 2022-05-06T02:46:40.745Z [4567/3625] - info: [reset] All Plugins De-activated 2022-05-06T02:46:40.745Z [4567/3625] - info: [reset] Reset complete. Please run `./nodebb build` to rebuild assets. nodebb@mail:~/nodebb$ ./nodebb build 2022-05-06T02:46:49.674Z [4567/3646] - verbose: [minifier] utilizing a maximum of 5 additional threads 2022-05-06T02:46:50.112Z [4567/3646] - verbose: [build] Querying CPU core count for build strategy 2022-05-06T02:46:50.113Z [4567/3646] - verbose: [build] System returned 6 cores, opting for parallel build strategy 2022-05-06T02:46:50.113Z [4567/3646] - verbose: [build] building the following targets: plugin static dirs, requirejs modules, client js bundle, admin js bundle, client side styles, admin control panel styles, templates, languages started 2022-05-06T02:46:50.295Z [4567/3646] - verbose: [plugins] loading the following fields from plugin data: staticDirs, modules, clientScripts, acpScripts, cssFiles, lessFiles, acpLessFiles, languageData 2022-05-06T02:46:50.301Z [4567/3646] - info: [build] Building in parallel mode 2022-05-06T02:46:50.302Z [4567/3646] - info: [build] plugin static dirs build started 2022-05-06T02:46:50.305Z [4567/3646] - info: [build] requirejs modules build started 2022-05-06T02:46:50.315Z [4567/3646] - info: [build] client js bundle build started 2022-05-06T02:46:50.316Z [4567/3646] - info: [build] admin js bundle build started 2022-05-06T02:46:50.316Z [4567/3646] - info: [build] client side styles build started 2022-05-06T02:46:50.326Z [4567/3646] - info: [build] admin control panel styles build started 2022-05-06T02:46:50.326Z [4567/3646] - info: [build] templates build started 2022-05-06T02:46:50.327Z [4567/3646] - info: [build] languages build started 2022-05-06T02:46:50.595Z [4567/3646] - info: [build] plugin static dirs build completed in 0.293sec 2022-05-06T02:46:51.345Z [4567/3646] - info: [build] client js bundle build completed in 1.03sec 2022-05-06T02:46:51.346Z [4567/3646] - info: [build] admin js bundle build completed in 1.03sec 2022-05-06T02:46:53.224Z [4567/3646] - info: [build] languages build completed in 2.897sec 2022-05-06T02:46:53.330Z [4567/3646] - warn: [meta/templates] Partial not loaded: partials/topic/browsing-users.tpl 2022-05-06T02:46:53.664Z [4567/3646] - warn: [meta/templates] Partial not loaded: partials/topic/browsing-users.tpl 2022-05-06T02:46:53.680Z [4567/3646] - verbose: [meta/templates] Successfully compiled templates. 2022-05-06T02:46:53.680Z [4567/3646] - info: [build] templates build completed in 3.354sec 2022-05-06T02:46:53.777Z [4567/3646] - info: [build] requirejs modules build completed in 3.472sec 2022-05-06T02:46:55.196Z [4567/3646] - info: [build] client side styles build completed in 4.88sec 2022-05-06T02:46:55.480Z [4567/3646] - info: [build] admin control panel styles build completed in 5.155sec 2022-05-06T02:46:55.481Z [4567/3646] - info: [build] Bundling with Webpack. 272 assets 769 modules ERROR in ./build/public/src/client/chats.js Module not found: Error: Can't resolve 'composer/autocomplete' in '/home/nodebb/nodebb/build/public/src/client' ERROR in ./build/public/src/modules/topicThumbs.js 65:10-68:12 Module not found: Error: Can't resolve 'composer' in '/home/nodebb/nodebb/build/public/src/modules' webpack 5.72.0 compiled with 2 errors in 24416 ms 2022-05-06T02:47:20.429Z [4567/3646] - info: [build] Asset compilation successful. Completed in 30.126sec. nodebb@mail:~/nodebb$
-
ERROR in ./build/public/src/client/chats.js
Module not found: Error: Can't resolve 'composer/autocomplete' in '/home/nodebb/build/public/src/client'ERROR in ./build/public/src/modules/topicThumbs.js 65:10-68:12
Module not found: Error: Can't resolve 'composer' in '/home/nodebb/build/public/src/modules'I have the same problem, did you solve it?
-
You don't run
./nodebb setup
to upgrade.pkill -9 node
to kill off NodeBB running on the machine../nodebb upgrade
to upgrade./nodebb start
to start
As for search... try re-indexing the forum content from the DB Search plugin page in the ACP.
Copyright © 2024 NodeBB | Contributors