Rsync error


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Rsync error
# 1  
Old 09-03-2016
Rsync error

this rsync from one day to the other simply no longer works, the key is ok, permissions and other ... with the same key can not connect via SSH which shows that there are no errors, but rsync it just does not work. Smilie


Code:
root@san [~]# rsync -avz -e "ssh -p 22 -i /root/.ssh/rsync" root@XXXX.XXXX.XXXX:/root/log/load* /root/log/


on the server that I try to connect it receives the normal input access but then I cancel and the warning that was disconnected by the user.In other servers work as usual worked in that.

Code:
Sep  3 15:02:30 ns515801 sshd[725640]: pam_unix(sshd:session): session opened for user root by (uid=0)
Sep  3 15:02:31 ns515801 sshd[725640]: Received disconnect from XXXXXXX: 11: disconnected by user


what you think of strange, but do not know how it was before, iptables stop despite it continues running only without rules. (On the server where the file is to try to bring a file rsync)

Smilie

Code:
[root@ns515801 log]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:  iptable_nat iptable_filter ip[FAILED]t iptable_filter ip_tables
[root@ns515801 log]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination

[root@ns515801 log]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:  iptable_nat iptable_filter ip[FAILED]t iptable_filter ip_tables



using the same key to access a server to another it usually accesses


Code:
ssh -i /root/.ssh/rsync -p 22 -l root XXX.XXX.XXX



now when I stop iptables on the source server, which I call the file rsync it of the status of the iptables stopped normally.

Code:
root@san [~]# service iptables stop
iptables: Setting chains to policy ACCEPT: filter nat      [  OK  ]
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Unloading modules:                               [  OK  ]
root@san [~]# service iptables status
iptables: Firewall is not running.



Can someone help me please. Smilie

Thank you very much.
# 2  
Old 09-13-2016
Please provide some clarity to your question.

Quote:
this rsync from one day to the other simply no longer works
Does this mean it works intermittently or that it did work and no longer works?

It sounds like you are having an ssh issue and not necessarily an rsync issue? It is not clear in your post if turning off the firewall fixes the issue or not. If not, does root's home directory and .ssh subdirectory on the remote system have permissions of 700?
# 3  
Old 09-13-2016
He worked without any problem from one day to the other stopped working.

Permission is 700 yes.

I'm turning off the firewall but when the status says he's still running, I'm not able to effectively stop iptables

the key for ssh access works (no password) with the same key that should work in rsync (which always worked)

I've checked the permissions, have created a new key and simply does not work.

I do not know what to test to find the problem.

what do you suggest? Thank you very much.
# 4  
Old 09-13-2016
you can try adding more verbosity to the rsync output. just add more v's.

Code:
rsync -azvv ...


Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 09-13-2016 at 05:40 PM.. Reason: Added CODE tags.
# 5  
Old 12-11-2016
Guys, I'm going to give you feedback on the problem, I got it sorted out.

The permissions, keys, firewall, iptables were all correct.

The problem was the motd that was locking rsync.

I removed the motd and it worked again, then I found it

Code:
     --no-motd               suppress daemon-mode MOTD (see caveat)

thank you all
This User Gave Thanks to c0i0t3 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Rsync an rcp error

Hi, I have installed rsync (together with its dependencies) in both source and destination HPUX servers (V 11.31). However when I attempt to copy files over (as user root) I get this error : # rsync -avz ./* root@10.97.131.4:/tmp/copy Password: sh: rsync: not found. rsync: connection... (5 Replies)
Discussion started by: anaigini45
5 Replies

2. Shell Programming and Scripting

Rsync Error: rsync: link_stat failed: No such file or directory (2)

I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies

3. Shell Programming and Scripting

Error while running Rsync

hi All, i am getting some error while running Rsync, and unable to find error at Google even, could anyone help me here please. ---------- Post updated 08-31-13 at 07:47 AM ---------- Previous update was 08-30-13 at 04:35 PM ---------- above problem got resolved because it was not... (4 Replies)
Discussion started by: lovelysethii
4 Replies

4. UNIX for Advanced & Expert Users

Rsync error while running from destination to source

hi All, i have 2 server setup now for Rsync, i configured Rsync on both of the server and it worked well when i did run from source to destination. and while running back from destination to source it produced this error: bash-3.2$ ksh rsync_bravo_db.ksh usa0300uz1247.apps.mc.xerox.com... (0 Replies)
Discussion started by: lovelysethii
0 Replies

5. UNIX for Advanced & Expert Users

Error while running Rsync through Crontab

hi All, i have implemented Rsync in my source and destination server. while running through command prompt it is working fine: ksh rsync_bravo_db.ksh usa0300uz1252.apps.mc.xerox.com /uv1402/u207/home/bravodba/bin/rsync-3.0.9/config/mrsx_rsync.cfg but later on i created a another ksh and... (4 Replies)
Discussion started by: lovelysethii
4 Replies

6. Solaris

rsync - remote connection error

Hi , We have installed rsync in two Solaris boxes, when we try to sync files from one machine to another.. it is giving the following error. ld.so.1: rsync: fatal: libiconv.so.2: open failed: No such file or directory rsync: connection unexpectedly closed (0 bytes received so far) rsync... (1 Reply)
Discussion started by: MVEERA
1 Replies

7. UNIX for Dummies Questions & Answers

rsync Error

hi I am running a rsync from one of our remote sites to the main building. i am using this command to run betwwen 2 linux servers rsync -aWv -e ssh --stats progress --delete --ignore-errors /raid1/PRODUCTION/WORK_IN_PROGRESS_PEARTREE/ 5.0.2.245:/prod2/RSYNCS/CREATIVE2/ >>... (2 Replies)
Discussion started by: treds
2 Replies

8. Shell Programming and Scripting

[BASH] rsync - error on destination

Hi everyone, and thanks to all for your assistance. I have a problem with the rsync command. I want to make a backup of a "source" directory in a "destination" directory. I want to specify: "absolute path of destination" (identified by a ~): ~/Destination or a "relative path of... (0 Replies)
Discussion started by: PaganoM
0 Replies

9. UNIX for Dummies Questions & Answers

Rsync Error

hi I have set up a rsync between to linux servers. One running Red Hat the other suse. The data is coping over but the sync using the delete option is not working. Output from command rsync -aWv --stats progress --delete /prod/CREATIVE2/WORK_IN_PROGRESS_PEARTREE 5.0.3.30:/raid1/PRODUCTION/... (0 Replies)
Discussion started by: treds
0 Replies

10. AIX

parsing error when I run RSYNC

This is what I get when I run the RSYNC command. I just created brand new ssh2 rsa keys. warning: /come/out/and/play/.ssh2/id_rsa_2048_a: 4: parsing line failed. warning: /come/out/and/play/.ssh2/id_rsa_2048_a: 5: parsing line failed. warning: " " " " " " " " ... (3 Replies)
Discussion started by: tfort73
3 Replies
Login or Register to Ask a Question