@baris problem solved, many thanks!
Solved Creating a category fails with no errors.
-
I (admin) can go to Manage -> Categories.. If I hit the "+", enter a name, click "Save" - nothing happens. No new Category is created. I've tried creating a top level category and a category as a child of something else and same behavior.
I was running 17.x and was having the issue. I upgraded to 18.4 (I think) - whatever the latest as of the writing of this post. Behavior remained the same.
Any guidance on troubleshooting?
Thanks
-
Have you tried disabling plugins?
-
Are there any errors in the browser console or in the server logs?
-
@pitaj - Nothing in either. Server logs going to syslog (running as a daemon). Running "nodebb logs" doesn't seem to show anything either.
Going to stop it and run it manually from the command line. Nope.. nothing there either. Command just goes off into the sunset and does nothing. Clarification: There is logging showing up, but nothing that looks like an error around the second or so after I hit the "save" button on the new Category.
Browser console shows nothing of interest in either case, also.
-
Also checked the Mongo logs for errors to rule out any backend storage problems. Nothing of note in the logs.
-
I just tested on latest master and category creation works fine. Check your network tab when you hit save. There should be a post request to /api/v3/categories that returns the newly created category on success.
-
@eric-ladner potentially a dumb question but do you have any browser extensions running that may block script execution ?
-
@baris - Yes, I see a post to /api/v3/categories..
{name: "Test1234", description: "", icon: "fa-comments", uid: 1747, parentCid: "0", cloneFromCid: "0"}
After a while, it reports a net::ERR_HTTP2_PROTOCOL_ERROR
-
I did see an error on the backend finally:
Oct 13 08:05:37 www nodebb[10920]: 2021-10-13T08:05:37.630Z [4567/10931] - #033[31merror#033[39m: modules.chats.newRoom Oct 13 08:05:37 www nodebb[10920]: Error: [[error:no-privileges]] Oct 13 08:05:37 www nodebb[10920]: at SocketModules.chats.newRoom (/opt/nodebb/src/socket.io/modules.js:56:9) Oct 13 08:05:37 www nodebb[10920]: at runMicrotasks (<anonymous>) Oct 13 08:05:37 www nodebb[10920]: at processTicksAndRejections (internal/process/task_queues.js:97:5) Oct 13 08:05:37 www nodebb[10920]: at async onMessage (/opt/nodebb/src/socket.io/index.js:164:19) Oct 13 08:06:14 www nodebb[10920]: 2021-10-13T08:06:14.280Z [4567/10931] - #033[31merror#033[39m: modules.chats.newRoom Oct 13 08:06:14 www nodebb[10920]: Error: [[error:no-privileges]] Oct 13 08:06:14 www nodebb[10920]: at SocketModules.chats.newRoom (/opt/nodebb/src/socket.io/modules.js:56:9) Oct 13 08:06:14 www nodebb[10920]: at processTicksAndRejections (internal/process/task_queues.js:97:5) Oct 13 08:06:14 www nodebb[10920]: at async onMessage (/opt/nodebb/src/socket.io/index.js:164:19)
-
@phenomlab - no browser extensions. I even tested this in a vanilla browser with no plugins.
-
@eric-ladner those look like errors for something else .
Maybe nginx is not set up correctly or your internet is wonky somehow. But not sure -
@dunlix - This server has been running fine for almost two years through multiple upgrades. The problem didn't occur until applying the latest version (I can confirm no reverse proxy changes).
I eliminated the network as a culprit. Tried to edit from three different PC's on three wildly different networks (i.e. not like my wifi and the neighbor's wifi, but very different networks).
-
Have you tried disabling plugins?
-
@pitaj @Eric-Ladner try disabling all plugins and see if it works then look through to find which is causing the problem
-
@dunlix Can you tell me what is running in front of your server.... nginx, IIS, etc?
The
HTTP2_PROTOCOL_ERROR
is also of interest... -
@julian not my server
@Eric-Ladner is the one having these issues -
@eric-ladner said in Creating a category fails with no errors.:
ERR_HTTP2_PROTOCOL_ERROR
Check if your server has enough disk space/ram
-
@dunlix Ah yes sorry, I just hit reply on your post and it pre-populated your username.
Gosh... you know, I wish the people who made this stupid forum software would fix that
-
@julian no problem just wanted to make sure
Do you think you could make a setting for persona that when in quick reply the enter button sends post
-
@dunlix (and others)
Thanks, the disable plugins suggestion worked. Apparently it was the "sanitize html" plugging that was causing the problem.
Not even sure why we had that still installed.
Thanks all for the troubleshooting help!
-