Skip to content

rsync locks up forever if -z flag used, fails with error 130 if ^C given #64

Closed

Description

@PhotoJim

Hi,

I use an rsync script to backup up many different machines (Debian, Ubuntu, Linux Mint, and NetBSD) to my server. Once working, the script is invoked automatically using rsync. I do the backup using passwordless login.

I accidentally enabled the -z flag on my first script file. I usually use this when backing up from remote, and don't use it when backing up locally. This machine is local so it doesn't need -z, but the first iteration used -z:

rsync -a -z -e "ssh -i /root/.ssh/backup" --progress --delete --exclude /sys --exclude /dev --exclude /proc --exclude /public / fqdnpath.to.server:/home/jim/backup/atherton/

Doing the backup this way, the backup just locks up at some point - not always the same point.

I discovered I could pull the backup from the server (unwittingly not using -z, since I didn't know I was using -z from the Raspberry Pi). All was fine.

My backup script worked from the pi in this case - probably because it didn't have much to do.

This is when I discovered the -z. I removed it, deleted the backup from the server, and ran the script. The backup was created without issue.

It seems that -z does something that causes some sort of failure in rsync. There's plenty of free RAM (>100 MB) while rsync is running but locked up. ^C kills it and that's when I get error 130 (Unknown Error).

Activity

  1. popcornmix commented on Aug 20, 2012

    @popcornmix
    Collaborator

    Can you try the suggestions here:
    http://elinux.org/R-Pi_Troubleshooting#Crashes_occur_with_high_network_load

    Also the latest firmware has some fixes. You could also try adding:
    dwc_otg.microframe_schedule=1
    to cmdline.txt

  2. PhotoJim commented on Aug 20, 2012

    @PhotoJim
    Author

    Can do - I'll see if I can find time tonight or tomorrow to experiment.

    With -z not used, I have no issues whatsoever which must involve some
    occasionally high network load, although the CPU will not be as taxed.

    Jim


    From: popcornmix [mailto:notifications@github.com]
    Sent: Monday, August 20, 2012 3:12 PM
    To: raspberrypi/linux
    Cc: PhotoJim
    Subject: Re: [linux] rsync locks up forever if -z flag used, fails with
    error 130 if ^C given (#64)

    Can you try the suggestions here:
    http://elinux.org/R-Pi_Troubleshooting#Crashes_occur_with_high_network_load

    Also the latest firmware has some fixes. You could also try adding:
    dwc_otg.microframe_schedule=1
    to config.txt

    Reply to this email directly or view
    #64 (comment) it on
    GitHub.

    <https://github.com/notifications/beacon/_4pdJFI0lnWkCuVu0cMk_E2270mBv5ncbAs
    bMJa3sRaLLzSsqa8C9m6JvojD0L5u.gif>

  3. ghollingworth commented on Aug 22, 2013

    @ghollingworth

    Reopen if issue still exists

  4. added a commit that references this issue on Mar 19, 2015
  5. added a commit that references this issue on Apr 21, 2015
  6. added a commit that references this issue on Nov 2, 2015
  7. 18 remaining items

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions