rsync: push_dir TESTDIR: No such file or directory

tim.conway at tim.conway at
Tue Aug 27 12:03:00 EST 2002

Daemian:  You're mixing two mutually-exclusive modes - rsync over ssh, and 
rsync over rsync internal TCP transport to an rsyncd.  -e ssh is ignored 
on rsync to rsyncd, and rsync to rsyncd requires the double-colon("::") 
representation of the remote.  The --port= is also relevant only to 
contacting an rsyncd.
In this case, you are opening an ssh stream, and passing info over that, 
to a shell.  "MYUSERNAME at MY.SERV.ER.IP:TESTDIR" means external transport to the subdirectory named "TESTDIR" under the 
home directory of "MYUSERNAME" on machine "MY.SERV.ER.IP".

So, your rsyncd.conf is also meaningless in this context.

Looking at it from the purpose of successfully doing what your command 
does, I'd first try
and see if it's what you expect.  You might be landing in a directory 
where you don't have write perms... It's happenned.

Let me know what you find.

Tim Conway
tim.conway at
303.682.4917 office, 303.921.0301 cell
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, caesupport2 on AIM
"There are some who call me.... Tim?"

"Mack, Daemian" <DMack at>
Sent by: rsync-admin at
08/27/2002 10:52 AM

        To:     rsync at
        cc:     (bcc: Tim Conway/LMT/SC/PHILIPS)
        Subject:        rsync: push_dir TESTDIR: No such file or directory

Hi all.  I'm getting the following error when using rsync:

nice -n 20 rsync -e "ssh -p30000" --recursive --verbose --verbose 
--times --modify-window 2 --port=31000 --dry-run
/cygdrive/f/bkp/Doc/Builds/Buildsheets/ MYUSERNAME at MY.SERV.ER.IP:TESTDIR

opening connection using ssh -p30000 -l MYUSERNAME MY.SERV.ER.IP rsync
--server -vvntrc --modify-window=2 . TESTDIR
      Debian GNU/%s 3.0 %h
building file list ...
expand file_list to 4000 bytes, did move
created directory TESTDIR
rsync: push_dir TESTDIR: No such file or directory
rsync error: errors selecting input/output files, dirs (code 3) at
rsync: read error: Connection reset by peer
rsync error: error in rsync protocol data stream (code 12) at io.c(162)

On the client I'm using Win2K SP2, running Cygwin's rsync 2.5.5 and

On the Linux Debian Woody server, I'm using rsync version 2.5.6cvs 
version 26, with ssh OpenSSH_3.4p1 Debian 1:3.4p1-1.

Because MYSERVER is behind a firewall which services multiple machines
providing ssh, I'm forwarding Internet-side ports 30000 and 31000 to ssh 
rsync, respectively, on MYSERVER.  On MYSERVER, those daemons are 
on their conventional port numbers.  (Because I'm not sure at which point
the rsync data stream takes over, I've tried the command both with and
without the --port=31000 switch.  No dice either way.)

Here's what MYSERVER's /etc/rsyncd.conf looks like:

log file = /var/log/rsyncd.log

read only = false
strict modes = false
gid = nogroup
auth users = MYUSERNAME
secrets file = /etc/rsyncd.secrets
transfer logging = yes
log format = [%m] %o %u@%h %f [length:%l tran:%b] (%a)

Daemian Mack
To unsubscribe or change options:
Before posting, read:

More information about the rsync mailing list