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

buildx: ERROR: http: invalid Host header #5586

Closed
1 task done
Kreyren opened this issue Aug 13, 2023 · 2 comments
Closed
1 task done

buildx: ERROR: http: invalid Host header #5586

Kreyren opened this issue Aug 13, 2023 · 2 comments

Comments

@Kreyren
Copy link
Contributor

Kreyren commented Aug 13, 2023

What happened?

Building current (24ee25e) main brainch causes fatal failure and thus inability to build:

[🌱] Building [ Dockerfile via 'buildx build --progress=plain --load' ]
[🔨] ERROR: http: invalid Host header

How to reproduce?

Invoke ./compile

Branch

main (main development branch)

On which host OS are you observing this problem?

  • NixOS 23.05 (Stoat) 🦦
dreamon $ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.4.7-xanmod1, NixOS, 23.05 (Stoat), 23.05.2613.011567f35433`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"nixos-23.05, nixos-unstable"`
 - channels(raptor): `"home-manager-23.05.tar.gz, nixpkgs-23.05, nixpkgs-unstable"`
 - nixpkgs: `/home/raptor/.nix-defexpr/channels/nixpkgs`

Relevants & Additional Informations

Relevant issues:

The issue is also present on commit 10c832e which worked before

Relevant log URL

https://paste.next.armbian.com/foxuxipuki

Code of Conduct

  • I agree to follow this project's Code of Conduct
@github-actions
Copy link
Contributor

Jira ticket: AR-1822

@Kreyren
Copy link
Contributor Author

Kreyren commented Aug 14, 2023

The issue happens when docker is built with go 1.20.{6,7} dependency as tracked in moby/moby#45935

Solution on NixOS is to:

# configuration.nix
virtualisation.docker.enable = false;
virtualisation.podman.enable = true;
virtualisation.podman.dockerCompat = true;

As current Nix doesn't ship the fixed docker, this solution has been observed to cause issues when working with armbian so alternative solution is to use older docker which has to be taken from nixos-unstable as stable deprecated the package already

# configuration.nix
{ ... }:
let
  unstable = import <nixos-unstable> { config = config.nixpkgs.config; };
in
{
  ...
  virtualisation.docker.enable = true;
  virtualisation.docker.package = unstable.pkgs.docker_24;
  ...
}

^ nixos-unstable has to be added in your root channels with # nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable for that to work (don't forget to # nix-channel --update)

@Kreyren Kreyren closed this as completed Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants