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
Percy9mo ago
Project ID: 5a24ad58-38fd-44b0-ac79-47f2f1093c71
dwaynemac
dwaynemac9mo ago
project ID 5a24ad58-38fd-44b0-ac79-47f2f1093c71
Brody
Brody9mo ago
rails?
dwaynemac
dwaynemac9mo ago
yes
Brody
Brody9mo ago
nixpacks or dockerfile?
dwaynemac
dwaynemac9mo ago
dockerfile
Brody
Brody9mo ago
alpine based?
dwaynemac
dwaynemac9mo 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
Brody9mo 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
dwaynemac9mo ago
only dockerfile on this project, only FROM on the dockerfile. is that what you mean?
Brody
Brody9mo ago
check the internal domain listed in the database service settings, is the the correct domain your logs are printing?
dwaynemac
dwaynemac9mo ago
yes, mysql-ambe.railway.internal. it's correct
Brody
Brody9mo ago
is the rails mysql client capable of doing a AAAA lookup by default? since these domains are ipv6 only
dwaynemac
dwaynemac9mo ago
connection works most of the time. this error pops randomly
Brody
Brody9mo 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
dwaynemac9mo ago
i'll try that. thanks. you mean adding ENABLE_ALPINE_PRIVATE_NETWORKING=true ?
Brody
Brody9mo ago
yeah
dwaynemac
dwaynemac9mo ago
Ok. Thx a lot
Want results from more Discord servers?
Add your server