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

Nixpacks Bug Report - Failed to solve process - Ruby install #1134

Open
1 task done
nerijunior opened this issue Jul 12, 2024 · 0 comments
Open
1 task done

Nixpacks Bug Report - Failed to solve process - Ruby install #1134

nerijunior opened this issue Jul 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nerijunior
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

During nixpacks build there are some 404 references to NixOS/nixpkgs:

 > [ 4/21] RUN nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d:
0.375 warning: error: unable to download 'https://github.com/NixOS/nixpkgs/archive/5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.tar.gz': Couldn'
t resolve host name (6); retrying in 349 ms
0.724 warning: error: unable to download 'https://github.com/NixOS/nixpkgs/archive/5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.tar.gz': Couldn'
t resolve host name (6); retrying in 537 ms
1.262 warning: error: unable to download 'https://github.com/NixOS/nixpkgs/archive/5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.tar.gz': Couldn't resolve host name (6); retrying in 1012 ms
2.274 warning: error: unable to download 'https://github.com/NixOS/nixpkgs/archive/5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.tar.gz': Couldn't resolve host name (6); retrying in 2247 ms
4.523 error:
4.523        … while calling the 'import' builtin
4.523          at /app/.nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix:3:12:
4.523             2|
4.523             3| let pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.tar.gz") { overlays = [  ]; };
4.523              |            ^
4.523             4| in with pkgs;
4.523
4.523        … while realising the context of a path
4.523
4.523        … while calling the 'fetchTarball' builtin
4.523          at /app/.nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix:3:20:
4.523             2|
4.523             3| let pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.tar.gz") { overlays = [  ]; };
4.523              |                    ^
4.523             4| in with pkgs;
4.523
4.523        error: unable to download 'https://github.com/NixOS/nixpkgs/archive/5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.tar.gz': Couldn't resolve host name (6)
------
Dockerfile:8
--------------------
   6 |
   7 |     COPY .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix
   8 | >>> RUN nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d
   9 |     COPY .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix
  10 |     RUN nix-env -if .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix && nix-collect-garbage -d
--------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d" did not complete successfully: exit code: 1
Error: Docker build failed

To reproduce

Use the standard rails Dockerfile and try to build it using nixpacks

Expected behavior

Pass all the installation and see image built.

Environment

Arch linux x86
nixpacks 1.21.2

@nerijunior nerijunior added the bug Something isn't working label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant