We're Hiring!

OMERO.web using mod_python on Mac OS X 10.6.4

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.

OMERO.web using mod_python on Mac OS X 10.6.4

Postby stephenogg@gmail.com » 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:

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
stephenogg@gmail.com
 
Posts: 4
Joined: Mon Aug 23, 2010 11:47 pm

Re: OMERO.web using mod_python on Mac OS X 10.6.4

Postby atarkowska » Tue Aug 24, 2010 3:53 pm

Hi Stephen,

The error message you got is something new. I have never seen that before.
But I would suggest to check the apache PythonPath. Based on the doc in your case could look like:

Code: Select all
<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/var/lib', '/Library/Omero/Current/lib/python/omeroweb'] + sys.path"

</Location>


Your configuration is missing:
- '/' before 'Library' in second path,
- '/home/omero/omero_dist/var/lib'.

Could you please check if it help?
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: OMERO.web using mod_python on Mac OS X 10.6.4

Postby stephenogg@gmail.com » Thu Aug 26, 2010 2:34 pm

Thank you for your suggestion. After reading your post I thought that would solve the problem. Alas, I still get the same error message as before from the browser window. I have done one more thing in the meantime. I made a LaunchDaemon to start OMERO when my server starts. I followed the format from the document written by Kenneth Arcieri and Janek Claus. The LaunchDaemon failed with the following error message written to the syslog

Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: ********************************************************************************
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: ERROR: Could not import omero.cli! (dlopen(/Library/Ice/Current/python/IcePy.so, 2): Library not loaded: /opt/Ice-3.3/lib/libIce.33.dylib
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: Referenced from: /Library/Ice/Current/python/IcePy.so
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: Reason: image not found)
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: This means that your installation is incomplete. Contact
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: the OME mailing lists for more information:
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: https://www.openmicroscopy.org/site/community
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: If you are building from source, please supply the build log
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: as well as which version you are building from. If you
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: downloaded a distribution, please provide which link you
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: used.
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]:
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: ********************************************************************************
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: Debugging Info:
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: --------------
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: CWD=/Library/Omero/Versions/4.2.0/bin
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: VERSION=2.6.1 (r261:67515, Dec 17 2009, 00:59:15) [GCC 4.2.1 (Apple Inc. build 5646)]
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: OMERO_HOME=None
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: PYTHONPATH=['/Library/Omero/Current/lib/python', '/Library/Omero/Current/var/lib', '/Library/Omero/Versions/4.2.0/bin', '/Library/Python/2.6/site-packages/setuptools-0.6c11-py2.6.egg', '/Library/Python/2.6/site-packages/numpy-2.0.0.dev-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/matplotlib-1.0.0-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/scipy-0.9.0.dev-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/pymc-2.1beta_20100727-py2.6-macosx-10.6-universal.egg', '/Library/Python/2.6/site-packages/ipython-0.10-py2.6.egg', '/Library/Python/2.6/site-packages/nose-0.11.0-py2.6.egg', '/Library/Python/2.6/site-packages/DateUtils-0.5.1-py2.6.egg', '/Library/Python/2.6/site-packages/pytz-2010k-py2.6.egg', '/Library/Python/2.6/site-packages/numexpr-1.3.1-py2.6-macosx-10.6-universal.egg', '/Library/Ice/Current/python', '/Library/Omero/Versions/4.2.0/bin/$PYTHONPATH', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old', '/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload', '/Library/Python/2.6/site-packages', '/Library/Python/2.6/site-packages/PIL', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC', '/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode', '/Library/Omero/Current/lib/fallback']
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]:
Aug 24 07:56:20 wks45683 com.apple.launchd[1] (ca.ualberta.med.microscopy.omero[86]): Exited with exit code: 2



I had to define the DYLD_LIBRARY_PATH in the property list file as follows for my installation:


Code: Select all
<dict>
      <key>PATH</key>
      <string>/usr/bin:/Library/Ice/Current/bin:/Library/PostgreSQL/Current/bin:/Library/Omero/Current/ bin:$PATH</string>

      <key>PYTHONPATH</key>
      <string>/Library/Ice/Current/python:$PYTHONPATH</string>

      <key>OMERO_TEMPDIR</key>
      <string>/Volumes/OMERO/tmp</string>

      <key>DYLD_LIBRARY_PATH</key>
      <string>/Library/Ice/Current/lib:/Library/PostgreSQL/Current/lib:$DYLD_LIBRARY_PATH</string>
   </dict>


before the omero.server would start.

I thought that the error was similar - in fact exactly the same - to the one that mod_python was producing so I tried to define the dyld_library_path in the httpd.conf file as well as follows at the same time fixing the missing leading slash that you found, but perhaps I am not quite fixing this correctly?

Code: Select all
<Location "/">
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        SetEnv DJANGO_SETTINGS_MODULE omeroweb.settings
        SetEnv DYLD_LIBRARY_PATH /Library/Ice/Current/lib:/Library/PostgreSQL/Current/lib:$DYLD_LIBRARY_PATH
        PythonDebug On

        PythonPath "['/Library/Ice/Current/python','/Library/Omero/Current/lib/python','/Library/Omero/Current/lib/python/omeroweb'] + sys.path"

</Location>


Again thanks for the pointers and any follow-ups you may have


Cheers
stephenogg@gmail.com
 
Posts: 4
Joined: Mon Aug 23, 2010 11:47 pm

Re: OMERO.web using mod_python on Mac OS X 10.6.4

Postby jmoore » Sun Sep 05, 2010 6:12 pm

stephenogg@gmail.com wrote:Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: ERROR: Could not import omero.cli! (dlopen(/Library/Ice/Current/python/IcePy.so, 2): Library not loaded: /opt/Ice-3.3/lib/libIce.33.dylib
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: Referenced from: /Library/Ice/Current/python/IcePy.so
Aug 24 07:56:20 wks45683 ca.ualberta.med.microscopy.omero[86]: Reason: image not found)


Hi Stephen,

the bit of your error message above suggests that the way that your IcePy library (Library/Ice/Current/python/IcePy.so) was compiled, it expects the rest of Ice to be available under /opt/Ice-3.3/, which is the default. You can try recompiling, but a simple workaround would be to create a symlink from /Library/Ice/Current to /opt/Ice-3.3. You can test if it's working by starting up Python and trying to 'import Ice'.

Cheers,
~Josh.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: OMERO.web using mod_python on Mac OS X 10.6.4

Postby stephenogg@gmail.com » Sun Sep 05, 2010 8:14 pm

Hi Josh-
I had the same thought, even though I thought compiled Ice with the appropriate prefixes. Anyways, the Ice error went away and I was left with a new error. This is similar to what others have described where fix is to check permissions for the apache user on the settings.py file, the custom_settings.py file the logfile and the respective paths to these files. So I have now doublechecked that www can read the correct files, and that the httpd.conf file is in fact the same as on the "installation" pages - originally I had an extra slash in one of the paths. I found that there was one path missing from the PythonPath - I added this missing path (/Library/Omero/Current/var/lib) and voila - the login page appears. Note that I still get the Ice error if I remove the symlink you suggested. All is not well, though. Now I am also getting the "Error: Client version does not match server, please contact administrator" error when I try to login to the webadmin or the webclient. I've attached diagnostics and OMEROweb.log below.
Thanks for the help
Steve

Here are the diagnostics for my server:

================================================================================
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 = 64705, enabled)
Server: DropBox active (pid = 64706, enabled)
Server: FileServer active (pid = 64707, enabled)
Server: Indexer-0 active (pid = 64708, enabled)
Server: MonitorServer active (pid = 64709, enabled)
Server: OMERO.Glacier2 active (pid = 64710, enabled)
Server: OMERO.IceStorm active (pid = 64711, enabled)
Server: Processor-0 active (pid = 64712, enabled)
Server: Repository-1 error: node `repo' couldn't be reached:
the node is not active
Server: Tables-0 active (pid = 64713, enabled)
Server: TestDropBox inactive (enabled)
Server: Web inactive (enabled)

Log dir: /Library/Omero/Versions/4.2.0/var/log exists

Log files: Blitz-0.log 7.0 MB errors=27 warnings=144
Log files: DropBox.log 35.0 KB errors=2 warnings=26
Log files: FileServer.log 4.0 KB
Log files: Indexer-0.log 345.0 KB errors=1 warnings=119
Log files: MonitorServer.log 15.0 KB errors=0 warnings=3
Log files: OMEROweb.log 0.0 KB
Log files: Processor-0.log 149.0 KB errors=33 warnings=247
Log files: Tables-0.log 137.0 KB errors=33 warnings=246
Log files: TestDropBox.log n/a
Log files: master.err 9.0 KB
Log files: master.out 0.0 KB
Log files: Total size 8.45 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 <=
Parsing Blitz-0.log:[line:4779] => Server restarted <=
Parsing Blitz-0.log:[line:5042] => Server restarted <=
Parsing Blitz-0.log:[line:5588] => Server restarted <=
Parsing Blitz-0.log:[line:6016] => Server restarted <=
Parsing Blitz-0.log:[line:9318] => Server restarted <=
Parsing Blitz-0.log:[line:10636] => Server restarted <=
Parsing Blitz-0.log:[line:12122] => Server restarted <=
Parsing Blitz-0.log:[line:55490] => Server restarted <=
Parsing Blitz-0.log:[line:56244] => 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's the OMEROweb.log


Sun, 05 Sep 2010 20:37:46 views-admin INFO INIT '65397'
Sun, 05 Sep 2010 20:37:47 views-web INFO INIT '65397'
Sun, 05 Sep 2010 20:37:59 omero.util.UpgradeCheck INFO no update needed
Sun, 05 Sep 2010 20:37:59 webgateway INFO getBlitzConnection(host=localhost, port=4064, ssl=True, username=root)
Sun, 05 Sep 2010 20:37:59 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:37:59 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:37:59 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:37:59 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:37:59 views-admin INFO Have connection as Guest
Sun, 05 Sep 2010 20:37:59 views-admin ERROR Traceback (most recent call last):
File "/Library/Omero/Current/lib/python/omeroweb/webadmin/views.py", line 100, in _checkVersion
agent = conn.getServerVersion()
AttributeError: 'NoneType' object has no attribute 'getServerVersion'

Sun, 05 Sep 2010 20:38:13 omero.util.UpgradeCheck INFO no update needed
Sun, 05 Sep 2010 20:38:13 webgateway INFO getBlitzConnection(host=localhost, port=4064, ssl=True, username=cicadmin1)
Sun, 05 Sep 2010 20:38:13 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:38:13 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:38:13 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:38:13 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:38:13 views-admin INFO Have connection as Guest
Sun, 05 Sep 2010 20:38:13 views-admin ERROR Traceback (most recent call last):
File "/Library/Omero/Current/lib/python/omeroweb/webadmin/views.py", line 100, in _checkVersion
agent = conn.getServerVersion()
AttributeError: 'NoneType' object has no attribute 'getServerVersion'

Sun, 05 Sep 2010 20:43:34 views-admin INFO INIT '65405'
Sun, 05 Sep 2010 20:43:34 views-web INFO INIT '65405'
Sun, 05 Sep 2010 20:43:50 omero.util.UpgradeCheck INFO no update needed
Sun, 05 Sep 2010 20:43:50 webgateway INFO getBlitzConnection(host=localhost, port=4064, ssl=True, username=root)
Sun, 05 Sep 2010 20:43:50 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:43:50 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:43:50 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:43:50 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:43:50 views-admin INFO Have connection as Guest
Sun, 05 Sep 2010 20:43:50 views-admin ERROR Traceback (most recent call last):
File "/Library/Omero/Current/lib/python/omeroweb/webadmin/views.py", line 100, in _checkVersion
agent = conn.getServerVersion()
AttributeError: 'NoneType' object has no attribute 'getServerVersion'

Sun, 05 Sep 2010 20:43:58 omero.util.UpgradeCheck INFO no update needed
Sun, 05 Sep 2010 20:43:58 webgateway INFO getBlitzConnection(host=localhost, port=4064, ssl=False, username=root)
Sun, 05 Sep 2010 20:43:58 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:43:58 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:43:58 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:43:58 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:43:58 views-admin INFO Have connection as Guest
Sun, 05 Sep 2010 20:43:58 views-admin ERROR Traceback (most recent call last):
File "/Library/Omero/Current/lib/python/omeroweb/webadmin/views.py", line 100, in _checkVersion
agent = conn.getServerVersion()
AttributeError: 'NoneType' object has no attribute 'getServerVersion'

Sun, 05 Sep 2010 20:51:14 views-admin INFO INIT '65398'
Sun, 05 Sep 2010 20:51:14 views-web INFO INIT '65398'
Sun, 05 Sep 2010 20:51:16 omero.util.UpgradeCheck INFO no update needed
Sun, 05 Sep 2010 20:51:16 webgateway INFO getBlitzConnection(host=localhost, port=4064, ssl=False, username=root)
Sun, 05 Sep 2010 20:51:16 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:51:16 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:51:16 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:51:16 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:51:16 views-admin INFO Have connection as Guest
Sun, 05 Sep 2010 20:51:16 views-admin ERROR Traceback (most recent call last):
File "/Library/Omero/Current/lib/python/omeroweb/webadmin/views.py", line 100, in _checkVersion
agent = conn.getServerVersion()
AttributeError: 'NoneType' object has no attribute 'getServerVersion'

Sun, 05 Sep 2010 20:51:39 views-admin INFO INIT '65402'
Sun, 05 Sep 2010 20:51:39 views-web INFO INIT '65402'
Sun, 05 Sep 2010 20:51:43 omero.util.UpgradeCheck INFO no update needed
Sun, 05 Sep 2010 20:51:43 webgateway INFO getBlitzConnection(host=localhost, port=4064, ssl=False, username=root)
Sun, 05 Sep 2010 20:51:43 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:51:43 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:51:43 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:51:43 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:51:43 views-admin INFO Have connection as Guest
Sun, 05 Sep 2010 20:51:43 views-admin ERROR Traceback (most recent call last):
File "/Library/Omero/Current/lib/python/omeroweb/webadmin/views.py", line 100, in _checkVersion
agent = conn.getServerVersion()
AttributeError: 'NoneType' object has no attribute 'getServerVersion'

wks45683:weblog omero$ tail OMEROweb.log
Sun, 05 Sep 2010 20:51:43 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:51:43 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:51:43 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:51:43 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:51:43 views-admin INFO Have connection as Guest
Sun, 05 Sep 2010 20:51:43 views-admin ERROR Traceback (most recent call last):
File "/Library/Omero/Current/lib/python/omeroweb/webadmin/views.py", line 100, in _checkVersion
agent = conn.getServerVersion()
AttributeError: 'NoneType' object has no attribute 'getServerVersion'

wks45683:weblog omero$ more OMEROweb.log
Sun, 05 Sep 2010 20:37:46 views-admin INFO INIT '65397'
Sun, 05 Sep 2010 20:37:47 views-web INFO INIT '65397'
Sun, 05 Sep 2010 20:37:59 omero.util.UpgradeCheck INFO no update needed
Sun, 05 Sep 2010 20:37:59 webgateway INFO getBlitzConnection(host=localhost, port=4064, ssl=True, username=root)
Sun, 05 Sep 2010 20:37:59 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:37:59 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:37:59 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:37:59 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:37:59 views-admin INFO Have connection as Guest
Sun, 05 Sep 2010 20:37:59 views-admin ERROR Traceback (most recent call last):
File "/Library/Omero/Current/lib/python/omeroweb/webadmin/views.py", line 100, in _checkVersion
agent = conn.getServerVersion()
AttributeError: 'NoneType' object has no attribute 'getServerVersion'

Sun, 05 Sep 2010 20:38:13 omero.util.UpgradeCheck INFO no update needed
Sun, 05 Sep 2010 20:38:13 webgateway INFO getBlitzConnection(host=localhost, port=4064, ssl=True, username=cicadmin1)
Sun, 05 Sep 2010 20:38:13 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:38:13 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:38:13 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:38:13 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:38:13 views-admin INFO Have connection as Guest
Sun, 05 Sep 2010 20:38:13 views-admin ERROR Traceback (most recent call last):
File "/Library/Omero/Current/lib/python/omeroweb/webadmin/views.py", line 100, in _checkVersion
agent = conn.getServerVersion()
AttributeError: 'NoneType' object has no attribute 'getServerVersion'

Sun, 05 Sep 2010 20:43:34 views-admin INFO INIT '65405'
Sun, 05 Sep 2010 20:43:34 views-web INFO INIT '65405'
Sun, 05 Sep 2010 20:43:50 omero.util.UpgradeCheck INFO no update needed
Sun, 05 Sep 2010 20:43:50 webgateway INFO getBlitzConnection(host=localhost, port=4064, ssl=True, username=root)
Sun, 05 Sep 2010 20:43:50 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:43:50 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:43:50 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:43:50 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:43:50 views-admin INFO Have connection as Guest
Sun, 05 Sep 2010 20:43:50 views-admin ERROR Traceback (most recent call last):
File "/Library/Omero/Current/lib/python/omeroweb/webadmin/views.py", line 100, in _checkVersion
agent = conn.getServerVersion()
AttributeError: 'NoneType' object has no attribute 'getServerVersion'

Sun, 05 Sep 2010 20:43:58 omero.util.UpgradeCheck INFO no update needed
Sun, 05 Sep 2010 20:43:58 webgateway INFO getBlitzConnection(host=localhost, port=4064, ssl=False, username=root)
Sun, 05 Sep 2010 20:43:58 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:43:58 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:43:58 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:43:58 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:43:58 views-admin INFO Have connection as Guest
Sun, 05 Sep 2010 20:43:58 views-admin ERROR Traceback (most recent call last):
File "/Library/Omero/Current/lib/python/omeroweb/webadmin/views.py", line 100, in _checkVersion
agent = conn.getServerVersion()
AttributeError: 'NoneType' object has no attribute 'getServerVersion'

Sun, 05 Sep 2010 20:51:14 views-admin INFO INIT '65398'
Sun, 05 Sep 2010 20:51:14 views-web INFO INIT '65398'
Sun, 05 Sep 2010 20:51:16 omero.util.UpgradeCheck INFO no update needed
Sun, 05 Sep 2010 20:51:16 webgateway INFO getBlitzConnection(host=localhost, port=4064, ssl=False, username=root)
Sun, 05 Sep 2010 20:51:16 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:51:16 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:51:16 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:51:16 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:51:16 views-admin INFO Have connection as Guest
Sun, 05 Sep 2010 20:51:16 views-admin ERROR Traceback (most recent call last):
File "/Library/Omero/Current/lib/python/omeroweb/webadmin/views.py", line 100, in _checkVersion
agent = conn.getServerVersion()
AttributeError: 'NoneType' object has no attribute 'getServerVersion'

Sun, 05 Sep 2010 20:51:39 views-admin INFO INIT '65402'
Sun, 05 Sep 2010 20:51:39 views-web INFO INIT '65402'
Sun, 05 Sep 2010 20:51:43 omero.util.UpgradeCheck INFO no update needed
Sun, 05 Sep 2010 20:51:43 webgateway INFO getBlitzConnection(host=localhost, port=4064, ssl=False, username=root)
Sun, 05 Sep 2010 20:51:43 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:51:43 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:51:43 webgateway ERROR Critical error during connect, retrying after _purge
Sun, 05 Sep 2010 20:51:43 webgateway INFO reached connector_pool_size (70), size after purge: (0)
Sun, 05 Sep 2010 20:51:43 views-admin INFO Have connection as Guest
Sun, 05 Sep 2010 20:51:43 views-admin ERROR Traceback (most recent call last):
File "/Library/Omero/Current/lib/python/omeroweb/webadmin/views.py", line 100, in _checkVersion
agent = conn.getServerVersion()
AttributeError: 'NoneType' object has no attribute 'getServerVersion'
stephenogg@gmail.com
 
Posts: 4
Joined: Mon Aug 23, 2010 11:47 pm

Re: OMERO.web using mod_python on Mac OS X 10.6.4

Postby atarkowska » Mon Sep 06, 2010 8:19 am

Hi Stephen,

Could you please turn on debugging mode on webclient and then show me the log? Please go to omero/var/lib/custom_settings.py and just before SERVER_LIST please add:

DEBUG = True

Then restart apache.
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: OMERO.web using mod_python on Mac OS X 10.6.4

Postby stephenogg@gmail.com » Mon Sep 06, 2010 10:40 pm

Here it is -
It looks from what I can glean that I have something still wrong with my ice/python paths?

Steve

OMEROweb-DEBUG.log.gz
(1.42 KiB) Downloaded 230 times
stephenogg@gmail.com
 
Posts: 4
Joined: Mon Aug 23, 2010 11:47 pm

Re: OMERO.web using mod_python on Mac OS X 10.6.4

Postby atarkowska » Thu Sep 16, 2010 3:21 pm

It looks like there is a problem with DYLD_LIBRARY_PATH, it says:

Code: Select all
PluginInitializationException: exception ::Ice::PluginInitializationException
{
    reason = unable to load entry point `IceSSL:createIceSSL': dlopen(libIceSSL.33.dylib, 10): image not found
}
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest