当前位置:网站首页>Rsync common error messages (common errors on the window)
Rsync common error messages (common errors on the window)
2022-06-26 04:40:00 【Half crazy and half bumpy】
Question 1 :
@ERROR: chroot failed
rsync error: error starting client-server protocol (code 5) at main.c(1522) [receiver=3.0.3]
reason :
The directory on the server side does not exist or has no permissions , Creating a directory and fixing permissions solves the problem .
Question two :
@ERROR: auth failed on module tee
rsync error: error starting client-server protocol (code 5) at main.c(1522) [receiver=3.0.3]
reason :
The server side module (tee) Need to verify username and password , But the client didn't provide the correct user name and password , Authentication failed .
Provide the correct user name 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) [receiver=3.0.3]
reason :
The specified module does not exist on the server . Provide the correct module name or modify it to the module you want on the server side to solve the problem .
problem 1:
stay client Problems encountered on :
rsync -auzv --progress --password-file=/etc/rsync.pas [email protected]::backup /home/
rsync: could 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) [Receiver=3.0.7]
We have this problem :client The terminal is not set /etc/rsync.pas This file , But in the use of rsync When ordered , Add this parameter --
password-file=/etc/rsync.pas
problem 2:
rsync -auzv --progress --password-file=/etc/rsync.pas [email protected]::backup /home/
@ERROR: auth failed on module backup
rsync error: error starting client-server protocol (code 5) at main.c(1506) [Receiver=3.0.7]
We have this problem :client The end has been set /etc/rsync.pas This file , The password is also set inside 111111, Consistent with the server , however
Server segment setting error , The server side should be set with /etc/rsync.pas , What's in it root:111111 , The login name here is indispensable
problem 3:
rsync -auzv --progress --password-file=/etc/rsync.pas [email protected]::backup /home/
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1506) [Receiver=3.0.7]
We have this problem , Because of the server side /home/backup among backup This directory is not set , So the tip :chdir failed
problem 4:
rsync: write failed on "/home/backup2010/wensong": No space left on device (28)
rsync error: error in file IO (code 11) at receiver.c(302) [receiver=3.0.7]
rsync: connection unexpectedly closed (2721 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [generator=3.0.7]
Not enough disk space , So it can't be operated .
Can pass df /home/backup2010 To view available and used space
problem 5: Network collection problems
1、 Permission problems
Similar to the following tips :rsync: opendir "/kexue" (in dtsChannel) failed: Permission denied (13) Check whether the synchronized 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) [receiver=3.0.5]
Check the port of the server netstat –tunlp, long-range telnet test .
It may be because the firewall on the client or server is turned on Cause no communication , You can set rules to release rsync(873 port ) Or simply close the firewall .
There is also a possibility that you may be prompted that you do not have permission during synchronization ( Add... To the synchronization directory SvcwRsync All permissions are sufficient , The simpler way is to SvcwRsync Set as administrator )
3、 Service 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) [receiver=3.0.5]
Start the service :rsync --daemon --config=/etc/rsyncd.conf
4、 Disk space is full
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 lot of files
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(544) [receiver=3.0.5]
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(544) [generator=3.0.5]
6、xnetid start-up
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(759) [receiver=3.0.5]
see rsync journal
rsync: unable to open configuration file "/etc/rsyncd.conf": No such file or directory
xnetid The default location of the configuration file to be searched is /etc Next , Create soft links according to specific situations . for example :
ln -s /etc/rsyncd/rsyncd.conf /etc/rsyncd.conf
Or change the default configuration file path , stay /etc/xinetd.d/rsync In profile .
installed cwRsync After the client , Start writing bat Executable files , The first thing you encounter is when you synchronize to the local I don't know the catalog , An error is as follows :
The source and destination cannot both be remote.
rsync error: syntax or usage error (code 1) at main.c(1138) [Receiver=3.0.7]
The main reason is cwRsync You can't know the local disk directly , Have to add /cygdrive/g/test
You mean for g:\test Catalog
The client password file reports an error as follows :
rsync password file must be owned by root when running as root
Omnipotent GOOGLE Tell me , There is a flexible way to solve this problem
@echo off
"C:\Program Files (x86)\cwRsync\bin\rsync" -rlptDzv --progress --delete "[email protected]::test" /cygdrive/g/test --password-file=/cygdrive/g/rsync/passws.ps
stay g:\rsync Create a file under , Write password , Then synchronize the password and enter it in this file . Example above .
rsync Summary of problems
In use rsync When synchronizing data , There are always problems , What I will encounter is summarized as follows :
1、 Permission problems
Similar to the following tips :rsync: opendir "/kexue" (in dtsChannel) failed: Permission denied (13) Check whether the synchronized 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) [receiver=3.0.5]
Check the port of the server netstat –tunlp, long-range telnet test .
3、 Service 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) [receiver=3.0.5]
Start the service :rsync --daemon --config=/etc/rsyncd.conf
4、 Disk space is full
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 lot of files
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(544) [receiver=3.0.5]
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(544) [generator=3.0.5]
6、xnetid start-up
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(759) [receiver=3.0.5]
see rsync journal
rsync: unable to open configuration file "/etc/rsyncd.conf": No such file or directory
xnetid The default location of the configuration file to be searched is /etc Next , Create soft links according to specific situations . for example :
ln -s /etc/rsyncd/rsyncd.conf /etc/rsyncd.conf
Common mistakes :
A wrong
rsync: failed to connect to 96.44.169.178 (*inet_ntop failed*): Connection timed
out (116)
1 [main] rsync 3468 exception::handle: Exception: STATUS_ACCESS_VIOLATION
740 [main] rsync 3468 open_stackdumpfile: Dumping stack trace to rsync.exe.s
tackdump
1, Firewall problem
2, The port is wrong
Error 2
@ERROR: auth failed on module www
rsync error: error starting client-server protocol (code 5) at main.c(1516) [Rec
eiver=3.0.8]
The password is wrong
Error of three
@ERROR: invalid uid nobody
rsync error: error starting client-server protocol (code 5) at main.c(1516) [Rec
eiver=3.0.8]
UID incorrect , The default is nobody
resolvent :
uid = 0
gid = 0
Error four
receiving incremental file list
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(769) [receive
r=3.0.8]
rsync: connection unexpectedly closed (60 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at io.c(610) [generat
or=3.0.8]
Possible causes :
1, Disk mounting is done asynchronously (async)
then , Checked /etc/fstab , Get rid of async Parameters .
2, I check the log on the server , See such a line :
rsync: unable to open configuration file "/etc/rsyncd.conf": No such file or directory
So I :
ln -s /etc/rsyncd/rsyncd.conf /etc/rsyncd.conf
3, Error synchronizing directories with a large number of files
There are many files in subdirectories , It's just 8000 Come on , Always exit halfway through synchronization . Add... To the batch -v Parameters , See the following error message :
rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Connection reset by peer (104)
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(768) [sender=
3.0.6]
This is a bit of a headache , stay www.itefix.no No reason can be found on the website forum .
But in the end samba.org Find a solution on :
Add... To the client command line --no-iconv Parameters are OK .
I thought there were too many documents , Insufficient buffers cause , But look at this solution , It seems to be in transcoding bug 了 .
stay rsync The following is described in the documentation of :
--iconv=CONVERT_SPEC
Rsync can convert filenames between character sets using this option. Using a CONVERT_SPEC of "." tells rsync to look up the default character-set via the locale setting. Alternately, you can fully specify what conversion to do by giving a local and a remote charset separated by a comma in the order --iconv=LOCAL,REMOTE, e.g. --iconv=utf8,iso88591. This order ensures that the option will stay the same whether you're pushing or pulling files. Finally, you can specify either --no-iconv or a CONVERT_SPEC of "-" to turn off any conversion. The default setting of this option is site-specific, and can also be affected via the RSYNC_ICONV environment variable.
4. stay window On ,rsync Synchronization data error :
rsync error: some files/attrs were not transferred (see previous errors) (code 2 3) at main.c(1052) [sender=3.0.8]
reason :
because rsync The user executing on the server does not have write permission to the synchronized file .
Default rsync In order to SvcCWRSYNC This user is running , Generally, the user does not have write permission for synchronized files .SvcCWRSYNC By default, it belongs to User Group .
take rsync Server side of SvcCWRSYNC This user belongs to add administrator The group can solve the above error report .
Here's the picture :

-----------------------------------
The copyright belongs to the author : come from 51CTO Blogger O & M Anna The original work of , Declined reprint , Otherwise, the legal liability will be investigated
rsync( stay window Common errors in end use )
rsync( stay window Common errors in end use )_Anna--linux Home's technology blog _51CTO Blog
边栏推荐
- Svn correlation
- Multipass中文文档-使用实例命令别名
- Install cenos in the virtual machine
- Install dbeaver and connect Clickhouse
- ctf [RoarCTF 2019]easy_ calc
- CTF serialization and deserialization
- 35 year old programmer fired Luna millions of assets and returned to zero in three days. Netizen: it's the same as gambling
- 修改Oracle连接数
- Fastadmin always prompts sqlstate[23000]: integrity constraint violation: 1052 column 'ID' in order clause is am
- #微信小程序# 在小程序里面退出退出小程序(navigator以及API--wx.exitMiniProgram)
猜你喜欢

2020-12-18

Mysql8.0 configuring my SQL in INI file_ mode=NO_ AUTO_ CREATE_ User can start

MySQL index details

mysql高级学习(跟着尚硅谷老师周阳学习)

Dameng database backup and restore

Database design (3): database maintenance and optimization

Tp6 multi table Association (table a is associated with table B, table B is associated with table C, and table d)

Resolve PHP is not an internal or external command

PHP small factory moves bricks for three years - interview series - my programming life

文件上传与安全狗
随机推荐
BACK-OFF RESTARTING FAILED CONTAINER 的解决方法
NPM installation tutorial
Thymeleaf data echo, single selection backfill, drop-down backfill, time frame backfill
Thinkphp6 parsing QR code
Dameng database backup and restore
202.2.9
Database design (3): database maintenance and optimization
Microsoft prohibits Russian users from downloading and installing win10/11
2021/11/6-burpsuit packet capturing and web page source code modification
Simple application of KMP
Guide de la pompe de données Oracle
PIP batch complete uninstall package
Simple use of redis in laravel
1.12 learning summary
Tp6 multi table Association (table a is associated with table B, table B is associated with table C, and table d)
Condition query
"Eight hundred"
1.17 learning summary
There is no response to redirection and jump in the laravel constructor [original]
[H5 development] 02 take you to develop H5 list page ~ including query, reset and submission functions