We're Hiring!

Unable to login as root user in Omero.web

General user discussion about using the OMERO platform to its fullest. Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

There are workflow guides for various OMERO functions on our help site - http://help.openmicroscopy.org

You should find answers to any basic questions about using the clients there.

Unable to login as root user in Omero.web

Postby deb » Thu Feb 04, 2010 4:46 pm

I have successfully installed Omero.server (omero-Beta 4.1.1) on my Fedora 9 following the
instructions at the omero site.
Unfortunately I am unable to login into the webadmin account.
I have been to this page
http://www.openmicroscopy.org/site/supp ... leshooting
and do not think I am using wrong username and password.
I have attached the screenshot of the error, "
Code: Select all
Error: Connection not
available, please check your user name and password."

I have run the omero/bin web settings script to recreate the root
username and password many times without any errors (log attached)-
without any sucess.
I have also attached the contents of the omero/var/log/OMEROweb.log,
which might hold clue to the problem.
Can any one point out what I am doing wrong? I disabled iptable, without any success.
Thanks.
Deb
Contents of $./omero web settings
$ ./omero web settings
/home/xxx/omero_dist/lib/python/omeroweb/custom_settings.py already exist. Do you want to ovewrite it? (yes/no)yes
Please enter the domain you want to run OMERO.web on (http://www.domain.com:8000/):http://localhost:8000
Please enter the Email address you want to send from (omero_admin@example.com): deb@example.com
Please enter the SMTP server host you want to send from (smtp.example.com): smtp.gmail.com
Optional: please enter the SMTP server port (default 25):
Optional: Please enter the SMTP server username:
Optional: Password:
Optional: TSL? (yes/no): no
Saved to /home/xxx/omero_dist/lib/python/omeroweb/custom_settings.py


/home/xxx/omero_dist/lib/python/omeroweb/initial_data.json already exist. Do you want to ovewrite it? (yes/no)yes
Please enter Username for OMERO.web administrator: webadmin
Please enter Email address: deb@example.com
Please enter password for OMERO.web administrator:
Please re-enter password for OMERO.web administrator:
Saved to /home/xxx/omero_dist/lib/python/omeroweb/initial_data.json


Database synchronization...
Local database already exist. Do you want to ovewrite it? (yes/no)yes
Old database file 'db.sqlite3' was deleted successfully.
Creating table django_admin_log
Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table feedback_emailtemplate
Creating table webadmin_gateway
Installing index for admin.LogEntry model
Installing index for auth.Permission model
Installing index for auth.Message model
Installing json fixture 'initial_data' from absolute path.
Installed 2 object(s) from 1 fixture(s)
OMERO.web was configured successful. Please start the application.



Contents of the omero/var/log/OMEROweb.log:
2010-02-03 13:42:09,786 omero.util.UpgradeCheck: INFO no update needed
2010-02-03 18:42:34,409 views-admin : INFO INIT '30362'
2010-02-03 18:42:34,477 blitz_gateway: INFO host: localhost, port: 4063
2010-02-03 18:42:34,502 blitz_gateway: INFO (1) calling createSession()
2010-02-03 18:42:34,541 blitz_gateway: INFO BlitzGateway.connect().createSession(): Traceback (most recent call last):
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 423, in connect
self._createSession()
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 315, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/xxx/omero_dist/lib/python/omero/clients.py", line 376, in createSession
prx = self.getRouter(self.__ic).createSession(username, password)
File "/usr/lib/python2.5/site-packages/Ice/Glacier2_Router_ice.py", line 104, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
reason = permission denied
}

2010-02-03 18:42:34,575 blitz_gateway: INFO first create session had errors, hold off 10 secs and retry (but only once)
2010-02-03 18:42:34,593 blitz_gateway: INFO (3) calling createSession()
2010-02-03 18:42:34,644 webgateway : ERROR Critical error during connect, retrying after _purge
2010-02-03 18:42:34,671 blitz_gateway: INFO host: localhost, port: 4063
2010-02-03 18:42:34,697 blitz_gateway: INFO (1) calling createSession()
2010-02-03 18:42:34,736 blitz_gateway: INFO BlitzGateway.connect().createSession(): Traceback (most recent call last):
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 423, in connect
self._createSession()
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 315, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/xxx/omero_dist/lib/python/omero/clients.py", line 376, in createSession
prx = self.getRouter(self.__ic).createSession(username, password)
File "/usr/lib/python2.5/site-packages/Ice/Glacier2_Router_ice.py", line 104, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
reason = permission denied
}

2010-02-03 18:42:34,812 blitz_gateway: INFO first create session had errors, hold off 10 secs and retry (but only once)
2010-02-03 18:42:34,832 blitz_gateway: INFO (3) calling createSession()
2010-02-03 18:42:34,959 views-web : INFO INIT '30362'
2010-02-03 18:43:56,462 blitz_gateway: INFO host: localhost, port: 4063
2010-02-03 18:43:56,532 blitz_gateway: INFO (1) calling createSession()
2010-02-03 18:43:56,576 blitz_gateway: INFO BlitzGateway.connect().createSession(): Traceback (most recent call last):
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 423, in connect
self._createSession()
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 315, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/xxx/omero_dist/lib/python/omero/clients.py", line 376, in createSession
prx = self.getRouter(self.__ic).createSession(username, password)
File "/usr/lib/python2.5/site-packages/Ice/Glacier2_Router_ice.py", line 104, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
reason = permission denied
}

2010-02-03 18:43:56,611 blitz_gateway: INFO first create session had errors, hold off 10 secs and retry (but only once)
2010-02-03 18:43:56,628 blitz_gateway: INFO (3) calling createSession()
2010-02-03 18:43:56,675 webgateway : ERROR Critical error during connect, retrying after _purge
2010-02-03 18:43:56,703 blitz_gateway: INFO host: localhost, port: 4063
2010-02-03 18:43:56,728 blitz_gateway: INFO (1) calling createSession()
2010-02-03 18:43:56,753 blitz_gateway: INFO BlitzGateway.connect().createSession(): Traceback (most recent call last):
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 423, in connect
self._createSession()
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 315, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/xxx/omero_dist/lib/python/omero/clients.py", line 376, in createSession
prx = self.getRouter(self.__ic).createSession(username, password)
File "/usr/lib/python2.5/site-packages/Ice/Glacier2_Router_ice.py", line 104, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
reason = permission denied
}

2010-02-03 18:43:56,787 blitz_gateway: INFO first create session had errors, hold off 10 secs and retry (but only once)
2010-02-03 18:43:56,805 blitz_gateway: INFO (3) calling createSession()
2010-02-03 18:45:23,614 blitz_gateway: INFO host: localhost, port: 4063
2010-02-03 18:45:23,662 blitz_gateway: INFO (1) calling createSession()
2010-02-03 18:45:23,704 blitz_gateway: INFO BlitzGateway.connect().createSession(): Traceback (most recent call last):
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 423, in connect
self._createSession()
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 315, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/xxx/omero_dist/lib/python/omero/clients.py", line 376, in createSession
prx = self.getRouter(self.__ic).createSession(username, password)
File "/usr/lib/python2.5/site-packages/Ice/Glacier2_Router_ice.py", line 104, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
reason = permission denied
}

2010-02-03 18:45:23,739 blitz_gateway: INFO first create session had errors, hold off 10 secs and retry (but only once)
2010-02-03 18:45:23,756 blitz_gateway: INFO (3) calling createSession()
2010-02-03 18:45:23,802 webgateway : ERROR Critical error during connect, retrying after _purge
2010-02-03 18:45:23,829 blitz_gateway: INFO host: localhost, port: 4063
2010-02-03 18:45:23,855 blitz_gateway: INFO (1) calling createSession()
2010-02-03 18:45:23,879 blitz_gateway: INFO BlitzGateway.connect().createSession(): Traceback (most recent call last):
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 423, in connect
self._createSession()
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 315, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/xxx/omero_dist/lib/python/omero/clients.py", line 376, in createSession
prx = self.getRouter(self.__ic).createSession(username, password)
File "/usr/lib/python2.5/site-packages/Ice/Glacier2_Router_ice.py", line 104, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
reason = permission denied
}

