Skip to content

Conversation

@rihardsgrislis
Copy link

When using managed PostgreSQL instances on DigitalOcean every now and then this pops out. After seeing #35744, #35790 and others decided to fix this. Targeting this to 6.x as @GrahamCampbell requested.

PDOException: SQLSTATE[08006] [7] could not translate host name "private-xxx-do-user-0.a.db.ondigitalocean.com" to address: Temporary failure in name resolution

Side question:
What do you think about adding DetectsLostConnections to Redis? Using managed Redis instance this also sometimes happens in Redis::connect.

RedisException: php_network_getaddresses: getaddrinfo failed: Name or service not known.

… then this pops out. After seeing laravel#35744, laravel#35790 and others decided to fix this. PDOException: SQLSTATE[08006] [7] could not translate host name "private-xxx-do-user-0.a.db.ondigitalocean.com" to address: Temporary failure in name resolution
@rihardsgrislis rihardsgrislis force-pushed the psql-detect-name-resolution-error branch from d05cf3c to 8d754f1 Compare February 24, 2021 11:19
@taylorotwell taylorotwell merged commit 55d10a8 into laravel:6.x Feb 24, 2021
@rihardsgrislis rihardsgrislis deleted the psql-detect-name-resolution-error branch February 24, 2021 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants