Server Crash (0.8.2) when uploading topic thumbnail
-
I see this error in the logs before a crash and server restart when trying to upload a topic thumbnail:
10/11 15:23 [17286] - error: Error: Unknown arguments configuration,120,120 at Error (<anonymous>) at Object.cover (/usr/local/src/nodebb/node_modules/lwip/node_modules/decree/dist/cjs/decree.js:80:27) at Batch.cover (/usr/local/src/nodebb/node_modules/lwip/lib/BatchPrototypeInit.js:99:16) at /usr/local/src/nodebb/src/image.js:26:6 at /usr/local/src/nodebb/node_modules/lwip/lib/obtain.js:32:25 Error: Unknown arguments configuration,120,120 at Error (<anonymous>) at Object.cover (/usr/local/src/nodebb/node_modules/lwip/node_modules/decree/dist/cjs/decree.js:80:27) at Batch.cover (/usr/local/src/nodebb/node_modules/lwip/lib/BatchPrototypeInit.js:99:16) at /usr/local/src/nodebb/src/image.js:26:6 at /usr/local/src/nodebb/node_modules/lwip/lib/obtain.js:32:25
Anyone have any ideas? I tested this with the same results on two different 0.8.2 installs running on ubuntu and os x.
-
Maybe it could be a missing relative path for your forum in your config.json.
-
Thanks for the tip, I am missing relative_path in my config.json but it looks like relative_path was deprecated about a year ago: https://community.nodebb.org/topic/3392/config-json-updated-base_url-and-relative_path-no-longer-exist
-
@jongarrison I need it for my notifications to work (at least in 0.8.x). By the way, why don't you simply upgrade to NodeBB 0.9.x (lwip was removed there).
Check this out:
https://github.com/NodeBB/NodeBB/issues/3426 -
Do you have an example of what relative_path should look like? I have two projects right now, one I can update to 0.9, but the other one needs to stay 0.8.2 for now. What is relative_path supposed to be doing?
Is this proper placement:
{ "url": "http://localhost:4567", "secret": "", "database": "", "relative_path": "", "mongo": { "host": "", "port": "", "username": "", "password": "", "database": "" } }
Thanks again!
-
Separately, in 0.9.0, this error message pops up when trying to upload a topic thumbnail:
There is no error in the nodebb logs.
So it appears topic thumbnails do not work in 0.8.2 or 0.9.0
-
Same error with persona theme and nodebb 0.9.3.
[edit] the error
https://le.club.systemes.sonores.rocks/api/topic/thumb/upload
500 Internal Server Error
w and h must be numbers