We're Hiring!

401 - Unauthorized

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.

401 - Unauthorized

Postby Anand » Tue Jul 02, 2013 9:51 am

Hi,

I am using Windows server 2008 (64-bit). Also, I am using 32-bit versions of Python, PostgreSQL, etc. The IIS version is 7 with IIS6 compatibility mode on. The installation went off very smoothly. However, when I try to open the main page via http://localhost:4080, an error is displayed:

401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.

Why is it so? On testing http://localhost, IIS7 welcome page is properly displayed. In addition to it if any file or a file under a directory is called, that page is displayed properly.

On clicking Advanced settings:
Virtual path shows /omero and physical path shows C:\inetpub\wwwroot
Virtual path shows /static and physical path shows C:\OMERO.server\lib\python\omeroweb\static

Please help.

Anand
Anand
 
Posts: 13
Joined: Tue Apr 09, 2013 5:46 am

Re: 401 - Unauthorized

Postby Anand » Tue Jul 02, 2013 12:10 pm

Hi,

The diagnostics and config logs are appended for reference:

-----------------------------------

C:\OMERO.server\bin>omero admin diagnostics

================================================================================

OMERO Diagnostics 4.4.8-ice34-b256
================================================================================


Commands: java -version 1.7.0 (C:\Windows\system32\java.E
XE -- 2 others)
Commands: python -V 2.6.6 (C:\Python26\python.EXE)
Commands: icegridnode --version 3.4.2 (C:\ZeroC\Ice-3.4.2\bin\x64
\icegridnode.EXE -- 2 others)
Commands: icegridadmin --version 3.4.2 (C:\ZeroC\Ice-3.4.2\bin\x64
\icegridadmin.EXE -- 2 others)
Commands: psql --version not found

Server: icegridnode not started
Server: OMERO.master inactive

Cannot list deployed applications.

Log dir: C:\OMERO.server\var\log exists

Log files: Blitz-0.log 6.0 MB errors=3 warnings=3

Log files: DropBox.log 0.0 KB errors=2 warnings=0

Log files: FileServer.log 0.0 KB
Log files: Indexer-0.log 8.0 MB errors=0 warnings=10

Log files: MonitorServer.log 0.0 KB errors=1 warnings=0

Log files: OMEROweb.log 0.0 KB
Log files: OMEROweb_request.log 0.0 KB
Log files: PixelData-0.log 14.0 KB errors=6 warnings=1

Log files: Processor-0.log 1.0 KB errors=0 warnings=1

Log files: Tables-0.log n/a
Log files: TestDropBox.log n/a
Log files: master.err 0.0 KB
Log files: master.out 0.0 KB
Log files: Total size 15.20 MB

Parsing Blitz-0.log:[line:118] => Server restarted <=

Environment:OMERO_HOME=(unset)
Environment:OMERO_NODE=(unset)
Environment:OMERO_MASTER=(unset)
Environment:PATH=C:\Python26;C:\Windows\system32;C:\Windows;C:\Windows\System32\
Wbem;c:\php;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\M
icrosoft SQL Server\100\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\
100\DTS\Binn\;C:\Program Files\Java\jdk1.7.0_25\bin;C:\ZeroC\Ice-3.4.2\bin\x64;C
:\ZeroC\Ice-3.4.2\bin
Environment:ICE_HOME=(unset)
Environment:LD_LIBRARY_PATH=(unset)
Environment:DYLD_LIBRARY_PATH=(unset)

OMERO data dir: '/OMERO' Exists? True Is writable? True
OMERO.web status... [NOT STARTED]

C:\OMERO.server\bin>omero admin start
No descriptor given. Using etc\grid\windefault.xml
Starting OMERO.master Windows service.
Waiting on startup. Use CTRL-C to exit
.
C:\OMERO.server\bin>omero config get
omero.db.pass=dibsomero
omero.db.user=dibs_omero
omero.web.application_server=fastcgi-tcp
omero.web.cache_backend=file://c:/windows/temp
omero.web.session_engine=django.contrib.sessions.backends.cache

C:\OMERO.server\bin>omero web iis

0 static files copied to 'C:/OMERO.server/lib/python/omeroweb/static' (808 unmod
ified).
Configured Virtual Directory: /omero
Configured Virtual Directory: /static
Installation complete.

C:\OMERO.server\bin>

-----------------------------------------

Anand
Anand
 
Posts: 13
Joined: Tue Apr 09, 2013 5:46 am

Re: 401 - Unauthorized

Postby bpindelski » Wed Jul 03, 2013 8:23 am

Hi Anand,

I'm happy to hear that the installation steps went fine. I'm sorry to hear that you are having trouble with OMERO on Windows IIS.

Two things I'd suggest regarding the HTTP 401 error:
- after executing
Code: Select all
bin\omero web iis
, the IIS Application responsible for serving OMERO.web is available under http://localhost/omero and not http://localhost:4080. Hence I'd suggest trying opening the former URL rather than the latter,
- the 401 code suggests authentication errors. I'd check if the "omero" Application in IIS Manager has Anonymous Authentication set to "Enabled" - you can check this by clicking on the Authentication icon in the middle panel when "omero" is selected.

Finally - Microsoft provides a set of tools to diagnose this specific problem. Please refer to http://support.microsoft.com/kb/907273.

I hope this helps,

Regards,
Blazej
bpindelski
 


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest