ecamp3
ecamp3 copied to clipboard
Domain of DB Cannot be resolved for short time in production
{"message":"Uncaught PHP Exception Doctrine\\DBAL\\Exception\\ConnectionException: \"An exception occurred in the driver: SQLSTATE[08006] [7] could not translate host name \"db-postgresql<censored>\" to address: Try again\" at /srv/api/vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php line 77","context":{"exception":{"class":"Doctrine\\DBAL\\Exception\\ConnectionException","message":"An exception occurred in the driver: SQLSTATE[08006] [7] could not translate host name \"db-postgresql-<sensored>\" to address: Try again","code":7,"file":"/srv/api/vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php:77","previous":{"class":"Doctrine\\DBAL\\Driver\\PDO\\Exception","message":"SQLSTATE[08006] [7] could not translate host name \"db-postgresql-<sensored>\" to address: Try again","code":7,"file":"/srv/api/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28","previous":{"class":"PDOException","message":"SQLSTATE[08006] [7] could not translate host name \"db-postgresql-<sensored>\" to address: Try again","code":7,"file":"/srv/api/vendor/doctrine/dbal/src/Driver/PDO/PgSQL/Driver.php:34"}}}},"level":500,"level_name":"CRITICAL","channel":"request","datetime":"2023-08-26T21:21:57.604065+00:00","extra":{}}
This happened 30 times between 26/Aug/2023:15:47:03 and 27/Aug/2023:08:04:03
But in this time there were also: 17074 successfull requests of which 5325 where not /ping requests and 2233 PATCH Requests (So used the DB).
So most of the time it works
This happened again on 05/Dec/2023:10:28:16 +0000 "GET /index.php" 500 until 05/Dec/2023:10:28:59 +0000 "GET /index.php" 500