We're Hiring!

Deploying Apache, mod_wsgi, and Omero

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.

Deploying Apache, mod_wsgi, and Omero

Postby Steve » Thu Aug 06, 2009 10:25 pm

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?
Steve
 
Posts: 14
Joined: Thu Jul 23, 2009 9:11 pm

Re: Deploying Apache, mod_wsgi, and Omero

Postby cxallan » Fri Aug 07, 2009 1:08 pm

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
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: Deploying Apache, mod_wsgi, and Omero

Postby Steve » Fri Aug 07, 2009 7:45 pm

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.
Steve
 
Posts: 14
Joined: Thu Jul 23, 2009 9:11 pm


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest