Error: failed to fetch an image or build from source: error rendering push status stream: unauthorized: not allowed

Hi there,

I’m having trouble redeploying my app. I’ve been doing the usual fly deploy but this time round its not working. Checked fly apps list too and app is still there.

App name: addressbookapp-holy-violet-9908

Full logs below

DEBUG ensured config directory exists.
DEBUG ensured config directory perms.
DEBUG cache loaded.
DEBUG config initialized.
DEBUG skipped querying for new release
DEBUG client initialized.
DEBUG app config loaded from /Users/z/Developer/Projects/NODE/addressbook/backend/fly.toml
DEBUG --> POST https://api.fly.io/graphql

DEBUG {
  "query": "query ($appName: String!) { appbasic:app(name: $appName) { id name platformVersion organization { id slug rawSlug paidPlan } } }",
  "variables": {
    "appName": "addressbookapp-holy-violet-9908"
  }
}


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

DEBUG {
  "data": {
    "appbasic": {
      "id": "addressbookapp-holy-violet-9908",
      "name": "addressbookapp-holy-violet-9908",
      "platformVersion": "machines",
      "organization": {
        "id": "896mQD3oYX6ANTBln3aOD7GN5OcNZpq6D",
        "slug": "personal",
        "rawSlug": "pytest514-gmail-com",
        "paidPlan": false
      }
    }
  }
}

==> Verifying app config
DEBUG Starting task manager
Validating /Users/z/Developer/Projects/NODE/addressbook/backend/fly.toml
Platform: machines
✓ Configuration is valid
--> Verified app config
DEBUG --> POST https://api.fly.io/graphql

DEBUG {
  "query": "query ($appName: String!) { appcompact:app(name: $appName) { id name hostname deployed status appUrl platformVersion organization { id slug paidPlan } postgresAppRole: role { name } imageDetails { repository version } } }",
  "variables": {
    "appName": "addressbookapp-holy-violet-9908"
  }
}


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

DEBUG {
  "data": {
    "appcompact": {
      "id": "addressbookapp-holy-violet-9908",
      "name": "addressbookapp-holy-violet-9908",
      "hostname": "addressbookapp-holy-violet-9908.fly.dev",
      "deployed": true,
      "status": "suspended",
      "appUrl": "https://2a09:8280:1::1c:c220",
      "platformVersion": "machines",
      "organization": {
        "id": "896mQD3oYX6ANTBln3aOD7GN5OcNZpq6D",
        "slug": "personal",
        "paidPlan": false
      },
      "postgresAppRole": null,
      "imageDetails": {
        "repository": "unknown",
        "version": "unknown"
      }
    }
  }
}

WARN PASSWORD may be a potentially sensitive environment variable. Consider setting it as a secret, and removing it from the [env] section: https://fly.io/docs/reference/secrets/

==> Building image
DEBUG trying remote docker daemon
DEBUG --> POST https://api.fly.io/graphql

DEBUG {
  "query": "mutation($input: EnsureMachineRemoteBuilderInput!) { ensureMachineRemoteBuilder(input: $input) { machine { id state ips { nodes { family kind ip } } }, app { name organization { id slug } } } }",
  "variables": {
    "input": {
      "appName": "addressbookapp-holy-violet-9908",
      "organizationId": null
    }
  }
}


DEBUG {}
DEBUG <-- 504 https://api.fly.io/graphql (1m0.26s)

DEBUG <html><body><h1>504 Gateway Time-out</h1>
The server didn't respond in time.
</body></html>

WARN Failed to start remote builder heartbeat: server returned a non-200 status code: 504

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

DEBUG {
  "query": "\nmutation ResolverCreateBuild ($input: CreateBuildInput!) {\n\tcreateBuild(input: $input) {\n\t\tid\n\t\tstatus\n\t}\n}\n",
  "variables": {
    "input": {
      "appName": "addressbookapp-holy-violet-9908",
      "builderType": "remote",
      "clientMutationId": "",
      "imageOpts": {
        "buildArgs": {},
        "buildPacks": null,
        "builder": "",
        "builtIn": "",
        "builtInSettings": null,
        "dockerfilePath": "",
        "extraBuildArgs": null,
        "imageLabel": "",
        "imageRef": "",
        "noCache": false,
        "publish": true,
        "tag": "registry.fly.io/addressbookapp-holy-violet-9908:deployment-01HHQ65C1RMZACB3FYB6V4F5WY",
        "target": ""
      },
      "machineId": "",
      "strategiesAvailable": [
        "Buildpacks",
        "Dockerfile",
        "Builtin"
      ]
    }
  },
  "operationName": "ResolverCreateBuild"
}

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

DEBUG {
  "data": {
    "createBuild": {
      "id": "4737675",
      "status": "started"
    }
  }
}

DEBUG Trying 'Buildpacks' strategy

DEBUG no buildpack builder configured, skipping
DEBUG result image:<nil> error:<nil>

DEBUG Trying 'Dockerfile' strategy

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

DEBUG {
  "query": "mutation($input: EnsureMachineRemoteBuilderInput!) { ensureMachineRemoteBuilder(input: $input) { machine { id state ips { nodes { family kind ip } } }, app { name organization { id slug } } } }",
  "variables": {
    "input": {
      "appName": "addressbookapp-holy-violet-9908",
      "organizationId": null
    }
  }
}


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

DEBUG {
  "data": {
    "ensureMachineRemoteBuilder": {
      "machine": {
        "id": "9080e6e7b26d48",
        "state": "started",
        "ips": {
          "nodes": [
            {
              "family": "v6",
              "kind": "public",
              "ip": "2605:4c40:158:e968:0:4d49:7ccb:1"
            },
            {
              "family": "v4",
              "kind": "private",
              "ip": "172.19.152.234"
            },
            {
              "family": "v6",
              "kind": "privatenet",
              "ip": "fdaa:3:4ac3:a7b:102:4d49:7ccb:2"
            }
          ]
        }
      },
      "app": {
        "name": "fly-builder-dry-thunder-7303",
        "organization": {
          "id": "896mQD3oYX6ANTBln3aOD7GN5OcNZpq6D",
          "slug": "personal"
        }
      }
    }
  }
}

DEBUG checking ip &{Family:v6 Kind:public IP:2605:4c40:158:e968:0:4d49:7ccb:1 MaskSize:0}

DEBUG checking ip &{Family:v4 Kind:private IP:172.19.152.234 MaskSize:0}

DEBUG checking ip &{Family:v6 Kind:privatenet IP:fdaa:3:4ac3:a7b:102:4d49:7ccb:2 MaskSize:0}

Waiting for remote builder fly-builder-dry-thunder-7303... 🌍DEBUG --> POST https://api.fly.io/graphql

DEBUG {
  "query": "query ($appName: String!) { appbasic:app(name: $appName) { id name platformVersion organization { id slug rawSlug paidPlan } } }",
  "variables": {
    "appName": "addressbookapp-holy-violet-9908"
  }
}


DEBUG {}
Waiting for remote builder fly-builder-dry-thunder-7303... 🌎DEBUG <-- 200 https://api.fly.io/graphql (309.77ms)

DEBUG {
  "data": {
    "appbasic": {
      "id": "addressbookapp-holy-violet-9908",
      "name": "addressbookapp-holy-violet-9908",
      "platformVersion": "machines",
      "organization": {
        "id": "896mQD3oYX6ANTBln3aOD7GN5OcNZpq6D",
        "slug": "personal",
        "rawSlug": "pytest514-gmail-com",
        "paidPlan": false
      }
    }
  }
}

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

DEBUG {
  "query": "mutation($input: ValidateWireGuardPeersInput!) { validateWireGuardPeers(input: $input) { invalidPeerIps } }",
  "variables": {
    "input": {
      "peerIps": [
        "fdaa:3:4ac3:a7b:93d7:0:a:2"
      ]
    }
  }
}


DEBUG {}
Waiting for remote builder fly-builder-dry-thunder-7303... 🌏DEBUG <-- 200 https://api.fly.io/graphql (385.5ms)

DEBUG {
  "data": {
    "validateWireGuardPeers": {
      "invalidPeerIps": []
    }
  }
}

Waiting for remote builder fly-builder-dry-thunder-7303... 🌏DEBUG Remote builder available, but pinging again in 50ms to be sure

DEBUG Remote builder available, but pinging again in 50ms to be sure

DEBUG Remote builder available, but pinging again in 50ms to be sure

Waiting for remote builder fly-builder-dry-thunder-7303... 🌍DEBUG Remote builder available, but pinging again in 50ms to be sure

DEBUG Remote builder available, but pinging again in 50ms to be sure

DEBUG Remote builder available, but pinging again in 50ms to be sure

DEBUG Remote builder available, but pinging again in 50ms to be sure

Waiting for remote builder fly-builder-dry-thunder-7303... 🌎DEBUG Remote builder available, but pinging again in 50ms to be sure

DEBUG Remote builder available, but pinging again in 50ms to be sure

DEBUG Remote builder available, but pinging again in 50ms to be sure

DEBUG Remote builder available, but pinging again in 50ms to be sure

Waiting for remote builder fly-builder-dry-thunder-7303... 🌏DEBUG Remote builder available, but pinging again in 50ms to be sure

DEBUG Remote builder available, but pinging again in 50ms to be sure

DEBUG Remote builder available, but pinging again in 50ms to be sure

DEBUG Remote builder available, but pinging again in 50ms to be sure

Waiting for remote builder fly-builder-dry-thunder-7303... 🌍DEBUG Remote builder available, but pinging again in 50ms to be sure

DEBUG Remote builder is ready to build!
Remote builder fly-builder-dry-thunder-7303 ready
DEBUG buildkitEnabled true
DEBUG fetching docker server info
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
[+] Building 1.8s (17/17) FINISHED                                                                                                                      
 => [internal] load build definition from Dockerfile                                                                                               0.0s
 => => transferring dockerfile: 69B                                                                                                                0.0s
 => [internal] load .dockerignore                                                                                                                  0.0s
 => => transferring context: 71B                                                                                                                   0.0s
 => [internal] load metadata for docker.io/library/debian:bullseye-slim                                                                            1.6s
 => [internal] load metadata for docker.io/library/debian:bullseye                                                                                 1.6s
 => [stage-1 1/5] FROM docker.io/library/debian:bullseye-slim@sha256:5aab272aa24713622bfac9dba239bc7488d9979b0d82d19a9dffccd99292154d              0.0s
 => [builder 1/6] FROM docker.io/library/debian:bullseye@sha256:ab2b95aa8d7d6d54866b92c322cf0693933c1ae8038652f24ddfda1d1763a45a                   0.0s
 => [internal] load build context                                                                                                                  0.0s
 => => transferring context: 5.06kB                                                                                                                0.0s
 => CACHED [builder 2/6] RUN apt-get update; apt install -y curl python-is-python3 pkg-config build-essential &&     curl -sL https://github.com/  0.0s
 => CACHED [builder 3/6] RUN mkdir /app                                                                                                            0.0s
 => CACHED [builder 4/6] WORKDIR /app                                                                                                              0.0s
 => CACHED [builder 5/6] COPY . .                                                                                                                  0.0s
 => CACHED [builder 6/6] RUN npm install                                                                                                           0.0s
 => CACHED [stage-1 2/5] COPY --from=builder /usr/local/node /usr/local/node                                                                       0.0s
 => CACHED [stage-1 3/5] COPY --from=builder /app /app                                                                                             0.0s
 => CACHED [stage-1 4/5] COPY release.sh /release.sh                                                                                               0.0s
 => CACHED [stage-1 5/5] WORKDIR /app                                                                                                              0.0s
 => exporting to image                                                                                                                             0.0s
 => => exporting layers                                                                                                                            0.0s
 => => writing image sha256:f491fad402183e382d745017f86cc8e7a5fb8a090ab3c44b46ef8a889f9070ca                                                       0.0s
 => => naming to registry.fly.io/addressbookapp-holy-violet-9908:deployment-01HHQ65C1RMZACB3FYB6V4F5WY                                             0.0s
--> Building image done
==> Pushing image to fly
The push refers to repository [registry.fly.io/addressbookapp-holy-violet-9908]
5f70bf18a086: Preparing 
5db433a55ba5: Preparing 
9d3e2a883d92: Preparing 
05a676f343ef: Preparing 
1b6fd3ad4ce6: Preparing 
DEBUG result image:<nil> error:error rendering push status stream: unauthorized: not allowed

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

DEBUG {
  "query": "\nmutation ResolverFinishBuild ($input: FinishBuildInput!) {\n\tfinishBuild(input: $input) {\n\t\tid\n\t\tstatus\n\t\twallclockTimeMs\n\t}\n}\n",
  "variables": {
    "input": {
      "appName": "addressbookapp-holy-violet-9908",
      "buildId": "4737675",
      "builderMeta": {
        "builderType": "remote",
        "buildkitEnabled": true,
        "dockerVersion": "20.10.12",
        "platform": "linux/x86_64/3.15.0",
        "remoteAppName": "fly-builder-dry-thunder-7303",
        "remoteMachineId": "9080e6e7b26d48"
      },
      "clientMutationId": "",
      "finalImage": {
        "id": "",
        "sizeBytes": 0,
        "tag": ""
      },
      "logs": "error rendering push status stream: unauthorized: not allowed",
      "machineId": "",
      "status": "failed",
      "strategiesAttempted": [
        {
          "error": "",
          "note": "no buildpack builder configured, skipping",
          "result": "failed",
          "strategy": "Buildpacks"
        },
        {
          "error": "error rendering push status stream: unauthorized: not allowed",
          "note": "",
          "result": "failed",
          "strategy": "Dockerfile"
        }
      ],
      "timings": {
        "buildAndPushMs": 267887,
        "buildMs": 5629,
        "builderInitMs": 3727,
        "contextBuildMs": -1,
        "imageBuildMs": 1902,
        "pushMs": 262257
      }
    }
  },
  "operationName": "ResolverFinishBuild"
}

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

DEBUG {
  "data": {
    "finishBuild": {
      "id": "4737675",
      "status": "failed",
      "wallclockTimeMs": 268225
    }
  }
}

DEBUG Task manager done
Error: failed to fetch an image or build from source: error rendering push status stream: unauthorized: not allowed

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.