Skip to content

Deploy Fails: Error: failed to fetch an image "/assets": not found #132

Closed

Description

@nelsonic

Full error:

Error: failed to fetch an image or build from source: error building: failed to solve: 
failed to compute cache key: failed to calculate checksum of ref 
x17kv54jew4owbbo40pchi6pl::vs02snrutnagn1o49zsy6qpbf: "/assets": not found

https://github.com/dwyl/auth_plug_example/actions/runs/30203556645/job/89797684205#step:4:148

Should be a straightforward fix, just remove the following lines:

COPY assets assets
# NOTE: If using TailwindCSS, it uses a special "purge" step and that requires
# the code in `lib` to see what is being used. Uncomment that here before
# running the npm deploy script if that's the case.
# COPY lib lib
# build assets
# RUN npm run --prefix ./assets deploy
RUN mix assets.deploy

Activity

  1. self-assigned this
    on Jul 26, 2026
  2. added theissue type on Jul 26, 2026
  3. nelsonic commented on Jul 26, 2026

    @nelsonic
    MemberAuthor

    Mad the updates in PR: #133
    Attempted fly deploy on localhost but got the following error:

    Error: failed to update machine 9080e526b9d258: Unrecoverable error: timeout reached waiting for health checks to pass for machine 9080e526b9d258: failed to get VM 9080e526b9d258: Get "https://api.machines.dev/v1/apps/auth-plug/machines/9080e526b9d258": net/http: request canceled
  4. added a commit that references this issue on Jul 26, 2026
  5. nelsonic commented on Jul 26, 2026

    @nelsonic
    MemberAuthor

    Not yet resolved ...
    https://github.com/dwyl/auth_plug_example/actions/runs/30208849252/job/89811649264

    ✖ Unrecoverable error: timeout reached waiting for health checks to pass for machine 9080e526b9d258: 
    failed to get VM 9080e526b9d258: Get "https://api.machines.dev/v1/apps/auth-plug/machines/9080e526b9d258": 
    net/http: request canceled
    > Clearing lease for 9080e526b9d258
    ✔ Cleared lease for 9080e526b9d258
    Error: failed to update machine 9080e526b9d258: Unrecoverable error: timeout reached waiting for health checks 
    to pass for machine 9080e526b9d258: failed to get VM 9080e526b9d258: 
    Get "https://api.machines.dev/v1/apps/auth-plug/machines/9080e526b9d258": net/http: request canceled

    This feels like a Fly.io issue ... 🤷‍♂️

  6. nelsonic commented on Jul 26, 2026

    @nelsonic
    MemberAuthor
    WARNING The app is not listening on the expected address and will not be reachable by fly-proxy.
    You can fix this by configuring your app to listen on the following addresses:
      - 0.0.0.0:4000
    Found these processes inside the machine with open listening sockets:
     PROCESS                           │ ADDRESSES
    ───────────────────────────────────┼──────────────────────────────────────
     /.fly/hallpass                    │ [fdaa:0:e0fe:a7b:13d:acbc:74c0:2]:22
     /app/erts-16.0.1/bin/epmd -daemon │ 0.0.0.0:4369, [::]:4369
  7. nelsonic commented on Jul 26, 2026

    @nelsonic
    MemberAuthor
  8. nelsonic commented on Jul 26, 2026

    @nelsonic
    MemberAuthor

    Reading: https://fly.io/docs/getting-started/troubleshooting/

    ran:

    fly config validate
    Validating ~/auth_plug_example/fly.toml
    ✓ Configuration is valid
  9. added a commit that references this issue on Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions