We're Hiring!

OMERO.web login not working

Having a problem deploying OMERO? 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

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

OMERO.web login not working

Postby mafrank » Thu Apr 25, 2013 6:39 pm

I was able to get the server started and for testing purposes I'm using the internal Django webserver. I can start the webserver find and access the login page via http://localhost:4080. The problem is that when I enter the root username and the root password, in a split second it just clears those two fields out and presents the login screen again. No error message or anything. I know I'm entering the root password correctly because if I type something else, I get an incorrect password error.

I did install Python Imaging Library and Matplotlib since they were listed as being needed for Omero.web and I did follow the Server install docs as well as the OMERO.web deployment page.

Any ideas?
mafrank
 
Posts: 7
Joined: Mon Apr 22, 2013 5:12 pm

Re: OMERO.web login not working

Postby atarkowska » Fri Apr 26, 2013 8:26 am

Hi,

What version of OMERO do you use exactly? Version is given under the login input fields.
Could you please check logfiles such as: Blitz-0.log and OMEROweb.log or OMEROweb_request.log?

Please make sure your webserver is running in development mode. Did you set the following?
Code: Select all
bin/omero config set omero.web.application_server development


Alternatively you could run web application in debug mode.

Code: Select all
bin/omero web stop
bin/omero config set omero.web.debug True
bin/omero web start


Thanks
Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: OMERO.web login not working

Postby mafrank » Fri Apr 26, 2013 2:49 pm

version OMERO.web 4.4.6-ice34-b102

The config settings should be correct:
C:\Omero.server>bin\omero config get
omero.db.name=omero_database
omero.db.pass=omero_pass
omero.db.user=omero_user
omero.web.application_server=development
omero.web.debug=True

Blitz-0.log has a TON of stuff in there, but I didn't see anything that especially looked like errors, so I'm starting with the web logs first.

OMEROweb_request.log
Code: Select all
2013-04-24 10:27:22,130 WARNI [                          django.request] (proc.02716) get_response:142 Not Found: /omero


OMEROweb.log
Code: Select all
2013-04-26 10:33:43,026 DEBUG [                           omero.gateway] (proc.02436) _resetOmeroClient:1592 localhost
2013-04-26 10:33:43,026 DEBUG [                           omero.gateway] (proc.02436) _resetOmeroClient:1593 4064
2013-04-26 10:33:43,026 DEBUG [                           omero.gateway] (proc.02436) _resetOmeroClient:1594 []
2013-04-26 10:33:43,026 DEBUG [                           omero.gateway] (proc.02436) connect:1623 Connect attempt, sUuid=None, group=None, self.sUuid=None
2013-04-26 10:33:43,026 DEBUG [                           omero.gateway] (proc.02436) connect:1671 Creating Session...
2013-04-26 10:33:43,266 DEBUG [                           omero.gateway] (proc.02436) _createProxies:1492 ## Creating proxies
2013-04-26 10:33:43,266 DEBUG [                     omero.gateway.utils] (proc.02436) __setitem__:70 Setting 'omero.session.uuid' to '1bf2a946-d450-4811-8ffb-09336b657b39'
2013-04-26 10:33:43,266 DEBUG [                     omero.gateway.utils] (proc.02436) __setitem__:70 Setting 'omero.client.uuid' to '5ddcc7e9-b800-43c6-939d-c7edf85d8b1b'
2013-04-26 10:33:43,266 DEBUG [                     omero.gateway.utils] (proc.02436) setOmeroGroup:115 Key 'omero.group' not found in <ServiceOptsDict: {'omero.session.uuid': '1bf2a946-d450-4811-8ffb-09336b657b39', 'omero.client.uuid': '5ddcc7e9-b800-43c6-939d-c7edf85d8b1b'}>
2013-04-26 10:33:43,266 DEBUG [                     omero.gateway.utils] (proc.02436) setOmeroUser:127 Key 'omero.user' not found in <ServiceOptsDict: {'omero.session.uuid': '1bf2a946-d450-4811-8ffb-09336b657b39', 'omero.client.uuid': '5ddcc7e9-b800-43c6-939d-c7edf85d8b1b'}>
2013-04-26 10:33:43,266 DEBUG [                           omero.gateway] (proc.02436) connect:1673 Session created
2013-04-26 10:33:43,266 DEBUG [                           omero.gateway] (proc.02436) _createProxies:1488 ## Reusing proxies
2013-04-26 10:33:43,266  INFO [                           omero.gateway] (proc.02436) connect:1709 created connection (uuid=1bf2a946-d450-4811-8ffb-09336b657b39)
2013-04-26 10:33:43,266 DEBUG [                           omero.gateway] (proc.02436) connect:1721 .. connected!
2013-04-26 10:33:43,280 DEBUG [                           omero.gateway] (proc.02436) _resetOmeroClient:1592 localhost
2013-04-26 10:33:43,280 DEBUG [                           omero.gateway] (proc.02436) _resetOmeroClient:1593 4064
2013-04-26 10:33:43,280 DEBUG [                           omero.gateway] (proc.02436) _resetOmeroClient:1594 []
2013-04-26 10:33:43,280 DEBUG [                           omero.gateway] (proc.02436) connect:1623 Connect attempt, sUuid=None, group=None, self.sUuid=None
2013-04-26 10:33:43,280 DEBUG [                           omero.gateway] (proc.02436) connect:1671 Creating Session...
2013-04-26 10:33:43,405 DEBUG [                           omero.gateway] (proc.02436) _createProxies:1492 ## Creating proxies
2013-04-26 10:33:43,405 DEBUG [                     omero.gateway.utils] (proc.02436) __setitem__:70 Setting 'omero.session.uuid' to '17daa329-cd4c-4d43-a539-e080faab83d2'
2013-04-26 10:33:43,405 DEBUG [                     omero.gateway.utils] (proc.02436) __setitem__:70 Setting 'omero.client.uuid' to 'a130b56b-78fd-4fed-9f7f-e196b80c0f03'
2013-04-26 10:33:43,405 DEBUG [                     omero.gateway.utils] (proc.02436) setOmeroGroup:115 Key 'omero.group' not found in <ServiceOptsDict: {'omero.session.uuid': '17daa329-cd4c-4d43-a539-e080faab83d2', 'omero.client.uuid': 'a130b56b-78fd-4fed-9f7f-e196b80c0f03'}>
2013-04-26 10:33:43,405 DEBUG [                     omero.gateway.utils] (proc.02436) setOmeroUser:127 Key 'omero.user' not found in <ServiceOptsDict: {'omero.session.uuid': '17daa329-cd4c-4d43-a539-e080faab83d2', 'omero.client.uuid': 'a130b56b-78fd-4fed-9f7f-e196b80c0f03'}>
2013-04-26 10:33:43,405 DEBUG [                           omero.gateway] (proc.02436) connect:1673 Session created
2013-04-26 10:33:43,405 DEBUG [                           omero.gateway] (proc.02436) _createProxies:1488 ## Reusing proxies
2013-04-26 10:33:43,405  INFO [                           omero.gateway] (proc.02436) connect:1709 created connection (uuid=17daa329-cd4c-4d43-a539-e080faab83d2)
2013-04-26 10:33:43,405 DEBUG [                           omero.gateway] (proc.02436) connect:1721 .. connected!
2013-04-26 10:33:43,453 DEBUG [                 omero.util.UpgradeCheck] (proc.02436) run:118 Attempting to connect to http://upgrade.openmicroscopy.org.uk/?os.version=6.1.7601&os.arch=x86&version=4.4.6-ice34-b102&python.compiler=MSC+v.1500+32+bit+%28Intel%29&python.build=%28%27r266%3A84297%27%2C+%27Aug+24+2010+18%3A46%3A32%27%29&os.name=Windows&python.version=2.6.6
2013-04-26 10:33:44,280 ERROR [                 omero.util.UpgradeCheck] (proc.02436) run:125 HTTP Error 401: Unauthorized
2013-04-26 10:33:44,280 DEBUG [        omeroweb.webadmin.webadmin_utils] (proc.02436) upgradeCheck:29 Up to date.

2013-04-26 10:33:44,296 DEBUG [                     omeroweb.decorators] (proc.02436) wrapped:351 Connection not provided, attempting to get one.
2013-04-26 10:33:44,296 DEBUG [                     omeroweb.decorators] (proc.02436) get_authenticated_connection:250 Is SSL? False
2013-04-26 10:33:44,296 DEBUG [                     omeroweb.decorators] (proc.02436) get_authenticated_connection:252 Connector: None
2013-04-26 10:33:44,296 DEBUG [                     omeroweb.decorators] (proc.02436) get_authenticated_connection:264 No Server ID available.
2013-04-26 10:33:44,296 DEBUG [                     omeroweb.decorators] (proc.02436) get_connection:198 Is valid public URL? False
2013-04-26 10:33:44,296 DEBUG [                     omeroweb.decorators] (proc.02436) on_not_logged_in:112 Request is not Ajax, redirecting to /webclient/login/
mafrank
 
Posts: 7
Joined: Mon Apr 22, 2013 5:12 pm

Re: OMERO.web login not working

Postby atarkowska » Mon Apr 29, 2013 8:52 am

Right, you have to options to start OMERO.web. There is built-in development server (using-the-lightweight-development-server) that allows you to run the application and test it easily without extra setup. For the production mode you need to install set up IIS server (using-iis).

If you are running development server you can access OMERO.web via http://localhost:4080, please see instruction for more details on (logging-in-to-omero-web)
For production you can access OMERO.web via http://yourhost/omero

Thanks
Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: OMERO.web login not working

Postby mafrank » Mon Apr 29, 2013 1:32 pm

I know all that. I am running the Django development server and I can get to the login screen. It's just not actually logging me in. I enter my credentials and then it just immediately takes me back to the login screen. Can you review the logs I attached and let me know what could be causing my issue?
mafrank
 
Posts: 7
Joined: Mon Apr 22, 2013 5:12 pm

Re: OMERO.web login not working

Postby mafrank » Mon Apr 29, 2013 2:08 pm

In case it helps, here's what shows in the Django log as I attempt to login

Code: Select all
Exception happened during processing of request from ('127.0.0.1', 54744)
Traceback (most recent call last):
  File "C:\Python26\lib\SocketServer.py", line 283, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Python26\lib\SocketServer.py", line 309, in process_request
    self.finish_request(request, client_address)
  File "C:\Python26\lib\SocketServer.py", line 322, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Omero.server\lib\python\django\core\servers\basehttp.py", line 570, i
n __init__
    BaseHTTPRequestHandler.__init__(self, *args, **kwargs)
  File "C:\Python26\lib\SocketServer.py", line 617, in __init__
    self.handle()
  File "C:\Omero.server\lib\python\django\core\servers\basehttp.py", line 610, i
n handle
    self.raw_requestline = self.rfile.readline()
  File "C:\Python26\lib\socket.py", line 444, in readline
    data = self._sock.recv(self._rbufsize)
error: [Errno 10054] An existing connection was forcibly closed by the remote ho
st
mafrank
 
Posts: 7
Joined: Mon Apr 22, 2013 5:12 pm

Re: OMERO.web login not working

Postby atarkowska » Wed May 01, 2013 9:45 pm

Hi,

I have been googleing for that error as it looks like Django socket problem. What web browser do you use, please give me the exact version number? If it is IE, could you please try Firefox and/or Chrome?

Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest