Rsync Common Errors and Solutions

Source: Internet
Author: User
Tags connection reset

We can view the error logs.
In rsyncd. log or the. err file, you can open it in notepad.

Note that in windows, we need to grant SvcwRsync users all the permissions to manage the synchronization directory. This is basically the case.

Question 1:
@ ERROR: chroot failed
Rsync error: error starting client-server protocol (code 5) at main. c (1522) [runner ER = 3.0.3]

Cause:
The directory on the server does not exist or has no permissions. Creating a directory and correcting permissions can solve the problem.

Question 2:
@ ERROR: auth failed on module tee
Rsync error: error starting client-server protocol (code 5) at main. c (1522) [runner ER = 3.0.3]

Cause:
On the server side, this module (tee) needs to verify the user name and password, but the client does not provide the correct user name and password. Authentication fails.
Provide the correct username and password to solve this problem.

Question 3:
@ ERROR: Unknown module 'TEE _ nonexists'
Rsync error: error starting client-server protocol (code 5) at main. c (1522) [runner ER = 3.0.3]

Cause:
The specified module does not exist on the server. Provide the correct module name or modify it on the server to the module you want to solve the problem.

Question 1:
Problems encountered on the client:
Rsync-auzv -- progress -- password-file =/etc/rsync. pas root@192.168.133.128: backup/home/
Rsync: cocould not open password file "/etc/rsync. pas": No such file or directory (2)
Password:
@ ERROR: auth failed on module backup
Rsync error: error starting client-server protocol (code 5) at main. c (1506) [runner ER = 3.0.7]
This problem occurs: the file/etc/rsync. pas is not set on the client, but this parameter is added when the rsync command is used --
Password-file =/etc/rsync. pas

Question 2:
Rsync-auzv -- progress -- password-file =/etc/rsync. pas root@192.168.133.128: backup/home/
@ ERROR: auth failed on module backup
Rsync error: error starting client-server protocol (code 5) at main. c (1506) [runner ER = 3.0.7]
This problem occurs: the file/etc/rsync. pas has been set on the client, and the password 111111 is set in it, which is consistent with that on the server,
The server segment is set incorrectly. The server side should set/etc/rsync. pas, which contains root: 111111. the login name is indispensable here.

Question 3:
Rsync-auzv -- progress -- password-file =/etc/rsync. pas root@192.168.133.128: backup/home/
@ ERROR: chdir failed
Rsync error: error starting client-server protocol (code 5) at main. c (1506) [runner ER = 3.0.7]
This problem occurs because the/home/backup directory on the server is not set, so the prompt is: chdir failed

Question 4:
Rsync: write failed on "/home/backup2010/wensong": No space left on device (28)
Rsync error: error in file IO (code 11) at handler er. c (302) [handler ER = 3.0.7]
Rsync: connection unexpectedly closed (2721 bytes encoded Ed so far) [generator]
Rsync error: error in rsync protocol data stream (code 12) at io. c (601) [generator = 3.0.7]
Unable to operate because the disk space is insufficient.
You can use df/home/backup2010 to view available and used space.

Question 5: network collection problems
1. Permission issues
A message similar to the following is displayed: rsync: opendir "/kexue" (in dtsChannel) failed: Permission denied (13) check whether the synchronization directory Permission is 755.
2. time out
Rsync: failed to connect to 203.100.192.66: Connection timed out (110)
Rsync error: error in socket IO (code 10) at clientserver. c (124) [handler ER = 3.0.5]
Check the server port netstat-tunlp for remote telnet testing.
3. The service is not started.
Rsync: failed to connect to 10.10.10.170: Connection refused (111)
Rsync error: error in socket IO (code 10) at clientserver. c (124) [handler ER = 3.0.5]
Start the service: rsync -- daemon -- config =/etc/rsyncd. conf
4. Full disk space
Rsync: recv_generator: mkdir "/teacherclubBackup/rsync ...... "Failed: No space left on device (28)
* ** Skipping any contents from this failed directory ***
5. Ctrl + C or a large number of files
Rsync error: canceled ed SIGINT, SIGTERM, or SIGHUP (code 20) at rsync. c (544) [Cycler = 3.0.5]
Rsync error: canceled ed SIGINT, SIGTERM, or SIGHUP (code 20) at rsync. c (544) [generator = 3.0.5]
6. xnetid startup
Rsync: read error: Connection reset by peers (104)
Rsync error: error in rsync protocol data stream (code 12) at io. c (759) [runner ER = 3.0.5]
View rsync logs
Rsync: unable to open configuration file "/etc/rsyncd. conf": No such file or directory
The default location of the configuration file for xnetid search is/etc, and a soft link is created based on the actual situation. For example:
Ln-s/etc/rsyncd. conf/etc/rsyncd. conf
You can also change the path of the specified default configuration file in the/etc/xinetd. d/rsync configuration file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.