Repository navigation
Replies: 2 comments 1 reply
|
Currently I fix this by setting the entrypoint to |
|
Woops - I've turned issues back on for the future. I am familiar with this permissions issue. It caused quite a lot of problems for some with the way I was doing it earlier when setting permissions for the whole folder and it consuming considerable disk/network cycles when one used remote file systems for storage. For your questions - it's a complex web of upstream images starting from nfrastack/base -> nginx -> nginx-php-fpm -> laravel -> freescout. It helps me keep things orderly for the next phase of things and introduce a level of consistency for the most part. The
|
Uh oh!
There was an error while loading. Please reload this page.
Hi, first off thanks for maintaining this image — it's a nice alternative to the older tiredofit/freescout build.
I've run into a recurring issue and wanted to flag it here since issues are disabled.
Symptoms
After restarting the container, the FreeScout UI loads but JavaScript and CSS assets are broken (top menu doesn't work, modals don't open). Browser console / FreeScout logs show errors like:
File /modules/<modulename>/js/laroute.js does not existFile '/www/html/public/storage/js/vars.js' does not existfile_put_contents(...storage/framework/cache/data/...): failed to open stream: Permission deniedThis matches exactly the Permissions issue documented in the official FreeScout wiki:
https://github.com/freescout-help-desk/freescout/wiki/Installation-Guide#-permissions-issue
The wiki notes that this is "the most common issue" with FreeScout and that it's typically caused by either (a) the web server user not having write permissions on
storage/, or (b) a cron task running under a different user thanwww-data, which then creates cache/build files the web server user can no longer overwrite.What I'm observing in the container
On first install everything works. After
docker restart, ownership of files inside the persistent volume (storage, public/css/builds, public/js/builds, bootstrap/cache) drifts and thephp artisan freescout:clear-cachestep on boot can no longer regenerate the compiled assets, so JS/CSS stay broken until I manuallychown -Rinside the container.Suspected causes (happy to be corrected)
storage/framework/cache/data/.DEBUG_PERMISSIONSflag is designed to surface innfrastack/container-base).Questions
github.com/nfrastack/container-freescoutbut I couldn't find the Dockerfile or thecont-init.dscripts there. Are they in a separate repo, a private build pipeline, or am I just missing them?ENABLE_PERMISSIONS_CHECKor matchingUSER_NGINXto the host UID) that forces ownership to be re-applied on every container start?chown -R?Happy to help test or open a PR if the Dockerfile source becomes accessible. Thanks!
All reactions