I have followed the instructions to install OMERO.server and OMERO.web on Ubuntu. I have the same issue as above. I can't seem to login to the server. I'm not sure how to add an account, my issue seems trivial but I can't figure out where I'm going wrong.
When I try to login to the server, with password "omero_root_password":
- Code: Select all
omero@maxgitt-pc:~/OMERO.server$ bin/omero login
Server: [localhost:4064]
Username: [omero]
Password:
Password check failed for 'omero': []
As a test, I kept all of the environmental variables at their default values so that settings.env looks like this:
- Code: Select all
OMERO_DB_USER=db_user
OMERO_DB_PASS=db_password
OMERO_DB_NAME=omero_database
OMERO_ROOT_PASS=omero_root_password
OMERO_DATA_DIR=/OMERO
OMERO_WEB_PORT=80
export OMERO_DB_USER OMERO_DB_PASS OMERO_DB_NAME OMERO_ROOT_PASS OMERO_DATA_DIR OMERO_WEB_PORT
I tried the exact same sanity check that @dpbrown used above.
1. Change password of database user (my password was "omero_root_password", should it be "db_password"?)
2. Set database password to same hash value
3. Check hash from database
1. change password to omero_root_password
- Code: Select all
omero@maxgitt-pc:~/OMERO.server$ bin/omero db password
Please enter password for OMERO root user:
Please re-enter password for OMERO root user:
UPDATE password SET hash = 'clNK6+smrt4hO8SeLCuv0Q==' WHERE experimenter_id = 0;
2. set db password to hash(omero_root_password)
- Code: Select all
omero@maxgitt-pc:~/OMERO.server$ psql -h localhost omero_database -U db_user -c "UPDATE password SET hash = 'clNK6+smrt4hO8SeLCuv0Q==' WHERE experimenter_id = 0;"
UPDATE 1
3. sanity check
- Code: Select all
omero@maxgitt-pc:~/OMERO.server$ psql -h localhost omero_database -U db_user -c " select * from password"
experimenter_id | hash | changed
-----------------+--------------------------+---------
1 | |
0 | clNK6+smrt4hO8SeLCuv0Q== |
(2 rows)
Lastly, when I tried to login I fail. Same as the top. Any hints would be much appreciated, thank you!