Skip to content

Error: Failed to synchronize cache for repo 'updates' #11452

Closed

Description

@csrwng

Parent issue for discussion: #8571

====

Not sure if this is the same as the yum failures, but opening just in case it's different

https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_networking/277/

Activity

  1. added
    kind/test-flake
    on Oct 19, 2016
  2. csrwng commented on Oct 19, 2016

    @csrwng
    ContributorAuthor
  3. marun commented on Oct 21, 2016

    @marun
    Contributor

    I've been seeing this failure regularly when I attempt to dnf -y update fedora24 images.

  4. marun commented on Oct 21, 2016

    @marun
    Contributor

    I've added failure cause 'dnf update failure' to jenkins.

  5. stevekuznetsov commented on Oct 21, 2016

    @stevekuznetsov
    Contributor

    This is either an internet connectivity issue or a mirror issue... @tdawson are we mirroring @updates internally somewhere we can use?

  6. tdawson commented on Oct 21, 2016

    @tdawson
    Member

    I believe this is a Fedora only issue. We are not mirroring any plain Fedora repo's, only EPEL.

  7. stevekuznetsov commented on Oct 21, 2016

    @stevekuznetsov
    Contributor

    I believe this is a Fedora only issue

    Yes, this is true.

    As these types of issues proliferate, I think we need a better strategy for interacting with mirrors in general. Can we reduce the yum traffic? When we're building the DIND images do we really need to be doing the installs every time? Why can't we just layer the code/variant bits on top and update the base image with OS dependencies once a week or so? @marun

  8. marun commented on Oct 21, 2016

    @marun
    Contributor

    @stevekuznetsov I don't think this is a connectivity issue. In addition to these ci failures, I've seen the same error building fedora images locally or via the docker hub. Something is up with the fedora repos.

  9. stevekuznetsov commented on Oct 21, 2016

    @stevekuznetsov
    Contributor

    I understand -- if we don't build them, we don't have the issue. What are we gaining by re-installing the dependencies in every build?

  10. marun commented on Oct 21, 2016

    @marun
    Contributor

    I think it's a good idea to build regularly to ensure we catch problems before they impact too many people on the networking team. But that doesn't have to be with every PR. I think a good strategy would be to bake the dind images into the ami and then rely on the extended and post-merge jobs to catch build-related regressions.

  11. marun commented on Oct 21, 2016

    @marun
    Contributor

    Related pr: #9622

  12. 17 remaining items

  13. stevekuznetsov commented on Apr 28, 2017

    @stevekuznetsov
    Contributor

    I don't know enough about the environment to say for certain but I would be surprised if the caches or other dnf data were actually interacting between the two builds. @smarterclayton would you expect that sort of cross-pollination to be possible?

  14. danwinship commented on Apr 28, 2017

    @danwinship
    Contributor

    openshift/dind-node is built "FROM openshift/dind", so its "RUN dnf -y update" is running against whatever state the openshift/dind build left the dnf caches in. Obviously this shouldn't actually be a problem, but if there was some bug in dnf's regenerate-caches-from-scratch code, it wouldn't get seen much in normal operation (since people don't normally "dnf clean all") so that might explain why we see this problem all the time but ordinary fedora users don't

  15. stevekuznetsov commented on Apr 28, 2017

    @stevekuznetsov
    Contributor

    Ah, I see what you mean. Was it there just to reduce the size of the image? Seems reasonable to remove it/

  16. soltysh commented on Apr 28, 2017

    @soltysh
    Contributor

    There's no cache in place, what we usually do in all our images is, we clean the cache after installation, see here.

  17. soltysh commented on Apr 28, 2017

    @soltysh
    Contributor

    OK, nvmd, I just noticed the PR removing that 🤦‍♂️

  18. bparees commented on May 4, 2017

    @bparees
    Contributor

    https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/548/consoleFull#82220402358b6e51eb7608a5981914356

    Error: Failed to synchronize cache for repo 'updates'
    The command '/bin/sh -c dnf -y update && dnf -y install docker glibc-langpack-en iptables openssh-clients openssh-server' returned a non-zero code: 1
    [ERROR] PID 16703: hack/dind-cluster.sh:276: `${DOCKER_CMD} build -t "${image_name}" .` exited with status 1.
    [INFO] 		Stack Trace: 
    [INFO] 		  1: hack/dind-cluster.sh:276: `${DOCKER_CMD} build -t "${image_name}" .`
    [INFO] 		  2: hack/dind-cluster.sh:266: build-image
    [INFO] 		  3: hack/dind-cluster.sh:372: build-images
    [INFO]   Exiting with code 1.
    [ERROR] PID 1183: test/extended/networking.sh:350: `${CLUSTER_CMD} build-images` exited with status 1.
    [INFO] 		Stack Trace: 
    [INFO] 		  1: test/extended/networking.sh:350: `${CLUSTER_CMD} build-images`
    [INFO]   Exiting with code 1.
    /data/src/github.com/openshift/origin/hack/lib/log/system.sh: line 31: 16698 Terminated              sar -A -o "${binary_logfile}" 1 86400 > /dev/null 2> "${stderr_logfile}"
    [ERROR] PID 1130: test/extended/networking-minimal.sh:6: `NETWORKING_E2E_MINIMAL=1 "${OS_ROOT}/test/extended/networking.sh"` exited with status 1.
    [INFO] 		Stack Trace: 
    [INFO] 		  1: test/extended/networking-minimal.sh:6: `NETWORKING_E2E_MINIMAL=1 "${OS_ROOT}/test/extended/networking.sh"`
    [INFO]   Exiting with code 1.
    make: *** [test-extended] Error 1
    
  19. levysantanna commented on May 17, 2017

    @levysantanna

    Same issue here:

    Error: Failed to synchronize cache for repo 'fedora'
    error: build error: The command '/bin/sh -c dnf update -y --releasever=25' returned a non-zero code: 1
    

    Strangely it works on my Desktop's Docker:

    Step 5 : RUN dnf update -y --releasever=25
     ---> Running in 1c14b7622cac
    Last metadata expiration check: 0:00:46 ago on Wed May 17 14:42:19 2017.
    Dependencies resolved.
    ================================================================================
     Package                       Arch     Version                 Repository
                                                                               Size
    ================================================================================
    Upgrading:
     audit-libs                    x86_64   2.7.6-1.fc25            updates   107 k
     ca-certificates               noarch   2017.2.14-1.0.fc25      updates   477 k
     coreutils                     x86_64   8.25-17.fc25            updates   1.1 M
     coreutils-common              x86_64   8.25-17.fc25            updates   1.9 M
    
  20. stevekuznetsov commented on May 17, 2017

    @stevekuznetsov
    Contributor

    @levysantanna this is a transient failure, no reason to expect you'd be able to reproduce it

  21. zopyx commented on Jul 6, 2017

    @zopyx

    This is not a transient failure. I have this error today on one dev machine with one Docker image but not a different machine with the same Docker image...this behavior appears weird...

  22. danwinship commented on Jul 6, 2017

    @danwinship
    Contributor

    The error appears to happen when there's some specific sort of problem on one of the fedora mirrors, which will then cause every "yum update" that hits that mirror to fail until eventually the mirror resyncs with the masters and fixes things. (If you look through the past instances of the flake, it tends to happen in bursts; it will happen 5 or 10 times in one day, and then not at all for a few weeks or months.)

    If you reliably see it on one machine and not on another (at a given time), it's just because of DNS caching; one of them has resolved "mirrors.fedoraproject.org" to the mirror that has the problem, and the other has resolved it to a different mirror. If you can actually figure out which mirror is having the problems then filing a bug against the fedora infrastructure and/or emailing the maintainer of that mirror might help them figure out exactly what causes this...

  23. openshift-bot commented on Feb 13, 2018

    @openshift-bot
    Contributor

    Issues go stale after 90d of inactivity.

    Mark the issue as fresh by commenting /remove-lifecycle stale.
    Stale issues rot after an additional 30d of inactivity and eventually close.
    Exclude this issue from closing by commenting /lifecycle frozen.

    If this issue is safe to close now please do so with /close.

    /lifecycle stale

  24. added
    lifecycle/stale
    on Feb 13, 2018
  25. stevekuznetsov commented on Feb 13, 2018

    @stevekuznetsov
    Contributor

    We've pruned out dependencies on @updaets and @epel so this should be fixed.

    /close

  26. nicklasring commented on Mar 27, 2019

    @nicklasring

    Still having this issue, works fine on my desktop, "Error: Failed to synchronize cache for repo 'updates'" on the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/testskind/test-flakelifecycle/stalepriority/P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions