Page 3 of 3

Re: Ldap authentication

PostPosted: Fri Feb 19, 2010 1:03 pm
by joshBC
the new weblog file says:
2010-02-19 13:49:03,937 omero.util.UpgradeCheck: INFO no update needed
2010-02-19 12:49:04,062 views-feedback: ERROR handler404: Page not found
2010-02-19 12:49:04,106 views-feedback: ERROR Traceback (most recent call last):
File "/srv/omero/omero_dist/lib/python/django/core/handlers/base.py", line 77, in get_response
request.path_info)
File "/srv/omero/omero_dist/lib/python/django/core/urlresolvers.py", line 191, in resolve
raise Resolver404, {'tried': tried, 'path': new_path}
Resolver404: {'path': u'error/HTTP_SERVICE_UNAVAILABLE.html.var', 'tried': ['^admin/(.*)', '^admin_static/(?P<path>.*)$', '^webgateway/appmedia/(?P<path>.*)$', '(?i)^webadmin/', '(?i)^webclient/', '(?i)^feedback/', '(?i)^webgateway/', '^favicon\\.ico$']}

2010-02-19 12:49:04,400 views-admin : INFO INIT '6892'
2010-02-19 12:49:04,415 views-web : INFO INIT '6892'
2010-02-19 12:49:15,719 views-feedback: ERROR handler404: Page not found
2010-02-19 12:49:15,722 views-feedback: ERROR Traceback (most recent call last):
File "/srv/omero/omero_dist/lib/python/django/core/handlers/base.py", line 77, in get_response
request.path_info)
File "/srv/omero/omero_dist/lib/python/django/core/urlresolvers.py", line 191, in resolve
raise Resolver404, {'tried': tried, 'path': new_path}
Resolver404: {'path': u'error/HTTP_SERVICE_UNAVAILABLE.html.var', 'tried': ['^admin/(.*)', '^admin_static/(?P<path>.*)$', '^webgateway/appmedia/(?P<path>.*)$', '(?i)^webadmin/', '(?i)^webclient/', '(?i)^feedback/', '(?i)^webgateway/', '^favicon\\.ico$']}

Re: Ldap authentication

PostPosted: Fri Feb 19, 2010 1:17 pm
by cxallan
Thanks. That's quite a weird one. What do your Apache directives for the mod_python configuration look like?

Re: Ldap authentication

PostPosted: Fri Feb 19, 2010 1:30 pm
by joshBC
The mod_python config file is located in /etc/apache2/conf.d/
Any files from this directory are included in the default-server.conf

Re: Ldap authentication

PostPosted: Fri Feb 19, 2010 2:15 pm
by cxallan
Hrm. If you do sudo -u wwwrun ls -alR /srv/omero/omero_dist do you have any permission denied errors?

Re: Ldap authentication

PostPosted: Fri Feb 19, 2010 2:59 pm
by joshBC
Okay i got omero running! But i had to change the mod_python settings:
<Location "/omero/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE omeroweb.settings
PythonOption django.root /omero
PythonDebug On
PythonPath "['/srv/omero/omero_dist/lib/python', '/srv/omero/omero_dist/lib/python/omeroweb'] + sys.path"
</Location>

don't aks me why this actually works but it works. unfortunately this workaround leads to another small error:
when logging into webadmin or webclient (http://myserver/omero/webadmin) omero redirects me to http://myserver/webadmin where nothing is found (because as i defined in the mod_python omero should be found under myserver/omero/..)

EDIT:
The error with the wrong redirection does only occure when logging into webclient. webadmin works fine

Re: Ldap authentication

PostPosted: Fri Feb 19, 2010 3:52 pm
by cxallan
There may already be some default handlers for the "/" location in your Apache configuration. OMERO Beta 4.1.x may have some issues with redirects if you have the application attached to the "/omero" location so you'll want to get it off of there as soon as you can.

Re: Ldap authentication

PostPosted: Fri Feb 19, 2010 4:04 pm
by joshBC
Ahhh! Thank you. :)
There was another config file which wanted to use the same address as omero. So now everything should work.
Thanks for your support.