nginx + django + haystack = Server Error (500)

126 views Asked by At

I've cobbled together a small blog application in Django using Haystack with Whoosh backend for search. It runs nicely in development server (on the laptop) but search fails when site runs in nginx on a server (rpi). I can access search page but any search results in Server Error (500), no additional info available from either nginx or django logs. I had RealtimeSignalProcessor on but turned it off - no change. Any pointer on how to attempt to debug this would be great.

1

There are 1 answers

0
erg On

Thanks for pointing the obvious. With DEBUG=True i get: "The path to your Whoosh index '/path/to/my/mysite/whoosh_index' is not writable for the current user/group." which is then easily remedied by changing either file permissions or ownership of the folder to allow user, in my case nginx, write access.