2010-02-03 18:45:23,914 blitz_gateway: INFO first create session had errors, hold off 10 secs and retry (but only once)
2010-02-03 18:45:23,932 blitz_gateway: INFO (3) calling createSession()
2010-02-03 18:45:25,305 blitz_gateway: INFO host: localhost, port: 4063
2010-02-03 18:45:25,381 blitz_gateway: INFO (1) calling createSession()
2010-02-03 18:45:25,406 blitz_gateway: INFO BlitzGateway.connect().createSession(): Traceback (most recent call last):
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 423, in connect
self._createSession()
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 315, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/xxx/omero_dist/lib/python/omero/clients.py", line 376, in createSession
prx = self.getRouter(self.__ic).createSession(username, password)
File "/usr/lib/python2.5/site-packages/Ice/Glacier2_Router_ice.py", line 104, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
reason = permission denied
}

2010-02-03 18:45:25,442 blitz_gateway: INFO first create session had errors, hold off 10 secs and retry (but only once)
2010-02-03 18:45:25,458 blitz_gateway: INFO (3) calling createSession()
2010-02-03 18:45:25,539 webgateway : ERROR Critical error during connect, retrying after _purge
2010-02-03 18:45:25,596 blitz_gateway: INFO host: localhost, port: 4063
2010-02-03 18:45:25,659 blitz_gateway: INFO (1) calling createSession()
2010-02-03 18:45:25,716 blitz_gateway: INFO BlitzGateway.connect().createSession(): Traceback (most recent call last):
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 423, in connect
self._createSession()
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 315, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/xxx/omero_dist/lib/python/omero/clients.py", line 376, in createSession
prx = self.getRouter(self.__ic).createSession(username, password)
File "/usr/lib/python2.5/site-packages/Ice/Glacier2_Router_ice.py", line 104, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
reason = permission denied
}

2010-02-03 18:45:25,775 blitz_gateway: INFO first create session had errors, hold off 10 secs and retry (but only once)
2010-02-03 18:45:25,804 blitz_gateway: INFO (3) calling createSession()
2010-02-03 18:45:27,087 blitz_gateway: INFO host: localhost, port: 4063
2010-02-03 18:45:27,144 blitz_gateway: INFO (1) calling createSession()
2010-02-03 18:45:27,188 blitz_gateway: INFO BlitzGateway.connect().createSession(): Traceback (most recent call last):
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 423, in connect
self._createSession()
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 315, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/xxx/omero_dist/lib/python/omero/clients.py", line 376, in createSession
prx = self.getRouter(self.__ic).createSession(username, password)
File "/usr/lib/python2.5/site-packages/Ice/Glacier2_Router_ice.py", line 104, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
reason = permission denied
}

2010-02-03 18:45:27,221 blitz_gateway: INFO first create session had errors, hold off 10 secs and retry (but only once)
2010-02-03 18:45:27,238 blitz_gateway: INFO (3) calling createSession()
2010-02-03 18:45:27,284 webgateway : ERROR Critical error during connect, retrying after _purge
2010-02-03 18:45:27,312 blitz_gateway: INFO host: localhost, port: 4063
2010-02-03 18:45:27,338 blitz_gateway: INFO (1) calling createSession()
2010-02-03 18:45:27,364 blitz_gateway: INFO BlitzGateway.connect().createSession(): Traceback (most recent call last):
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 423, in connect
self._createSession()
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 315, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/xxx/omero_dist/lib/python/omero/clients.py", line 376, in createSession
prx = self.getRouter(self.__ic).createSession(username, password)
File "/usr/lib/python2.5/site-packages/Ice/Glacier2_Router_ice.py", line 104, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
reason = permission denied
}

2010-02-03 18:45:27,398 blitz_gateway: INFO first create session had errors, hold off 10 secs and retry (but only once)
2010-02-03 18:45:27,416 blitz_gateway: INFO (3) calling createSession()
2010-02-03 18:45:31,942 blitz_gateway: INFO host: localhost, port: 4063
2010-02-03 18:45:31,987 blitz_gateway: INFO (1) calling createSession()
2010-02-03 18:45:32,046 blitz_gateway: INFO BlitzGateway.connect().createSession(): Traceback (most recent call last):
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 423, in connect
self._createSession()
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 315, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/xxx/omero_dist/lib/python/omero/clients.py", line 376, in createSession
prx = self.getRouter(self.__ic).createSession(username, password)
File "/usr/lib/python2.5/site-packages/Ice/Glacier2_Router_ice.py", line 104, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
reason = permission denied
}

