Results 1 to 7 of 7

Thread: rsync exit code (13) - what does it mean?

  1. #1
    Join Date
    Oct 2009
    Beans
    164

    rsync exit code (13) - what does it mean?

    I get this rsync error code 13 which I can't get my head around. Any website (e.g. this one) mentioning these exit codes gives the same "explanation", which is:

    Errors with program diagnostics
    What does this mean?

  2. #2
    Join Date
    Jun 2006
    Location
    Antarctica
    Beans
    500
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: rsync exit code (13) - what does it mean?

    Didn't you get an error message at the same time ? Have you tried with -v, -vv, -vvv ?

  3. #3
    Join Date
    Oct 2009
    Beans
    164

    Re: rsync exit code (13) - what does it mean?

    I didn't know about -vvv. I am normally using LuckyBackup in order to escape the command line... Using -vvv It does seem to give me a clue. The output is

    Code:
    m-xubuntu@mxubuntu-ThinkPad-Edge:~$ rsync -vvv -h --progress --stats -r -tgo -p -l -D --update --delete-after /home/m-xubuntu/Maj/testfolder/ /media/remote_lubuntu/remote_test_folder/
    building file list ... 
    [sender] make_file(.,*,0)
    [sender] make_file(file3,*,2)
    [sender] make_file(file2.XLS,*,2)
    [sender] make_file(file1.pdf,*,2)
    4 files to consider
    send_file_list done
    send_files starting
    server_recv(2) starting pid=2876
    received 4 names
    recv_file_list done
    get_local_name count=4 /media/remote_lubuntu/remote_test_folder/
    generator starting pid=2876
    delta-transmission disabled for local transfer or --whole-file
    recv_generator(.,0)
    send_files(0, /home/m-xubuntu/Maj/testfolder/.)
    ./
    set gid of . from 1002 to 1000
    rsync: chgrp "/media/remote_lubuntu/remote_test_folder/." failed: Permission denied (13)
    recv_files(4) starting
    recv_generator(file1.pdf,1)
    set gid of file1.pdf from 1002 to 1000
    rsync: chgrp "/media/remote_lubuntu/remote_test_folder/file1.pdf" failed: Permission denied (13)
    send_files(1, /home/m-xubuntu/Maj/testfolder/file1.pdf)
    recv_generator(file2.XLS,2)
    set gid of file2.XLS from 1002 to 1000
    recv_files(.)
    recv_files(file1.pdf)
    rsync: chgrp "/media/remote_lubuntu/remote_test_folder/file2.XLS" failed: Permission denied (13)
    send_files(2, /home/m-xubuntu/Maj/testfolder/file2.XLS)
    recv_generator(file3,3)
    set gid of file3 from 1002 to 1000
    recv_files(file2.XLS)
    rsync: chgrp "/media/remote_lubuntu/remote_test_folder/file3" failed: Permission denied (13)
    send_files(3, /home/m-xubuntu/Maj/testfolder/file3)
    send_files phase=1
    generate_files phase=1
    recv_files(file3)
    recv_files phase=1
    generate_files phase=2
    send_files phase=2
    send files finished
    total: matches=0  hash_hits=0  false_alarms=0 data=0
    
    rsync[2875] (sender) heap statistics:
      arena:         135168   (bytes from sbrk)
      ordblks:            1   (chunks not in use)
      smblks:             0
      hblks:              2   (chunks from mmap)
      hblkhd:        401408   (bytes from mmap)
      allmem:        536576   (bytes from sbrk + mmap)
      usmblks:            0
      fsmblks:            0
      uordblks:       56192   (bytes used)
      fordblks:       78976   (bytes free)
      keepcost:       78976   (bytes in releasable chunk)
    recv_files phase=2
    generate_files phase=3
    recv_files finished
    
    rsync[2877] (server receiver) heap statistics:
      arena:         135168   (bytes from sbrk)
      ordblks:            1   (chunks not in use)
      smblks:             0
      hblks:              2   (chunks from mmap)
      hblkhd:        401408   (bytes from mmap)
      allmem:        536576   (bytes from sbrk + mmap)
      usmblks:            0
      fsmblks:            0
      uordblks:       23296   (bytes used)
      fordblks:      111872   (bytes free)
      keepcost:      111872   (bytes in releasable chunk)
    deleting in .
    delete_in_dir(.)
    [generator] make_file(file1.pdf,*,2)
    [generator] make_file(file3,*,2)
    [generator] make_file(file2.XLS,*,2)
    generate_files finished
    
    rsync[2876] (server generator) heap statistics:
      arena:         135168   (bytes from sbrk)
      ordblks:            2   (chunks not in use)
      smblks:             3
      hblks:              2   (chunks from mmap)
      hblkhd:        401408   (bytes from mmap)
      allmem:        536576   (bytes from sbrk + mmap)
      usmblks:            0
      fsmblks:          144
      uordblks:       23352   (bytes used)
      fordblks:      111816   (bytes free)
      keepcost:      111648   (bytes in releasable chunk)
    
    Number of files: 4
    Number of files transferred: 0
    Total file size: 2.02M bytes
    Total transferred file size: 0 bytes
    Literal data: 0 bytes
    Matched data: 0 bytes
    File list size: 109
    File list generation time: 0.001 seconds
    File list transfer time: 0.000 seconds
    Total bytes sent: 128
    Total bytes received: 24
    
    sent 128 bytes  received 24 bytes  304.00 bytes/sec
    total size is 2.02M  speedup is 13270.95
    rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1070) [sender=3.0.8]
    [sender] _exit_cleanup(code=0, file=main.c, line=1070): about to call exit(23)
    m-xubuntu@mxubuntu-ThinkPad-Edge:~$
    Why would it try to change gid?

  4. #4
    Join Date
    Jun 2006
    Location
    Antarctica
    Beans
    500
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: rsync exit code (13) - what does it mean?

    It's some kind of permission problem.
    First check the permissions and username on the destination folder.
    Then either do a
    Code:
    chown -R $(whoami) /media/remote_lubuntu/remote_test_folder
    or run rsync as root with the -o option (part of -a):
    Code:
    sudo rsync -xavHl --delete
    And always remember to add -n while testing.

  5. #5
    Join Date
    Oct 2009
    Beans
    164

    Re: rsync exit code (13) - what does it mean?

    Using sudo gave similar problem:

    Code:
    set uid of file3 from 1002 to 1000 recv_files(file2.XLS) set gid of file3 from 1002 to 1000 rsync: chown "/media/remote_lubuntu/remote_test_folder/file3" failed: Permission denied (13)
    In the end I simply removed the -g and the -o flags, which removed any error messages.

  6. #6
    Join Date
    Oct 2009
    Beans
    164

    Re: rsync exit code (13) - what does it mean?

    And always remember to add -n while testing.
    by the way, what does -n do?

  7. #7
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: rsync exit code (13) - what does it mean?

    Quote Originally Posted by woodyg View Post
    by the way, what does -n do?
    Dry-run.

    http://www.manpagez.com/man/1/rsync/
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •