Announcement

Collapse
No announcement yet.

SQLSTATE[HY000] [2002] No such file or directory

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

  • SQLSTATE[HY000] [2002] No such file or directory

    I'm getting this error simply repeats messages:
    Espo.ERROR: Uncaught Exception PDOException: "SQLSTATE[HY000] [2002] No such file or directory" at /opt/lampp/htdocs/espocrm/application/Espo/ORM/EntityManager.php line 158 {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /opt/lampp/htdocs/espocrm/application/Espo/ORM/EntityManager.php:158)"} []
    Espo.ERROR: Uncaught Exception PDOException: "SQLSTATE[HY000] [2002] No such file or directory" at /opt/lampp/htdocs/espocrm/application/Espo/ORM/EntityManager.php line 158 {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /opt/lampp/htdocs/espocrm/application/Espo/ORM/EntityManager.php:158)"} []


    Any help would be appreciated.

  • #2
    Hello,
    could you describe more explicitly? What are you trying to do when this error occurs? Provide steps to reproduce the issue.

    Comment


    • lukguz
      lukguz commented
      Editing a comment
      When I launched on the web server and my own website, so it was fine. I catched an error from log file which is to capture the error's list when I turn off the XAMPP server. I don't know why
      Last edited by lukguz; 01-28-2020, 09:54 PM.

  • #3
    Does your instance located on XAMPP? Or rather your instance is connected to the DB on XAMPP? So when you turn off your XAMPP it stops a MySQL service and DB became to be unreachable. In this case when you will try to update an EspoCRM webpage, it should return a blank page with a Bad-Responce error.

    Comment


    • lukguz
      lukguz commented
      Editing a comment
      Our CRM is connected to the DB on XAMPP

  • #4
    I am having the same issue:

    [2020-02-10 16:36:20] Espo.ERROR: Uncaught Exception PDOException: "SQLSTATE[HY000] [2002] No such file or directory" at /opt/espocrm/application/Espo/ORM/EntityManager.php line 158 {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /opt/espocrm/application/Espo/ORM/EntityManager.php:158)"} []
    [2020-02-10 16:36:20] Espo.ERROR: Uncaught Exception PDOException: "SQLSTATE[HY000] [2002] No such file or directory" at /opt/espocrm/application/Espo/ORM/EntityManager.php line 158 {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /opt/espocrm/application/Espo/ORM/EntityManager.php:158)"} []
    [2020-02-10 16:36:42] Espo.ERROR: Uncaught Exception PDOException: "SQLSTATE[HY000] [2002] No such file or directory" at /opt/espocrm/application/Espo/ORM/EntityManager.php line 158 {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /opt/espocrm/application/Espo/ORM/EntityManager.php:158)"} []

    Environment:
    OS: CENTOS7 (LEMP stack)
    NGINX: config attached
    FPM type: Unix socket (using default pool www with modified to nginx settings): config attached
    DB: created DB and user; granted priveleges; config is tested at the
    espo Wizard: verification screenshot attached along with error page.

    Attached Files

    Comment

    Working...
    X