[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

pipe through ssh problem



I have a problem that just popped up since an "update".
I have a "backup" procedure that runs from one box to another,
piping via ssh.
What appears to happen is that when the remote side (the debian
box) has written 102400000 bytes, it just dies.  102400000 bytes
exactly, every time.
I've included the script, the verbose client output, the regular
client output, and the verbose server output.  I have tried it
from several clients, all with the same result.  It started
happening when I did some security updates.  Keep in mind that
this was working "perfectly" up until that point.
I have no idea what the problem is, and have tried everything
I could think of.
Feedback, suggestions, comments, horror stories all welcome.
davel

script:
#!/bin/sh
# backup script
DT=`date +%Y%m%d%H`
SSH=/usr/bin/ssh
/bin/tar -c -l -T/root/bin/backup.weekly.cfg -X/root/bin/backup.weekly.x -f -
| $SSH user@backup.kci.net /bin/dd of=weekly.$DT.tar

verbose client output:
<snipped>
debug1: Sending command: /bin/dd of=weekly.2001122715.tar
debug1: Entering interactive session.
debug1: fd 0 setting O_NONBLOCK
Read from remote host backup.kci.net: Broken pipe
debug1: Transferred: stdin 102414336, stdout 0, stderr 51 bytes in 174.3
seconds
debug1: Bytes per second: stdin 587576.9, stdout 0.0, stderr 0.3
debug1: Exit status -1

normal client output:
[root@www bin]# ./backup.weekly
/bin/tar: Removing leading `/' from absolute path names in the archive
Read from remote host backup.kci.net: Broken pipe

verbose server log:
<snipped>
Dec 27 16:42:04 backup sshd[346]: debug1: session_new: init
Dec 27 16:42:04 backup sshd[346]: debug1: session_new: session 0
Dec 27 16:42:04 backup sshd[346]: debug1: Exec command '/bin/dd
of=weekly.2001122716.tar'
Dec 27 16:42:04 backup PAM_unix[346]: (ssh) session opened for user user by
(uid=0)
Dec 27 16:42:04 backup sshd[346]: debug1: PAM establishing creds
Dec 27 16:42:04 backup sshd[346]: debug1: Entering interactive session.
Dec 27 16:42:04 backup sshd[347]: debug1: PAM establishing creds
Dec 27 16:42:04 backup sshd[346]: debug1: fd 5 setting O_NONBLOCK
Dec 27 16:42:04 backup sshd[346]: debug1: fd 7 setting O_NONBLOCK
Dec 27 16:42:04 backup sshd[346]: debug1: server_init_dispatch_13
Dec 27 16:42:04 backup sshd[346]: debug1: server_init_dispatch_15
Dec 27 16:45:01 backup sshd[346]: debug1: Received SIGCHLD.
Dec 27 16:45:01 backup sshd[346]: debug1: End of interactive session; stdin
102402048, stdout (read 0, sent 0), stderr 0 bytes.
Dec 27 16:45:01 backup sshd[346]: Disconnecting: Command terminated on signal
25.
Dec 27 16:45:01 backup sshd[346]: debug1: Calling cleanup 0x8051ef8(0x0)
Dec 27 16:45:01 backup PAM_unix[346]: (ssh) session closed for user user
Dec 27 16:45:01 backup sshd[346]: debug1: Calling cleanup 0x8066dec(0x0)

--
Fight the Power
Dave Logan

"There is no right to fair use.  Fair use is a defense against infringement." 
  - Preston Padden, head of government relations for Walt Disney Company



Reply to: