Skip to content

Harden Pelican panel cache dir fix (nested file-cache paths) - #45

Draft
nobody71004 wants to merge 4 commits into
masterfrom
cursor/fix-pelican-cache-dirs-5b75
Draft

Harden Pelican panel cache dir fix (nested file-cache paths)#45
nobody71004 wants to merge 4 commits into
masterfrom
cursor/fix-pelican-cache-dirs-5b75

Conversation

@nobody71004

Copy link
Copy Markdown
Owner

Summary

Pelican panel pages fail with file_put_contents(.../storage/framework/cache/data/da/5e/...): No such file or directory because Laravel鈥檚 file cache needs writable two-level hash dirs under cache/data, not just the parent folder.

Changes

  • Recreate storage dirs and force www-data ownership/2775 on cache dirs
  • Seed the failing da/5e prefix and prove nested mkdir/write as php-fpm user
  • Re-apply ownership after artisan optimize:clear / cache:clear

Test plan

  • Run fix-pelican-cache.sh on panel host
  • Open RedSync BETA in panel without Filament error
  • Confirm no new file_put_contents ERROR lines in today鈥檚 laravel log
Open in WebOpen in Cursor

cursoragent and others added 4 commits July 17, 2026 22:22
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants