: 99.86.229.6)
Error: Failed to download metadata for repo 'https_download_copr_fedorainfracloud_org_results_plautrba_selinux_fedora_fedora_releasever_basearch': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
ERROR: Exception(/var/lib/copr-rpmbuild/workspace/workdir-x79ufehf/policycoreutils/policycoreutils.spec) Config(fedora-rawhide-x86_64) 0 minutes 25 seconds
INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results
INFO: Cleaning up build root ('cleanup_on_failure=True')
Start: clean chroot
Finish: clean chroot
ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M 30
Warning: Permanently added '3.86.49.116' (ED25519) to the list of known hosts.

You can reproduce this build on your computer by running:

  sudo dnf install copr-rpmbuild
  /usr/bin/copr-rpmbuild --verbose --drop-resultdir --task-url https://copr.fedorainfracloud.org/backend/get-build-task/6951260-fedora-rawhide-x86_64 --chroot fedora-rawhide-x86_64


Version: 0.70
PID: 6249
Logging PID: 6250
Task:
{'appstream': False,
 'background': False,
 'build_id': 6951260,
 'buildroot_pkgs': [],
 'chroot': 'fedora-rawhide-x86_64',
 'enable_net': False,
 'fedora_review': False,
 'git_hash': 'de107797b989bb6d7aa67e311281c612547b413f',
 'git_repo': 'https://copr-dist-git.fedorainfracloud.org/git/plautrba/sandbox-wayland/policycoreutils',
 'isolation': 'default',
 'memory_reqs': 2048,
 'package_name': 'policycoreutils',
 'package_version': '3.6-2.20240125130616.5b90be89dbee1',
 'project_dirname': 'sandbox-wayland',
 'project_name': 'sandbox-wayland',
 'project_owner': 'plautrba',
 'repo_priority': None,
 'repos': [{'baseurl': 'https://download.copr.fedorainfracloud.org/results/plautrba/sandbox-wayland/fedora-rawhide-x86_64/',
            'id': 'copr_base',
            'name': 'Copr repository',
            'priority': None},
           {'baseurl': 'https://download.copr.fedorainfracloud.org/results/plautrba/selinux-fedora/fedora-$releasever-$basearch/',
            'id': 'https_download_copr_fedorainfracloud_org_results_plautrba_selinux_fedora_fedora_releasever_basearch',
            'name': 'Additional repo '
                    'https_download_copr_fedorainfracloud_org_results_plautrba_selinux_fedora_fedora_releasever_basearch'}],
 'sandbox': 'plautrba/sandbox-wayland--plautrba',
 'source_json': {},
 'source_type': None,
 'submitter': 'plautrba',
 'tags': [],
 'task_id': '6951260-fedora-rawhide-x86_64',
 'timeout': 18000,
 'uses_devel_repo': False,
 'with_opts': [],
 'without_opts': []}

Running: git clone https://copr-dist-git.fedorainfracloud.org/git/plautrba/sandbox-wayland/policycoreutils /var/lib/copr-rpmbuild/workspace/workdir-x79ufehf/policycoreutils --depth 500 --no-single-branch --recursive

cmd: ['git', 'clone', 'https://copr-dist-git.fedorainfracloud.org/git/plautrba/sandbox-wayland/policycoreutils', '/var/lib/copr-rpmbuild/workspace/workdir-x79ufehf/policycoreutils', '--depth', '500', '--no-single-branch', '--recursive']
cwd: .
rc: 0
stdout: 
stderr: Cloning into '/var/lib/copr-rpmbuild/workspace/workdir-x79ufehf/policycoreutils'...

Running: git checkout de107797b989bb6d7aa67e311281c612547b413f --

cmd: ['git', 'checkout', 'de107797b989bb6d7aa67e311281c612547b413f', '--']
cwd: /var/lib/copr-rpmbuild/workspace/workdir-x79ufehf/policycoreutils
rc: 0
stdout: 
stderr: Note: switching to 'de107797b989bb6d7aa67e311281c612547b413f'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at de10779 automatic import of policycoreutils

Running: copr-distgit-client sources

cmd: ['copr-distgit-client', 'sources']
cwd: /var/lib/copr-rpmbuild/workspace/workdir-x79ufehf/policycoreutils
rc: 0
stdout: 
stderr: INFO: Reading stdout from command: git rev-parse --abbrev-ref HEAD
INFO: Reading stdout from command: git rev-parse HEAD
INFO: Reading sources specification file: sources
INFO: Downloading selinux-3.6.tar.gz
INFO: Reading stdout from command: curl --help all
INFO: Calling: curl -H Pragma: -o selinux-3.6.tar.gz --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/plautrba/sandbox-wayland/policycoreutils/selinux-3.6.tar.gz/md5/770cb64354fe957c9ed626ccf871d675/selinux-3.6.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
/usr/bin/tail: 100 5875k  100 5875k    0     0   183M      0 --:--:-- --:--:-- --:--:--  185M
INFO: Reading stdout from command: md5sum selinux-3.6.tar.gz
INFO: Downloading selinux-gui.zip
/var/lib/copr-rpmbuild/main.log: file truncated
INFO: Calling: curl -H Pragma: -o selinux-gui.zip --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/plautrba/sandbox-wayland/policycoreutils/selinux-gui.zip/md5/1fbbbfea274e64aa11c68a92b66fa3de/selinux-gui.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2198k  100 2198k    0     0  75.0M      0 --:--:-- --:--:-- --:--:-- 76.6M
INFO: Reading stdout from command: md5sum selinux-gui.zip
INFO: Downloading selinux-policycoreutils.zip
INFO: Calling: curl -H Pragma: -o selinux-policycoreutils.zip --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/plautrba/sandbox-wayland/policycoreutils/selinux-policycoreutils.zip/md5/60bf09c0f66d5b4cf21857e76c1e8411/selinux-policycoreutils.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  803k  100  803k    0     0  34.7M      0 --:--:-- --:--:-- --:--:-- 35.6M
INFO: Reading stdout from command: md5sum selinux-policycoreutils.zip
INFO: Downloading selinux-python.zip
INFO: Calling: curl -H Pragma: -o selinux-python.zip --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/plautrba/sandbox-wayland/policycoreutils/selinux-python.zip/md5/8df66f79a9bb851284222cb4ee99cdc5/selinux-python.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 8823k  100 8823k    0     0   240M      0 --:--:-- --:--:-- --:--:--  246M
INFO: Reading stdout from command: md5sum selinux-python.zip
INFO: Downloading selinux-sandbox.zip
INFO: Calling: curl -H Pragma: -o selinux-sandbox.zip --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/plautrba/sandbox-wayland/policycoreutils/selinux-sandbox.zip/md5/e4aa55e55906ad7dd01d1fb84c1c0c6d/selinux-sandbox.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  120k  100  120k    0     0  5618k      0 --:--:-- --:--:-- --:--:-- 5740k
INFO: Reading stdout from command: md5sum selinux-sandbox.zip
INFO: Downloading sepolicy-icons.tgz
INFO: Calling: curl -H Pragma: -o sepolicy-icons.tgz --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/plautrba/sandbox-wayland/policycoreutils/sepolicy-icons.tgz/md5/1d5912cb5719306887293738a6d9c1da/sepolicy-icons.tgz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 31883  100 31883    0     0  1501k      0 --:--:-- --:--:-- --:--:-- 1556k
INFO: Reading stdout from command: md5sum sepolicy-icons.tgz
INFO: Downloading system-config-selinux.png
INFO: Calling: curl -H Pragma: -o system-config-selinux.png --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/plautrba/sandbox-wayland/policycoreutils/system-config-selinux.png/md5/697768ebd3e02e50a515004683f962a9/system-config-selinux.png
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1447  100  1447    0     0  69684      0 --:--:-- --:--:-- --:--:-- 72350
INFO: Reading stdout from command: md5sum system-config-selinux.png

Running (timeout=18000): unbuffer mock --spec /var/lib/copr-rpmbuild/workspace/workdir-x79ufehf/policycoreutils/policycoreutils.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-x79ufehf/policycoreutils --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1706184430.681326 -r /var/lib/copr-rpmbuild/results/configs/child.cfg
INFO: mock.py version 5.4 starting (python version = 3.11.3, NVR = mock-5.4-1.fc38), args: /usr/libexec/mock/mock --spec /var/lib/copr-rpmbuild/workspace/workdir-x79ufehf/policycoreutils/policycoreutils.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-x79ufehf/policycoreutils --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1706184430.681326 -r /var/lib/copr-rpmbuild/results/configs/child.cfg
Start(bootstrap): init plugins
INFO: tmpfs initialized
INFO: selinux enabled
INFO: chroot_scan: initialized
INFO: compress_logs: initialized
Finish(bootstrap): init plugins
Start: init plugins
INFO: tmpfs initialized
INFO: selinux enabled
INFO: chroot_scan: initialized
INFO: compress_logs: initialized
Finish: init plugins
INFO: Signal handler active
Start: run
INFO: Start(/var/lib/copr-rpmbuild/workspace/workdir-x79ufehf/policycoreutils/policycoreutils.spec)  Config(fedora-rawhide-x86_64)
Start: clean chroot
Finish: clean chroot
Mock Version: 5.4
INFO: Mock Version: 5.4
Start(bootstrap): chroot init
INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1706184430.681326/root.
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled package manager cache
Start(bootstrap): cleaning package manager metadata
Finish(bootstrap): cleaning package manager metadata
INFO: Guessed host environment type: unknown
INFO: Using bootstrap image: registry.fedoraproject.org/fedora:rawhide
INFO: Pulling image: registry.fedoraproject.org/fedora:rawhide
INFO: Copy content of container registry.fedoraproject.org/fedora:rawhide to /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1706184430.681326/root
INFO: Checking that registry.fedoraproject.org/fedora:rawhide image matches host's architecture
INFO: mounting registry.fedoraproject.org/fedora:rawhide with podman image mount
INFO: image registry.fedoraproject.org/fedora:rawhide as /var/lib/containers/storage/overlay/6b6f3d2edb5fa37aea224375c9ca7391e7d310a0b3b28f21aff390dac9c25bbb/merged
INFO: umounting image registry.fedoraproject.org/fedora:rawhide (/var/lib/containers/storage/overlay/6b6f3d2edb5fa37aea224375c9ca7391e7d310a0b3b28f21aff390dac9c25bbb/merged) with podman image umount
INFO: Using 'dnf' instead of 'dnf5' for bootstrap chroot
INFO: Package manager dnf detected and used (fallback)
INFO: Bootstrap image not marked ready
Start(bootstrap): installing dnf5 tooling
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
Copr repository                                 5.3 kB/s | 257  B     00:00    
Additional repo https_download_copr_fedorainfra 6.6 kB/s | 341  B     00:00    
Errors during downloading metadata for repository 'https_download_copr_fedorainfracloud_org_results_plautrba_selinux_fedora_fedora_releasever_basearch':
  - Status code: 404 for https://download.copr.fedorainfracloud.org/results/plautrba/selinux-fedora/fedora-40-x86_64/repodata/repomd.xml (IP: 99.86.229.56)
