Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.x] Detect "Temporary failure in name resolution" on DigitalOcean's PostgreSQL #36373

Merged

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants