We're Hiring!

4.2.2 OMERO.web starts Using FastCGI but URL fails

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.

Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails

Postby bernie » Sun Jan 16, 2011 2:02 pm

Looks like I can't upload the file.
bernie
 
Posts: 50
Joined: Mon Aug 17, 2009 12:03 pm

Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails

Postby bernie » Thu Jan 27, 2011 4:29 pm

Problem solved.

The answer was to be found, of course, in the the list of error messages at the beginning of the thread which ended with:

IOError: [Errno 13] Permission denied: '/home/omero/omero_dist/etc/grid/config.xml'

Gave world readable privileges to:
-rw-rw-r-- 1 omero omero 1172 Jan 27 15:56 config.xml
-rw-rw-r-- 1 omero omero 0 Jan 3 21:02 config.xml.lock
-rw-rw-r-- 1 omero omero 105270 Jan 27 15:55 OMEROweb.log

in turn.

Then concluded that the problem might lie in the fact that apache need to belong to the group omero:

usermod -a -G omero apache

It would seem that this, added apache to the omero group, was all that was needed.
bernie
 
Posts: 50
Joined: Mon Aug 17, 2009 12:03 pm

Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails

Postby cxallan » Thu Jan 27, 2011 4:55 pm

That seems a bit odd based on the fact that the whole point of using FastCGI (particularly when using TCP) is to avoid Apache having to have any access to your OMERO directories.

It would be good to see the Apache configuration files.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails

Postby bernie » Fri Jan 28, 2011 4:58 pm

Cxallan,

just to confirm, apache was removed from the group omero, the server restarted and the problem returned. apache was added back, the apache server restarted and the problem disappeared.

I've attached the configuration files,

Bernie
Attachments
include_files.tar
(30 KiB) Downloaded 173 times
httpd.conf.tar
(50 KiB) Downloaded 190 times
bernie
 
Posts: 50
Joined: Mon Aug 17, 2009 12:03 pm

Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails

Postby cxallan » Thu Feb 03, 2011 9:48 am

You need to remove all the previous OMERO mod_python configuration from your httpd.conf AND conf.d/python.conf:

Code: Select all
...
<Location "/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE omeroweb.settings
    PythonDebug On
    PythonPath "['/home/omero/omero_dist/lib/python', '/home/omero/omero_dist/lib/python/omeroweb'] + sys.path"
</location>
...


Then reset the permissions, otherwise Apache is going to be messing around inside your /home/omero directory.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails

Postby bernie » Thu Feb 03, 2011 3:52 pm

Hi cxallan,

I've done that and restarted the server, in fact rebooted the server because a restart didn't work, but still have the same problem.

Permissions have been reset:

[root@omerodev httpd]# id -nG apache
apache

Using Chrome I can examine elements and get this:

Failed to load resource: the server responded with a status of 404 (Not Found) /appmedia/omeroweb/css/layout-admin.css

Failed to load resource: the server responded with a status of 404 (Not Found)
/appmedia/omeroweb/css/login.css

Failed to load resource: the server responded with a status of 404 (Not Found)
/appmedia/omeroweb/images/logo-admin.png

although these files exist and the Alias paths are defined in httpd.conf

I've re-attached the modified files just in case...
Attachments
include_files.tar
(6.82 KiB) Downloaded 195 times
httpd.conf.tar
(16.1 KiB) Downloaded 224 times
bernie
 
Posts: 50
Joined: Mon Aug 17, 2009 12:03 pm

Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails

Postby cxallan » Thu Feb 03, 2011 4:51 pm

Your httpd.conf has a spelling mistake:

This line:

Code: Select all
Alias /appmedia /home/omero/OMERO.server-Beta-4.2.2/lib/python/omeroweb/medialias


Should be:

Code: Select all
Alias /appmedia /home/omero/OMERO.server-Beta-4.2.2/lib/python/omeroweb/media
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails

Postby bernie » Thu Feb 03, 2011 6:40 pm

Yep, it works now. Thanks for your patience and help.

Bernie
bernie
 
Posts: 50
Joined: Mon Aug 17, 2009 12:03 pm

Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails

Postby cxallan » Thu Feb 03, 2011 6:46 pm

No problem. Glad to help.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Previous

Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest