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.
18 Replies
Project ID:
5a24ad58-38fd-44b0-ac79-47f2f1093c71
project ID 5a24ad58-38fd-44b0-ac79-47f2f1093c71
rails?
yes
nixpacks or dockerfile?
dockerfile
alpine based?
but it's not on deploy, it's while already running.
checking..
i think it's not alpine based:
still, i believe alpine issue is on fresh-deploy connections, right?
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?
only dockerfile on this project, only
FROM
on the dockerfile.
is that what you mean?check the internal domain listed in the database service settings, is the the correct domain your logs are printing?
yes,
mysql-ambe.railway.internal
. it's correctis the rails mysql client capable of doing a AAAA lookup by default? since these domains are ipv6 only
connection works most of the time. this error pops randomly
try the alpine workaround anyway, rails might be doing something funky here https://docs.railway.app/guides/private-networking#workaround-for-alpine-based-images
i'll try that. thanks.
you mean adding
ENABLE_ALPINE_PRIVATE_NETWORKING=true
?yeah
Ok. Thx a lot