Cocolabs-SAS / cocorico

👐 Cocorico is an open source marketplace solution for services and rentals. More information right here: https://www.cocorico.io/ 🚀 Cocorico is also available in an off-the-shelf SaaS package, check out https://www.hatch.li to launch your platform today. 😍 We are hiring (telecommute welcome 🏡): https://www.welcometothejungle.com/en/companies/cocorico/jobs/candidatures-spontanees#apply
https://www.cocolabs.com
MIT License
860 stars 612 forks source link

Error in admin backend #438

Closed rkhyd closed 5 years ago

rkhyd commented 5 years ago
Q A
Bug report? [ ]
Feature request? [ ]
Support request? [y ]

Installed cocorico on a plesk server and everything works fine except the list and users links in admin. When i click them "Internal Server Error" is shown and it logs me out automatically. here is the log information when that incident occurrs.

[2019-09-22 06:31:52] request.INFO: Matched route "admin_cocorico_user_user_list". {"route":"admin_cocorico_user_user_list","route_parameters":{"_controller":"Cocorico\\UserBundle\\Controller\\Admin\\UserAdminController::listAction","_sonata_admin":"sonata.user.admin.user","_sonata_name":"admin_cocorico_user_user_list","_route":"admin_cocorico_user_user_list","_locale":"en"},"request_uri":"https://cocorico.appdemo.ovh/admin/user/list","method":"GET"} [] [2019-09-22 06:31:52] security.DEBUG: Read existing security token from the session. {"key":"_security_admin","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken"} [] [2019-09-22 06:31:52] security.DEBUG: User was reloaded from a user provider. {"provider":"FOS\\UserBundle\\Security\\UserProvider","username":"super-admin@cocorico.rocks"} [] [2019-09-22 06:31:52] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Compile Error: require(): Failed opening required '/var/www/vhosts/appdemo.ovh/cocorico.appdemo.ovh/symphony/var/cache/prod/doctrine/orm/Proxies/__CG__CocoricoCoreBundleEntityListingLocation.php' (include_path='.:/opt/plesk/php/7.2/share/pear')" at /var/www/vhosts/appdemo.ovh/cocorico.appdemo.ovh/symphony/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php line 223 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 0): Compile Error: require(): Failed opening required '/var/www/vhosts/appdemo.ovh/cocorico.appdemo.ovh/symphony/var/cache/prod/doctrine/orm/Proxies/__CG__CocoricoCoreBundleEntityListingLocation.php' (include_path='.:/opt/plesk/php/7.2/share/pear') at /var/www/vhosts/appdemo.ovh/cocorico.appdemo.ovh/symphony/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:223)"} [] [2019-09-22 06:31:52] security.DEBUG: Stored the security token in the session. {"key":"_security_admin"} [] [2019-09-22 06:33:32] request.INFO: Matched route "admin_cocorico_core_listing_list". {"route":"admin_cocorico_core_listing_list","route_parameters":{"_controller":"Sonata\\AdminBundle\\Controller\\CRUDController::listAction","_sonata_admin":"sonata.admin.listing","_sonata_name":"admin_cocorico_core_listing_list","_route":"admin_cocorico_core_listing_list","_locale":"en"},"request_uri":"https://cocorico.appdemo.ovh/admin/listing/list","method":"GET"} [] [2019-09-22 06:33:32] security.DEBUG: Read existing security token from the session. {"key":"_security_admin","token_class":"Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken"} [] [2019-09-22 06:33:32] security.DEBUG: User was reloaded from a user provider. {"provider":"FOS\\UserBundle\\Security\\UserProvider","username":"super-admin@cocorico.rocks"} [] [2019-09-22 06:33:32] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Compile Error: require(): Failed opening required '/var/www/vhosts/appdemo.ovh/cocorico.appdemo.ovh/symphony/var/cache/prod/doctrine/orm/Proxies/__CG__CocoricoGeoBundleEntityCountry.php' (include_path='.:/opt/plesk/php/7.2/share/pear')" at /var/www/vhosts/appdemo.ovh/cocorico.appdemo.ovh/symphony/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php line 223 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalErrorException(code: 0): Compile Error: require(): Failed opening required '/var/www/vhosts/appdemo.ovh/cocorico.appdemo.ovh/symphony/var/cache/prod/doctrine/orm/Proxies/__CG__CocoricoGeoBundleEntityCountry.php' (include_path='.:/opt/plesk/php/7.2/share/pear') at /var/www/vhosts/appdemo.ovh/cocorico.appdemo.ovh/symphony/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:223)"} [] [2019-09-22 06:33:32] security.DEBUG: Stored the security token in the session. {"key":"_security_admin"} [] Please let me know how to fix it.

cocolabssas commented 5 years ago

You need to check:

rkhyd commented 5 years ago

Hello, Thank you for the reply. That file does not exist.. What steps are to be taken to create that file? If the standard install process was done it should be generated automatically.. right?

cocolabssas commented 5 years ago

Hello @rkhyd ,

Could you check the others informations (var/cache folder permissions and owners, ...)?

And what does this command returns : php bin/console cache:clear --env=prod