Hello. When I try to deploy my rails app using fly deploy
, I get the following error:
=> ERROR [build 2/9] RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz -C /tmp/ && /tmp/no 5.1s
Here is the full output:
Platform: machines
✓ Configuration is valid
--> Verified app config
==> Building image
Remote builder fly-builder-broken-river-8155 ready
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
[+] Building 38.3s (14/24)
=> [internal] load build definition from Dockerfile 0.2s
=> => transferring dockerfile: 2.62kB 0.2s
=> [internal] load .dockerignore 0.2s
=> => transferring context: 729B 0.2s
=> resolve image config for docker.io/docker/dockerfile:1 0.3s
=> docker-image://docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021 0.7s
=> => resolve docker.io/docker/dockerfile:1@sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021 0.0s
=> => sha256:657fcc512c7369f4cb3d94ea329150f8daf626bc838b1a1e81f1834c73ecc77e 482B / 482B 0.0s
=> => sha256:a17ee7fff8f5e97b974f5b48f51647d2cf28d543f2aa6c11aaa0ea431b44bb89 1.27kB / 1.27kB 0.0s
=> => sha256:9d9c93f4b00be908ab694a4df732570bced3b8a96b7515d70ff93402179ad232 11.80MB / 11.80MB 0.1s
=> => sha256:ac85f380a63b13dfcefa89046420e1781752bab202122f8f50032edf31be0021 8.40kB / 8.40kB 0.0s
=> => extracting sha256:9d9c93f4b00be908ab694a4df732570bced3b8a96b7515d70ff93402179ad232 0.2s
=> [internal] load build definition from Dockerfile 0.0s
=> [internal] load metadata for docker.io/library/ruby:3.1.2-slim 0.3s
=> [internal] load .dockerignore 0.0s
=> [base 1/3] FROM docker.io/library/ruby:3.1.2-slim@sha256:5d413e301f37cbe63a54dadded2f347496165c1de0dbe342d1f0f0d47e25b2be 2.8s
=> => resolve docker.io/library/ruby:3.1.2-slim@sha256:5d413e301f37cbe63a54dadded2f347496165c1de0dbe342d1f0f0d47e25b2be 0.0s
=> => sha256:a33c88723d85278ff48e0b3843798d2ce8045253b0cab9a570cd86f3186b7314 5.80kB / 5.80kB 0.0s
=> => sha256:a603fa5e3b4127f210503aaa6189abf6286ee5a73deeaab460f8f33ebc6b64e2 31.41MB / 31.41MB 0.4s
=> => sha256:824cc1987b4c3d3fdb89192cea3fd492e595844522888b2bdfb7bc0e15d9c38f 10.02MB / 10.02MB 0.3s
=> => sha256:36e7129cddea3dc930d634f547f58a869e692c5ea4b3183760620cfc8ec67fb7 199B / 199B 0.0s
=> => sha256:e6ebe3be8da43ad18f7bb4ed7711959328c6c9bc23c874d0f827fe9afc3b5e24 32.44MB / 32.44MB 0.5s
=> => sha256:cea2535835d7dbc570141035d49ce6acfad3726f456824892ea3fb88fc120278 175B / 175B 0.0s
=> => sha256:5d413e301f37cbe63a54dadded2f347496165c1de0dbe342d1f0f0d47e25b2be 1.86kB / 1.86kB 0.0s
=> => sha256:8b6313f29ba49706f49162f71b810515ad0ac08ba020a7ad61e03fc9697023b6 1.37kB / 1.37kB 0.0s
=> => extracting sha256:a603fa5e3b4127f210503aaa6189abf6286ee5a73deeaab460f8f33ebc6b64e2 1.0s
=> => extracting sha256:824cc1987b4c3d3fdb89192cea3fd492e595844522888b2bdfb7bc0e15d9c38f 0.5s
=> => extracting sha256:36e7129cddea3dc930d634f547f58a869e692c5ea4b3183760620cfc8ec67fb7 0.0s
=> => extracting sha256:e6ebe3be8da43ad18f7bb4ed7711959328c6c9bc23c874d0f827fe9afc3b5e24 0.6s
=> => extracting sha256:cea2535835d7dbc570141035d49ce6acfad3726f456824892ea3fb88fc120278 0.0s
=> [internal] load build context 1.4s
=> => transferring context: 595.13kB 1.4s
=> [base 2/3] WORKDIR /rails 0.2s
=> [base 3/3] RUN gem update --system --no-document && gem install -N bundler 8.3s
=> [stage-2 1/4] RUN apt-get update -qq && apt-get install --no-install-recommends -y curl postgresql-client && rm -r 5.9s
=> [build 1/9] RUN apt-get update -qq && apt-get install --no-install-recommends -y build-essential curl libpq-dev node- 20.2s
=> ERROR [build 2/9] RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz -C /tmp/ && /tmp/no 5.1s
------
> [build 2/9] RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz -C /tmp/ && /tmp/node-build-master/bin/node-build "18.17.0" /usr/local/node && corepack enable && corepack prepare yarn@latest --activate && rm -rf /tmp/node-build-master:
#0 0.921 Downloading node-v18.17.0-linux-x64.tar.gz...
#0 0.921 -> https://nodejs.org/dist/v18.17.0/node-v18.17.0-linux-x64.tar.gz
#0 3.368 Installing node-v18.17.0-linux-x64...
#0 3.985 Installed node-v18.17.0-linux-x64 to /usr/local/node
#0 3.985
#0 4.958 Usage Error: Tag not found (latest)
#0 4.958
#0 4.958 $ corepack prepare [--activate] [--all] [--json] [-o,--output] ...
------
Error: failed to fetch an image or build from source: error building: failed to solve: executor failed running [/bin/sh -c curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz -C /tmp/ && /tmp/node-build-master/bin/node-build "${NODE_VERSION}" /usr/local/node && corepack enable && corepack prepare yarn@$YARN_VERSION --activate && rm -rf /tmp/node-build-master]: exit code: 1
I found a similar question that was resolved by installing node locally, but I already have node installed on my machine. What can I do about this? Thanks in advance.