Error: Failed to download metadata for repo 'https_download_copr_fedorainfracloud_org_results_plautrba_selinux_fedora_fedora_releasever_basearch': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
WARNING: DNF command failed, retrying, attempt #2, sleeping 10s
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
Copr repository                                  92 kB/s | 1.5 kB     00:00    
Additional repo https_download_copr_fedorainfra 6.0 kB/s | 341  B     00:00    
Errors during downloading metadata for repository 'https_download_copr_fedorainfracloud_org_results_plautrba_selinux_fedora_fedora_releasever_basearch':
  - Status code: 404 for https://download.copr.fedorainfracloud.org/results/plautrba/selinux-fedora/fedora-40-x86_64/repodata/repomd.xml (IP: 99.86.229.6)
Error: Failed to download metadata for repo 'https_download_copr_fedorainfracloud_org_results_plautrba_selinux_fedora_fedora_releasever_basearch': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
WARNING: DNF command failed, retrying, attempt #3, sleeping 10s
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
Copr repository                                  95 kB/s | 1.5 kB     00:00    
Additional repo https_download_copr_fedorainfra 5.8 kB/s | 341  B     00:00    
Errors during downloading metadata for repository 'https_download_copr_fedorainfracloud_org_results_plautrba_selinux_fedora_fedora_releasever_basearch':
  - Status code: 404 for https://download.copr.fedorainfracloud.org/results/plautrba/selinux-fedora/fedora-40-x86_64/repodata/repomd.xml (IP: 99.86.229.6)
Error: Failed to download metadata for repo 'https_download_copr_fedorainfracloud_org_results_plautrba_selinux_fedora_fedora_releasever_basearch': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
ERROR: Exception(/var/lib/copr-rpmbuild/workspace/workdir-x79ufehf/policycoreutils/policycoreutils.spec) Config(fedora-rawhide-x86_64) 0 minutes 25 seconds
INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results
INFO: Cleaning up build root ('cleanup_on_failure=True')
Start: clean chroot
Finish: clean chroot
ERROR: Command failed: 
 # /usr/bin/systemd-nspawn -q -M 307c79a499244ff29110f414949a53dd -D /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1706184430.681326/root -a --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/var/lib/mock/fedora-rawhide-x86_64-bootstrap-1706184430.681326/root/installation-homedir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;<mock-chroot>\007"' '--setenv=PS1=<mock-chroot> \s-\v\$ ' --setenv=LANG=C.UTF-8 --setenv=LC_MESSAGES=C.UTF-8 --setenv=SYSTEMD_NSPAWN_TMPFS_TMP=0 --setenv=SYSTEMD_SECCOMP=0 --resolv-conf=off /usr/bin/dnf-3 --releasever 40 --setopt=deltarpm=False --setopt=allow_vendor_change=yes --allowerasing --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock install dnf5 dnf5-plugins --setopt=tsflags=nocontexts --setopt=tsflags=nocontexts --setopt=tsflags=nocontexts
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
Copr repository                                  95 kB/s | 1.5 kB     00:00    
Additional repo https_download_copr_fedorainfra 5.8 kB/s | 341  B     00:00    
Errors during downloading metadata for repository 'https_download_copr_fedorainfracloud_org_results_plautrba_selinux_fedora_fedora_releasever_basearch':
  - Status code: 404 for https://download.copr.fedorainfracloud.org/results/plautrba/selinux-fedora/fedora-40-x86_64/repodata/repomd.xml (IP: 99.86.229.6)
Error: Failed to download metadata for repo 'https_download_copr_fedorainfracloud_org_results_plautrba_selinux_fedora_fedora_releasever_basearch': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

Copr build error: Build failed

But since DNF (called by Mock in the background) doesn't see the repository (error 404), it seems that the repository was not specified properly.

Namely, in this case, we are building for `fedora-rawhide-repository` but the repo was specified for `fedora-40-repository`.  Rawhide, at the time of build, was really F40, but Copr doesn't know how to expand `$releasever` to `rawhide`.