Updating emoji plugin to 3.5.0 breaks categories view
-
@dcook what OS are you on? How did you install Node.js in the first place?
It was never the emoji plugin, but the calendar plugin (as shown in the error message). You can use the same command as before to disable it for now:
./nodebb reset -p calendar
-
Ubuntu 18.04.4 LTS \n \l
I followed these setups when I installed NodeBB several years ago:
https://docs.nodebb.org/installing/os/ubuntu/Prior to upgrading NodeBB I always run first:
sudo apt-get update
sudo apt-get upgradeOnce the server is rebooted, I then follow these upgrade instructions:
https://docs.nodebb.org/configuring/upgrade/Most recently I updated to 1.16.2 a couple months ago now.
It was working fine until this morning, when I logged into the ACP and seen the alert that I should upgrade the emoji plugin which I did, I then did the "Rebuild & Restart" since then, the categories has been showing the error.
-
@dcook try this is upgrade node
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - sudo apt-get install -y nodejs
-
@pitaj said in Updating emoji plugin to 3.5.0 breaks categories view:
sudo apt-get install -y nodejs
Thanks that seemed to resolve the issue, should those commands be done as part of the NodeBB upgrade steps? As it was not mentioned in the Instructions: https://docs.nodebb.org/configuring/upgrade/
-
@PitaJ running those commands fixed the categories issue, but has created a new issue:
I have 2 NodeBB servers both are Ubuntu 18.04.4 and have NodeBB 1.16.2, on the server that I ran those 2 commands on:
Now whenever someone clicks on upload an image to a post, no matter what image or size of image they get: error-invalid files
On the other server that I have not run those commands on yet, upload image works normally.
/nodebb log shows:
2021-03-14T16:19:21.629Z [4567/3418] - error: /api/post/upload Error: [[error:invalid-files]] at validateFiles (/home/bgc/nodebb/src/middleware/index.js:106:15) at Layer.handle [as handle_request] (/home/bgc/nodebb/node_modules/express/lib/router/layer.js:95:5) at next (/home/bgc/nodebb/node_modules/express/lib/router/route.js:137:13) at Form.<anonymous> (/home/bgc/nodebb/node_modules/connect-multiparty/index.js:114:7) at Form.emit (events.js:315:20) at emitCloseNT (internal/streams/destroy.js:87:10) at processTicksAndRejections (internal/process/task_queues.js:79:21) 2021-03-14T16:19:30.900Z [4567/3418] - error: /api/post/upload Error: [[error:invalid-files]] at validateFiles (/home/bgc/nodebb/src/middleware/index.js:106:15) at Layer.handle [as handle_request] (/home/bgc/nodebb/node_modules/express/lib/router/layer.js:95:5) at next (/home/bgc/nodebb/node_modules/express/lib/router/route.js:137:13) at Form.<anonymous> (/home/bgc/nodebb/node_modules/connect-multiparty/index.js:114:7) at Form.emit (events.js:315:20) at emitCloseNT (internal/streams/destroy.js:87:10) at processTicksAndRejections (internal/process/task_queues.js:79:21)
-
See here https://community.nodebb.org/topic/15075/nodebb-v1-15-0-rc-0-release-candidate-published/8?_=1615739118416, you need to run
npm i [email protected]
to update that dependency. -
Yes, but for some reason the package manager npm doesn't upgrade that dependency during
./nodebb upgrade
.I have manually added the dependency to our list maybe that will fix the issue.
chore: add multiparty dep · NodeBB/NodeBB@ef3ec96
Node.js based forum software built for the modern web - chore: add multiparty dep · NodeBB/NodeBB@ef3ec96
GitHub (github.com)
-
./nodebb upgrade
doesn't handle pulling the latest code from git, nor does it handle upgrading system packages like Node.