Bug 1254309

Summary: Mock dependency install all mirrors failed
Product: [Community] Copr Reporter: Viktor Jancik <vjancik>
Component: backendAssignee: Miroslav Suchý <msuchy>
Status: CLOSED WONTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: hhorak, jkadlcik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-11 14:39:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Viktor Jancik 2015-08-17 16:38:22 UTC
Description of problem:
Tried to build a package and the process failed on rawhide.i386 because it couldn't download the packages.

My guess is this wasn't caused by a temporary blackout of the service, because other builds passed at the same time.

Here is the log:
https://copr-be.cloud.fedoraproject.org/results/vjancik/opencv3-deps/fedora-rawhide-i386/00109464-libkface/root.log

Here are all of the builds:
https://copr.fedoraproject.org/coprs/vjancik/opencv3-deps/build/109464/

Comment 1 Viktor Jancik 2015-08-17 16:52:34 UTC
I guess I should add that the subsequent build with the same SRPM passed without problems:
https://copr.fedoraproject.org/coprs/vjancik/opencv3-deps/build/109467/

Although the build on the aforementioned chroot took almost twice as long.

Maybe you could implement an automated retry? If the build failed because of "no mirrors left". If it's something that "just happens" sometimes.

Comment 2 Miroslav Suchý 2015-08-18 08:43:22 UTC
If build fails, we already are trying once again.

Comment 3 Jakub Kadlčík 2015-09-10 12:17:19 UTC
It also happens to me sometimes. Every time for different chroot. The current workaround for me is just hitting the "resubmit" button.

Anyway, there is an interesting (I think) traceback in mockchain.log


ERROR: Command failed. See logs for output.
 # /usr/bin/yum --installroot /var/lib/mock/fedora-rawhide-i386-mockbuilder-7005/root/ --releasever 23 install @buildsys-build --setopt=tsflags=nocontexts
Traceback (most recent call last):
  File "/usr/share/copr/backend/mockremote/__init__.py", line 303, in build_pkg_and_process_results
    build_stdout = self.builder.build()
  File "/usr/share/copr/backend/mockremote/builder.py", line 324, in build
    check_for_ans_error(ansible_build_results, self.hostname)  # on error raises AnsibleResponseError
  File "/usr/share/copr/backend/mockremote/builder.py", line 449, in check_for_ans_error
    raise AnsibleResponseError(**err_results)
AnsibleResponseError: BuildError: rc 2 not in success_codes; return code: 2; stdout: starting logfile: None

Comment 5 Miroslav Suchý 2016-04-11 14:39:48 UTC
Likely just network issue.