Page 2 of 2
Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails
Posted:
Sun Jan 16, 2011 2:02 pm
by bernie
Looks like I can't upload the file.
Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails
Posted:
Thu Jan 27, 2011 4:29 pm
by bernie
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.
Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails
Posted:
Thu Jan 27, 2011 4:55 pm
by cxallan
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.
Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails
Posted:
Fri Jan 28, 2011 4:58 pm
by bernie
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
Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails
Posted:
Thu Feb 03, 2011 9:48 am
by cxallan
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.
Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails
Posted:
Thu Feb 03, 2011 3:52 pm
by bernie
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...
Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails
Posted:
Thu Feb 03, 2011 4:51 pm
by cxallan
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
Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails
Posted:
Thu Feb 03, 2011 6:40 pm
by bernie
Yep, it works now. Thanks for your patience and help.
Bernie
Re: 4.2.2 OMERO.web starts Using FastCGI but URL fails
Posted:
Thu Feb 03, 2011 6:46 pm
by cxallan
No problem. Glad to help.