Bogdan

Bogdan

Live

We noticed that for some apps the deployments (sometimes) fail with a warning like this:

rsync warning: some files vanished before they could be transferred (code 24) at main.c(1338) [sender=3.2.7]

These apps, indeed, frequently delete files from the app storage:

  • we have a log rotating feature every minute
  • the workers temporarily store some files to do their jobs

This warning would be bypassed if the deploy scripts would use rsync with --ignore-vanished flag.

Dennis

Dennis

·
·

I have done some testing with this, the --ignore-vanished flag is not a thing in rsync, is it? https://linux.die.net/man/1/rsync

no votes yet
Bogdan

Bogdan

Item author
·
·

Hi Dennis,

Thank you very much for looking into this! So sorry for the confusion!

There is the --ignore-missing-args flag in rsync since version 3.1.0 (Sep 2013). https://download.samba.org/pub/rsync/NEWS#3.1.0

I think this one will do the trick!

Thank you again for your support!

no votes yet
Dennis

Dennis

·
·

Aaah yes, I see that now! Will add that today.

no votes yet

rsync with --ignored-vanished on site deploy

1 total vote
Bogdan
  • Dennis moved item to board Live

    2 weeks ago
  • Dennis moved item to board In progress

    3 weeks ago
  • Bogdan moved item to project Ploi Core Requests

    1 month ago
  • Bogdan created the item

    1 month ago