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›