aura icon indicating copy to clipboard operation
aura copied to clipboard

Build failure in chroot leaves chroot in a non-working state

Open RubenKelevra opened this issue 1 year ago • 4 comments

I'm using Aura 4.0.2.

I tried to update 3 packages which I listed in the config of Aura as to be build inside a chroot.

The first package build terminated, because there were download-errors.

So I confirmed it should try to build the next one. Then it seems the chroot is broken or somehow left in a blocked state:

aura :: Continue building other packages? [Y/n] y
aura :: Building reshade-shaders-git...
==> Updating pacman database cache
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 multilib downloading...
==> Building reshade-shaders-git
  ->   repo: extra
  ->   arch: x86_64
  -> worker: ruben-2
==> Building reshade-shaders-git for [extra] (x86_64)
==> ERROR: '/var/lib/archbuild/extra-x86_64/root' does not appear to be an Arch chroot.
==> ERROR: Aborting...
aura :: Package failed to build, citing:

  Building within an isolated chroot failed.

Full log:

$ aura -Ayu
aura :: Fetching package information...
aura :: Comparing package versions...
aura :: AUR packages to upgrade:
 pip2pkgbuild        :: 0.5.0-1       -> 0.5.0-2
 reshade-shaders-git :: r79.87a9e51-1 -> r80.eed46c2-1
 tor-browser-bin     :: 13.5-1        -> 13.5.2-1
aura :: Determining dependencies...
aura :: Repository dependencies:
 python-build
 python-installer
 python-pyproject-hooks
aura :: AUR packages:
 pip2pkgbuild
 reshade-shaders-git
 tor-browser-bin
aura :: Proceed? [Y/n] y
aura :: Saved package state.
resolving dependencies...
looking for conflicting packages...

Package (3)                   New Version  Net Change

extra/python-build            1.2.1-3        0.19 MiB
extra/python-installer        0.7.0-8        0.18 MiB
extra/python-pyproject-hooks  1.1.0-1        0.10 MiB

Total Installed Size:  0.47 MiB

:: Proceed with installation? [Y/n] 
(3/3) checking keys in keyring                                                                                                                [---------------------------------------------------------------------------------------] 100%
(3/3) checking package integrity                                                                                                              [---------------------------------------------------------------------------------------] 100%
(3/3) loading package files                                                                                                                   [---------------------------------------------------------------------------------------] 100%
(3/3) checking for file conflicts                                                                                                             [---------------------------------------------------------------------------------------] 100%
:: Processing package changes...
(1/3) installing python-pyproject-hooks                                                                                                       [---------------------------------------------------------------------------------------] 100%
(2/3) installing python-build                                                                                                                 [---------------------------------------------------------------------------------------] 100%
Optional dependencies for python-build
    python-pip: to use as the Python package installer (default) [installed]
    python-uv: to use as the Python package installer
    python-virtualenv: to use virtualenv for build isolation [installed]
(3/3) installing python-installer                                                                                                             [---------------------------------------------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
aura :: Preparing build directories...
aura :: Building tor-browser-bin...
==> Updating pacman database cache
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 multilib downloading...
==> Building tor-browser-bin
==> WARNING: invalid architecture, not building for: i686
  ->   repo: extra
  ->   arch: x86_64
  -> worker: ruben-2
==> Building tor-browser-bin for [extra] (x86_64)
==> Creating chroot for [extra] (x86_64)...
==> Creating install root at /var/lib/archbuild/extra-x86_64/root
==> Installing packages to /var/lib/archbuild/extra-x86_64/root
:: Synchronizing package databases...
 core downloading...
 extra downloading...
resolving dependencies...
looking for conflicting packages...

Package (116)                 New Version                Net Change  Download Size

core/acl                      2.3.2-1                      0.32 MiB       0.13 MiB
core/archlinux-keyring        20240709-1                   1.67 MiB       1.17 MiB
core/attr                     2.5.2-1                      0.21 MiB       0.07 MiB
core/audit                    4.0.1-3                      1.02 MiB       0.38 MiB
core/autoconf                 2.72-1                       2.22 MiB               
core/automake                 1.17-1                       1.62 MiB               
core/bash                     5.2.032-1                    9.19 MiB       1.81 MiB
core/binutils                 2.43+r4+g7999dae6961-1      41.28 MiB       7.65 MiB
core/bison                    3.8.2-6                      2.54 MiB       0.75 MiB
core/brotli                   1.1.0-2                      0.97 MiB       0.38 MiB
core/bzip2                    1.0.8-6                      0.14 MiB       0.06 MiB
core/ca-certificates          20240618-1                   0.00 MiB               
core/ca-certificates-mozilla  3.103-1                      1.01 MiB       0.37 MiB
core/ca-certificates-utils    20240618-1                   0.01 MiB               
core/coreutils                9.5-1                       15.47 MiB       2.70 MiB
core/curl                     8.9.1-2                      1.87 MiB               
core/db5.3                    5.3.28-5                     6.45 MiB       1.18 MiB
core/debugedit                5.0-6                        0.10 MiB               
core/diffutils                3.10-1                       1.48 MiB       0.34 MiB
core/e2fsprogs                1.47.1-4                     5.20 MiB       1.23 MiB
core/fakeroot                 1.35-1                       0.14 MiB       0.07 MiB
core/file                     5.45-1                       8.33 MiB       0.39 MiB
core/filesystem               2024.04.07-1                 0.02 MiB               
core/findutils                4.10.0-1                     1.71 MiB       0.46 MiB
core/flex                     2.6.4-5                      0.93 MiB       0.30 MiB
core/gawk                     5.3.0-1                      3.32 MiB       1.29 MiB
core/gc                       8.2.6-1                      0.75 MiB       0.23 MiB
core/gcc                      14.2.1+r32+geccf707e5ce-1  202.28 MiB      51.20 MiB
core/gcc-libs                 14.2.1+r32+geccf707e5ce-1  143.44 MiB      35.04 MiB
core/gdbm                     1.24-1                       0.70 MiB       0.24 MiB
core/gettext                  0.22.5-1                     7.68 MiB       2.14 MiB
core/glib2                    2.80.4-1                    36.67 MiB       4.85 MiB
core/glibc                    2.40+r16+gaa533d58ff-2      47.64 MiB       9.88 MiB
core/gmp                      6.3.0-2                      1.01 MiB       0.43 MiB
core/gnupg                    2.4.5-4                      9.69 MiB       2.69 MiB
core/gnutls                   3.8.6-1                      5.51 MiB       2.74 MiB
core/gpgme                    1.23.2-6                     1.45 MiB       0.47 MiB
core/grep                     3.11-1                       0.87 MiB       0.23 MiB
core/groff                    1.23.0-6                     8.83 MiB       2.26 MiB
core/guile                    3.0.10-1                    54.73 MiB       8.31 MiB
core/gzip                     1.13-4                       0.15 MiB       0.08 MiB
core/iana-etc                 20240612-1                   3.98 MiB               
core/icu                      75.1-1                      40.62 MiB      11.23 MiB
core/jansson                  2.14-4                       0.18 MiB       0.05 MiB
core/json-c                   0.17-2                       0.18 MiB       0.06 MiB
core/keyutils                 1.6.3-3                      0.20 MiB       0.10 MiB
core/krb5                     1.21.3-1                     4.53 MiB       1.28 MiB
core/libarchive               3.7.4-1                      1.17 MiB       0.53 MiB
core/libassuan                3.0.0-1                      0.23 MiB       0.11 MiB
core/libcap                   2.70-1                       1.72 MiB       0.68 MiB
core/libcap-ng                0.8.5-2                      0.12 MiB       0.04 MiB
core/libelf                   0.191-4                      2.93 MiB       0.55 MiB
core/libevent                 2.1.12-4                     1.12 MiB       0.26 MiB
core/libffi                   3.4.6-1                      0.09 MiB       0.04 MiB
core/libgcrypt                1.11.0-2                     1.83 MiB       0.68 MiB
core/libgpg-error             1.50-1                       1.07 MiB       0.26 MiB
core/libidn2                  2.3.7-1                      0.46 MiB       0.14 MiB
core/libisl                   0.26-2                       5.72 MiB       0.86 MiB
core/libksba                  1.6.7-1                      0.31 MiB       0.14 MiB
core/libldap                  2.6.8-1                      0.65 MiB       0.27 MiB
core/libmpc                   1.3.1-2                      0.18 MiB       0.08 MiB
core/libnghttp2               1.62.1-1                     0.40 MiB       0.10 MiB
core/libnghttp3               1.4.0-1                      0.23 MiB       0.07 MiB
core/libnsl                   2.0.1-1                      0.07 MiB       0.02 MiB
core/libp11-kit               0.25.5-1                     2.80 MiB       0.45 MiB
core/libpsl                   0.21.5-2                     0.22 MiB               
core/libsasl                  2.1.28-4                     0.50 MiB       0.14 MiB
core/libseccomp               2.5.5-3                      0.24 MiB               
core/libsecret                0.21.4-1                     1.15 MiB       0.18 MiB
core/libssh2                  1.11.0-1                     0.45 MiB       0.23 MiB
extra/libsysprof-capture      46.0-4                       0.24 MiB       0.05 MiB
core/libtasn1                 4.19.0-2                     0.45 MiB       0.13 MiB
core/libtirpc                 1.3.5-1                      0.42 MiB       0.17 MiB
core/libtool                  2.5.1-2                      2.23 MiB       0.40 MiB
core/libunistring             1.2-1                        2.49 MiB       0.65 MiB
core/libusb                   1.0.27-1                     0.21 MiB       0.07 MiB
core/libverto                 0.3.2-5                      0.07 MiB       0.02 MiB
core/libxcrypt                4.4.36-2                     0.18 MiB       0.08 MiB
core/libxml2                  2.13.3-1                     3.81 MiB       0.82 MiB
core/linux-api-headers        6.10-1                       5.57 MiB       1.23 MiB
extra/lmdb                    0.9.32-1                     0.40 MiB       0.11 MiB
core/lz4                      1:1.10.0-2                   0.44 MiB       0.15 MiB
core/m4                       1.4.19-3                     0.47 MiB       0.24 MiB
core/make                     4.4.1-2                      1.67 MiB       0.51 MiB
core/mpfr                     4.2.1-4                      1.01 MiB       0.42 MiB
core/ncurses                  6.5-3                        3.99 MiB       1.13 MiB
core/nettle                   3.10-1                       1.04 MiB               
core/npth                     1.7-1                        0.08 MiB       0.03 MiB
core/openssl                  3.3.1-1                     10.95 MiB       4.89 MiB
core/p11-kit                  0.25.5-1                     0.93 MiB       0.22 MiB
core/pacman                   6.1.0-3                      4.78 MiB       0.91 MiB
core/pacman-mirrorlist        20240717-1                   0.06 MiB               
core/pam                      1.6.1-2                      3.20 MiB       0.88 MiB
core/pambase                  20230918-1                   0.00 MiB               
core/patch                    2.7.6-10                     0.18 MiB       0.09 MiB
core/pcre2                    10.44-1                      6.39 MiB       1.48 MiB
core/perl                     5.38.2-2                    69.75 MiB      19.36 MiB
core/pinentry                 1.3.1-5                      0.74 MiB       0.18 MiB
core/pkgconf                  2.1.1-1                      0.16 MiB       0.06 MiB
core/readline                 8.2.013-1                    0.73 MiB       0.32 MiB
core/sed                      4.9-3                        0.70 MiB       0.21 MiB
core/shadow                   4.16.0-1                     3.86 MiB       1.22 MiB
core/sqlite                   3.46.0-1                     8.17 MiB       1.68 MiB
core/sudo                     1.9.15.p5-2                  7.58 MiB       1.84 MiB
core/systemd-libs             256.4-1                      2.82 MiB               
core/tar                      1.35-2                       2.80 MiB       0.76 MiB
core/texinfo                  7.1-2                        9.96 MiB       1.68 MiB
core/tpm2-tss                 4.0.1-1                      3.61 MiB       0.94 MiB
core/tzdata                   2024a-2                      2.00 MiB       0.34 MiB
core/util-linux               2.40.2-1                    14.48 MiB       2.87 MiB
core/util-linux-libs          2.40.2-1                     1.26 MiB       0.46 MiB
core/which                    2.21-6                       0.03 MiB       0.02 MiB
core/xz                       5.6.2-1                      2.69 MiB       0.69 MiB
core/zlib                     1:1.3.1-2                    0.33 MiB       0.09 MiB
core/zstd                     1.5.6-1                      1.49 MiB       0.49 MiB
core/base-devel               1-1                          0.00 MiB               

Total Download Size:   207.97 MiB
Total Installed Size:  886.44 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 gcc-14.2.1+r32+geccf707e5ce-1-x86_64 downloading...
 gcc-libs-14.2.1+r32+geccf707e5ce-1-x86_64 downloading...
 perl-5.38.2-2-x86_64 downloading...
 icu-75.1-1-x86_64 downloading...
 glibc-2.40+r16+gaa533d58ff-2-x86_64 downloading...
error: failed retrieving file 'gcc-libs-14.2.1+r32+geccf707e5ce-1-x86_64.pkg.tar.zst.sig' from arch.softver.org.mk : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'perl-5.38.2-2-x86_64.pkg.tar.zst' from arch.softver.org.mk : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
error: failed retrieving file 'icu-75.1-1-x86_64.pkg.tar.zst' from arch.softver.org.mk : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
warning: too many errors from arch.softver.org.mk, skipping for the remainder of this transaction
error: failed retrieving file 'glibc-2.40+r16+gaa533d58ff-2-x86_64.pkg.tar.zst' from arch.softver.org.mk : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds
warning: failed to retrieve some files
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
==> ERROR: Failed to install packages to new root
==> ERROR: Failed to install all packages
==> ERROR: Aborting...
aura :: Package failed to build, citing:

  Building within an isolated chroot failed.

aura :: Continue building other packages? [Y/n] y
aura :: Building reshade-shaders-git...
==> Updating pacman database cache
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 multilib downloading...
==> Building reshade-shaders-git
  ->   repo: extra
  ->   arch: x86_64
  -> worker: ruben-2
==> Building reshade-shaders-git for [extra] (x86_64)
[sudo] password for ruben: 
==> ERROR: '/var/lib/archbuild/extra-x86_64/root' does not appear to be an Arch chroot.
==> ERROR: Aborting...
aura :: Package failed to build, citing:

  Building within an isolated chroot failed.

aura :: Continue building other packages? [Y/n] ^C⏎                                                                                                                                                                                         

RubenKelevra avatar Aug 10 '24 21:08 RubenKelevra

This seems to be permanent:

$ aura -Ayu
aura :: Fetching package information...
aura :: Comparing package versions...
aura :: AUR packages to upgrade:
 pip2pkgbuild        :: 0.5.0-1       -> 0.5.0-2
 reshade-shaders-git :: r79.87a9e51-1 -> r80.eed46c2-1
 tor-browser-bin     :: 13.5-1        -> 13.5.2-1
aura :: Determining dependencies...
aura :: AUR packages:
 pip2pkgbuild
 reshade-shaders-git
 tor-browser-bin
aura :: Proceed? [Y/n] y
aura :: Saved package state.
aura :: Preparing build directories...
aura :: Building tor-browser-bin...
==> Updating pacman database cache
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 multilib downloading...
==> Building tor-browser-bin
==> WARNING: invalid architecture, not building for: i686
  ->   repo: extra
  ->   arch: x86_64
  -> worker: ruben-1
==> Building tor-browser-bin for [extra] (x86_64)
==> ERROR: '/var/lib/archbuild/extra-x86_64/root' does not appear to be an Arch chroot.
==> ERROR: Aborting...
aura :: Package failed to build, citing:

  Building within an isolated chroot failed.

aura :: Continue building other packages? [Y/n] n
aura :: Action cancelled.

RubenKelevra avatar Aug 10 '24 22:08 RubenKelevra

Hm. Thanks for reporting this. These kinds of issues are precisely why chroot-based building is still considered experimental.

In the meantime, I'd advise that you manually delete that chroot.

fosskers avatar Aug 11 '24 12:08 fosskers

Removing it does not help:

$ sudo rm -fdR /var/lib/archbuild/extra-x86_64/root

$ aura -A nexusmods-app-bin
aura :: Determining dependencies...
aura :: AUR packages:
 nexusmods-app-bin
aura :: Proceed? [Y/n] y
aura :: Preparing build directories...
aura :: Building nexusmods-app-bin...
==> Updating pacman database cache
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 multilib downloading...
==> Building nexusmods-app-bin
  ->   repo: extra
  ->   arch: x86_64
  -> worker: ruben-2
==> Building nexusmods-app-bin for [extra] (x86_64)
==> ERROR: '/var/lib/archbuild/extra-x86_64/root' does not appear to be an Arch chroot.
==> ERROR: Aborting...
aura :: Package failed to build, citing:

  Building within an isolated chroot failed.

aura :: Action cancelled.

RubenKelevra avatar Aug 27 '24 14:08 RubenKelevra

I can also confirm it for Aura 4.0.3. :)

RubenKelevra avatar Aug 27 '24 14:08 RubenKelevra