User accounts are mixed up and seem shared between users
-
@nono-lqdn said in User accounts are mixed up and seem shared between users:
The forum is also extremely slow and shows a very high mongoDB usage.
Looks like you'll need to re-create your MongoDB indices.
db.objects.createIndex({ _key: 1, score: -1 }, { background: true }); db.objects.createIndex({ _key: 1, value: -1 }, { background: true, unique: true, sparse: true }); db.objects.createIndex({ expireAt: 1 }, { expireAfterSeconds: 0, background: true });
As for the user accounts issue, that sounds concerning, but it sounds like we also need more information on how to reproduce that issue.
-
@julian said in User accounts are mixed up and seem shared between users:
As for the user accounts issue, that sounds concerning, but it sounds like we also need more information on how to reproduce that issue.
The only thing I can think of is that I've restored the mongod database of the forum.
-
What are the timestamps of these user accounts? Are they created in quick succession? Nodebb has some code in user creation that assigns a number to a username if there is already and existing user with the same name. See if that is getting triggered https://github.com/NodeBB/NodeBB/blob/master/src/user/create.js#L191
-
@nono-lqdn From this screenshot I can see that your objects collection is missing the indexes, run the commands julian posted to create them.
You need to switch to your database first and then run them. Once done you should see them when you run
db.objects.stats()
.