schmittjoh / JMSSerializerBundle

Easily serialize, and deserialize data of any complexity (supports XML, JSON, YAML)
http://jmsyst.com/bundles/JMSSerializerBundle
MIT License
1.8k stars 311 forks source link

Cache directory not writable #768

Open Srivani247 opened 4 years ago

Srivani247 commented 4 years ago

Hello, I get below error when i am using jmssymfonybundle

The directory "/app/applications/transportation/carrier-integration-platform/var/cache/prod/jms_serializer" is not writable. {"exception":"[object] (InvalidArgumentException(code: 0): The directory \"/app/applications/transportation/carrier-integration-platform/var/cache/prod/jms_serializer\" is not writable. at /app/applications/transportation/carrier-integration-platform/vendor/jms/metadata/src/Cache/FileCache.php:44)"}

Can you please help me in solving this? I saw a similar issue resolved https://github.com/schmittjoh/JMSSerializerBundle/issues/640 here with the code now throws an error for me

goetas commented 4 years ago

are you using jms/metadata v1.7.0 ?

Srivani247 commented 4 years ago

Hello, I am using jms/metadata 2..0

goetas commented 4 years ago

did you warm up all the metadata? to benefit of this feature, you need to use https://github.com/schmittjoh/JMSSerializerBundle/pull/615 first

ma0dubois commented 3 years ago

@see https://github.com/schmittjoh/JMSSerializerBundle/issues/801#issuecomment-648680955