Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated GitHub Workflow fails for new Phoenx app: "/rel": not found #103

Open
jc00ke opened this issue Nov 15, 2024 · 0 comments
Open

Comments

@jc00ke
Copy link

jc00ke commented Nov 15, 2024

Hi there. Here's the fly-deploy.yml that was generated by fly launch:

# See https://fly.io/docs/app-guides/continuous-deployment-with-github-actions/

name: Fly Deploy
on:
  push:
    branches:
      - main
jobs:
  deploy:
    name: Deploy app
    runs-on: ubuntu-latest
    concurrency: deploy-group    # optional: ensure only one action runs at a time
    steps:
      - uses: actions/checkout@v4
      - uses: superfly/flyctl-actions/setup-flyctl@master
      - run: flyctl deploy --remote-only
        env:
          FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

Nothing out of the ordinary. When I run flyctl deploy --remote-only or fly deploy locally the build goes through fine. But when I run from an action, I get the following output for the run flyctl deploy --remote-only step:

Details
2024-11-15T02:56:23.3675338Z ##[group]Run flyctl deploy --remote-only
2024-11-15T02:56:23.3676073Z �[36;1mflyctl deploy --remote-only�[0m
2024-11-15T02:56:23.3769078Z shell: /usr/bin/bash -e {0}
2024-11-15T02:56:23.3769531Z env:
2024-11-15T02:56:23.3773772Z   FLY_API_TOKEN: ***
2024-11-15T02:56:23.3774256Z ##[endgroup]
2024-11-15T02:56:23.8867836Z ==> Verifying app config
2024-11-15T02:56:23.8869148Z Validating /home/runner/work/cookesauction.com/cookesauction.com/fly.toml
2024-11-15T02:56:23.8870498Z --> Verified app config
2024-11-15T02:56:23.8871812Z �[32m✓�[0m Configuration is valid
2024-11-15T02:56:24.0193461Z ==> Building image
2024-11-15T02:56:24.0921498Z Waiting for depot builder...
2024-11-15T02:56:24.0922298Z 
2024-11-15T02:56:31.5106536Z ==> Building image with Depot
2024-11-15T02:56:31.5108070Z --> build:  (​)
2024-11-15T02:56:31.8054245Z #1 [internal] load build definition from Dockerfile
2024-11-15T02:56:31.8055048Z #1 transferring dockerfile: 2.77kB 0.2s done
2024-11-15T02:56:31.9604156Z #1 DONE 0.2s
2024-11-15T02:56:31.9604716Z 
2024-11-15T02:56:31.9605500Z #2 [internal] load metadata for docker.io/hexpm/elixir:1.17.2-erlang-27.0-debian-bullseye-20240701-slim
2024-11-15T02:56:32.5726002Z #2 ...
2024-11-15T02:56:32.5726579Z 
2024-11-15T02:56:32.5727445Z #3 [internal] load metadata for docker.io/library/debian:bullseye-20240701-slim
2024-11-15T02:56:32.5728281Z #3 DONE 0.8s
2024-11-15T02:56:32.8061051Z 
2024-11-15T02:56:32.8062568Z #2 [internal] load metadata for docker.io/hexpm/elixir:1.17.2-erlang-27.0-debian-bullseye-20240701-slim
2024-11-15T02:56:32.8063650Z #2 DONE 0.8s
2024-11-15T02:56:32.8063835Z 
2024-11-15T02:56:32.8063982Z #4 [internal] load .dockerignore
2024-11-15T02:56:32.8064580Z #4 transferring context: 1.31kB 0.2s
2024-11-15T02:56:32.9078194Z #4 transferring context: 1.31kB 0.2s done
2024-11-15T02:56:32.9079555Z #4 DONE 0.2s
2024-11-15T02:56:32.9079930Z 
2024-11-15T02:56:32.9082050Z #5 [builder  1/17] FROM docker.io/hexpm/elixir:1.17.2-erlang-27.0-debian-bullseye-20240701-slim@sha256:18e7ebff0ed739082c996cecb348d41409c1f02c1e0f5ca55d57357156ee3193
2024-11-15T02:56:32.9085203Z #5 resolve docker.io/hexpm/elixir:1.17.2-erlang-27.0-debian-bullseye-20240701-slim@sha256:18e7ebff0ed739082c996cecb348d41409c1f02c1e0f5ca55d57357156ee3193 done
2024-11-15T02:56:32.9086668Z #5 DONE 0.0s
2024-11-15T02:56:32.9086885Z 
2024-11-15T02:56:32.9087831Z #6 [stage-1 1/6] FROM docker.io/library/debian:bullseye-20240701-slim@sha256:34b63f55a4b193ad03c5ddb4b3f8546c797763ed708f0df5309ecb9507d15179
2024-11-15T02:56:32.9089252Z #6 resolve docker.io/library/debian:bullseye-20240701-slim@sha256:34b63f55a4b193ad03c5ddb4b3f8546c797763ed708f0df5309ecb9507d15179 done
2024-11-15T02:56:32.9090183Z #6 DONE 0.0s
2024-11-15T02:56:32.9090350Z 
2024-11-15T02:56:32.9090486Z #7 [internal] load build context
2024-11-15T02:56:33.4631922Z #7 transferring context: 436.50kB 0.6s done
2024-11-15T02:56:33.5461377Z #7 DONE 0.6s
2024-11-15T02:56:33.5465795Z 
2024-11-15T02:56:33.5466238Z #8 [builder 10/17] COPY priv priv
2024-11-15T02:56:33.5467172Z #8 CACHED
2024-11-15T02:56:33.5467711Z 
2024-11-15T02:56:33.5468493Z #9 [builder  8/17] COPY config/config.exs config/prod.exs config/
2024-11-15T02:56:33.5469382Z #9 CACHED
2024-11-15T02:56:33.5469708Z 
2024-11-15T02:56:33.5470550Z #10 [builder  4/17] RUN mix local.hex --force &&     mix local.rebar --force
2024-11-15T02:56:33.5471636Z #10 CACHED
2024-11-15T02:56:33.5471888Z 
2024-11-15T02:56:33.5472211Z #11 [builder 13/17] RUN mix assets.deploy
2024-11-15T02:56:33.5473173Z #11 CACHED
2024-11-15T02:56:33.5473524Z 
2024-11-15T02:56:33.5473852Z #12 [builder 15/17] COPY config/runtime.exs config/
2024-11-15T02:56:33.5474621Z #12 CACHED
2024-11-15T02:56:33.5474812Z 
2024-11-15T02:56:33.5475379Z #13 [builder  6/17] RUN mix deps.get --only prod
2024-11-15T02:56:33.5476089Z #13 CACHED
2024-11-15T02:56:33.5476424Z 
2024-11-15T02:56:33.5476639Z #14 [builder 14/17] RUN mix compile
2024-11-15T02:56:33.5477387Z #14 CACHED
2024-11-15T02:56:33.5477643Z 
2024-11-15T02:56:33.5478766Z #15 [builder  2/17] RUN apt-get update -y && apt-get install -y build-essential git     && apt-get clean && rm -f /var/lib/apt/lists/*_*
2024-11-15T02:56:33.5481212Z #15 CACHED
2024-11-15T02:56:33.5481482Z 
2024-11-15T02:56:33.5481699Z #16 [builder 11/17] COPY lib lib
2024-11-15T02:56:33.5482326Z #16 CACHED
2024-11-15T02:56:33.5482569Z 
2024-11-15T02:56:33.5482921Z #17 [builder  7/17] RUN mkdir config
2024-11-15T02:56:33.5483541Z #17 CACHED
2024-11-15T02:56:33.5483802Z 
2024-11-15T02:56:33.5484036Z #18 [builder  9/17] RUN mix deps.compile
2024-11-15T02:56:33.5484767Z #18 CACHED
2024-11-15T02:56:33.5485052Z 
2024-11-15T02:56:33.5485301Z #19 [builder  5/17] COPY mix.exs mix.lock ./
2024-11-15T02:56:33.5486025Z #19 CACHED
2024-11-15T02:56:33.5486345Z 
2024-11-15T02:56:33.5486569Z #20 [builder 12/17] COPY assets assets
2024-11-15T02:56:33.5487223Z #20 CACHED
2024-11-15T02:56:33.5487514Z 
2024-11-15T02:56:33.5487720Z #21 [builder  3/17] WORKDIR /app
2024-11-15T02:56:33.5488381Z #21 CACHED
2024-11-15T02:56:33.5488625Z 
2024-11-15T02:56:33.5488861Z #22 [builder 16/17] COPY rel rel
2024-11-15T02:56:33.5501773Z #22 ERROR: failed to calculate checksum of ref w5muc8oft7k7zb21b2fe1dsbq::tf2xh8ugk9t6x9gcrros8g1x1: "/rel": not found
2024-11-15T02:56:33.5502615Z ------
2024-11-15T02:56:33.5502985Z  > [builder 16/17] COPY rel rel:
2024-11-15T02:56:33.5503469Z ------
2024-11-15T02:56:33.6791831Z ==> Building image
2024-11-15T02:56:33.7265520Z Waiting for depot builder...
2024-11-15T02:56:33.7266108Z 
2024-11-15T02:56:34.2593672Z ==> Building image with Depot
2024-11-15T02:56:34.2595207Z --> build:  (​)
2024-11-15T02:56:34.3315286Z #1 [internal] load build definition from Dockerfile
2024-11-15T02:56:34.3316052Z #1 transferring dockerfile:
2024-11-15T02:56:34.7017906Z #1 transferring dockerfile: 2.77kB 0.2s done
2024-11-15T02:56:34.7018751Z #1 DONE 0.2s
2024-11-15T02:56:34.7018985Z 
2024-11-15T02:56:34.7020030Z #2 [internal] load metadata for docker.io/hexpm/elixir:1.17.2-erlang-27.0-debian-bullseye-20240701-slim
2024-11-15T02:56:34.7537229Z #2 DONE 0.2s
2024-11-15T02:56:34.7537703Z 
2024-11-15T02:56:34.7539045Z #3 [internal] load metadata for docker.io/library/debian:bullseye-20240701-slim
2024-11-15T02:56:34.9844245Z #3 DONE 0.2s
2024-11-15T02:56:34.9844751Z 
2024-11-15T02:56:34.9845045Z #4 [internal] load .dockerignore
2024-11-15T02:56:34.9845753Z #4 transferring context: 1.31kB 0.2s done
2024-11-15T02:56:35.1687452Z #4 DONE 0.2s
2024-11-15T02:56:35.1687947Z 
2024-11-15T02:56:35.1690466Z #5 [builder  1/17] FROM docker.io/hexpm/elixir:1.17.2-erlang-27.0-debian-bullseye-20240701-slim@sha256:18e7ebff0ed739082c996cecb348d41409c1f02c1e0f5ca55d57357156ee3193
2024-11-15T02:56:35.1693485Z #5 resolve docker.io/hexpm/elixir:1.17.2-erlang-27.0-debian-bullseye-20240701-slim@sha256:18e7ebff0ed739082c996cecb348d41409c1f02c1e0f5ca55d57357156ee3193 done
2024-11-15T02:56:35.1694896Z #5 DONE 0.0s
2024-11-15T02:56:35.1695317Z 
2024-11-15T02:56:35.1696338Z #6 [stage-1 1/6] FROM docker.io/library/debian:bullseye-20240701-slim@sha256:34b63f55a4b193ad03c5ddb4b3f8546c797763ed708f0df5309ecb9507d15179
2024-11-15T02:56:35.1698679Z #6 resolve docker.io/library/debian:bullseye-20240701-slim@sha256:34b63f55a4b193ad03c5ddb4b3f8546c797763ed708f0df5309ecb9507d15179 done
2024-11-15T02:56:35.1699870Z #6 DONE 0.0s
2024-11-15T02:56:35.1700152Z 
2024-11-15T02:56:35.1700294Z #7 [internal] load build context
2024-11-15T02:56:35.1700721Z #7 transferring context: 4.33kB 0.2s done
2024-11-15T02:56:35.2699785Z #7 ...
2024-11-15T02:56:35.2700421Z 
2024-11-15T02:56:35.2702085Z #8 [builder  2/17] RUN apt-get update -y && apt-get install -y build-essential git     && apt-get clean && rm -f /var/lib/apt/lists/*_*
2024-11-15T02:56:35.2703940Z #8 CACHED
2024-11-15T02:56:35.2704413Z 
2024-11-15T02:56:35.2704648Z #9 [builder  3/17] WORKDIR /app
2024-11-15T02:56:35.2705326Z #9 CACHED
2024-11-15T02:56:35.2705659Z 
2024-11-15T02:56:35.2707267Z #10 [builder  4/17] RUN mix local.hex --force &&     mix local.rebar --force
2024-11-15T02:56:35.2708475Z #10 CACHED
2024-11-15T02:56:35.2708878Z 
2024-11-15T02:56:35.2709658Z #11 [builder 15/17] COPY config/runtime.exs config/
2024-11-15T02:56:35.2710644Z #11 CACHED
2024-11-15T02:56:35.2710809Z 
2024-11-15T02:56:35.2713933Z #12 [builder 12/17] COPY assets assets
2024-11-15T02:56:35.2714778Z #12 CACHED
2024-11-15T02:56:35.2715056Z 
2024-11-15T02:56:35.2715344Z #13 [builder 14/17] RUN mix compile
2024-11-15T02:56:35.2715915Z #13 CACHED
2024-11-15T02:56:35.2716313Z 
2024-11-15T02:56:35.2716581Z #14 [builder  8/17] COPY config/config.exs config/prod.exs config/
2024-11-15T02:56:35.2717111Z #14 CACHED
2024-11-15T02:56:35.2717272Z 
2024-11-15T02:56:35.2717462Z #15 [builder 13/17] RUN mix assets.deploy
2024-11-15T02:56:35.2717916Z #15 CACHED
2024-11-15T02:56:35.2718127Z 
2024-11-15T02:56:35.2718262Z #16 [builder 11/17] COPY lib lib
2024-11-15T02:56:35.2718631Z #16 CACHED
2024-11-15T02:56:35.2718845Z 
2024-11-15T02:56:35.2719276Z #17 [builder  6/17] RUN mix deps.get --only prod
2024-11-15T02:56:35.2719798Z #17 CACHED
2024-11-15T02:56:35.2719950Z 
2024-11-15T02:56:35.2720108Z #18 [builder  9/17] RUN mix deps.compile
2024-11-15T02:56:35.2720626Z #18 CACHED
2024-11-15T02:56:35.2720776Z 
2024-11-15T02:56:35.2720949Z #19 [builder  7/17] RUN mkdir config
2024-11-15T02:56:35.2721425Z #19 CACHED
2024-11-15T02:56:35.2721578Z 
2024-11-15T02:56:35.2721716Z #20 [builder 10/17] COPY priv priv
2024-11-15T02:56:35.2722093Z #20 CACHED
2024-11-15T02:56:35.2722242Z 
2024-11-15T02:56:35.2722487Z #21 [builder 16/17] COPY rel rel
2024-11-15T02:56:35.2723229Z #21 ERROR: failed to calculate checksum of ref w5muc8oft7k7zb21b2fe1dsbq::0qg3yum2i1z8x5giro43ylct1: "/rel": not found
2024-11-15T02:56:35.2723808Z 
2024-11-15T02:56:35.2723966Z #22 [builder  5/17] COPY mix.exs mix.lock ./
2024-11-15T02:56:35.2724485Z #22 CANCELED
2024-11-15T02:56:35.2724679Z 
2024-11-15T02:56:35.2724813Z #7 [internal] load build context
2024-11-15T02:56:35.2725213Z ------
2024-11-15T02:56:35.2725562Z  > [builder 16/17] COPY rel rel:
2024-11-15T02:56:35.2725946Z ------
2024-11-15T02:56:35.3982770Z 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 w5muc8oft7k7zb21b2fe1dsbq::0qg3yum2i1z8x5giro43ylct1: "/rel": not found
2024-11-15T02:56:35.4021675Z ##[error]Process completed with exit code 1.

Let me know if there's something I can/should change to debug. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant