lilspikey / django-background-task

A database-backed work queue for Django
BSD 3-Clause "New" or "Revised" License
107 stars 200 forks source link

unable to open database file #27

Open DaDaDim opened 5 years ago

DaDaDim commented 5 years ago

Hi, I was using background taks in production mode and everything was going fine. Now I just deployed my django app on a server with Apache2 and sqlite3 and Django 2.2.1, but when I try to access the app via the browser I get "unable to open database file" which happens at the moment I call my task in urls.py. By commenting the line the app works just fine, though. Of course, no background task is run anymore then.

Any idea?

DaDaDim commented 5 years ago

So I solved it by giving writing rights to the whole project folder rather than just the database... Still if anyone has an explanation on why allowing writes to just the database is not enough, I'd gladly hear it.