Hey,
I think I’m running into the same issue as this person:
I’m also on an M1 Mac, but in CDG
. Tried last week and got the same error repeatedly until I gave up. Thought it was just a fluke. Tried again today with the same result. Tried to destroy the builder so a new one would be created, but same issue.
Here is the full output in case it helps:
$ fly deploy
==> Verifying app config
--> Verified app config
==> Building image
Remote builder fly-builder-shy-forest-113 ready
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
[+] Building 0.3s (0/1)
[+] Building 1.7s (13/28)
=> CACHED [internal] load remote build context 0.0s
=> CACHED copy /context / 0.0s
=> [internal] load metadata for docker.io/library/debian:bullseye-20210902-slim 0.6s
=> [internal] load metadata for docker.io/hexpm/elixir:1.13.4-erlang-24.1.7-debian-bullseye-20210902-slim 0.7s
=> [builder 1/18] FROM docker.io/hexpm/elixir:1.13.4-erlang-24.1.7-debian-bullseye-20210902-slim@sha256:38a5bc18ada41443c1f1cb 0.0s
=> [stage-1 1/6] FROM docker.io/library/debian:bullseye-20210902-slim@sha256:e3ed4be20c22a1358020358331d177aa2860632f25b21681d7 0.0s
=> CACHED [stage-1 2/6] RUN apt-get update -y && apt-get install -y libstdc++6 openssl libncurses5 locales && apt-get clean & 0.0s
=> CACHED [stage-1 3/6] RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen 0.0s
=> CACHED [stage-1 4/6] WORKDIR /app 0.0s
=> CACHED [stage-1 5/6] RUN chown nobody /app 0.0s
=> CACHED [builder 2/18] RUN apt-get update -y && apt-get install -y build-essential git nodejs npm && apt-get clean && rm 0.0s
=> CACHED [builder 3/18] WORKDIR /app 0.0s
=> ERROR [builder 4/18] RUN mix local.hex --force && mix local.rebar --force 1.0s
------
> [builder 4/18] RUN mix local.hex --force && mix local.rebar --force:
#13 0.974 ** (Mix) httpc request failed with: {:failed_connect, [{:to_address, {'repo.hex.pm', 443}}, {:inet, [:inet], :closed}]}
#13 0.974
#13 0.974 Could not install Hex because Mix could not download metadata at https://repo.hex.pm/installs/hex-1.x.csv.
#13 0.974
#13 0.974 Alternatively, you can compile and install Hex directly with this command:
#13 0.974
#13 0.974 mix archive.install github hexpm/hex branch latest
#13 0.974
------
Error failed to fetch an image or build from source: error building: executor failed running [/bin/sh -c mix local.hex --force && mix local.rebar --force]: exit code: 1
edit:
I tried to do the remote build in another region, but it doesn’t work and I’m not even sure it’s supposed to:
$ fly destroy <builder>
$ fly deploy --remote-only --region <another>
$ fly regions list <new-builder>
Region Pool:
cdg
Backup Region: