Bad Server Response error after create link from user to lead

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phamduc
    Member
    • Feb 2018
    • 63

    Bad Server Response error after create link from user to lead

    Please support to check

    [2018-04-18 09:14:19] Espo.WARNING: E_WARNING: rmdir(data/cache/application): Directory not empty {"code":2,"message":"rmdir(data/cache/application): Directory not empty","file":"/var/www/espocrm/application/Espo/Core/Utils/File/Manager.php","line":529,"context":{"dirPaths":["data/cache/application"],"result":true,"dirPath":"data/cache/application"}} []
    [2018-04-18 09:14:19] Espo.ERROR: API [POST]:/:controller/action/:action, Params:Array ( [controller] => EntityManager [action] => createLink ) , InputData: {"entity":"Lead","entityForeign":"User","link":"us ers","linkForeign":"lead","label":"Users","labelFo reign":"Lead","linkType":"oneToMany","relationName ":"","linkMultipleField":false,"linkMultipleFieldF oreign":false,"audited":false,"auditedForeign":fal se} - Error while clearing cache [] []
    [2018-04-18 09:14:19] Espo.ERROR: Display Error: Error while clearing cache, Code: 500 URL: /api/v1/EntityManager/action/createLink [] []
    [2018-04-18 09:15:01] Espo.ERROR: Uncaught Exception PDOException: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user.lead_id' in 'field list'" at /var/www/espocrm/application/Espo/ORM/DB/Mapper.php line 72 {"exception":"[object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user.lead_id' in 'field list' at /var/www/espocrm/application/Espo/ORM/DB/Mapper.php:72)"} []
    [2018-04-18 09:16:02] Espo.ERROR: Uncaught Exception PDOException: "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user.lead_id' in 'field list'" at /var/www/espocrm/application/Espo/ORM/DB/Mapper.php line 72 {"exception":"[object] (PDOException(code: 42S22): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'user.lead_id' in 'field list' at /var/www/espocrm/application/Espo/ORM/DB/Mapper.php:72)"} []

  • tanya
    Senior Member
    • Jun 2014
    • 4308

    #2
    Hi,
    could you re-check the permission to data folder and rebuild EspoCRM again?

    Comment

    • phamduc
      Member
      • Feb 2018
      • 63

      #3

      Comment

      • phamduc
        Member
        • Feb 2018
        • 63

        #4
        Hi,

        How to rebuild espo by command ?
        Will user data lost if rebuild ?

        Comment

        • tanya
          Senior Member
          • Jun 2014
          • 4308

          #5
          You can do it in Administration panel, you can run in cli
          <espo_path> php rebuild.php

          No, data won't lost

          Comment

          • Ellen
            Senior Member
            • Jan 2018
            • 149

            #6
            Hi,We can not access in Administration panel
            And we run already php rebuild.php but it's still get same error.
            Please check and advise soon.
            Thanks

            Comment

            • tanya
              Senior Member
              • Jun 2014
              • 4308

              #7
              What is in log?
              you can try to remove this folder manually data/cache/application

              Comment

              • phamduc
                Member
                • Feb 2018
                • 63

                #8
                It's OK now. Thanks Tanya

                Comment

                Working...