Apps in Org Can't Make New Releases

I’m currently unable to make any releases for any apps within an org. I’m seeing the error below, which after searching and finding a recent thread, suggested recreating the app and remote builder. This unfortunately didn’t work, and now an app that was previously running is now an app awaiting it’s first deploy.

This is the error:

--> Pushing image done
image: registry.fly.io/<my app name>:deployment-1658519247
image size: 24 MB
==> Creating release
Error Post "https://api.fly.io/graphql": unexpected EOF

I’ve tried different regions, making new apps, personal and in an org, using different code bases, nothing works, my account seems to be non-functional.

Also, I can create new apps, and they show in my dashboard, but as soon as I try the first deploy, they are no longer on the dashboard, but the CLI lists them.

Luckily this is only for hobby stuff, fly.io has amazing potential, but this shows me that it’s not production ready.

Are you still seeing EOF errors? Where are you located?

Just tried, yep, same error, I even updated the CLI before attempting it. I’m trying this in the Seattle region, and I’m using a remote builder.

What FLY_REGION do you get here? https://debug.fly.dev/

Seattle

Are you using any VPN software? The EOF suggests a network issue between your machine and the Fly API.

I’m using the fly CLI in an Ubuntu WSL2 instance on Windows, no VPN. It was deploying fine last week, nothing in my network configuration has changed. Other actions like creating apps and deleting them work, it’s only creating app releases that doesn’t work.

Can you run with LOG_LEVEL=debug?

==> Creating release
DEBUG --> POST https://api.fly.io/graphql

{
  "query": "mutation($input: DeployImageInput!) { deployImage(input: $input) { release { id version reason description deploymentStrategy user { id email name } evaluationId createdAt } releaseCommand { id command evaluationId } } }",
  "variables": {
    "input": {
      "appId": "<my-app-id>",
      "image": "registry.fly.io/<my-app-id>:deployment-1658767118",
      "services": null,
      "definition": {
        "env": {},
        "experimental": {
          "allowed_public_ports": [],
          "auto_rollback": true
        },
        "kill_signal": "SIGTERM",
        "kill_timeout": 5,
        "mounts": [
          {
            "destination": "/data",
            "source": "emqx_data"
          }
        ],
        "processes": [],
        "services": [
          {
            "concurrency": {
              "hard_limit": 25,
              "soft_limit": 20,
              "type": "connections"
            },
            "http_checks": [],
            "internal_port": 1883,
            "ports": [
              {
                "port": 1883
              }
            ],
            "processes": [
              "app"
            ],
            "protocol": "tcp",
            "script_checks": [],
            "tcp_checks": [
              {
                "grace_period": "1s",
                "interval": "5s",
                "restart_limit": 0,
                "timeout": "2s"
              }
            ]
          },
          {
            "concurrency": {
              "hard_limit": 25,
              "soft_limit": 20,
              "type": "connections"
            },
            "http_checks": [],
            "internal_port": 1883,
            "ports": [
              {
                "handlers": [
                  "tls"
                ],
                "port": 8883
              }
            ],
            "processes": [
              "app"
            ],
            "protocol": "tcp",
            "script_checks": [],
            "tcp_checks": [
              {
                "grace_period": "1s",
                "interval": "5s",
                "restart_limit": 0,
                "timeout": "2s"
              }
            ]
          },
          {
            "concurrency": {
              "hard_limit": 25,
              "soft_limit": 20,
              "type": "connections"
            },
            "http_checks": [],
            "internal_port": 8083,
            "ports": [
              {
                "handlers": [
                  "tls",
                  "http"
                ],
                "port": 8084
              }
            ],
            "processes": [
              "app"
            ],
            "protocol": "tcp",
            "script_checks": [],
            "tcp_checks": [
              {
                "grace_period": "1s",
                "interval": "5s",
                "restart_limit": 0,
                "timeout": "2s"
              }
            ]
          }
        ]
      },
      "strategy": null
    }
  }
}

DEBUG {}
Error Post "https://api.fly.io/graphql": unexpected EOF

I figured it out, I had two services sections with the same internal port each exposing a port, instead I configured a single service to expose 2 ports with different handlers, that fixed the issue. Not sure why my other deploy of a new phoenix app went wrong on Friday, but I’ll try that shortly.

Great! That should have reported an error instead of issuing an EOF.