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
jms_serializer directory in cache is not writable #640
Comments
This is mot probably related to your deploy process and server configs. Closing as is not relevant to the bundle |
Same here, no pb on local. Now : Whatever i do : always this error |
solved in schmittjoh/metadata#72 (not yet released), will be part of the 2.0 serializer release |
backport to v1 is welcome |
Same issue, are there plans to fix this? Symfony 4 cache directory should be read only. |
I have the same problem, some solution |
Will try to find some time to backport it to 1.x |
Temporary solution: setfacl -R -m u:"apache":rwX -m u:apache:rwX var/cache/prod/jms_serializer ¡is working! |
Solved for v1 in schmittjoh/metadata#74 jms/metadata v1.7.0 is the tag |
¡Thanks! |
Hi,
on production, I have an issue with jms_serializer directory in cache. According to log, it is not writable, even if it has the same rights as any other directories in cache folder.
Here is an error from log:
[2018-03-07 11:35:17] request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "The directory "/var/www/project/releases/2/var/cache/prod/jms_serializer" is not writable." at /var/www/project/releases/2/vendor/jms/metadata/src/Metadata/Cache/FileCache.php line 17 {"exception":"[object] (InvalidArgumentException(code: 0): The directory \"/var/www/project/releases/2/var/cache/prod/jms_serializer\" is not writable. at /var/www/project/releases/2/vendor/jms/metadata/src/Metadata/Cache/FileCache.php:17)"} []
I'm not using JMSSerializerBundle standalone, but it is part of nelmio/api-doc-bundle and friendsofsymfony/rest-bundle.
On my local machine, there is no problem.
The text was updated successfully, but these errors were encountered: