Trouble migrating v3 -> v4: Attempt to write to a readonly database #435
-
The error from the logs:
To the best of my knowledge, I have followed the migration guide. That it is broken means I probably did something wrong. Relevant portions of compose file below, changes marked with <--
So in order, I have:
Possible mistakes I made:
Previous versions: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello, docker compose exec bar-assistant ls -al It should show www-data:www-data for all files and folders (33:33). docker compose exec bar-assistant ls -al storage/bar-assistant This should also show www-data:www-data for all files and folders If it's not you could just try to chown it via: docker compose exec -u root bar-assistant chown -R 33:33 storage/bar-assistant |
Beta Was this translation helpful? Give feedback.
Hello,
First
PUID
andPGID
env variables are not used anymore, so you can remove those. What I would is first check if the user and group is correct in the container.docker compose exec bar-assistant ls -al
It should show www-data:www-data for all files and folders (33:33).
Then do the same for the mounted folder
docker compose exec bar-assistant ls -al storage/bar-assistant
This should also show www-data:www-data for all files and folders
If it's not you could just try to chown it via:
docker compose exec -u root bar-assistant chown -R 33:33 storage/bar-assistant