Announcement

Collapse
No announcement yet.

Error 500 Error while clearing cache

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error 500 Error while clearing cache

    Hi,

    I am new to espo, and i have setup some objects and some workflows. Now sometimes it is giving me the error given below
    "Error 500 Error while clearing cache".

    When i checked the logs here is the log

    [2024-09-02 10:56:11] WARNING: E_WARNING: rmdir(data/cache/application): Directory not empty
    [2024-09-02 10:56:14] ERROR: (500) Error while clearing cache :: POST /Admin/rebuild :: /var/www/html/application/Espo/Core/DataManager.php(106)
    [2024-09-02 10:57:35] WARNING: E_WARNING: rmdir(data/cache/application/acl): Directory not empty
    [2024-09-02 10:57:35] ERROR: (500) Error while clearing cache :: POST /EntityManager/action/removeEntity :: /var/www/html/application/Espo/Core/DataManager.php(106)
    [2024-09-02 10:59:08] WARNING: E_WARNING: touch(): Unable to create file data/cache/application/acl/66727b2c53ad49c27.php because No such file or directory
    [2024-09-02 10:59:08] CRITICAL: (0) Permission denied for data/cache/application/acl/66727b2c53ad49c27.php :: GET /Notification/action/notReadCount :: /var/www/html/application/Espo/Core/Utils/File/Manager.php(321)
    [2024-09-02 10:59:08] WARNING: E_WARNING: touch(): Unable to create file data/cache/application/acl/66727b2c53ad49c27.php because No such file or directory
    [2024-09-02 10:59:08] CRITICAL: (0) Permission denied for data/cache/application/acl/66727b2c53ad49c27.php :: GET /Notification/action/notReadCount :: /var/www/html/application/Espo/Core/Utils/File/Manager.php(321)
    [2024-09-02 10:59:08] WARNING: E_WARNING: rmdir(data/cache/application): Directory not empty
    [2024-09-02 10:59:08] ERROR: (500) Error while clearing cache :: PUT /Admin/fieldManager/Case/cDateTimeClosed :: /var/www/html/application/Espo/Core/DataManager.php(106)
    [2024-09-02 11:01:10] WARNING: E_WARNING: rmdir(data/cache/application): Directory not empty
    [2024-09-02 11:01:12] ERROR: (500) Error while clearing cache :: PUT /Admin/fieldManager/Case/cSLALeftInSeconds :: /var/www/html/application/Espo/Core/DataManager.php(106)
    [2024-09-02 11:08:05] WARNING: E_WARNING: rmdir(data/cache/application): Directory not empty
    [2024-09-02 11:08:05] ERROR: (500) Error while clearing cache :: POST /EntityManager/action/removeEntity :: /var/www/html/application/Espo/Core/DataManager.php(106)
    [2024-09-02 11:08:34] WARNING: E_WARNING: rmdir(data/cache/application): Directory not empty
    [2024-09-02 11:08:34] ERROR: (500) Error while clearing cache :: PUT /Admin/fieldManager/Case/cSLALeftInSeconds :: /var/www/html/application/Espo/Core/DataManager.php(106)
    [2024-09-02 11:11:02] WARNING: E_WARNING: rmdir(data/cache/application): Directory not empty
    [2024-09-02 11:11:02] ERROR: (500) Error while clearing cache :: PUT /Admin/fieldManager/Case/cSLALeftInSeconds :: /var/www/html/application/Espo/Core/DataManager.php(106)
    [2024-09-02 11:12:54] WARNING: E_WARNING: mkdir(): File exists
    [2024-09-02 11:13:10] WARNING: E_WARNING: touch(): Unable to create file data/cache/application/autoload.php because No such file or directory
    [2024-09-02 11:13:10] ERROR: (0) Uncaught Exception RuntimeException: "Route collector cache file directory `data/cache/application` is not writable" at /var/www/html/vendor/slim/slim/Slim/Routing/RouteCollector.php line 142 :: /var/www/html/vendor/slim/slim/Slim/Routing/RouteCollector.php(142)
    [2024-09-02 11:13:10] WARNING: E_WARNING: touch(): Unable to create file data/cache/application/autoload.php because No such file or directory
    [2024-09-02 11:13:10] ERROR: (0) Uncaught Exception RuntimeException: "Route collector cache file directory `data/cache/application` is not writable" at /var/www/html/vendor/slim/slim/Slim/Routing/RouteCollector.php line 142 :: /var/www/html/vendor/slim/slim/Slim/Routing/RouteCollector.php(142)


    can anyone help how to fix this issue . I am using aws linux hosting.

  • #2
    Hi abhilash.kumar.niit,

    We recommend enabling debug mode for EspoCRM instance logs: https://docs.espocrm.com/administrat...ng/#debug-mode.

    Also, check if permissions are set correctly for instance directory: https://docs.espocrm.com/administrat...ed-systems.​

    Comment


    • #3
      Hi @lazovic​ Thanks for your kind support. It is fixed now but one problem i am facing now is now my jobs are stopped no jobs is being scheduled i have followed the below link.
      https://docs.espocrm.com/administrat...ed-systems.​

      Comment


      • #4
        abhilash.kumar.niit,

        I recommend opening another topic for you regarding this issue. There may be several nuances with cron setup if you host EspoCRM instance on a specific hosting. I also recommend that you first search this forum for topics related to cron setup - you will definitely find one of the solutions to your problem.

        Comment


        • #5
          lazovic ,

          Thanks , it is working now. I think there might some issue on my server.

          Comment

          Working...
          X