Closed cormip closed 4 years ago
That means you have a user in your database where the property roles
is neither null
, nor not existing, and still something but an array ... Can you please check this up? Try to run this command directly on your database (e.g. using Robo 3T):
db.getCollection('users').find({
roles: {
$ne: null,
$not: { $type: "array" }
}
})
All of my users have an object as the roles property:
,
"roles" : {
"__global_roles__" : [
"admin"
]
}
Therefore, I went back and checked, and just realized I was running v1 and not v2. I apologize for my oversight. I'm good to go now.
Attempting to upgrade from version 2 to version 3, I received the following error:
This was on v3.1.0 I applied all updates and got the same error on v3.2.0