Fatal error: Uncaught InvalidArgumentException: The directory "/var/www/html/app/cache/prod/jms_diextra/metadata" is not writable. in /var/www/html/vendor/jms/metadata/src/Metadata/Cache/FileCache.php:39 Stack trace: #0 /var/www/html/vendor/jms/metadata/src/Metadata/MetadataFactory.php(99): Metadata\Cache\FileCache->putClassMetadataInCache(Object(Metadata\NullMetadata)) #1 /var/www/html/app/cache/prod/jms_diextra/doctrine/EntityManager_5fbd1a2c06c84.php(173): Metadata\MetadataFactory->getMetadataForClass('Doktorsitesi\\Si...') #2 /var/www/html/vendor/friendsofsymfony/elastica-bundle/Doctrine/ORM/ElasticaToModelTransformer.php(54): EntityManager5fbd1a2c06c84_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM\EntityManager->getRepository('Doktorsitesi\\Si...') #3 /var/www/html/vendor/friendsofsymfony/elastica-bundle/Doctrine/ORM/ElasticaToModelTransformer.php(32): FOS\ElasticaBundle\Doctrine\ORM\ElasticaToModelTransformer->getEntityQueryBuilder() #4 /var/www/html/vendor/friendsofsymfony/elastica-bundle/Doctrine/Ab in /var/www/html/vendor/twig/twig/lib/Twig/Cache/Filesystem.php on line 61