Harden Pelican panel cache dir fix (nested file-cache paths) - #45
Draft
nobody71004 wants to merge 4 commits into
Draft
Harden Pelican panel cache dir fix (nested file-cache paths)#45nobody71004 wants to merge 4 commits into
nobody71004 wants to merge 4 commits into
Conversation
Laravel writes cache keys under storage/framework/cache/data/ab/cd/. Ensure www-data can mkdir those prefixes, seed the failing da/5e path, and re-apply ownership after artisan clear. Co-authored-by: XEROX710 <nobody71004@users.noreply.github.com>
file_put_contents still failed after mkdir as www-data; switch CACHE to redis/database and chown storage to the real php-fpm pool user. Co-authored-by: XEROX710 <nobody71004@users.noreply.github.com>
After redis cache switch, panel server pages fail because AppServiceProvider passes env/config strings into Http::connectTimeout() which requires float. Co-authored-by: XEROX710 <nobody71004@users.noreply.github.com>
Co-authored-by: XEROX710 <nobody71004@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pelican panel pages fail with
file_put_contents(.../storage/framework/cache/data/da/5e/...): No such file or directorybecause Laravel鈥檚 file cache needs writable two-level hash dirs undercache/data, not just the parent folder.Changes
www-dataownership/2775on cache dirsda/5eprefix and prove nested mkdir/write as php-fpm userartisan optimize:clear/cache:clearTest plan
fix-pelican-cache.shon panel hostfile_put_contentsERROR lines in today鈥檚 laravel log