Hi all, I'm running into an error if using the build-and-upload script. I'm not sure what this is about, and failed to debug further; maybe someone of you could share some insight?
[...] Run the test suite now? [Y/n]Y [sudo] password for georg: I: lxc container autopkgtest-sid-amd64 not found I: Trying autopkgtest-unstable-amd64 instead autopkgtest [17:14:40]: version 5.2 autopkgtest [17:14:40]: host debian; command line: /usr/bin/autopkgtest --user debci --apt-upgrade ../build-area/ruby-sequel_5.7.0-1_amd64.changes -- lxc --sudo autopkgtest-unstable-amd64 autopkgtest [17:14:57]: @@@@@@@@@@@@@@@@@@@@ test bed setup Hit:1 http://deb.debian.org/debian unstable InRelease Reading package lists... W: Download is performed unsandboxed as root as file '/var/lib/apt/lists/partial/deb.debian.org_debian_dists_unstable_InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) Reading package lists... Done Building dependency tree... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. autopkgtest [17:15:00]: testbed dpkg architecture: amd64 Unexpected error: Traceback (most recent call last): File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 717, in mainloop command() File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 646, in command r = f(c, ce) File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 584, in cmd_copyup copyupdown(c, ce, True) File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 469, in copyupdown copyupdown_internal(ce[0], c[1:], upp) File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 494, in copyupdown_internal copyup_shareddir(sd[0], sd[1], dirsp, downtmp_host) File "/usr/share/autopkgtest/lib/VirtSubproc.py", line 408, in copyup_shareddir shutil.copy(tb, host) File "/usr/lib/python3.6/shutil.py", line 241, in copy copyfile(src, dst, follow_symlinks=follow_symlinks) File "/usr/lib/python3.6/shutil.py", line 120, in copyfile with open(src, 'rb') as fsrc: PermissionError: [Errno 13] Permission denied: '/tmp/autopkgtest-lxc.ibf1wj2v/downtmp/testbed-packages' autopkgtest [17:15:01]: ERROR: testbed failure: cannot send to testbed: [Errno 32] Broken pipe [...] If I change build-and-upload:78 via: - autopkgtest --user debci --apt-upgrade $debs "$@" -- lxc --sudo autopkgtest-"$autopkgtest_dist"-"$arch" + sudo autopkgtest --apt-upgrade $debs "$@" -- lxc autopkgtest-"$autopkgtest_dist"-"$arch" this works better, but still runs into a problem: Run the test suite now? [Y/n]Y I: lxc container autopkgtest-sid-amd64 not found I: Trying autopkgtest-unstable-amd64 instead autopkgtest [17:46:22]: version 5.2 autopkgtest [17:46:22]: host debian; command line: /usr/bin/autopkgtest --apt-upgrade ../build-area/ruby-sequel_5.7.0-1_amd64.changes -- lxc autopkgtest-unstable-amd64 autopkgtest [17:46:40]: @@@@@@@@@@@@@@@@@@@@ test bed setup Hit:1 http://deb.debian.org/debian unstable InRelease Reading package lists... W: Download is performed unsandboxed as root as file '/var/lib/apt/lists/partial/deb.debian.org_debian_dists_unstable_InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. autopkgtest [17:46:43]: testbed dpkg architecture: amd64 autopkgtest [17:46:43]: testbed running kernel: Linux 4.15.0-1-amd64 #1 SMP Debian 4.15.4-1 (2018-02-18) autopkgtest [17:46:44]: @@@@@@@@@@@@@@@@@@@@ source ../build-area/ruby-sequel_5.7.0-1.dsc Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies...Starting pkgProblemResolver with broken count: 0 Starting 2 pkgProblemResolver with broken count: 0 Done Done Starting pkgProblemResolver with broken count: 0 Starting 2 pkgProblemResolver with broken count: 0 Done The following additional packages will be installed: binutils binutils-common binutils-x86-64-linux-gnu bzip2 dpkg-dev libbinutils libdpkg-perl libgdbm-compat4 libgdbm5 libperl5.26 make patch perl perl-modules-5.26 xz-utils Suggested packages: binutils-doc bzip2-doc debian-keyring gnupg | gnupg2 gcc | c-compiler git bzr gdbm-l10n make-doc ed diffutils-doc perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl Recommended packages: build-essential gcc | c-compiler fakeroot gnupg | gnupg2 libalgorithm-merge-perl libfile-fcntllock-perl liblocale-gettext-perl The following NEW packages will be installed: binutils binutils-common binutils-x86-64-linux-gnu bzip2 dpkg-dev libbinutils libdpkg-perl libgdbm-compat4 libgdbm5 libperl5.26 make patch perl perl-modules-5.26 xz-utils 0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 14.6 MB of archives. After this operation, 75.6 MB of additional disk space will be used. Get:1 http://deb.debian.org/debian unstable/main amd64 perl-modules-5.26 all 5.26.1-5 [2,822 kB] Get:2 http://deb.debian.org/debian unstable/main amd64 libgdbm5 amd64 1.14.1-6 [57.3 kB] Get:3 http://deb.debian.org/debian unstable/main amd64 libgdbm-compat4 amd64 1.14.1-6 [38.9 kB] Get:4 http://deb.debian.org/debian unstable/main amd64 libperl5.26 amd64 5.26.1-5 [3,595 kB] Get:5 http://deb.debian.org/debian unstable/main amd64 perl amd64 5.26.1-5 [201 kB] Get:6 http://deb.debian.org/debian unstable/main amd64 libdpkg-perl all 1.19.0.5 [1,315 kB] Get:7 http://deb.debian.org/debian unstable/main amd64 bzip2 amd64 1.0.6-8.1 [47.5 kB] Get:8 http://deb.debian.org/debian unstable/main amd64 xz-utils amd64 5.2.2-1.3 [266 kB] Get:9 http://deb.debian.org/debian unstable/main amd64 patch amd64 2.7.6-1 [123 kB] Get:10 http://deb.debian.org/debian unstable/main amd64 make amd64 4.2.1-1 [339 kB] Get:11 http://deb.debian.org/debian unstable/main amd64 binutils-common amd64 2.30-11 [1,844 kB] Get:12 http://deb.debian.org/debian unstable/main amd64 libbinutils amd64 2.30-11 [497 kB] Get:13 http://deb.debian.org/debian unstable/main amd64 binutils-x86-64-linux-gnu amd64 2.30-11 [1,828 kB] Get:14 http://deb.debian.org/debian unstable/main amd64 binutils amd64 2.30-11 [54.1 kB] Get:15 http://deb.debian.org/debian unstable/main amd64 dpkg-dev all 1.19.0.5 [1,619 kB] Fetched 14.6 MB in 1s (26.3 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package perl-modules-5.26. (Reading database ... 8606 files and directories currently installed.) Preparing to unpack .../00-perl-modules-5.26_5.26.1-5_all.deb ... Unpacking perl-modules-5.26 (5.26.1-5) ... Selecting previously unselected package libgdbm5:amd64. Preparing to unpack .../01-libgdbm5_1.14.1-6_amd64.deb ... Unpacking libgdbm5:amd64 (1.14.1-6) ... Selecting previously unselected package libgdbm-compat4:amd64. Preparing to unpack .../02-libgdbm-compat4_1.14.1-6_amd64.deb ... Unpacking libgdbm-compat4:amd64 (1.14.1-6) ... Selecting previously unselected package libperl5.26:amd64. Preparing to unpack .../03-libperl5.26_5.26.1-5_amd64.deb ... Unpacking libperl5.26:amd64 (5.26.1-5) ... Selecting previously unselected package perl. Preparing to unpack .../04-perl_5.26.1-5_amd64.deb ... Unpacking perl (5.26.1-5) ... Selecting previously unselected package libdpkg-perl. Preparing to unpack .../05-libdpkg-perl_1.19.0.5_all.deb ... Unpacking libdpkg-perl (1.19.0.5) ... Selecting previously unselected package bzip2. Preparing to unpack .../06-bzip2_1.0.6-8.1_amd64.deb ... Unpacking bzip2 (1.0.6-8.1) ... Selecting previously unselected package xz-utils. Preparing to unpack .../07-xz-utils_5.2.2-1.3_amd64.deb ... Unpacking xz-utils (5.2.2-1.3) ... Selecting previously unselected package patch. Preparing to unpack .../08-patch_2.7.6-1_amd64.deb ... Unpacking patch (2.7.6-1) ... Selecting previously unselected package make. Preparing to unpack .../09-make_4.2.1-1_amd64.deb ... Unpacking make (4.2.1-1) ... Selecting previously unselected package binutils-common:amd64. Preparing to unpack .../10-binutils-common_2.30-11_amd64.deb ... Unpacking binutils-common:amd64 (2.30-11) ... Selecting previously unselected package libbinutils:amd64. Preparing to unpack .../11-libbinutils_2.30-11_amd64.deb ... Unpacking libbinutils:amd64 (2.30-11) ... Selecting previously unselected package binutils-x86-64-linux-gnu. Preparing to unpack .../12-binutils-x86-64-linux-gnu_2.30-11_amd64.deb ... Unpacking binutils-x86-64-linux-gnu (2.30-11) ... Selecting previously unselected package binutils. Preparing to unpack .../13-binutils_2.30-11_amd64.deb ... Unpacking binutils (2.30-11) ... Selecting previously unselected package dpkg-dev. Preparing to unpack .../14-dpkg-dev_1.19.0.5_all.deb ... Unpacking dpkg-dev (1.19.0.5) ... Setting up make (4.2.1-1) ... Setting up perl-modules-5.26 (5.26.1-5) ... Setting up libgdbm5:amd64 (1.14.1-6) ... Setting up bzip2 (1.0.6-8.1) ... Setting up binutils-common:amd64 (2.30-11) ... Setting up patch (2.7.6-1) ... Processing triggers for libc-bin (2.27-3) ... Setting up xz-utils (5.2.2-1.3) ... update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode Setting up libgdbm-compat4:amd64 (1.14.1-6) ... Setting up libbinutils:amd64 (2.30-11) ... Setting up libperl5.26:amd64 (5.26.1-5) ... Setting up binutils-x86-64-linux-gnu (2.30-11) ... Setting up perl (5.26.1-5) ... Setting up binutils (2.30-11) ... Setting up libdpkg-perl (1.19.0.5) ... Setting up dpkg-dev (1.19.0.5) ... Setting up autopkgtest-satdep (0) ... Processing triggers for libc-bin (2.27-3) ... W: Download is performed unsandboxed as root as file '/var/cache/apt/archives/partial/perl-modules-5.26_5.26.1-5_all.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) (Reading database ... 11398 files and directories currently installed.) Removing autopkgtest-satdep (0) ... Cannot execute /bin/sh blame: arg:../build-area/ruby-sequel_5.7.0-1_all.deb deb:ruby-sequel ../build-area/ruby-sequel_5.7.0-1.dsc badpkg: rules extract failed with exit code 126 autopkgtest [17:46:54]: ERROR: erroneous package: rules extract failed with exit code 126 Versions in use: - autopkgtest 5.2 - lxc 1:2.0.9-6 - Container OS: Debian unstable, created today (to check if this makes a difference) If called via gbp buildpackage, with a sbuildrc containing the following: $external_commands = { 'post-build-commands' => [ [ 'sudo autopkgtest', '%d', '--', 'lxc', 'autopkgtest-unstable-amd64;', # if autopkgtest's exit code is 8 then the package had no tests # but this isn't a failure, so catch it 'aptexit=$?;', 'if', 'test', '$aptexit', '=', '8;', 'then', 'exit', '0;', 'else', 'exit', '$aptexit;', 'fi' ], ], }; running autopkgtest works as expected. Any ideas? Thanks, cheers, Georg
signature.asc
Description: Digital signature