Start by reading:

  http://code.google.com/p/modwsgi/wiki/ApplicationIssues

Issues could be fact that your paster startup is dependent on user
shell environment not available to Apache or that under Apache code is
run as different user and thus doesn't have same access privileges.
That document covers a range of other common issues as well.

Graham

On Jul 8, 10:28 pm, antonio <[EMAIL PROTECTED]> wrote:
> Hi all:
>         I'm using mod_wsgi 2.0 and sqlalchemy 0.4.6.
>         In my app I'm using a tiny database to register info, like
> image title,
>         description, etc..
>         My problem arises when I try to use my app under mod_wsgi.
>         If I run my app with paster, all works fine, but when it runs
> under
>         mod_wsgi and try to insert info in the database, the next
> error appears:
>
>         ....
>          File
>         "/usr/lib/python2.4/site-packages/SQLAlchemy-0.4.6-py2.4.egg/
> sqlalchemy/engine/base.py", line 942, in _handle_dbapi_exception,
> referer:http://www.XXX.com/manage/gallery
>         raise exceptions.DBAPIError.instance(statement, parameters, e,
>         connection_invalidated=is_disconnect), referer:
>        http://www.XXX.es/manage/gallery
>          OperationalError: (OperationalError) unable to open database
> file
>         u'INSERT INTO "Image" (title, body, img, snap, type,
> timestamp) VALUES
>         (?, ?, ?, ?, ?, ?)' [u'my title', u'my body',
>         u'/images/gallery/big/big_big2.jpg',
>         u'/images/gallery/small/snap_big2.jpg', u'classic',
> '2008-07-08
>         13:48:40.390720']
>
>         What's the best way to debug this issue?
>
>         (I've have tested it manually also, and works fine, I can
> insert this
>         data without problems)
>
>         Greetings.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to