Error "Unknown MySQL server host"

I'm getting this error every so often. No redeploy or restart were done when this errors happened. The problem seems to resolve on it's own without redeploy or restart needed (thats good) but it sometimes endures for a couple of minutes resulting in downtime to end users.
No description
18 Replies
Percy
Percy10mo ago
Project ID: 5a24ad58-38fd-44b0-ac79-47f2f1093c71
dwaynemac
dwaynemacOP10mo ago
project ID 5a24ad58-38fd-44b0-ac79-47f2f1093c71
Brody
Brody10mo ago
rails?
dwaynemac
dwaynemacOP10mo ago
yes
Brody
Brody10mo ago
nixpacks or dockerfile?
dwaynemac
dwaynemacOP10mo ago
dockerfile
Brody
Brody10mo ago
alpine based?
dwaynemac
dwaynemacOP10mo ago
but it's not on deploy, it's while already running. checking.. i think it's not alpine based:
FROM ruby:2.7.8-buster
FROM ruby:2.7.8-buster
still, i believe alpine issue is on fresh-deploy connections, right?
Brody
Brody10mo ago
no, it would effect dns lookups at any point during runtime but that is indeed not alpine based, are you sure thats the only image in use though?
dwaynemac
dwaynemacOP10mo ago
only dockerfile on this project, only FROM on the dockerfile. is that what you mean?
Brody
Brody10mo ago
check the internal domain listed in the database service settings, is the the correct domain your logs are printing?
dwaynemac
dwaynemacOP10mo ago
yes, mysql-ambe.railway.internal. it's correct
Brody
Brody10mo ago
is the rails mysql client capable of doing a AAAA lookup by default? since these domains are ipv6 only
dwaynemac
dwaynemacOP10mo ago
connection works most of the time. this error pops randomly
Brody
Brody10mo ago
try the alpine workaround anyway, rails might be doing something funky here https://docs.railway.app/guides/private-networking#workaround-for-alpine-based-images
dwaynemac
dwaynemacOP10mo ago
i'll try that. thanks. you mean adding ENABLE_ALPINE_PRIVATE_NETWORKING=true ?
Brody
Brody10mo ago
yeah
dwaynemac
dwaynemacOP10mo ago
Ok. Thx a lot
Want results from more Discord servers?
Add your server