Page 1 of 1

Deploying Apache, mod_wsgi, and Omero

PostPosted: Thu Aug 06, 2009 10:25 pm
by Steve
I am having problems configuring a production setup of Omero. I am using Apache with mod_wsgi to server the python/Django files on Ubuntu 9. Has anyone done this?

The development server works fine. My Apache setup works fine on a trivial Django application and it displays the Omero root page OK (the same way as the development server).

However, the /webadmin or /webclient pages generate an "OperationalError" error.

Here is some info I dug out of the error page.
....com/webclient/login/?error=OperationalError&url=/webclient/
class="exception_value">unable to open database file
class="code"><div>(&lt;class &#39;sqlite3.OperationalError&#39;&gt;,
OperationalError(&#39;unable to open database file&#39;,),
&lt;traceback object at 0x821c384c&gt;)

The Apache error.log file has this error:
[error] No handlers could be found for logger "views-web"

I question my Apache configuration. Anyone have a httpd.conf and a django.wsgi configured for Omero that they can share? Any suggestions on setting up a production server?

Re: Deploying Apache, mod_wsgi, and Omero

PostPosted: Fri Aug 07, 2009 1:08 pm
by cxallan
Looks like you've got things set up correctly but the user who runs Apache cannot write to the sqlite database that OMERO.web uses for configuration. Have you moved it to a location that the user running Apache can access and changed its ownership as in:

http://www.openmicroscopy.org/site/supp ... #section-4

Re: Deploying Apache, mod_wsgi, and Omero

PostPosted: Fri Aug 07, 2009 7:45 pm
by Steve
You're right, I didn't go through those steps because I figured since the development server doesn't need them, the production didn't either. After following the referenced steps (as a guide) I got my system running. Thanks.