Announcement

Collapse
No announcement yet.

After installing php 7.3 i upgraded to version 7.x, bad server response error

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

  • After installing php 7.3 i upgraded to version 7.x, bad server response error

    Hi,
    today I tried to upgrade espocrm and php.
    The original version of espo 6.x.x with php 7.2 works well,
    the problem occurred when upgrading php to version 7.3 and higher (7.4 or 8.0)
    after installing php 7.3 i upgraded espocrm to version 7.x and since then i see bad server response error.
    Log Espo:

    [2021-10-07 19:27:01] ERROR: Uncaught Exception PDOException: "could not find driver" at /var/www/html/espocrm/application/Espo/ORM/EntityManager.php line 272 {"exception":"[object] (PDOException(code: 0): could not find driver at /var/www/html/espocrm/application/Espo/ORM/EntityManager.php:272)"} []
    [2021-10-07 19:44:04] ERROR: (0) could not find driver; GET /Settings; line: 272, file: /var/www/html/espocrm/application/Espo/ORM/EntityManager.php [] []
    [2021-10-07 19:44:04] ERROR: (0) could not find driver; GET /I18n; line: 272, file: /var/www/html/espocrm/application/Espo/ORM/EntityManager.php [] []
    [2021-10-07 19:44:08] ERROR: (0) could not find driver; GET /I18n; line: 272, file: /var/www/html/espocrm/application/Espo/ORM/EntityManager.php [] []
    [2021-10-07 19:44:08] ERROR: (0) could not find driver; GET /Settings; line: 272, file: /var/www/html/espocrm/application/Espo/ORM/EntityManager.php [] []
    [2021-10-07 19:53:02] WARNING: Cron is not run because it's disabled with 'cronDisabled' param. [] []
    [2021-10-07 20:02:41] ERROR: (0) could not find driver; GET /Settings; line: 122, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
    [2021-10-07 20:02:45] ERROR: (0) could not find driver; GET /Settings; line: 122, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
    [2021-10-07 20:02:48] ERROR: (0) could not find driver; GET /Settings; line: 122, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
    [2021-10-07 20:30:55] ERROR: (0) could not find driver; GET /Email; line: 122, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
    [2021-10-07 20:30:55] ERROR: (0) could not find driver; GET /Stream; line: 122, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
    [2021-10-07 20:30:55] ERROR: (0) could not find driver; GET /Activities; line: 122, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
    [2021-10-07 20:30:58] ERROR: (0) could not find driver; GET /EmailFolder/action/listAll; line: 122, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
    [2021-10-07 20:30:58] ERROR: (0) could not find driver; GET /Email; line: 122, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
    [2021-10-07 20:31:01] ERROR: (0) could not find driver; GET /Stream; line: 122, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
    [2021-10-07 20:31:01] ERROR: (0) could not find driver; GET /Email; line: 122, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
    [2021-10-07 20:31:01] ERROR: (0) could not find driver; GET /Activities; line: 122, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []
    [2021-10-07 20:31:51] CRITICAL: Uncaught Exception ParseError: "syntax error, unexpected ')'" at /var/www/html/espocrm/application/Espo/Core/Utils/ClientManager.php line 232 {"exception":"[object] (ParseError(code: 0): syntax error, unexpected ')' at /var/www/html/espocrm/application/Espo/Core/Utils/ClientManager.php:232)"} []
    [2021-10-07 20:31:53] CRITICAL: Uncaught Exception ParseError: "syntax error, unexpected ')'" at /var/www/html/espocrm/application/Espo/Core/Utils/ClientManager.php line 232 {"exception":"[object] (ParseError(code: 0): syntax error, unexpected ')' at /var/www/html/espocrm/application/Espo/Core/Utils/ClientManager.php:232)"} []
    [2021-10-07 20:31:54] CRITICAL: Uncaught Exception ParseError: "syntax error, unexpected ')'" at /var/www/html/espocrm/application/Espo/Core/Utils/ClientManager.php line 232 {"exception":"[object] (ParseError(code: 0): syntax error, unexpected ')' at /var/www/html/espocrm/application/Espo/Core/Utils/ClientManager.php:232)"} []
    [2021-10-07 20:31:55] CRITICAL: Uncaught Exception ParseError: "syntax error, unexpected ')'" at /var/www/html/espocrm/application/Espo/Core/Utils/ClientManager.php line 232 {"exception":"[object] (ParseError(code: 0): syntax error, unexpected ')' at /var/www/html/espocrm/application/Espo/Core/Utils/ClientManager.php:232)"} []
    [2021-10-07 20:36:04] ERROR: (0) could not find driver; GET /Settings; line: 122, file: /var/www/html/espocrm/application/Espo/ORM/PDO/DefaultPDOProvider.php [] []


    Log apache:

    [Thu Oct 07 22:58:38.460967 2021] [mpm_prefork:notice] [pid 17700] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
    [Thu Oct 07 22:58:38.461264 2021] [core:notice] [pid 17700] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Oct 07 23:00:17.374357 2021] [mpm_prefork:notice] [pid 17700] AH00169: caught SIGTERM, shutting down
    [Thu Oct 07 23:00:17.549951 2021] [mpm_prefork:notice] [pid 17806] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
    [Thu Oct 07 23:00:17.550046 2021] [core:notice] [pid 17806] AH00094: Command line: '/usr/sbin/apache2'

    Thx for any suggestion.

  • #2
    Please don't create topics in bug reports section for such cases.

    You still have php 7.2 running under webserver.

    Comment


    • #3
      Sorry. My fault.
      I uninstalled PHP 7.2. The system is running PHP 7.3 and a Bad server response error still occurs

      Comment


      • #4
        What's in the log? When error occurs.

        Comment


        • #5
          I change logging to debug:
          [2021-10-08 18:38:04] DEBUG: BPM: processPendingFlows [] []
          [2021-10-08 18:38:04] DEBUG: BPM: processTriggeredSignals [] []
          [2021-10-08 18:39:05] DEBUG: BPM: processPendingFlows [] []
          [2021-10-08 18:39:05] DEBUG: BPM: processTriggeredSignals [] []
          [2021-10-08 18:41:04] NOTICE: E_USER_DEPRECATED: Accessing related records with Entity::get is deprecated. Use $repository->getRelation(...)->find() {"code":16384,"message":"Accessing related records with Entity::get is deprecated. Use $repository->getRelation(...)->find()","file":"/var/www/html/espocrm/application/Espo/ORM/BaseEntity.php","line":249} []
          [2021-10-08 18:41:08] DEBUG: BPM: processPendingFlows [] []
          [2021-10-08 18:41:08] DEBUG: BPM: processTriggeredSignals [] []
          [2021-10-08 18:42:05] DEBUG: BPM: processPendingFlows [] []
          [2021-10-08 18:42:05] DEBUG: BPM: processTriggeredSignals [] []

          Last log from apache:
          [Fri Oct 08 20:41:05.961419 2021] [proxy:error] [pid 824] (111)Connection refused: AH00957: HTTP: attempt to connect to XXX:XX (XX) failed
          [Fri Oct 08 20:41:05.961472 2021] [proxy_http:error] [pid 824] [client XX] AH01114: HTTP: failed to make connection to backend: XX
          [Fri Oct 08 20:41:06.052694 2021] [proxy:error] [pid 825] (111)Connection refused: AH00957: HTTP: attempt to connect to XX (XX) failed
          [Fri Oct 08 20:41:06.052760 2021] [proxy_http:error] [pid 825] [client XX:XX] AH01114: HTTP: failed to make connection to backend: XX

          Comment


          • #6
            I can't see any error.

            Comment


            • #7
              So the mistake is between the keyboard and the chair.
              After trying the application in another browser - firefox, the error no longer occurred.
              Chrome - Clear cookies and history and the error disappears.

              Thank you for your help )

              Comment


              • #8
                Hello,

                Good day!

                I'm just new here, can anyone help me with this error " BAD SERVER RESPONSE". We change our host provider and content migration is done.

                Thank you in advance.

                Comment


                • Zahradnik
                  Zahradnik commented
                  Editing a comment
                  Send log file from your installation

              • #9
                Where is it located? is it in the cpanel?

                Comment

                Working...
                X