rsync error

rsync error:No route to host

rsync server open iptables firewall 

   [root @ nfs01 tmp] # rsync -avz / etc / hosts [email protected] :: Backup 

   rsync: failed The to Connect to 172.16.1.41: No route to Host (113) 

   rsync error: error in socket IO (code 10) at clientserver.c (124) [sender = 3.0.6] 

   unusual problems to solve: 

   Close rsync server firewall service (iptables) 

   [root @ Backup mnt] # /etc/init.d/iptables STOP 

   iptables: Setting chains to Policy ACCEPT: filter [the OK] 

   iptables: Flushing Firewall rules: [the OK] 

   iptables: Unloading modules: [the OK] 

   [root @ Backup mnt] # /etc/init.d/iptables Status 

   iptables: Firewall IS not running.

ERROR: The remote path must start with a module name not a /

rsync command rsync client performs error: 
   client Symptom:    
   [root @ nfs01 tmp] # rsync -avz / etc / hosts [email protected] :: / Backup 
   ERROR: Start with the MUST path at The Remote Module A name not A / 
   rsync error: error starting client-server protocol (code 5) at main.c (1503) [sender = 3.0.6] 
   unusual problems to solve: 
   rsync command syntax misunderstood, :: / backup grammar is wrong, should :: backup (rsync module)

@ERROR: auth failed on module backup

@ERROR: auth failed on module oldboy 
   client Symptom: 
   [root @ nfs01 tmp] # rsync -avz / etc / hosts [email protected] :: Backup 
Password: 
@ERROR: auth failed The ON Module Backup 
rsync error: error Starting client-server protocol (code 5) at main.c (1503) [sender = 3.0.6] 
   unusual problems to solve: 
   1. enter the wrong password is really, really wrong user name 
   2. secrets file = /etc/rsync.password specified password file and the actual password file name is inconsistent 
   3. /etc/rsync.password file permissions are not 600 
   4. rsync_backup: 123456 password configuration file behind careful not to have spaces 
   5. rsync client password file can only enter password information, Do not enter the virtual authenticated user name

@ERROR: Unknown module 'backup'

Unknown module 'backup'   

[root@nfs01 tmp]# rsync -avz /etc/hosts [email protected]::backup

@ERROR: Unknown module 'backup'

rsync error: error starting client-server protocol (code 5) at main.c(1503) [sender=3.0.6]

 Unusual problems to solve:

 1. /etc/rsyncd.conf profile module name clerical error

 

 2. profile segment does not limit

Permission denied

Case 1

sync -avzP --delete /data/  [email protected]::nfsbackup --password-file=/etc/rsync.password

sending incremental file list

./

rsync: failed to set times on "." (in nfsbackup): Operation not permitted (1)

ett.txt

         324 100%    0.00kB/s    0:00:00 (xfer#1, to-check=13/15)

ett.txt_hard_link

         324 100%  316.41kB/s    0:00:00 (xfer#2, to-check=12/15)

oldboyedu/

rsync: recv_generator: mkdir "oldboyedu" (in nfsbackup) failed: Permission denied (13)

Case 2

[root @ nfs01 tmp] # rsync -avz / etc / hosts [email protected] :: Backup 

Password: 

sending with the incremental File List 

hosts 

rsync: mkstemp ".hosts.5z3AOA" (in Backup) failed The: Permission denied (13) 

 

Sent Received bytes 63.71 27 bytes 196 bytes / sec 

Total size 349 IS IS 1.57 Speedup 

the rsync error: some Files / Not attrs were Transferred (See Previous errors) (code 23 is) main.c AT (1039) [SENDER = 3.0.6]    

   exception problem solving: 

   owner and 1 is a group of the shared directory is not correct, not rsync 

   2. shared directory permissions are incorrect, not 755

chdir failed    

[@ nfs01 the root tmp] # -avz the rsync / etc / [email protected] the hosts :: Backup 

Password: 

@ERROR: the chdir failed 

the rsync error: error Starting Client-Server Protocol (code. 5) main.c AT (1503) [ sender = 3.0.6] 

    unusual problems to solve: 

    1. backup storage directory is not established 

    backup storage directory and configuration files 2. establish a definition inconsistent 

[root @ backup backup] # /etc/init.d/xinetd restart 

shell-the init: error Retrieving Current Directory: getcwd: CAN not Access parent Directories: No SUCH File or Directory 

Stopping xinetd: [the OK] 

Starting xinetd: shell-the init: error Retrieving Current Directory: getcwd: CAN not Access parent Directories: No SUCH File or Directory 

                                                           [the OK]

Note: If no backup storage directory, xinetd services can not start correctly

invalid uid rsync

[@ nfs01 the root tmp] # -avz the rsync / etc / [email protected] the hosts :: Backup 

Password: 

@ERROR: invalid UID the rsync 

the rsync error: error Starting Client-Server Protocol (code. 5) main.c AT (1503) [sender = 3.0.6] 

    unusual problems to solve: 

rsync rsync service corresponding to the virtual user does not exist

continuing without password file

The client has been configured password file, but avoid secret key login, still you need to enter a password

File the MUST BE OTHER not password-Accessible 

[root @ nfs01 tmp] # rsync -avz / etc / hosts [email protected] :: Backup --password = / etc / rsync.password 

password File not the MUST-BE OTHER Accessible 

file the without password Continuing 

password: 

sending with the incremental file List 

Sent Received 26 bytes 8 bytes 5.23 bytes / sec 

Total size iS 349 iS 10.26 Speedup 

    unusual problems to solve: 

rsync client's secret key file permissions must be 600

rsync client connection problems slow

错误日志输出

2017/03/08 20:14:43 [3422] params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors

2017/03/08 20:14:43 [3422] name lookup failed for 172.16.1.31: Name or service not known

2017/03/08 20:14:43 [3422] connect from UNKNOWN (172.16.1.31)

2017/03/08 20:14:43 [3422] rsync to backup/ from rsync_backup@unknown (172.16.1.31)

2017/03/08 20:14:43 [3422] receiving file list

2017/03/08 20:14:43 [3422] sent 76 bytes  received 83 bytes  total size 349

正确日志输出

2017/03/08 20:16:45 [3443] params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors

2017/03/08 20:16:45 [3443] connect from nfs02 (172.16.1.31)

20:16:45 2017/03/08 [3443] rsync Backup to / from rsync_backup @ nfs02 (172.16.1.31) 

2017/03/08 20:16:45 [3443] Receiving File List 

2017/03/08 20:16 : 45 [3443] sent 76 bytes received 83 bytes total size 349 

    unusual problems to solve: 

view the log for analysis

rsync service did not start properly Connection refused (111)

 [root@oldboy-muban ~]#  rsync -avz /etc/hosts [email protected]::backup

rsync: failed to connect to 172.16.1.41: Connection refused (111)

rsync error: error in socket IO (code 10) at clientserver.c(124) [sender=3.0.6]

解决 rsync服务没开启

[root@oldboy-muban ~]# rsync --daemon

[root@oldboy-muban ~]# ss -lntup |grep rsync

tcp    LISTEN     0      5                     :::873                  :::*      users:(("rsync",1434,5))

tcp    LISTEN     0      5                      *:873                   *:*      users:(("rsync",1434,4))

[root@oldboy-muban ~]# rsync -avz /etc/hosts [email protected]::backup

Password:

sending incremental file list

hosts

 

sent 196 bytes  received 27 bytes  49.56 bytes/sec

total size is 349  speedup is 1.57

 

Guess you like

Origin www.cnblogs.com/HByang/p/11876562.html