OMERO.web using mod_python on Mac OS X 10.6.4
Posted: Tue Aug 24, 2010 1:08 am
Hi -
I've succeeded getting OMERO.server 4.2.0 running on a Mac running Server version of 10.6.4 but cannot quite get the OMERO.web to cooperate. I have followed the excellent instructions from Janek Claus/Kenneth Arcieri to compile all the pieces from source to try and avoid the 32 vs 64 bit problem.
After getting all the dependencies and installing them, I can start the server just fine (bin/omero admin start)
but following a hybrid of the the directions from http://www.openmicroscopy.org.uk/site/support/omero4/server/install_web and the OMERO.web section of the previously mentioned guide, I ran into trouble at the very end when trying to load the webadmin page.
I get the folloiwng error:
I know there is probably some simple thing I have done to get this wrong. Can somebody point me in the right direction? I am concerned about the library not found in /opt/Ice ? I compiled and installed Ice in the /Library/Ice directory with no mention of /opt/Ice.
Also I was a bit confused about the ownership of the log and database directories required for the mod_python version of the web server. I created the /omero_dist/var/lib and omero_dist/var/log/weblog directories and assigned them apache user and group ownership as per the instructions. But then when I try to run "bin/omero admin diagnostics" omero complains that it can't find "var/lib" a required file - presumably because it is now owned by the apache user and group and not writable/readable by the omero user. Could someone clarify the location and ownership of these files required by the OMERO.web?
I also quote the output of the diagnostics for more information.
and here is the section of the httpd.conf file that I modified:
Thanks for your help
I've succeeded getting OMERO.server 4.2.0 running on a Mac running Server version of 10.6.4 but cannot quite get the OMERO.web to cooperate. I have followed the excellent instructions from Janek Claus/Kenneth Arcieri to compile all the pieces from source to try and avoid the 32 vs 64 bit problem.
After getting all the dependencies and installing them, I can start the server just fine (bin/omero admin start)
but following a hybrid of the the directions from http://www.openmicroscopy.org.uk/site/support/omero4/server/install_web and the OMERO.web section of the previously mentioned guide, I ran into trouble at the very end when trying to load the webadmin page.
I get the folloiwng error:
MOD_PYTHON ERROR
ProcessId: 8997
Interpreter: '127.0.0.1'
ServerName: '127.0.0.1'
DocumentRoot: '/Library/WebServer/Documents'
URI: '/'
Location: '/'
Directory: None
Filename: '/Library/WebServer/Documents/'
PathInfo: ''
Phase: 'PythonHandler'
Handler: 'django.core.handlers.modpython'
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/Library/Python/2.6/site-packages/mod_python/importer.py", line 1229, in _process_target
result = _execute_target(config, req, object, arg)
File "/Library/Python/2.6/site-packages/mod_python/importer.py", line 1128, in _execute_target
result = object(arg)
File "Library/Omero/Current/lib/python/django/core/handlers/modpython.py", line 228, in handler
return ModPythonHandler()(req)
File "Library/Omero/Current/lib/python/django/core/handlers/modpython.py", line 191, in __call__
self.load_middleware()
File "Library/Omero/Current/lib/python/django/core/handlers/base.py", line 33, in load_middleware
for middleware_path in settings.MIDDLEWARE_CLASSES:
File "Library/Omero/Current/lib/python/django/utils/functional.py", line 272, in __getattr__
self._setup()
File "Library/Omero/Current/lib/python/django/conf/__init__.py", line 40, in _setup
self._wrapped = Settings(settings_module)
File "Library/Omero/Current/lib/python/django/conf/__init__.py", line 75, in __init__
raise ImportError, "Could not import settings '%s' (Is it on sys.path? Does it have syntax errors?): %s" % (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'omeroweb.settings' (Is it on sys.path? Does it have syntax errors?): dlopen(/Library/Ice/Current/python/IcePy.so, 2): Library not loaded: /opt/Ice-3.3/lib/libIce.33.dylib
Referenced from: /Library/Ice/Current/python/IcePy.so
Reason: image not found
I know there is probably some simple thing I have done to get this wrong. Can somebody point me in the right direction? I am concerned about the library not found in /opt/Ice ? I compiled and installed Ice in the /Library/Ice directory with no mention of /opt/Ice.
Also I was a bit confused about the ownership of the log and database directories required for the mod_python version of the web server. I created the /omero_dist/var/lib and omero_dist/var/log/weblog directories and assigned them apache user and group ownership as per the instructions. But then when I try to run "bin/omero admin diagnostics" omero complains that it can't find "var/lib" a required file - presumably because it is now owned by the apache user and group and not writable/readable by the omero user. Could someone clarify the location and ownership of these files required by the OMERO.web?
I also quote the output of the diagnostics for more information.
wks45683:Current omero$ bin/omero admin diagnostics
================================================================================
OMERO Diagnostics Beta-4.2.0-r7571-b29
================================================================================
Commands: java -version 1.6.0 (/usr/bin/java)
Commands: python -V 2.6.1 (/usr/bin/python)
Commands: icegridnode --version 3.3.1 (/Library/Ice/Current/bin/icegridnode)
Commands: icegridadmin --version 3.3.1 (/Library/Ice/Current/bin/icegridadmin)
Commands: psql --version 8.3.11 (/Library/PostgreSQL/Current/bin/psql)
Server: icegridnode running
Server: Blitz-0 active (pid = 8835, enabled)
Server: DropBox active (pid = 8836, enabled)
Server: FileServer active (pid = 8837, enabled)
Server: Indexer-0 active (pid = 8838, enabled)
Server: MonitorServer active (pid = 8839, enabled)
Server: OMERO.Glacier2 active (pid = 8840, enabled)
Server: OMERO.IceStorm active (pid = 8841, enabled)
Server: Processor-0 active (pid = 8842, enabled)
Server: Repository-1 error: node `repo' couldn't be reached:
the node is not active
Server: Tables-0 active (pid = 8843, enabled)
Server: TestDropBox inactive (enabled)
Log dir: /Library/Omero/Versions/4.2.0/var/log exists
Log files: Blitz-0.log 314.0 KB errors=5 warnings=39
Log files: DropBox.log 11.0 KB errors=2 warnings=8
Log files: FileServer.log 1.0 KB
Log files: Indexer-0.log 148.0 KB errors=1 warnings=38
Log files: MonitorServer.log 5.0 KB errors=0 warnings=2
Log files: OMEROweb.log 0.0 KB
Log files: Processor-0.log 126.0 KB errors=33 warnings=231
Log files: Tables-0.log 124.0 KB errors=33 warnings=233
Log files: TestDropBox.log n/a
Log files: master.err 2.0 KB
Log files: master.out 0.0 KB
Log files: Total size 0.73 MB
Parsing Blitz-0.log:[line:103] Did you create your omero.data.dir? E.g. /OMERO
Parsing Blitz-0.log:[line:193] => Server restarted <=
Parsing Blitz-0.log:[line:448] => Server restarted <=
Parsing Blitz-0.log:[line:942] => Server restarted <=
Parsing Blitz-0.log:[line:2074] => Server restarted <=
Environment:OMERO_HOME=(unset)
Environment:OMERO_NODE=(unset)
Environment:OMERO_MASTER=(unset)
Environment:PATH=/Library/PostgreSQL/Current/bin:/Library/Ice/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
Environment:ICE_HOME=(unset)
Environment:LD_LIBRARY_PATH=(unset)
Environment:DYLD_LIBRARY_PATH=/Library/PostgreSQL/Current/lib:/Library/Ice/Current/lib:
and here is the section of the httpd.conf file that I modified:
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE omeroweb.settings
PythonDebug On
PythonPath "['/Library/Ice/Current/python','Library/Omero/Current/lib/python','/Library/Omero/Current/lib/python/omeroweb'] + sys.path"
</Location>
Thanks for your help