Rsync error sending incremental file list

Hallo, I'vean older machine freshly set up with an ubuntu percise server version. This special machine always get stuck when i try to copy files from other machines with rsync. Only "sending incremental file list" is shown, no list is set up. I also can't push files from other machines to this particular one. Rsync on same machine does work. Directories are written if i push from an other machine, but they are empty. Those direcories are shown in the file list on the other machine.
  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • General Help
  • rsync stuck at «sending incremental file list»

  1. rsync stuck at «sending incremental file list»

    Hallo,
    I’vean older machine freshly set up with an ubuntu percise server version.
    This special machine always get stuck when i try to copy files from other machines with rsync. Only «sending incremental file list» is shown, no list is set up.
    I also can’t push files from other machines to this particular one. Rsync on same machine does work.
    Directories are written if i push from an other machine, but they are empty. Those direcories are shown in the file list on the other machine.

    Thought it to be an rights issue, but i have no idea whats wrong.
    Does anyone has an idea?

    Thanks a lot in advance
    Andreas K.


  2. Re: rsync stuck at «sending incremental file list»

    Try running rsync with sudo:

    Code:

    sudo rsync -av source/ target/

    You’ll have root permissions that way and should be able to transfer any file.


  3. Re: rsync stuck at «sending incremental file list»

    Quote Originally Posted by SeijiSensei
    View Post

    Try running rsync with sudo:

    Code:

    sudo rsync -av source/ target/

    You’ll have root permissions that way and should be able to transfer any file.

    Thanks a lot — but i forgot — the same with sudo!


  4. Re: rsync stuck at «sending incremental file list»

    Have you tried sending onto a different folder on the destination? You may have permission issues on the destination.

    Just to confirm that you can transfer files to the remote computer, can you «ssh» to that computer? Does «scp» also fails when you try to push to that computer?


  5. Re: rsync stuck at «sending incremental file list»

    Thanks a lot — but i forgot — the same with sudo!

    If you cannot copy the files as the root user, then there is a deeper problem.

    Perhaps the target’s drive is marked read-only. If there are any problems with the file system, Linux will mount the drive read-only.

    Can you create files locally on the target machine? What do you see if you run the «mount» command on that machine?


  6. Re: rsync stuck at «sending incremental file list»

    Sorry, that i didn’t answer for 3 days,

    i can normally write and edit files on the partition, so it is surely not mounted ‘ro’.
    I’ve just checked, i can copy files with the scp command from the remote-host.
    ‘scp server@xxx.xxx.xxx.xxx:/root/scripts/* scripts’ does work, where
    ‘rsync -avz server@xxx.xxx.xxx.xxx:/root/scripts/ scripts’ is stuck in ‘receiving incremental file list’

    ???, thanks a lot in advance,
    Andreas K.


  7. Re: rsync stuck at «sending incremental file list»

    Are you sure it is stuck on «receiving incremental file list»? Maybe because of the -z option it is taking too long to compress, or maybe you have thousands of file/large files that is why rsync takes too long to build the list.

    Try rsync with just the options -avh only and let’s see if there is any difference.


  8. Re: rsync stuck at «sending incremental file list»

    Also, rsync requires a good network connection. If you have network errors, then rsync will misbehave.


  9. Re: rsync stuck at «sending incremental file list»

    Thanks a lot for your comments. No, it does not make a difference if I don’t use the -z option and because I’m logging in via ssh, skipping the -v option does also make no difference and the computers are standing side by side in the same local network, there are only about 200kbytes (30 script files) to copy.

    As the problem seems to become even more tricky (if i used a -avvvvvvvz option AND pipe the output to a file, i’ll get some of the desired files syncronised, if i use it serveral times, the files arrive drop by drop) i want to thank all who have contributed to that thread. If i find a solution, i’ll post it here.

    Thanks a lot

    Andreas K.


  10. Re: rsync stuck at «sending incremental file list»

    Try using «-avn» and seeing what it reports. That just builds the list of files to be transferred but doesn’t actually copy them. If there are lots of files to check, it can take quite a while to build the list. Have you let it run overnight?


Tags for this Thread

Bookmarks

Bookmarks


Posting Permissions

I am working with some source files from a desktop computer. The source files compile and run on a remote server.

As there is a significant delay between me and the server, I have decided to use rsync to copy the files down to my computer, edit them, and then sync them back up, again using rsync.

However there is a problem… rsync doesn’t update the files when I sync them back up to the server after editing them at my end. The incremental file list is sent, but the file contents are unmodified.

Here is a full output of my bash session which will explain in detail what happens.

  • I have some files on my local machine. I edit one of those files, using an editor such as vim. The file structure is fairly generic. I have a project root directory called 2016-07-01, which contains many subfolders and source files. The folder is just named with the date as a method of version control.

(bash)

$ rsync -av ./2016-07-01 user@server:./path-to-project/2016-07-01
user@server's password: [enter password] 
sending incremental file list
2016-07-01/subfolder/
2016-07-01/subfolder/main.cpp

sent 2,238 bytes  received 272 bytes  557.78 bytes/sec
total size is 632,957  speedup is 252.17
  • It looks like main.cpp has been updated, but when I ssh into the server and open it with vim I see that it is unchanged. Why is this happening?

  • I then run the same command again and the following output is produced…

(bash)

$ rsync -av ./2016-07-01 user@server:./path-to-project/2016-07-01
user@server's password: [enter password] 
sending incremental file list

sent 1,342 bytes  received 36 bytes  110.24 bytes/sec
total size is 632,957  speedup is 459.33
  • This time no incremental file list is sent — I am not sure why — it is as if rsync thinks it has updated the files already and therefore does nothing when it has not…

  • If I check main.cpp at my end it has definitely been changed.

  • main.cpp on the server side is unchanged.

I have also tried using the -c flag for checksums rather than date-time-stamps, again the same result is seen.

  • #1

Hi guys! I tried looking everywhere for a solution, I even tried buying additional ram for my freebsd server. When I upload files from my Mac Laptop, I can upload just fine. But when I download the files from the server it returns

Code:

Vincents-MacBook-Pro:~ vincentsee$ rsync -avhPX root@10.0.0.201:/zroot/vincent/DS/"WLOP with 1 Free Content Every Month"/deathknight /Users/vincentsee/Desktop/
receiving incremental file list
rsync: link_stat "/zroot/vincent/DS/WLOP" failed: No such file or directory (2)
rsync: link_stat "/root/with" failed: No such file or directory (2)
rsync: link_stat "/root/1" failed: No such file or directory (2)
rsync: link_stat "/root/Free" failed: No such file or directory (2)
rsync: link_stat "/root/Content" failed: No such file or directory (2)
rsync: link_stat "/root/Every" failed: No such file or directory (2)
rsync: change_dir "/root//Month" failed: No such file or directory (2)

sent 8 bytes  received 539 bytes  364.67 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1721) [Receiver=3.1.2]
rsync: [Receiver] write error: Broken pipe (32)

It was working before, but now suddenly it stopped working, I thought I was out of ram, but now that doesn’t seem the case.

Does anyone know what can I do to fix this issue?

Thank you!

  • #2

root@10.0.0.201:/zroot/vincent/DS/»WLOP with 1 Free Content Every Month»/deathknight

You have a path with spaces but you aren’t escaping them properly. You’ll have to quote the path twice. The reason for that is that you can basically specify more than one file when rsyncing or scping i.e. rsync -a "root@10.0.0.201:foo bar" . will try to sync both

foo

and

bar

and not just the file

foo bar

.

Try with rsync -avhPX "root@10.0.0.201:'/zroot/vincent/DS/WLOP with 1 Free Content Every Month/deathknight'" /Users/vincentsee/Desktop/
or rsync -avhPX "root@10.0.0.201:/zroot/vincent/DS/"WLOP with 1 Free Content Every Month"/deathknight" /Users/vincentsee/Desktop/

  • Thread Starter

  • #3

You have a path with spaces but you aren’t escaping them properly. You’ll have to quote the path twice. The reason for that is that you can basically specify more than one file when rsyncing or scping i.e. rsync -a "root@10.0.0.201:foo bar" . will try to sync both

foo

and

bar

and not just the file

foo bar

.

Try with rsync -avhPX "root@10.0.0.201:'/zroot/vincent/DS/WLOP with 1 Free Content Every Month/deathknight'" /Users/vincentsee/Desktop/
or rsync -avhPX "root@10.0.0.201:/zroot/vincent/DS/"WLOP with 1 Free Content Every Month"/deathknight" /Users/vincentsee/Desktop/

Oh WOW! That worked the first try, I was thinking rsync has a bug these past few months, thank you! I learned something today! Awesome! ;)

  • #4

Hi Can anyone help with is ,
i run this command , ftwice it worked fine, now it is now
«rsync -aWHAXxvPS $backup_dir.tar.gz -e «ssh -T -c arcfour -o Compression=no -x» $BACKUP_TARGET_USER@$BACKUP_TARGET_IP:$BACKUP_TARGET_DIRECTORY/$TODAY_DATE»

Getting below error
sending incremental file list
rsync: link_stat «/root/.tar.gz» failed: No such file or directory (2)

sent 12 bytes received 12 bytes 48.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1052) [sender=3.0.9]
-bash-4.2#

SirDice


  • #5

Your

$backup_dir

variable is not defined, i.e. it’s empty.

I am trying to back up a server into a flashdrive with rsync:

rsync -rv --delete /home/computername/filename /dev/disk/by-label/Flashdrivename

It fails, with:

sending incremental file list
rsync: delete_file: unlink(Flashdrivename) failed: Permission denied (13)
could not make way for new regular file: filename

sent 53 bytes received 138 bytes 382.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]

if someone knows what’s the problem i would be very grateful if you told me.

  • backup
  • usb-drive
  • rsync

asked Jan 23, 2020 at 12:45

Sbeisse's user avatar

7

  • I think your Flash drive is write-protected. rsync tries to copy filename to it, but there is already a file with the same name on it, and rsync is not allowed to overwrite it. You will get a similar error if you try to manually copy the file.

    Jan 23, 2020 at 12:55

  • @Jos i formated the flash drive so there would not be any same files and now when i but that command it says:

    Jan 24, 2020 at 8:23

  • sending incremental file list [sender] make_file(filename,*,0) send_file_list done send_files starting server_recv(2) starting pid=20660 recv_file_name(filename) received 1 names recv_file_list done

    Jan 24, 2020 at 8:26

  • get_local_name count=1 /dev/disk/by-label/flashdrivename generator starting pid=20660 delta-transmission disabled for local transfer or —whole-file recv_generator(flashdrivename,1) send_files(1, /home/servername/serverfile) send_files mapped /home/servername/serverfile of size 0 calling match_sums /home/servername/serverfile all_databases.sql sending file_sum false_alarms=0 hash_hits=0 matches=0 sender finished /home/servername/serverfile generate_files phase=1 recv_files(1) starting recv_files(flashdrivename)

    Jan 24, 2020 at 8:27

  • Please edit your question and add this material so we can make sense of it.

    Jan 24, 2020 at 8:51

In a bash script (Arch Linux) I have the following rsync command:

rsync –nvaAHX --inplace --delete-delay --exclude-from="/etc/$path1/exclude-list-$configName.txt" "$new_snap/" "$BACKUPDIR"

The rsync command fails with the following error:

rsync: --delete does not work without --recursive (-r) or --dirs (-d).

Of course, that message is misleading as «a» implies «r».

If I remove the option «—delete-delay» from the rsync command, I get this different error:

rsync: link_stat "/some/path/–aAHX" failed: No such file or directory (2)

The value shown at «/some/path» is the current working directory. If I change the current directory, that value in the error message changes as well. However, why the options «-aAHX» would be appended to any part of the path is confusing.

The computer is a fully updated Arch Linux system. I just rebooted it as well.

4.13.11-1-ARCH #1 SMP PREEMPT Thu Nov 2 10:25:56 CET 2017 x86_64 GNU/Linux

rsync program location:

# which rsync
/usr/bin/rsync

Here is the test script:

#!/bin/bash

path1=xyz
configName=root
new_snap=/.snapshots/1/snapshot
BACKUPDIR=/backup/$configName

echo "showing exclude file contents:"

cat "/etc/$path1/exclude-list-$configName.txt"

echo

echo rsync –nvaAHX --inplace --delete-delay --exclude-from="/etc/$path1/exclude-list-$configName.txt" "$new_snap/" "$BACKUPDIR"

rsync –nvaAHX --inplace --delete-delay --exclude-from="/etc/$path1/exclude-list-$configName.txt" "$new_snap/" "$BACKUPDIR"

Here are the contents of the file «/etc/$path/exclude-list-$configName.txt»:

"dev/*"
"proc/*"
"sys/*"
"tmp/*"
"run/*"
"mnt/*"
"media/*"
"lost+found"
".trash*/*"
".Trash*/*"

Here is some testing without any script at all. I find it baffling.

# mkdir adir
# mkdir bdir
# touch adir/afile1
# touch adir/afile2

# ls -la adir/
total 0
drwxr-x--x 1 root root           24 Nov 12 02:21 .
drwxr-xr-x 1 user user         2080 Nov 12 02:28 ..
-rw-r----- 1 root root            0 Nov 12 02:21 afile1
-rw-r----- 1 root root            0 Nov 12 02:21 afile2
# ls -la bdir/
total 0
drwxr-x--x 1 root root            0 Nov 12 02:21 .
drwxr-xr-x 1 user user         2080 Nov 12 02:28 ..


# rsync -nva adir/ bdir
sending incremental file list
./
afile1
afile2

sent 93 bytes  received 25 bytes  236.00 bytes/sec
total size is 0  speedup is 0.00 (DRY RUN)

# rsync -nva /home/user/adir/ /home/user/bdir
sending incremental file list
./
afile1
afile2

sent 93 bytes  received 25 bytes  236.00 bytes/sec
total size is 0  speedup is 0.00 (DRY RUN)


# rsync –nvaAHX --inplace --delete-delay --exclude-from=/root/exclude-list-root.txt /home/user/adir/ /home/user/bdir/
rsync: --delete does not work without --recursive (-r) or --dirs (-d).
rsync error: syntax or usage error (code 1) at main.c(1567) [client=3.1.2]
# rsync –nvaAHX --inplace --delete-delay /home/user/adir/ /home/user/bdir/
rsync: --delete does not work without --recursive (-r) or --dirs (-d).
rsync error: syntax or usage error (code 1) at main.c(1567) [client=3.1.2]
# rsync –nvaAHX --inplace /home/user/adir/ /home/user/bdir/
rsync: link_stat "/home/user/–nvaAHX" failed: No such file or directory (2)
skipping directory .
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]
# rsync –nvaAHX /home/user/adir/ /home/user/bdir/
rsync: link_stat "/home/user/–nvaAHX" failed: No such file or directory (2)
skipping directory .
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]
# rsync –nva /home/user/adir/ /home/user/bdir/
rsync: link_stat "/home/user/–nva" failed: No such file or directory (2)
skipping directory .
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]

