-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem writing to the storage directory #34
Comments
Hi @jonathandey! Try clearing your cache within the container by running After that, can you tell me what triggers the error? I've stumbled on permission issues within the cache before. It typically occurs when I'm not paying attention to the user running artisan commands or I've upset permissions within a mounted volume. After reviewing your compose file, I should point out |
Thanks @petehalverson, I tried clearing the cache but got the same result. I’ll try removing the extra composer dependency and use |
Still no luck, unfortunately. My docker-compose.yml file now looks like this
I made sure to delete the container before trying again, even going as far as to delete the image
Something to note though. It always appears to be the same cache value that is failed to write: |
I had a scheduled job that was creating a cache directory. Since cron is executed as root, the permissions on the created directory did not allow writes for www-data. Maybe this could be the issue here as well. I wonder if it is generally better to register the cron job for the www-data user instead of root. # Remove from root
RUN crontab -u root -r
# Add to www-data
RUN crontab -u www-data /etc/cron.d/october-cron |
I'm attempting to get a fresh copy working but I'm getting this error:
My docker-compose.yml file looks like this:
If I remove the
CACHE_STORE
env variable I get this error:I have tried with and without mounted volumes. My last resort was to add the
APACHE_RUN_USER
env variable, but again I get the same issue with or without it.I'm running Docker for Mac and my version of Docker is 19.03.8, build afacb8b.
These are the permissions of the storage directories:
Any help would be much appreciated, thanks!
The text was updated successfully, but these errors were encountered: