What version of Node.js are you using? You probably need to upgrade it.
Solved error: Error: [[error:group-name-too-long]] on NodeBB Upgrade
dogs last edited by dogs
After upgrading NodeBB from 1.13.x to 1.16.1 I received the following error after the first start of the NodeBB instance:
→ [2020/10/13] Create verified/unverified user groups...Error occurred 2021-01-16T13:12:18.178Z [4567/28540] - error: Error: [[error:group-name-too-long]] at Object.Groups.validateGroupName (/home/makesmartnodebb/example.net/src/groups/create.js:84:10) at Groups.create (/home/makesmartnodebb/example.net/src/groups/create.js:19:10) at Object.wrapperCallback [as create] (/home/makesmartnodebb/example.net/src/promisify.js:48:18) at Object.method (/home/makesmartnodebb/example.net/src/upgrades/1.15.0/verified_users_group.js:31:17) at process._tickCallback (internal/process/next_tick.js:68:7) [cluster] Child Process (28540) has exited (code: 0, signal: null)
The key message was:
error: Error: [[error:group-name-too-long]]
So I used a MongoDB client - such as MongoDB Compass - to fix the displayed error.
At first I used following filter to get the config of NodeBB.
I found the config object with following Key/Value Pair:
I changed it to:
So I was able to start NodeBB again.
I think the created groups within the upgrade caused this error.
I just write this topic to help people who are searching for this error. This is the fix.