Are you finding a solution for rsync skipping non-regular file error? we are here to help you.

Here at Bobcares, we receive requests to fix rsync errors and other similar hosting errors as part of our Server Management Services.

Today, we’ll see why this error occurs and also see how to fix it.

Reasons for rsync skipping non-regular file error

Rsync is usually used for sharing files and directories between two different servers.  Rsync command utility is very useful when performing data backup and mirroring.

However, it may not work as we expect and gives an error like rsync skipping non-regular file.  Mostly, this error occurs when files are transferred using rsync.

For instance, the error message appears below.

rsync -rtvp /source/backup /destination
sending incremental file list
backup/myfiles
skipping non-regular file "backup/myfiles/foo"
skipping non-regular file "backup/myfiles/bar"

How to solve rsync skipping non-regular file error

Now let us see the suggestions our Support Engineers provide to our customers to resolve this error message.

Missing symlinks

While copying files between servers, there is a chance to not copy the symlinks. Because symlinks are skipped by default. Symlinks cause a security risk on the server.

To verify any files are symbolic links, use the below commands,

file /path/to/file
/path/to/file: symbolic link to `/path/file`
find /path -type l
/path/to/file

Rsync has useful flags such as -l which copy symlinks as symlinks. So, adding -l to the command solves the error.

rsync -rtvpl /source/backup /destination

Lack of recursive mode option

Similarly, the rsync skipping directory error can occur when miss to put it into a recursive mode like -r or -a.

rsync -rPz /my/local/back/ destination:/my/remote/dir

In addition, use -a instead of -r. -a means to reproduce file hierarchies, including special files and permissions. Also, the option -r only to recurse on directories whereas -a needed for a data backup.

[Need any further assistance in fixing sync errors? – We’re available 24*7]

Conclusion

In short, this rsync error happens due to missing symlinks or lack of a recursive mode option while transferring data between servers.  Today,  we saw how our Support Engineers provide a work-around for this error.

Понравилась статья? Поделить с друзьями:
  • Rsync error remote command not found
  • Rs9 machinist x99 коды ошибок
  • Rsync error protocol incompatibility code 2
  • Rs 232 framing error
  • Rsync error in socket io code 10