Unable to Connect to MySQL Instance on Fly.io: default addr for network '[..].internal' unknown

Hi there,

I’m currently having trouble connecting to a MySQL instance I’ve set up on Fly.io as per the official guide.

Despite setting the DB_HOST secret to the internal app address as follows:

fly secrets set DB_HOST=appname-mysql.internal

I’m experiencing a connection failure with the following error message:

Server running on: http://localhost:80802023/07/03 09:50:20 default addr for network 'appname-mysql.internal' unknown
   INFO Main child exited normally with code: 1
   INFO Starting clean up.
   WARN hallpass exited, pid: 232, status: signal: 15 (SIGTERM)
  2023/07/03 09:50:21 listening on [fdaa:2:6ef6:a7b:23c5:e198:677d:2]:22 (DNS: [fdaa::3]:53)
  [    2.108241] reboot: Restarting system
  machine did not have a restart policy, defaulting to restart
Error: smoke checks for 9185e05f479798 failed: the app appears to be crashing

Based on Fly.io’s internal networking documentation, my understanding was that each machine should be reachable using the appname.internal format.

Can someone provide assistance with this issue?

Thanks in advance!

Maybe related? go - Beego ORM MySQL: default addr for network '...' unknown - Stack Overflow

1 Like

Indeed! This was new to me. Thank you very much!!