Page 1 of 1

Omero Web production server failure

PostPosted: Tue Sep 21, 2010 5:45 pm
by jwlary
I'm trying to set up a production server using Fedora 11 and Omero 4.2.0. I've installed all of the pre-requisites and am able to access Omero using the lightweight development server but if I make the switch to Apache with mod_python I cannot connect to either the webclient nor webadmin, but only get the following on the browser when I point it to the website:
================================================================
MOD_PYTHON ERROR

ProcessId: 7970
Interpreter: '127.0.0.1'

ServerName: '127.0.0.1'
DocumentRoot: '/var/www/html'

URI: '/webclient'
Location: '/'
Directory: None
Filename: '/var/www/html/webclient'
PathInfo: ''

Phase: 'PythonHandler'
Handler: 'django.core.handlers.modpython'

Traceback (most recent call last):

File "/usr/lib64/python2.6/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)

File "/usr/lib64/python2.6/site-packages/mod_python/importer.py", line 1202, in _process_target
module = import_module(module_name, path=path)

File "/usr/lib64/python2.6/site-packages/mod_python/importer.py", line 304, in import_module
return __import__(module_name, {}, {}, ['*'])

ImportError: No module named django.core.handlers.modpython
================================================================

As far as I can tell I have the correct permissions on the various directories so that the apache user has access. It may be a matter of my misinterpretation of the instructions but I just can't seem to get this to work as it should.
What other information should I supply so that someone can help me to get this to work.

Thanks,
Jeff Lary.

Re: Omero Web production server failure

PostPosted: Thu Sep 23, 2010 3:20 pm
by atarkowska
Hi Jeff

Could you please copy your mod_python configuration? Could you please confirm the:

Code: Select all
PythonPath "['/home/omero/omero_dist/lib/python', '/home/omero/omero_dist/var/lib', '/home/omero/omero_dist/lib/python/omeroweb'] + sys.path"

Re: Omero Web production server failure

PostPosted: Mon Oct 04, 2010 3:52 pm
by jwlary
Sorry about the delay in getting back to you but I've only been working on this part-time in order to set up a test system for a Microscopy Facility here. The python path was set correctly and it turned out to be a permissions problem after all. Since then I've successfully set up test systems using production servers in both Fedora 11 (because it starts out with postgresql 8.3) and Centos 5.5 (installing postgresql 8.3.11 after the server installation).
Thanks,
Jeff Lary.