Currently on v8.1.3. Tried updating to latest version using docker compose pull && docker compose up -d.
After pulling latest images, I get error 500 trying to access espocrm.
Restoring from nightly backup gets me back up and running.
Here is the log from the docker container.
And here is the log from espocrm from /data/logs
And finally my docker compose:
I checked the release notes on GitHub and saw no mention of breaking changes in the releases.
I also saw the note in the docs about switching to MySQL8.4 and followed those steps as well and same issue.
I opened a GitHub issue but was directed here for support on docker. Any help would be appreciated.
After pulling latest images, I get error 500 trying to access espocrm.
Restoring from nightly backup gets me back up and running.
Here is the log from the docker container.
Code:
Run "upgrade" action. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. Start upgrading process from version 8.1.3. The MAX_UPGRADE_COUNT exceded. The upgrading process has been stopped. AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.X.X.X. Set the 'ServerName' directive globally to suppress this message AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.X.X.X. Set the 'ServerName' directive globally to suppress this message [Sun Jun 09 15:47:02.841370 2024] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.59 (Debian) configured -- resuming normal operations [Sun Jun 09 15:47:02.841550 2024] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
Code:
[2024-06-09 15:47:07] ERROR: Uncaught Exception PDOException: "SQLSTATE[HY000] [2006] MySQL server has gone away" at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php line 73 {"exception":"[object] (PDOException(code: 2006): SQLSTATE[HY000] [2006] MySQL server has gone away at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)\n[previous exception] [object] (PDOException(code: 0): PDO::__construct(): Error while reading greeting packet. PID=16 at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)"} [2024-06-09 15:47:17] ERROR: Uncaught Exception PDOException: "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known" at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php line 73 {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)\n[previous exception] [object] (PDOException(code: 0): PDO::__construct(): php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)"} [2024-06-09 15:47:27] ERROR: Uncaught Exception PDOException: "SQLSTATE[HY000] [2006] MySQL server has gone away" at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php line 73 {"exception":"[object] (PDOException(code: 2006): SQLSTATE[HY000] [2006] MySQL server has gone away at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)\n[previous exception] [object] (PDOException(code: 0): PDO::__construct(): Error while reading greeting packet. PID=18 at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)"} [2024-06-09 15:47:37] ERROR: Uncaught Exception PDOException: "SQLSTATE[HY000] [2002] Connection refused" at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php line 73 {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)"} [2024-06-09 15:47:47] ERROR: Uncaught Exception PDOException: "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known" at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php line 73 {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)\n[previous exception] [object] (PDOException(code: 0): PDO::__construct(): php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)"} [2024-06-09 15:47:57] ERROR: Uncaught Exception PDOException: "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known" at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php line 73 {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)\n[previous exception] [object] (PDOException(code: 0): PDO::__construct(): php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)"} [2024-06-09 15:48:07] ERROR: Uncaught Exception PDOException: "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known" at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php line 73 {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)\n[previous exception] [object] (PDOException(code: 0): PDO::__construct(): php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)"} [2024-06-09 15:48:17] ERROR: Uncaught Exception PDOException: "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known" at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php line 73 {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)\n[previous exception] [object] (PDOException(code: 0): PDO::__construct(): php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)"} [2024-06-09 15:48:27] ERROR: Uncaught Exception PDOException: "SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known" at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php line 73 {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)\n[previous exception] [object] (PDOException(code: 0): PDO::__construct(): php_network_getaddresses: getaddrinfo for mysql failed: Name or service not known at /var/www/html/application/Espo/ORM/PDO/MysqlPDOFactory.php:73)"}
Code:
services: mysql: image: mysql:8 container_name: mysql command: --default-authentication-plugin=mysql_native_password environment: MYSQL_ROOT_PASSWORD: secretpassword MYSQL_DATABASE: databasename MYSQL_USER: secretuser MYSQL_PASSWORD: secretpassword volumes: - mysql:/var/lib/mysql restart: always espocrm: image: espocrm/espocrm:latest container_name: espocrm environment: ESPOCRM_DATABASE_PLATFORM: Mysql ESPOCRM_DATABASE_HOST: mysql ESPOCRM_DATABASE_USER: secretusername ESPOCRM_DATABASE_PASSWORD: secretpassword ESPOCRM_ADMIN_USERNAME: secretusername ESPOCRM_ADMIN_PASSWORD: secretpassword ESPOCRM_SITE_URL: "https://fqdn.com" volumes: - /root/espo/:/var/www/html restart: always ports: - 8080:80 espocrm-daemon: image: espocrm/espocrm container_name: espocrm-daemon volumes: - /root/espo/:/var/www/html restart: always entrypoint: docker-daemon.sh espocrm-websocket: image: espocrm/espocrm container_name: espocrm-websocket environment: ESPOCRM_CONFIG_USE_WEB_SOCKET: "true" ESPOCRM_CONFIG_WEB_SOCKET_URL: "ws://localhost:8081" ESPOCRM_CONFIG_WEB_SOCKET_ZERO_M_Q_SUBSCRIBER_DSN: "tcp://*:7777" ESPOCRM_CONFIG_WEB_SOCKET_ZERO_M_Q_SUBMISSION_DSN: "tcp://espocrm-websocket:7777" volumes: - /root/espo/:/var/www/html restart: always entrypoint: docker-websocket.sh ports: - 8081:8080 volumes: mysql: espocrm:
I also saw the note in the docs about switching to MySQL8.4 and followed those steps as well and same issue.
I opened a GitHub issue but was directed here for support on docker. Any help would be appreciated.
Comment