yunch
October 30, 2022, 3:55pm
1
I did not update 3.3.2 to 4.0.2, but instead installed 4.0.2 using the old Database from 3.3.2.
The whole process looked fine, and I can restart the CryoSPARC server normally. However, none of the existing users can log in. The warning was “Invalid email or password”.
I then tried to create a new user account using
cryosparcm createuser --email zp@hy02 --password zp123 --username “zp” --firstname “P” --lastname “Z”.
The command ran well without error, but even with this newly setup user I still cannot login. The following command
cryosparcm listusers
listed all the current users.
Any idea how to solve the problem? Thanks a lot!
wtempel
October 30, 2022, 11:28pm
2
Welcome to the forum @yunch .
This problem may be related to the format of the email address.
yunch:
–email zp@hy02
Does the following solution work for you?
Hi @rnavaza ,
Thanks for reporting. Is it possible if you can use a standard email address (maybe the one provided by the institution?) or even the same email address but with any TLD “.com”?
To change the email address, you’re going to need to use the CryoSPARC icli:
To start the interactive Python shell, run cryosparcm icli in a shell on the master node, then:
user = cli.get_id_by_email('username@localhost')
db.users.update_one({'_id':user}, {'$set': {'emails.0.address':'username@localhost.…
yunch
October 31, 2022, 10:42am
3
The problem is solved. Thank you very much!
By the way, how to change the password using ‘cryosparcm icli’?
Please check out cli.reset_password()
in the guide .