Comments (4)
Hi @jonathandey!
Try clearing your cache within the container by running docker-compose exec october artisan cache:clear
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 composer
is available within the aspendigital/octobercms image. Setting INIT_PLUGINS=true
will run composer within the container on plugin folders that have a composer.json
file and no vendor
folder. See the entry options.
from docker-octobercms.
Thanks @petehalverson,
I tried clearing the cache but got the same result.
I’ll try removing the extra composer dependency and use INIT_PLUGINS
as you suggested.
from docker-octobercms.
Still no luck, unfortunately.
My docker-compose.yml file now looks like this
version: '2.2'
services:
october:
image: aspendigital/octobercms:latest
volumes:
- ./plugins/rainlab/user:/var/www/html/plugins/rainlab/user
# - ./db/database.sqlite:/var/www/html/storage/database.sqlite
- ./:/var/www/html/plugins/jd/dingoapi
ports:
- 9090:80
environment:
- INIT_OCTOBER=true
- INIT_PLUGINS=true
- APP_DEBUG=true
- PHP_DISPLAY_ERRORS=true
- API_PREFIX=api
- API_DEBUG=true
- JWT_TTL=31622400
- JWT_BLACKLIST_ENABLED=false
- API_DEFAULT_FORMAT=json
I made sure to delete the container before trying again, even going as far as to delete the image aspendigital/octobercms:latest
so that it is re-pulled. I have also tried clearing the cache using
docker-compose exec october artisan cache:clear
docker-compose exec october artisan view:clear
docker-compose exec october artisan config:clear
Something to note though. It always appears to be the same cache value that is failed to write: /var/www/html/storage/framework/cache/11/de/11de31e1eabb2682cf62ee9c9ccb0630f1019006
from docker-octobercms.
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
from docker-octobercms.
Related Issues (20)
- PHP 7.4 support HOT 1
- how to set PHP max_execution_time ? HOT 2
- Add kubernetes charts
- Update README with ssl notes HOT 2
- Build 465 images are not accessible HOT 1
- cron runs with different env variables HOT 4
- Theme volume assets not found in browser
- Xdebug error HOT 1
- Installing Plugin Dependencies on `docker-compose up` HOT 1
- Trying to user PHP 7.4-apache Dockerfile : Composer Error HOT 4
- [Feature Request] Upgrade to Octobercms v1.1 HOT 2
- Enable Supervisor? HOT 1
- Bad protocol version. Please update to a newer version of October CMS (Build >472 or >v1.1.5) and try again. HOT 2
- How to enable more PHP Extensions? HOT 1
- Support for OctoberCMS V2.0 HOT 1
- Actualize tags of images in Docker Hub HOT 1
- Wrong url / missing port in storage/app urls
- Google Cloud Run Dockerfile version? HOT 1
- How to use Dockerfile for actual new version of October CMS?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-octobercms.