Dave Jensen
Posts
-
3.4.0 Upgrade Support -
3.4.0 Upgrade Support@baris I fixed it by installing the latest version from npm.
Side question: why doesn't my dice-bot plugin show up in the "find plugins" tab on Plugins page?
-
3.4.0 Upgrade SupportThe other problem I'm experiencing is some npm link weirdness with my dice bot plugin.
The main problem at the moment is that it is not installed but enabled and I can't figure out how to uninstall it:
* nodebb-plugin-dice-bot (not installed, enabled)
Also, this seems strange:
2023-10-09T02:05:23.525Z [4567,4568/13500] - error: Error: ENOENT: no such file or directory, open '/var/srv/nodebb/node_modules/nodebb-plugin-require/plugin.json'
-
3.4.0 Upgrade SupportI'm seeing this in the logs, I had to disable the plugin to make the error stop:
2023-10-09T01:53:46.325Z [4568/12466] - error: [emoji] Failed to retrieve data for parse ENOENT: no such file or directory, open '/var/srv/nodebb/node_modules/nodebb-plugin-emoji/build/emoji/table.json' {"code":"ENOENT","errno":-2,"path":"/var/srv/nodebb/node_modules/nodebb-plugin-emoji/build/emoji/table.json","stack":"Error: ENOENT: no such file or directory, open '/var/srv/nodebb/node_modules/nodebb-plugin-emoji/build/emoji/table.json'","syscall":"open"}
-
3.4.0 Upgrade SupportI also got this deprecation warning during client side styles step, I believe:
Deprecation Warning: Passing percentage units to the global abs() function is deprecated. In the future, this will emit a CSS abs() function to be resolved by the browser. To preserve current behavior: math.abs(100%) To emit a CSS abs() now: abs(#{100%}) More info: https://sass-lang.com/d/abs-percent ╷ 57 │ $dividend: abs($dividend); │ ^^^^^^^^^^^^^^ ╵ node_modules/bootstrap/scss/vendor/_rfs.scss 57:14 divide() node_modules/bootstrap/scss/mixins/_grid.scss 59:12 row-cols() node_modules/bootstrap/scss/mixins/_grid.scss 85:13 @content node_modules/bootstrap/scss/mixins/_breakpoints.scss 68:5 media-breakpoint-up() node_modules/bootstrap/scss/mixins/_grid.scss 72:5 make-grid-columns() bootstrap/scss/_grid.scss 38:3 @import - 17:9 root stylesheet 2023-10-09T01:14:39.115Z [4567,4568/5785] - info: [build] client side styles build completed in 7.139sec 2023-10-09T01:14:39.115Z [4567,4568/5785] - info: [build] admin control panel styles build started
-
3.4.0 Upgrade SupportI'm upgrading from 2.x to 3.4.3 and I ran into this issue:
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/mongodb npm ERR! mongodb@"6.1.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer mongodb@"^5.1.0" from [email protected] npm ERR! node_modules/connect-mongo npm ERR! connect-mongo@"5.0.0" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! npm ERR! For a full report see: npm ERR! /root/.npm/_logs/2023-10-09T00_58_31_765Z-eresolve-report.txt
So I tried this and it seems to be working now. The only thing I worry about is if I'm using the correct versions of the mongodb libs now.
$ npm update --omit=dev --legacy-peer-deps $ ./nodebb upgrade
-
NodeBB have a work plugin for upload files on S3?Any thoughts on when the plugin will be fixed for 3.x?
-
Place a widget/ad after the first postAwesome! Thank you.
-
Place a widget/ad after the first postI would like to place a widget, specifically an ad, after the first post of a thread.
What’s the best way to handle this? A plug-in? If so, how?
Thanks!
-
Migration Guide for v3@julian Thanks for the heads up.
-
spawn ENOMEM: Memory leak in 1.19.1?@PitaJ said in spawn ENOMEM: Memory leak in 1.19.1?:
Does the memory usage grow quickly at first and then slow down approaching an asymptote?
I believe so.
-
spawn ENOMEM: Memory leak in 1.19.1? -
spawn ENOMEM: Memory leak in 1.19.1?Today the node processes are at 32% and 30% of memory.
Redis is steady at 2.6% (roughly same as before).I can keep going but eventually it's just going to keep growing until all the memory is consumed and then it goes to swap and because the memory isn't freeing up, it's not going to help.
It's a slooow leak but it's a leak.
-
spawn ENOMEM: Memory leak in 1.19.1? -
spawn ENOMEM: Memory leak in 1.19.1?@julian Swap won't solve a memory leak though. In fact, it'll just hide the issue until the server is unmanageably slow, no?
Also, this is new behavior that started sometime between version 1.17 and 1.19 (no issues on 1.16).
I'm replying because we ran into the issue again.
-
spawn ENOMEM: Memory leak in 1.19.1? -
spawn ENOMEM: Memory leak in 1.19.1?A few users received this error message while trying to login:
spawn ENOMEM
- Why is login trying to spawn a process?
- Memory was maxed out when I checked. I'm running with 2GB.
It looks like the memory leak has been here longer:
Jan. 24 is when I upgraded from 1.16 to 1.19I've never had memory issues with NodeBB
-
Which breaking change broke post messages API?@pitaj Awesome, thank you!
-
Which breaking change broke post messages API?I was running NodeBB 16.x and recently updated to 17.x → 18.x → 19.x and somewhere along the way the API that TripleA (board game software that posts to my forum) uses had a breaking change. Looking through the changelog, I can't figure out which change it was.
For reference here's the issue on TripleA. The stack trace may not be useful here but just in case..
2.5.22294: NodeBbForumPoster#uploadSaveGame:163 - java.lang.ClassCastException · Issue #10032 · triplea-game/triplea
Map ww2_path_to_victory Log Message Failed to post game to forum TripleA Version 2.5.22294 Java Version 11.0.6 Operating System Mac OS X Memory Heap utilization statistics [MB] Used Memory: 754 Free memory: 1293 Total memory: 2048 Max me...
GitHub (github.com)
-
Anyone have a dice roller plugin?I recently updated the dice-bot plugin to 1.1.0