Comments (9)
for a test i reverted my container back to 24.02 an tried again:
from bookstack.
@m4ntic0r I've checked on a couple of my instances, but those clear fine. Did a quick scan of famework code for the command and cache flushing but can't see any issues.
- Do you have any option set in your env starting with
CACHE_
? - Can you share the output of running
ls -alh storage/framework/cache/data/
from your BookStack install directory? - Are you ever manually deleting the
storage/framework/cache/data/
folder as part of your process?
from bookstack.
I had the same problem yesterday when I updated my instance wich is running inside a LXC container on Proxmox.
I wanted to reproduce it today but now this command does not throw this error anymore and seems to work.
from bookstack.
@ssddanbrown
only line with cache_ is:
CACHE_DRIVER=file
i dont have a data directory there.
root@bookstack:/var/www/html/storage/framework/cache# ls -lha
insgesamt 12K
drwxrwxr-x 2 www-data www-data 4,0K 12. Mai 15:51 .
drwxrwxr-x 5 www-data www-data 4,0K 31. Dez 2021 ..
-rwxrwxr-x 1 root root 20 23. Feb 2020 .gitignore
root@bookstack:/var/www/html/storage/framework/cache#
i created an empty data dir there and:
INFO Application cache cleared successfully.
from bookstack.
@m4ntic0r Thanks for the info and thanks @maxi322 for the confirmation.
Looks like the path did change in the last release to add the data folder, so could do with ensuring this folder exists via version control. I'll mark this to be done for the next patch release.
Dev Notes
- Double check
.gitignore
addition does not conflict with cases where folder already exists - Will need to update parent
.gitignore
to ignore existing folders where existing but not added data folder (reference).
from bookstack.
Just the heads up for anyone manually making the data folder, you need to also ensure that you use chown to set the owner to www-data, or else you'll end up getting HTTP 500 errors.
from bookstack.
Maybe we should instead revert the folder path back then, to avoid unexpected issues with permissions.
from bookstack.
Just had the same issue here after updating to 24.05
> @php artisan cache:clear
ERROR Failed to clear cache. Make sure you have the appropriate permissions.
> @php artisan view:clear
INFO Compiled views cleared successfully.
INFO Nothing to migrate.
ERROR Failed to clear cache. Make sure you have the appropriate permissions.
INFO Compiled views cleared successfully.
The problem was fixed by creating the folder storage/framework/cache/data
from bookstack.
I've now reverted the directory change via 5651d2c, and this change will be part of a soon patch release.
from bookstack.
Related Issues (20)
- Add other scaled images in gallery
- Expand/enlarge image within the page
- General API call HOT 3
- Docker error after update of Ubuntu OS. HOT 10
- Behaviour of OIDC group sync HOT 4
- Mermaid & Bookstack HOT 3
- Microsoft Graph mail driver HOT 3
- An unknown error occurred when the SMTP host could not be reached HOT 5
- install docs wrong due to missing directory "vendor" HOT 2
- Addressing CSP Configuration in BookStack: Resolving Security Scan Findings HOT 9
- Add Shelf to search on a book HOT 1
- page splitting, error 500
- Google SAML groups stopped syncing users HOT 6
- The IP address is incorrect if it is behind the AWS ALB (ECS Version). HOT 1
- broken db migration from 2021 HOT 1
- Search Icon in Mobile View is slightly detached HOT 1
- Code blocks for SAS and R
- Add WYSIWYG editor button as part of Logical Theme Hack HOT 1
- test_gif_thumbnail_generation fails after release
- Ability to set a manual shelf sort order HOT 1
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 bookstack.