Closed benoit74 closed 11 months ago
At Edupi container startup, database file is owned by root:root, while django app is ran by user www-data which hence has only read-only access.
root:root
www-data
Changing database permission with chown www-data:www-data /data/database/db.sqlite3solves the issue, but I'm not sure this is the best way to go.
chown www-data:www-data /data/database/db.sqlite3
Nota: read-only access prevent accessing the django or app admin dashboards.
At Edupi container startup, database file is owned by
root:root
, while django app is ran by userwww-data
which hence has only read-only access.Changing database permission with
chown www-data:www-data /data/database/db.sqlite3
solves the issue, but I'm not sure this is the best way to go.