bin/make-base-vm failing on Fedora #18648

issue soeren-b-c opened this issue on April 15, 2020
  1. soeren-b-c commented at 9:47 AM on April 15, 2020: none

    Hi everyone

    I'm trying to follow this guide about setting Fedora up for gitian building:

    https://github.com/bitcoin-core/docs/blob/master/gitian-building/gitian-building-setup-gitian-fedora.md

    but I keep running into problems with the proxy, and get errors like Unable to connect to 172.17.0.1:3142: when running the bin/make-base-vm command.

    I have reported the issue with gitian here:

    devrandom/gitian-builder#227

    but was thinking perhaps someone here could help with a solution?

    I have tried different versions of Fedora and both installing docker through dnf install and the latest packages from docker.com, but with no luck.

    Any ideas or hints appreciated.

    Cheers

  2. soeren-b-c added the label Bug on Apr 15, 2020
  3. MarcoFalke commented at 11:55 AM on April 15, 2020: member

    Fedora releases a new version every 6 months, so we can't really keep up with updating that guide. Someone should bump it to centos 8 and probably podman, if it is easy.

  4. maektwain commented at 9:15 AM on April 16, 2020: none

    I had this issue while using gitian-build , probably due to some networking issue you cannot connect with it.

    The same inside the docker perhaps, try this with lxc it will work

    # the version of lxc-start in Debian needs to run as root, so make sure
    # that the build script can execute it without providing a password
    echo "%sudo ALL=NOPASSWD: /usr/bin/lxc-start" > /etc/sudoers.d/gitian-lxc
    echo "%sudo ALL=NOPASSWD: /usr/bin/lxc-execute" >> /etc/sudoers.d/gitian-lxc
    # make /etc/rc.local script that sets up bridge between guest and host
    echo '#!/bin/sh -e' > /etc/rc.local
    echo 'brctl addbr br0' >> /etc/rc.local
    echo 'ip addr add 10.0.3.1/24 broadcast 10.0.3.255 dev br0' >> /etc/rc.local
    echo 'ip link set br0 up' >> /etc/rc.local
    echo 'firewall-cmd --zone=trusted --add-interface=br0' >> /etc/rc.local
    echo 'exit 0' >> /etc/rc.local
    chmod +x /etc/rc.local
    # make sure that USE_LXC is always set when logging in as gitianuser,
    # and configure LXC IP addresses
    
    
  5. decryp2kanon commented at 2:35 AM on September 23, 2020: contributor

    same here on fedora 29

    log:

    $ bin/make-base-vm --docker --arch amd64 --suite bionic
    Sending build context to Docker daemon 2.048 kB
    Step 1/8 : FROM ubuntu:bionic
    Trying to pull repository docker.io/library/ubuntu ... 
    sha256:2f1aaf987e9f4806f076a08b1263f2b81376a54f811bb971434c483bd78eb858: Pulling from docker.io/library/ubuntu
    Digest: sha256:2f1aaf987e9f4806f076a08b1263f2b81376a54f811bb971434c483bd78eb858
    Status: Image is up to date for docker.io/ubuntu:bionic
     ---> c14bccfdea1c
    Step 2/8 : ENV DEBIAN_FRONTEND noninteractive
     ---> Using cache
     ---> 492973c61598
    Step 3/8 : RUN echo 'Acquire::http { Proxy "http://172.17.0.1:3142"; };' > /etc/apt/apt.conf.d/50cacher
     ---> Using cache
     ---> 0f884af5aa12
    Step 4/8 : RUN apt-get update && apt-get --no-install-recommends -y install pciutils build-essential git subversion language-pack-en wget lsb-release linux-image-generic grub-pc openssh-server
     ---> Running in 9b50d195deb4
    Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
      Could not connect to 172.17.0.1:3142 (172.17.0.1). - connect (113: No route to host)
    Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
      Could not connect to 172.17.0.1:3142 (172.17.0.1). - connect (113: No route to host)
    Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
      Unable to connect to 172.17.0.1:3142:
    Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
      Unable to connect to 172.17.0.1:3142:
    Reading package lists...
    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Could not connect to 172.17.0.1:3142 (172.17.0.1). - connect (113: No route to host)
    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  Unable to connect to 172.17.0.1:3142:
    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  Unable to connect to 172.17.0.1:3142:
    W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease  Could not connect to 172.17.0.1:3142 (172.17.0.1). - connect (113: No route to host)
    W: Some index files failed to download. They have been ignored, or old ones used instead.
    Reading package lists...
    Building dependency tree...
    Reading state information...
    E: Unable to locate package pciutils
    E: Unable to locate package build-essential
    E: Unable to locate package git
    E: Unable to locate package subversion
    E: Unable to locate package language-pack-en
    E: Unable to locate package wget
    E: Unable to locate package lsb-release
    E: Unable to locate package linux-image-generic
    E: Unable to locate package grub-pc
    E: Unable to locate package openssh-server
    The command '/bin/sh -c apt-get update && apt-get --no-install-recommends -y install pciutils build-essential git subversion language-pack-en wget lsb-release linux-image-generic grub-pc openssh-server' returned a non-zero code: 100
    
  6. decryp2kanon commented at 4:00 AM on September 24, 2020: contributor
  7. fanquake commented at 3:55 PM on August 13, 2022: member

    We no-longer use gitian, so closing this. Looks like there is some discussion in the upstream issue: https://github.com/devrandom/gitian-builder/issues/227.

  8. fanquake closed this on Aug 13, 2022

  9. bitcoin locked this on Aug 13, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-03 15:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me