#✅ "SQLITE_READONLY: attempt to write a readonly database"
5 messages · Page 1 of 1 (latest)
Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:
- Adding an explanation of exactly what you're trying to achieve.
- Adding any and all related code or previous attempts.
- Describing the exact issue or error you are facing.
- Posting any screenshots if applicable.
- Reading through https://stackoverflow.com/help/how-to-ask.
When you're done with this thread, please close it. Thanks! ✨
(If you have a support agreement and need help, please contact the core team via email.)
This seems to be related to the permissions on folders - I guess you are using the example docker compose setup, like this one https://docs.directus.io/self-hosted/docker-guide.html#example-docker-compose? If so, what's your permission on the database folder ?
this issue was solved by creating new linux user, starting new directus project and running command: docker exec -u root <directus-container-id> chown -R node:node /directus/database /directus/extensions /directus/uploads
✅ "SQLITE_READONLY: attempt to write a readonly database"