-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
php artisan cache:clear Make sure you have the appropriate permissions #4999
Comments
@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.
|
I had the same problem yesterday when I updated my instance wich is running inside a LXC container on Proxmox. |
@ssddanbrown i dont have a data directory there. root@bookstack:/var/www/html/storage/framework/cache# ls -lha i created an empty data dir there and: |
@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
|
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. |
Maybe we should instead revert the folder path back then, to avoid unexpected issues with permissions. |
Just had the same issue here after updating to 24.05
The problem was fixed by creating the folder |
Change made during Laravel 10 updates to align (Laravel made this change much earlier in 5.x series) but it caused issues due to folder not pre-existing and due to potentiall permission issues. (CLI could create this during update, with non-compatible permissions for webserver). For #4999
I've now reverted the directory change via 5651d2c, and this change will be part of a soon patch release. |
Attempted Debugging
Searched GitHub Issues
Describe the Scenario
After updating my bookstack today to version 24.05 i see this error for the first time:
root@bookstack:/var/www/html# php artisan cache:clear i get the error: ERROR Failed to clear cache. Make sure you have the appropriate permissions.
debian 12, latest stable version. never had this before.
php artisan config:clear and php artisan view:clear without error only cache:clear with error.
checked permissions, set new permissions, tried temporary full permissions -> always this error?
Exact BookStack Version
v24.05
Log Content
No response
Hosting Environment
Debian 12, PHP8.2 fpm
The text was updated successfully, but these errors were encountered: