Repository navigation
fix: Replace rsync with cp in the build CronJob - #8
Merged
Merged
Conversation
github-actions
Bot
requested review from
VPS-Georg,
fraxachun,
kaufmo and
vps-dkarnutsch
September 24, 2026 07:22
VPS-Georg
approved these changes
Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since rsync 3.5.0 the build job fails when it writes the tar to the
generated-sites volume:
rsync: [receiver] failed to set permissions on "/mnt/generated-sites/.build_2026-09-23_08:27:59.tar.2FxVEa": Operation not permitted (1) rsync error: some files/attrs were not transferred (code 23)
rsync sets the permissions of the file it transfers, and the volume does not allow that. No build reaches the volume, so the site keeps serving the previous one.
rsync has nothing to offer in this step anyway. It copies a single local file, with no delta transfer and no remote host. cp takes the mode from the source while it creates the file and runs no chmod afterwards, so the volume accepts the copy, and the job no longer depends on how the rsync version in the site image handles permissions. rm -f takes over what --remove-source-files did.
mv would have worked too: it copies and removes the source, and its chmod and utimes calls fail on this volume without failing the command. But it reports them on every run, so a job that succeeded still logs "mv: preserving
permissions for ...: Operation not permitted".
curl downloads kubectl with -f now, so an HTTP error fails the job at the download instead of writing an error page to /tmp/kubectl and failing at the rollout.
Applies to comet-site-v1 and comet-site-v2, whose build CronJobs are identical.