Rocket.Chat's Community Open Call 🎤 Jan 19th, 2022 Join us!

Can't create new user in 4.2.0

Description

For reasons unknown, since upgrading to 4.2.0 I can’t create a new user, it just gives me an error: “Roles.findUsersInRole(…).toArray is not a function.” I can change user roles for existing users though.

Server Setup Information

  • Version of Rocket.Chat Server: 4.2.0
  • Operating System: CentOS
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Yes
  • NodeJS Version: v12.22.1
  • MongoDB Version: 4.4.4
  • Proxy: <nginx
  • Firewalls involved: 0

Any additional Information

Bumping this. Having the same issue from both account creation and manual creation from admin panel. No roles work.

Sorry, I never answered this though I did figure it out. I had to disable manual approval for new accounts. Not a fix, but a workaround.