Skip to content

fix: Replace rsync with cp in the build CronJob - #8

Merged
vps-vierlip merged 1 commit into
v1.xfrom
fix/site-build-replace-rsync
Sep 24, 2026
Merged

vps-vierlip merged 1 commit into
v1.xfrom
fix/site-build-replace-rsync

Conversation

@vps-vierlip

Copy link
Copy Markdown
Contributor

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.

@vps-vierlip
vps-vierlip merged commit a4d9071 into v1.x Sep 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants