Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cloudlinux/cloudlinux-mirrors
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: cloudlinux/cloudlinux-mirrors
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: network-online-target
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 6 files changed
  • 1 contributor

Commits on Jun 20, 2026

  1. Wait for network-online.target before mirror sync

    systemd's network.target is passive — only signals that the network
    stack is loaded, not that the network is actually usable (interfaces
    configured, default route present, DNS responsive). Timers firing
    right after boot (especially with Persistent=true catching up missed
    runs) can race ahead of network readiness, causing rsync to exit 10
    (socket I/O error) and the service to enter failed state until the
    next scheduled run.
    
    Replace After=network.target with After=network-online.target and add
    Wants=network-online.target so the service waits until the network is
    fully online before attempting to sync.
    
    Affects all service templates across playbooks:
      - combined-mirror: cloudlinux-complete-mirror, cloudlinux-mirror, swng-mirror
      - complete-swng-rsync: swng-mirror
      - specific-version-rsync: swng-version-mirror
      - yum-reposync: swng-reposync
    
    Observed on a customer mirror host where post-reboot timer trigger
    hit a network race; a drop-in with the same fix resolved it.
    aleksandrmihajlov committed Jun 20, 2026
    Configuration menu
    Copy the full SHA
    61cb610 View commit details
    Browse the repository at this point in the history
Loading