[2022-10-22] flyctl: Post "https://api.fly.io/graphql": dial tcp ... connect: no route to host

I am seeing a very high error rate with almost all invocations of flyctl including:

  • fly doctor
  • fly list apps
  • fly postgres connect
  • fly secrets list
  • fly ssh console
  • fly status
  • fly volumes list

These commands fail intermittently with variations of:

Post "https://api.fly.io/graphql": dial tcp [2a09:8280:1:f28:246e:d6a:949:dbbf]:443: connect: no route to host

Sometimes the requests do go through, though.

Does anybody know what’s going on? Fly.io Status does not indicate a problem right now.

I had this issue constantly to the point that fly.io was unusable.

I switched to my iPhone tethered connection and everything just worked?

Checked my router settings and ipv6 wasn’t enabled. Once I did this it all just … worked.

Not sure if this is your issue but worked for me, hope it helps

Hi serban are you still experiencing these issues?

If so, could you provide the logs from running the failing command with LOG_LEVEL=debug?

Hey, there. Yes, I am still seeing the problem.

Interestingly enough, in the course of debugging this right now I noticed that if I run fly list apps back-to-back, the first invocation succeeds and the second one fails. I don’t see anything interesting in the debug output when it fails (some fields redacted):

~ $ LOG_LEVEL=debug fly list apps
━━━━━━  2022-10-27 08:44:45  ━━━━━━
DEBUG Loaded flyctl config from/Users/serban/.fly/config.yml
DEBUG determined hostname: "…"
DEBUG determined working directory: "/Users/serban"
DEBUG determined user home directory: "/Users/serban"
DEBUG determined config directory: "/Users/serban/.fly"
DEBUG ensured config directory exists.
DEBUG ensured config directory perms.
DEBUG cache loaded.
DEBUG config initialized.
DEBUG initialized task manager.
DEBUG skipped querying for new release
Update available 0.0.420 -> v0.0.422.
Run "fly version update" to upgrade.
DEBUG client initialized.
DEBUG Working Directory: /Users/serban
DEBUG App Config File:
DEBUG --> POST https://api.fly.io/graphql

{
  "query": "query($role: String) { apps(type: \"container\", first: 400, role: $role) { nodes { id name deployed hostname platformVersion organization { slug } currentRelease { createdAt status } status } } }",
  "variables": null
}

DEBUG {}
DEBUG <-- 200 https://api.fly.io/graphql (174.26ms)

{
  "data": {
    "apps": {
      "nodes": [
        …
      ]
    }
  }
}
  NAME                            | STATUS    | ORG      | DEPLOYED
----------------------------------*-----------*----------*-------------
  …                               | …         | …        | …
~ $ LOG_LEVEL=debug fly list apps
━━━━━━  2022-10-27 08:44:46  ━━━━━━
DEBUG Loaded flyctl config from/Users/serban/.fly/config.yml
DEBUG determined hostname: "…"
DEBUG determined working directory: "/Users/serban"
DEBUG determined user home directory: "/Users/serban"
DEBUG determined config directory: "/Users/serban/.fly"
DEBUG ensured config directory exists.
DEBUG ensured config directory perms.
DEBUG cache loaded.
DEBUG config initialized.
DEBUG initialized task manager.
DEBUG skipped querying for new release
Update available 0.0.420 -> v0.0.422.
Run "fly version update" to upgrade.
DEBUG client initialized.
DEBUG Working Directory: /Users/serban
DEBUG App Config File:
DEBUG --> POST https://api.fly.io/graphql

{
  "query": "query($role: String) { apps(type: \"container\", first: 400, role: $role) { nodes { id name deployed hostname platformVersion organization { slug } currentRelease { createdAt status } status } } }",
  "variables": null
}

DEBUG {}
Error Post "https://api.fly.io/graphql": dial tcp [2a09:8280:1:f28:246e:d6a:949:dbbf]:443: connect: no route to host


━━━━━━  2022-10-27 08:44:46  ━━━━━━  ‹1›