2010-02-03 18:45:32,080 blitz_gateway: INFO first create session had errors, hold off 10 secs and retry (but only once)
2010-02-03 18:45:32,098 blitz_gateway: INFO (3) calling createSession()
2010-02-03 18:45:32,143 webgateway : ERROR Critical error during connect, retrying after _purge
2010-02-03 18:45:32,171 blitz_gateway: INFO host: localhost, port: 4063
2010-02-03 18:45:32,197 blitz_gateway: INFO (1) calling createSession()
2010-02-03 18:45:32,222 blitz_gateway: INFO BlitzGateway.connect().createSession(): Traceback (most recent call last):
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 423, in connect
self._createSession()
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 315, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/xxx/omero_dist/lib/python/omero/clients.py", line 376, in createSession
prx = self.getRouter(self.__ic).createSession(username, password)
File "/usr/lib/python2.5/site-packages/Ice/Glacier2_Router_ice.py", line 104, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
reason = permission denied
}

2010-02-03 18:45:32,257 blitz_gateway: INFO first create session had errors, hold off 10 secs and retry (but only once)
2010-02-03 18:45:32,273 blitz_gateway: INFO (3) calling createSession()
2010-02-03 18:45:33,537 blitz_gateway: INFO host: localhost, port: 4063
2010-02-03 18:45:33,587 blitz_gateway: INFO (1) calling createSession()
2010-02-03 18:45:33,620 blitz_gateway: INFO BlitzGateway.connect().createSession(): Traceback (most recent call last):
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 423, in connect
self._createSession()
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 315, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/xxx/omero_dist/lib/python/omero/clients.py", line 376, in createSession
prx = self.getRouter(self.__ic).createSession(username, password)
File "/usr/lib/python2.5/site-packages/Ice/Glacier2_Router_ice.py", line 104, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
reason = permission denied
}

2010-02-03 18:45:33,654 blitz_gateway: INFO first create session had errors, hold off 10 secs and retry (but only once)
2010-02-03 18:45:33,670 blitz_gateway: INFO (3) calling createSession()
2010-02-03 18:45:33,717 webgateway : ERROR Critical error during connect, retrying after _purge
2010-02-03 18:45:33,743 blitz_gateway: INFO host: localhost, port: 4063
2010-02-03 18:45:33,769 blitz_gateway: INFO (1) calling createSession()
2010-02-03 18:45:33,797 blitz_gateway: INFO BlitzGateway.connect().createSession(): Traceback (most recent call last):
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 423, in connect
self._createSession()
File "/home/xxx/omero_dist/lib/python/omero/gateway/__init__.py", line 315, in _createSession
self._ic_props[omero.constants.PASSWORD])
File "/home/xxx/omero_dist/lib/python/omero/clients.py", line 376, in createSession
prx = self.getRouter(self.__ic).createSession(username, password)
File "/usr/lib/python2.5/site-packages/Ice/Glacier2_Router_ice.py", line 104, in createSession
return _M_Glacier2.Router._op_createSession.invoke(self, ((userId, password), _ctx))
PermissionDeniedException: exception ::Glacier2::PermissionDeniedException
{
reason = permission denied
}

2010-02-03 18:45:33,831 blitz_gateway: INFO first create session had errors, hold off 10 secs and retry (but only once)
2010-02-03 18:45:33,849 blitz_gateway: INFO (3) calling createSession()
Attachments
omero_web_login_failure.png
omero_web_login_failure.png (90.67 KiB) Viewed 2984 times
deb
 
Posts: 2
Joined: Thu Feb 04, 2010 4:18 pm

Re: Unable to login as root user in Omero.web

Postby jmoore » Thu Feb 04, 2010 6:33 pm

During webadmin setup you created an admin user:
Code: Select all
Please enter Username for OMERO.web administrator: webadmin

This user is not an OMERO user but rather a Django user. The distinction is unimportant for the moment, but "webadmin" will not be able to login as you are trying to. Instead, use the "root" user with the password you specified in the "bin/omero db script" step.

Hope that helps,
~Josh.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Unable to login as root user in Omero.web

Postby deb » Fri Feb 05, 2010 3:20 pm

Hi Josh,
That did the trick. Thanks.
Deb
deb
 
Posts: 2
Joined: Thu Feb 04, 2010 4:18 pm

Re: Unable to login as root user in Omero.web

Postby jmoore » Mon Feb 08, 2010 10:07 am

Glad to help. ~J
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany


Return to User Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron