Global Chat rooms.
-
You have three global chat rooms? Do you know how this happened?
-
Do you have NodeBB running with multiple processes?
-
yes,
2018-11-07T20:50:39.634Z [10504] - info: NodeBB Ready 2018-11-07T20:50:39.638Z [10502] - info: NodeBB Ready 2018-11-07T20:50:39.643Z [10504] - info: Enabling 'trust proxy' 2018-11-07T20:50:39.649Z [10504] - info: NodeBB is now listening on: 0.0.0.0:8002 2018-11-07T20:50:39.651Z [10502] - info: Enabling 'trust proxy' 2018-11-07T20:50:39.656Z [10502] - info: NodeBB is now listening on: 0.0.0.0:8001 2018-11-07T20:50:39.665Z [10501] - info: Routes added 2018-11-07T20:50:39.667Z [10501] - info: NodeBB Ready 2018-11-07T20:50:39.671Z [10501] - info: Enabling 'trust proxy' 2018-11-07T20:50:39.674Z [10501] - info: NodeBB is now listening on: 0.0.0.0:8000
-
Ah ok. I'll add a fix for multiple processes so it doesn't create a bunch of rooms when starting up.
And I'll cook up a script to remove all of them for you.
-
@youhosi New Plugin version:
[email protected]
Fixes the multiple room creation bug.
It also contains a script for purging chat rooms. First, you must get a list of chat room ID numbers you want to remove. Go to https://your.site/me/chats and then click on each chat room you wish to completely delete. The room ID number is the number at the end of the URL.
You then want to open up a command line terminal and navigate to the main
nodebb
directory. The one withconfig.json
,app.js
, etc. Assuming the plugin is already installed, you then run:node node_modules/nodebb-plugin-global-chat/remove-chat-rooms [room IDs...]
Where
[room IDs...]
is a space-delimited list of room ID numbers, like so:node node_modules/nodebb-plugin-global-chat/remove-chat-rooms 5 9 12
This will delete those rooms forever. I strongly suggest you make a database backup before running this script.