-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
prod env cache problem #11
Comments
Hi! It's always bad idea to run any symfony command from the root user. You should always use the same user name as for your web server. Alternatively, you could configure cache file mode and check umask settings to enable creation of directories with write/read rights for everyone (not so good idea, but it's also a solution) |
Hi |
Could you please try my second advice? To configure the cacheFileMode option for the framework. And enable write for the group and for everyone too. |
Thanks for the advice. The problem was already resolved on my "prod" environment when I raised the issue. |
If I remember correctly, for the production mode there is no filemode check. But I need to look this or check... If you seeing the mistake and can fix it by PR, then just send me it, I will merge it after review. |
goaop/framework/src/Instrument/ClassLoading/CachePathManager.php:85 |
I'm from the phone. Definitely something is wrong, but cache directory should be present, isn't it? (And in this case we won't try to check if our directory it's writable or not) |
I think i copied that from a tag. Should I enable that feature in prod? |
Yes, now I can see your case. But I hadn't time right now to fix this... |
Hi,
I have a problem in production, it check for write permission on "cache/aspect" folder. And it doesn't have the right... it fails (event if the cache:warmup was already done).
This shouldn't happen as the entire "cache" should be written by "cache:warmup".
Steps to reproduce:
The text was updated successfully, but these errors were encountered: