@phenomlab
You made my day! 5 rating
tecy
Posts
-
ERROR when nodebb sends emails with lets encrypt certificate on domain -
ERROR when nodebb sends emails with lets encrypt certificate on domainHi all,
I have a nodebb instance running on ubuntu with PLESK.
Everything woorks fine untl now.
After I upgraded to v3.4.2 I realized in the logs that nodebb is not sending any emails due to the following error:2023-09-27T12:23:06.842Z [4567/2922161] - [31merror[39m: [emailer.send] Error: self-signed certificate at TLSSocket.onConnectSecure (node:_tls_wrap:1550:34) at TLSSocket.emit (node:events:514:28) at TLSSocket._finishInit (node:_tls_wrap:967:8) at ssl.onhandshakedone (node:_tls_wrap:743:12) at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17) 2023-09-27T12:36:26.424Z [4567/2922161] - [31merror[39m: [emailer.send] Error: self-signed certificate at TLSSocket.onConnectSecure (node:_tls_wrap:1550:34) at TLSSocket.emit (node:events:514:28) at TLSSocket._finishInit (node:_tls_wrap:967:8) at ssl.onhandshakedone (node:_tls_wrap:743:12) at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17)
I wonder why this is a problem now in v3.4.2 since it worked in all previous versions, at least for me.
Any suggestions why that is, and how to solve?
-
Upgrade v3.4.1 to v3.4.2 | error: uncaughtException: Cannot find module '/opt/nodebb/node_modules/request-promise-native/lib/rp.jsHi folks,
I am grateful, that I can give something back to the community.
This is only the short excerpt of the console.
But the forum is workingBasically, I was just installing the modules, which nodebb meant where missing.
that did the job.This is my solution,
may it be helpful to others.$ ./nodebb upgrade Error: Cannot find module '/opt/nodebb/node_modules/request-promise-native/lib/rp.js'. $ npm install request-promise-native $ ./nodebb upgrade error: uncaughtException: Cannot find module 'request-promise-core/configure/request2' $ npm install request-promise-core $ ./nodebb upgrade error: Error: Cannot find module 'stealthy-require' $ npm install stealthy-require NodeBB v3.4.2 Copyright (C) 2013-2023 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.html Clustering enabled: Spinning up 1 process(es). 2023-09-27T12:18:09.201Z [4567/2922161] - info: Initializing NodeBB v3.4.2 [...] 2023-09-27T12:18:11.071Z [4567/2922161] - info: [api] Adding 0 route(s) to `api/v3/plugins` 2023-09-27T12:18:11.087Z [4567/2922161] - info: [router] Routes added 2023-09-27T12:18:11.090Z [4567/2922161] - info: π NodeBB Ready 2023-09-27T12:18:11.091Z [4567/2922161] - info: π€ Enabling 'trust proxy' 2023-09-27T12:18:11.093Z [4567/2922161] - info: π‘ NodeBB is now listening on: 0.0.0.0:4567 2023-09-27T12:18:11.093Z [4567/2922161] - info: π Canonical URL:
-
Upgrade v3.4.1 to v3.4.2 | error: uncaughtException: Cannot find module '/opt/nodebb/node_modules/request-promise-native/lib/rp.jsHi @PitaJ
I tried that. Nothing changed.
Same error msg.
BTW. I installed and upgraded nodebb by special user "nodebb" NOT root.I copied rp.js from here
- https://raw.githubusercontent.com/request/request-promise-native/master/lib/rp.js
and created file rp.js in the respectoive folder: - nodebb/node_modules/request-promise-native/lib
But the other errors arise:
2023-09-27T12:13:35.245Z [4567/2921675] - error: uncaughtException: Cannot find module 'request-promise-core/configure/request2' Require stack: - /opt/nodebb/node_modules/request-promise-native/lib/rp.js - /opt/nodebb/src/cli/upgrade-plugins.js - /opt/nodebb/src/cli/upgrade.js - /opt/nodebb/src/cli/index.js - /opt/nodebb/nodebb Error: Cannot find module 'request-promise-core/configure/request2' Require stack: - /opt/nodebb/node_modules/request-promise-native/lib/rp.js - /opt/nodebb/src/cli/upgrade-plugins.js - /opt/nodebb/src/cli/upgrade.js - /opt/nodebb/src/cli/index.js - /opt/nodebb/nodebb at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15) at Module._load (node:internal/modules/cjs/loader:922:27) at Module.require (node:internal/modules/cjs/loader:1143:19) at require (node:internal/modules/cjs/helpers:121:18) at Object.<anonymous> (/opt/nodebb/node_modules/request-promise-native/lib/rp.js:3:17) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) at Module._load (node:internal/modules/cjs/loader:960:12) at Module.require (node:internal/modules/cjs/loader:1143:19) {"date":"Wed Sep 27 2023 14:13:35 GMT+0200 (GMT+02:00)","error":{"code":"MODULE_NOT_FOUND","requireStack":["/opt/nodebb/node_modules/request-promise-native/lib/rp.js","/opt/nodebb/src/cli/upgrade-plugins.js","/opt/nodebb/src/cli/upgrade.js","/opt/nodebb/src/cli/index.js","/opt/nodebb/nodebb"]},"exception":true,"os":{"loadavg":[0,0.05,0.02],"uptime":1993038.53},"process":{"argv":["/usr/bin/node","/opt/nodebb/nodebb","upgrade"],"cwd":"/opt/nodebb","execPath":"/usr/bin/node","gid":10003,"memoryUsage":{"arrayBuffers":552776,"external":1183939,"heapTotal":21794816,"heapUsed":16677008,"rss":66048000},"pid":2921675,"uid":10003,"version":"v18.17.1"},"stack":"Error: Cannot find module 'request-promise-core/configure/request2'\nRequire stack:\n- /opt/nodebb/node_modules/request-promise-native/lib/rp.js\n- /opt/nodebb/src/cli/upgrade-plugins.js\n- /opt/nodebb/src/cli/upgrade.js\n- /opt/nodebb/src/cli/index.js\n- /opt/nodebb/nodebb\n at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)\n at Module._load (node:internal/modules/cjs/loader:922:27)\n at Module.require (node:internal/modules/cjs/loader:1143:19)\n at require (node:internal/modules/cjs/helpers:121:18)\n at Object.<anonymous> (/opt/nodebb/node_modules/request-promise-native/lib/rp.js:3:17)\n at Module._compile (node:internal/modules/cjs/loader:1256:14)\n at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)\n at Module.load (node:internal/modules/cjs/loader:1119:32)\n at Module._load (node:internal/modules/cjs/loader:960:12)\n at Module.require (node:internal/modules/cjs/loader:1143:19)","trace":[{"column":15,"file":"node:internal/modules/cjs/loader","function":"Module._resolveFilename","line":1077,"method":"_resolveFilename","native":false},{"column":27,"file":"node:internal/modules/cjs/loader","function":"Module._load","line":922,"method":"_load","native":false},{"column":19,"file":"node:internal/modules/cjs/loader","function":"Module.require","line":1143,"method":"require","native":false},{"column":18,"file":"node:internal/modules/cjs/helpers","function":"require","line":121,"method":null,"native":false},{"column":17,"file":"/opt/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":1256,"method":"_compile","native":false},{"column":10,"file":"node:internal/modules/cjs/loader","function":"Module._extensions..js","line":1310,"method":".js","native":false},{"column":32,"file":"node:internal/modules/cjs/loader","function":"Module.load","line":1119,"method":"load","native":false},{"column":12,"file":"node:internal/modules/cjs/loader","function":"Module._load","line":960,"method":"_load","native":false},{"column":19,"file":"node:internal/modules/cjs/loader","function":"Module.require","line":1143,"method":"require","native":false}]}
- https://raw.githubusercontent.com/request/request-promise-native/master/lib/rp.js
-
nodeBB hosting in europe with a reasonable priceHi all,
does anybody know of a nodebb hosting company in europe with a reasonable price?I am doing the stuff fo a non profit, but I am tired of getting errors after updates etc ...
Waiting for answers in the forum (no offence meant!), so I thought maybe its a better way to go the "pro" way.
Just thinking about alternatives ...No, the native hosting by nodebb for $100/month is no choice for me ...
for a 200 person forum, this would be quite an overkill -
Upgrade v3.4.1 to v3.4.2 | error: uncaughtException: Cannot find module '/opt/nodebb/node_modules/request-promise-native/lib/rp.jsGoing back to v3.4.1 doesn't fix the error either ...
It seems like I am in a real classical dead lock -
Upgrade v3.4.1 to v3.4.2 | error: uncaughtException: Cannot find module '/opt/nodebb/node_modules/request-promise-native/lib/rp.jsnpm install request-promise-native
worked and went through with out errors.
./nodebb upgrade
gave same error as above.Also creating the upper mentioned and mission file gives some other strange errors - so don't do it!
-
Upgrade v3.4.1 to v3.4.2 | error: uncaughtException: Cannot find module '/opt/nodebb/node_modules/request-promise-native/lib/rp.jsHi guys,
My system:
- Ubuntu 22
- npm 10.1.0
- nodejs 18.7.1
I just upgraded my nodebb from v3.4.2 to v3.4.3.
After
./nodebb start ./nodebb log
I get the following error:
2023-09-25T19:12:43.999Z [4567/2705558] - error: uncaughtException: Cannot find module '/opt/nodebb/node_modules/request-promise-native/lib/rp.js'. Please verify that the package.json has a valid "main" entry Error: Cannot find module '/opt/nodebb/node_modules/request-promise-native/lib/rp.js'. Please verify that the package.json has a valid "main" entry at tryPackage (node:internal/modules/cjs/loader:438:19) at Module._findPath (node:internal/modules/cjs/loader:680:18) at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27) at Module._load (node:internal/modules/cjs/loader:922:27) at Module.require (node:internal/modules/cjs/loader:1143:19) at require (node:internal/modules/cjs/helpers:121:18) at Object.<anonymous> (/opt/nodebb/src/cli/upgrade-plugins.js:4:17) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32) {"date":"Mon Sep 25 2023 21:12:43 GMT+0200 (GMT+02:00)","error":{"code":"MODULE_NOT_FOUND","path":"/opt/nodebb/node_modules/request-promise-native/package.json","requestPath":"request-promise-native"},"exception":true,"os":{"loadavg":[0.07,0.16,0.22],"uptime":1845387.28},"process":{"argv":["/usr/bin/node","/opt/nodebb/nodebb","upgrade"],"cwd":"/opt/nodebb","execPath":"/usr/bin/node","gid":10003,"memoryUsage":{"arrayBuffers":552776,"external":1183939,"heapTotal":21532672,"heapUsed":16322352,"rss":67162112},"pid":2705558,"uid":10003,"version":"v18.17.1"},"stack":"Error: Cannot find module '/opt/nodebb/node_modules/request-promise-native/lib/rp.js'. Please verify that the package.json has a valid \"main\" entry\n at tryPackage (node:internal/modules/cjs/loader:438:19)\n at Module._findPath (node:internal/modules/cjs/loader:680:18)\n at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)\n at Module._load (node:internal/modules/cjs/loader:922:27)\n at Module.require (node:internal/modules/cjs/loader:1143:19)\n at require (node:internal/modules/cjs/helpers:121:18)\n at Object.<anonymous> (/opt/nodebb/src/cli/upgrade-plugins.js:4:17)\n at Module._compile (node:internal/modules/cjs/loader:1256:14)\n at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)\n at Module.load (node:internal/modules/cjs/loader:1119:32)","trace":[{"column":19,"file":"node:internal/modules/cjs/loader","function":"tryPackage","line":438,"method":null,"native":false},{"column":18,"file":"node:internal/modules/cjs/loader","function":"Module._findPath","line":680,"method":"_findPath","native":false},{"column":27,"file":"node:internal/modules/cjs/loader","function":"Module._resolveFilename","line":1063,"method":"_resolveFilename","native":false},{"column":27,"file":"node:internal/modules/cjs/loader","function":"Module._load","line":922,"method":"_load","native":false},{"column":19,"file":"node:internal/modules/cjs/loader","function":"Module.require","line":1143,"method":"require","native":false},{"column":18,"file":"node:internal/modules/cjs/helpers","function":"require","line":121,"method":null,"native":false},{"column":17,"file":"/opt/nodebb/src/cli/upgrade-plugins.js","function":null,"line":4,"method":null,"native":false},{"column":14,"file":"node:internal/modules/cjs/loader","function":"Module._compile","line":1256,"method":"_compile","native":false},{"column":10,"file":"node:internal/modules/cjs/loader","function":"Module._extensions..js","line":1310,"method":".js","native":false},{"column":32,"file":"node:internal/modules/cjs/loader","function":"Module.load","line":1119,"method":"load","native":false}]}
and I had a look here:
/opt/nodebb/node_modules/request-promise-native/lib/rp.js
The file is really missing, but why?
Last update from v2.8 to 3.4.1 no problem.
Any ideas, suggestions, etc ... ?
Very appreciated.Have a nice evening
tecy -
Update v1.19.7 -> v2.0.0 | Error: uncaughtException: winston.Logger is not a constructorBefore blaming others, blame yourself!
Stupid me, was running npm as root OMG.
-----> So NEVER run npm as root !! <----
Yes, you knew that before, but not me ...Ok now I have the v2.0.0 running but got these errors when using
./nodebb upgrade
:WARNING in ./build/public/scripts-client.js 2175:11-46 require.main.require is not supported by webpack. ERROR in ./build/public/scripts-client.js 3048:0-100 Module not found: Error: Can't resolve 'plugin/emoji-extended/completion' in '/opt/nodebb/build/public' ERROR in ./build/public/scripts-client.js 3054:162-247 Module not found: Error: Can't resolve 'plugin/emoji-extended/composer/modal' in '/opt/nodebb/build/public' ERROR in ./build/public/scripts-client.js 3061:392-465 Module not found: Error: Can't resolve 'plugin/emoji-extended/detection' in '/opt/nodebb/build/public' ERROR in ./build/public/scripts-client.js Module not found: Error: Can't resolve 'plugin/emoji-extended/debug' in '/opt/nodebb/build/public' ERROR in ./build/public/scripts-client.js Module not found: Error: Can't resolve 'plugin/emoji-extended/detection' in '/opt/nodebb/build/public' ERROR in ./build/public/scripts-client.js Module not found: Error: Can't resolve 'plugin/emoji-extended/items' in '/opt/nodebb/build/public' ERROR in ./build/public/scripts-client.js Module not found: Error: Can't resolve 'plugin/emoji-extended/settings' in '/opt/nodebb/build/public' webpack 5.72.0 compiled with 7 errors and 1 warning in 37497 ms 2022-05-11T19:36:36.677Z [4567/22485] - info: [build] Asset compilation successful. Completed in 45.333sec.
But these mentioned modules are all installed and active.
So what is the error for if active and installed?[solved] I also get errors in the developers console:
2022-05-11T19:41:49.808Z [4567/22791] - error: [plugins] Error executing 'static:app.load' in plugin 'nodebb-plugin-custom-homepage' Error: Route.get() requires a callback function but got a [object Object] at Route.<computed> [as get] (/opt/nodebb/node_modules/express/lib/router/route.js:211:15) at Function.proto.<computed> [as get] (/opt/nodebb/node_modules/express/lib/router/index.js:521:19) at Plugin.init (/opt/nodebb/node_modules/nodebb-plugin-custom-homepage/library.js:20:7) at node:internal/util:360:7 at new Promise (<anonymous>) at node:internal/util:346:12 at Object.fireStaticHook [as static] (/opt/nodebb/src/plugins/hooks.js:227:19) at async Hooks.fire (/opt/nodebb/src/plugins/hooks.js:123:17) at async Plugins.reloadRoutes (/opt/nodebb/src/plugins/index.js:152:2) at async module.exports (/opt/nodebb/src/routes/index.js:144:2)
Seems that the custom homepage plugin is damaged ... or just not ready for v2.
So I need to disable that plugin and build again.
Let's see what that gives us ...So the plugin "https://github.com/NodeBB/nodebb-plugin-custom-homepage" messed up the whole forum.
Deactivated that. Now nodebb is back on the road.Does anyone have an idea, how I can a custom homepage in nodebb without this plugin?
-
How to fix Installing them now... npm ERR! code 128 npm ERR! An unknown git error occurred npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/Mango/emitter.git@Belhachemia-Mohammed-ibrahim
Hi I have the same error when usingnpm update
after upgrading to 1.19.7.
Could not fix it yet ... -
Update v1.19.7 -> v2.0.0 | Error: uncaughtException: winston.Logger is not a constructorWhy is it when I go back to 1.19.7 I have the same errors as in v2.0.0?
After all its different code, but then I should not have the same errors like in v2.0.0
This update has been the worst nightmare at all ... -
Update v1.19.7 -> v2.0.0 | Error: uncaughtException: winston.Logger is not a constructor@baris
Thanks for your suggestion.OMG, this is a really frustrating situation.
How can I solve? thinking
Command
# npm ls -prod json -depth=1
Result:
[email protected] /opt/nodebb
βββ (empty)
Command:
npm ls
Result
# npm ls [email protected] /opt/nodebb βββ @adactive/[email protected] βββ @apidevtools/[email protected] βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/[email protected] extraneous βββ @babel/parser@ extraneous βββ @babel/[email protected] extraneous βββ @babel/traverse@ extraneous βββ @babel/types@ extraneous βββ @commitlint/cli@ invalid: "16.2.4" from the root project βββ @commitlint/[email protected] βββ @commitlint/config-validator@ extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/is-ignored@ extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/load@ extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/rules@ extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/[email protected] extraneous βββ @commitlint/[email protected] extraneous βββ @cspotcode/[email protected] extraneous βββ @cspotcode/[email protected] extraneous βββ @nodebb/[email protected] βββ @socket.io/[email protected] βββ @tootallnate/[email protected] extraneous βββ @tsconfig/[email protected] extraneous βββ @tsconfig/[email protected] extraneous βββ @tsconfig/[email protected] extraneous βββ @tsconfig/[email protected] extraneous βββ @types/[email protected] extraneous βββ @ungap/[email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ cssstyle@ extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ es-abstract@ extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ eslint-plugin-import@ invalid: "2.26.0" from the root project βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ fsevents@ extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ grunt@ invalid: "1.5.2" from the root project βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ jsdom@ invalid: "19.0.0" from the root project βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ lint-staged@ invalid: "12.4.1" from the root project βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ mocha@ invalid: "10.0.0" from the root project βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ parse5@ extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ rxjs@ extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ smtp-server@ invalid: "3.11.0" from the root project βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ ts-node@ extraneous βββ [email protected] extraneous βββ typescript@ extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ workerpool@ extraneous βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] βββ [email protected] extraneous βββ [email protected] extraneous βββ [email protected] npm ERR! code ELSPROBLEMS npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/generator npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-function-name npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-get-function-arity npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-member-expression-to-functions npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-module-imports npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-module-transforms npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-optimise-call-expression npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-replace-supers npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-simple-access npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helper-split-export-declaration npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/helpers npm ERR! extraneous: @babel/parser@ /opt/nodebb/node_modules/@babel/parser npm ERR! extraneous: @babel/[email protected] /opt/nodebb/node_modules/@babel/template npm ERR! extraneous: @babel/traverse@ /opt/nodebb/node_modules/@babel/traverse npm ERR! extraneous: @babel/types@ /opt/nodebb/node_modules/@babel/types npm ERR! invalid: @commitlint/cli@ /opt/nodebb/node_modules/@commitlint/cli npm ERR! extraneous: @commitlint/config-validator@ /opt/nodebb/node_modules/@commitlint/config-validator npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/ensure npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/execute-rule npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/format npm ERR! extraneous: @commitlint/is-ignored@ /opt/nodebb/node_modules/@commitlint/is-ignored npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/lint npm ERR! extraneous: @commitlint/load@ /opt/nodebb/node_modules/@commitlint/load npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/message npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/parse npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/read npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/resolve-extends npm ERR! extraneous: @commitlint/rules@ /opt/nodebb/node_modules/@commitlint/rules npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/to-lines npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/top-level npm ERR! extraneous: @commitlint/[email protected] /opt/nodebb/node_modules/@commitlint/types npm ERR! extraneous: @cspotcode/[email protected] /opt/nodebb/node_modules/@cspotcode/source-map-consumer npm ERR! extraneous: @cspotcode/[email protected] /opt/nodebb/node_modules/@cspotcode/source-map-support npm ERR! extraneous: @tootallnate/[email protected] /opt/nodebb/node_modules/@tootallnate/once npm ERR! extraneous: @tsconfig/[email protected] /opt/nodebb/node_modules/@tsconfig/node10 npm ERR! extraneous: @tsconfig/[email protected] /opt/nodebb/node_modules/@tsconfig/node12 npm ERR! extraneous: @tsconfig/[email protected] /opt/nodebb/node_modules/@tsconfig/node14 npm ERR! extraneous: @tsconfig/[email protected] /opt/nodebb/node_modules/@tsconfig/node16 npm ERR! extraneous: @types/[email protected] /opt/nodebb/node_modules/@types/json5 npm ERR! extraneous: @ungap/[email protected] /opt/nodebb/node_modules/@ungap/promise-all-settled npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/abab npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/abbrev npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/acorn-globals npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/acorn-walk npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/agent-base npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/ansi-colors npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/ansi-escapes npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/anymatch npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/argparse npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/array-each npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/array-includes npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/array-slice npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/array.prototype.flat npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/astral-regex npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/base32.js npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/binary-extensions npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/braces npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/browser-process-hrtime npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/browser-stdout npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/chokidar npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/cli-cursor npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/cli-truncate npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/colorette npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/confusing-browser-globals npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/cosmiconfig-typescript-loader npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/cosmiconfig npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/create-require npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/cssom npm ERR! extraneous: cssstyle@ /opt/nodebb/node_modules/cssstyle npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/data-urls npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/dateformat npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/decimal.js npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/define-properties npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/detect-file npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/domexception npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/eastasianwidth npm ERR! extraneous: es-abstract@ /opt/nodebb/node_modules/es-abstract npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/es-to-primitive npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/escodegen npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/eslint-import-resolver-node npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/eslint-module-utils npm ERR! invalid: eslint-plugin-import@ /opt/nodebb/node_modules/eslint-plugin-import npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/esprima npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/eventemitter2 npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/execa npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/exit npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/expand-tilde npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/fill-range npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/findup-sync npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/fined npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/flagged-respawn npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/flat npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/for-in npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/for-own npm ERR! extraneous: fsevents@ /opt/nodebb/node_modules/fsevents npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/gensync npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/get-stream npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/get-symbol-description npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/getobject npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/glob-parent npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/global-modules npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/global-prefix npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/grunt-cli npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/grunt-known-options npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/grunt-legacy-log-utils npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/grunt-legacy-log npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/grunt-legacy-util npm ERR! invalid: grunt@ /opt/nodebb/node_modules/grunt npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/has-bigints npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/has-tostringtag npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/homedir-polyfill npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/hooker npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/html-encoding-sniffer npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/html-escaper npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/http-proxy-agent npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/https-proxy-agent npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/human-signals npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/internal-slot npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/interpret npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/ipv6-normalize npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-absolute npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-bigint npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-binary-path npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-boolean-object npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-callable npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-date-object npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-negative-zero npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-number-object npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-number npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-potential-custom-element-name npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-regex npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-relative npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-shared-array-buffer npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-string npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-symbol npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-unc-path npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-unicode-supported npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/is-weakref npm ERR! invalid: jsdom@ /opt/nodebb/node_modules/jsdom npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/liftup npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/lilconfig npm ERR! invalid: lint-staged@ /opt/nodebb/node_modules/lint-staged npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/listr2 npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/lodash.isequal npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/log-symbols npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/log-update npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/make-error npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/make-iterator npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/map-cache npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/micromatch npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/mimic-fn npm ERR! invalid: mocha@ /opt/nodebb/node_modules/mocha npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/nopt npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/npm-run-path npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/nwsapi npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/object-keys npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/object.assign npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/object.defaults npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/object.entries npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/object.map npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/object.pick npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/object.values npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/onetime npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/os-homedir npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/os-tmpdir npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/osenv npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/p-map npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/parse-filepath npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/parse-passwd npm ERR! extraneous: parse5@ /opt/nodebb/node_modules/parse5 npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/path-root-regex npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/path-root npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/picomatch npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/pidtree npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/readdirp npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/rechoir npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/resolve-dir npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/restore-cursor npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/rfdc npm ERR! extraneous: rxjs@ /opt/nodebb/node_modules/rxjs npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/saxes npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/slice-ansi npm ERR! invalid: smtp-server@ /opt/nodebb/node_modules/smtp-server npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/sprintf-js npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/string-argv npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/string.prototype.trimend npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/string.prototype.trimstart npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/strip-bom npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/strip-final-newline npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/symbol-tree npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/to-fast-properties npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/to-regex-range npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/tough-cookie npm ERR! extraneous: ts-node@ /opt/nodebb/node_modules/ts-node npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/tsconfig-paths npm ERR! extraneous: typescript@ /opt/nodebb/node_modules/typescript npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/unbox-primitive npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/unc-path-regex npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/underscore.string npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/v8-compile-cache-lib npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/v8flags npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/w3c-hr-time npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/w3c-xmlserializer npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/whatwg-encoding npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/whatwg-mimetype npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/whatwg-url npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/which-boxed-primitive npm ERR! extraneous: workerpool@ /opt/nodebb/node_modules/workerpool npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/ws npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/xml-name-validator npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/xmlchars npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/yargs-unparser npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/yn npm ERR! extraneous: [email protected] /opt/nodebb/node_modules/yocto-queue
-
Update v1.19.7 -> v2.0.0 | Error: uncaughtException: winston.Logger is not a constructor@baris said in Update v1.19.7 -> v2.0.0 | Error: uncaughtException: winston.Logger is not a constructor:
npm ls winston
Result is:
[email protected] /opt/nodebb βββ¬ [email protected] β βββ [email protected] deduped βββ¬ [email protected] β βββ winston@ invalid: "2.x" from node_modules/prompt βββ [email protected] npm ERR! code ELSPROBLEMS npm ERR! invalid: winston@ /opt/nodebb/node_modules/prompt/node_modules/winston
In install/package.json:
3.7.2
-
Update v1.19.7 -> v2.0.0 | Error: uncaughtException: winston.Logger is not a constructorno one any idea?
** wondering ** -
Update v1.19.7 -> v2.0.0 | Error: uncaughtException: winston.Logger is not a constructorBTW:
Going back to v1.19.7 like described here, did not work for me ... -
Update v1.19.7 -> v2.0.0 | Error: uncaughtException: winston.Logger is not a constructorHi all,
I have a problem with updating my nodeBB forum.I get the following error:
2022-05-07T15:34:39.879Z [4567/4909] - error: uncaughtException: winston.Logger is not a constructor TypeError: winston.Logger is not a constructor at Object.<anonymous> (/opt/nodebb/node_modules/prompt/lib/prompt.js:39:30) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/opt/nodebb/src/database/mongo.js:8:16) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) {"date":"Sat May 07 2022 17:34:39 GMT+0200 (MitteleuropΓ€ische Sommerzeit)","error":{},"exception":true,"os":{"loadavg":[0.43,0.32,0.24],"uptime":11741984.91},"process":{"argv":["/usr/local/bin/node","/opt/nodebb/nodebb","reset","-p","nodebb-plugin-category-notifications"],"cwd":"/opt/nodebb","execPath":"/usr/local/bin/node","gid":1012,"memoryUsage":{"arrayBuffers":334333,"external":2258902,"heapTotal":19292160,"heapUsed":14440872,"rss":57151488},"pid":4909,"uid":1002,"version":"v16.15.0"},"stack":"TypeError: winston.Logger is not a constructor\n at Object.<anonymous> (/opt/nodebb/node_modules/prompt/lib/prompt.js:39:30)\n at Module._compile (node:internal/modules/cjs/loader:1105:14)\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)\n at Module.load (node:internal/modules/cjs/loader:981:32)\n at Function.Module._load (node:internal/modules/cjs/loader:822:12)\n at Module.require (node:internal/modules/cjs/loader:1005:19)\n at require (node:internal/modules/cjs/helpers:102:18)\n at Object.<anonymous> (/opt/nodebb/src/database/mongo.js:8:16)\n at Module._compile (node:internal/modules/cjs/loader:1105:14)\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)","trace":[{"column":30,"file":"/opt/nodebb/node_modules/prompt/lib/prompt.js","function":null,"line":39,"method":null,"native":false},{"column":14,"file":"node:internal/modules/cjs/loader","function":"Module._compile","line":1105,"method":"_compile","native":false},{"column":10,"file":"node:internal/modules/cjs/loader","function":"Module._extensions..js","line":1159,"method":".js","native":false},{"column":32,"file":"node:internal/modules/cjs/loader","function":"Module.load","line":981,"method":"load","native":false},{"column":12,"file":"node:internal/modules/cjs/loader","function":"Module._load","line":822,"method":"_load","native":false},{"column":19,"file":"node:internal/modules/cjs/loader","function":"Module.require","line":1005,"method":"require","native":false},{"column":18,"file":"node:internal/modules/cjs/helpers","function":"require","line":102,"method":null,"native":false},{"column":16,"file":"/opt/nodebb/src/database/mongo.js","function":null,"line":8,"method":null,"native":false},{"column":14,"file":"node:internal/modules/cjs/loader","function":"Module._compile","line":1105,"method":"_compile","native":false},{"column":10,"file":"node:internal/modules/cjs/loader","function":"Module._extensions..js","line":1159,"method":".js","native":false}]}
These are my settings:
- Ubuntu 20 server
- npm v8.5.5
- node v16.15.0
What I did:
- Update from v1.19.0 -> v1.19.7 (latest 1.19)
- Update from v1.19.7 -> v2.0.0
What am I missing, what did I do wrong?
How can I solve the issue? -
URI api/v3/users/136 gives Error 404 - user not existent@baris
I executed yor command with the following result:WriteResult({ "nInserted" : 1 })
The user could be deleted successfully! Thanks!
So, it seems that an emtpy joindate for a user is definetly a problem.How would be the command to make all "joindates" which are empty, to be set to " 01-01-1970"?
Could you advise?
So in the future, I would not have the same problem again
-
URI api/v3/users/136 gives Error 404 - user not existentHi @baris
I followed your advice. But still no success.
I opened the Developer Tools in my browser before I deleted the user 136 in the forums backend
and it still gives an error:
/api/v3/users/136/account 404
Message sais "User does not exists" or similar ... I am in a german backend here
Seems to be a problem in or with jquery, in jquery.js. At least this is what the dev ools are telling ...
I even tried this from a directly connected line to the internet, no firewalls, no WAFs, no piHoles etc.
to be sure that the traffice has not been altered in a certain way.
Still the same behaviour as mentioned above.Unfortunately, I am not that kind of a "dev genius",
so I am not able to investigate this specific error further.Anyone any ideas, advices, suggestions ... ?
-
URI api/v3/users/136 gives Error 404 - user not existentHey @baris
thanks for the advice.
Result is:
> db.objects.findOne({_key: "user:136"}); { "_id" : ObjectId("5af82062ad5173788d7841d8"), "_key" : "user:136", "username" : "**********", "userslug" : "**********", "email" : "**********", "joindate" : 1526210658941, "lastonline" : 1607610706017, "picture" : "", "fullname" : "**********", "location" : "", "birthday" : "**********", "uploadedpicture" : "", "profileviews" : 32, "postcount" : 1, "lastposttime" : 1526487797565, "status" : "online", "gdpr_consent" : 0, "acceptTos" : 0, "uid" : "136", "passwordExpiry" : 1621247179428, "password" : "**********", "groupTitle" : "[]", "aboutme" : "", "email:confirmed" : 1, "rss_token" : "e2325fb3-7142-4525-8ad8-0f2f731c7a9d", "banned:expire" : 0, "website" : "", "signature" : "" } > db.objects.findOne({_key: "users:joindate", value: "136"}); null
If you see the start "**********" there is real data behind, I just masked it, because of the EU GDPR.
So the problem may be the "null" joindate?
Regards,
tecy -
URI api/v3/users/136 gives Error 404 - user not existentHi all,
System info:
* Ubuntu 18.04.6 LTS * node 14.15.3 * nodebb 1.19.0 * npm 8.3.0
I have a weird phenomenon.
When I log in to the "Admin panel -> Manage -> Users" I see a certain user.
Lets call him John Doe.
When I mark this "User" and go to "Actions -> Delete User" I get an 404 Error for my URI.
The same for
api/v3/users/136
api/v3/users/account
Statuscode from "api/v3/users/136" is:
{ status: { code: "not-found", message: "User does not exist" }, response: { } }
And by the way, the user has not been deleted.
So what can i do, to prevent this error?
And how can I delete this user?"Settings -> API Access":
A Master Token is present and httpS is off.Regards,
tecy