zopencommunity / rsyncport

A file synchronization utility
Apache License 2.0
0 stars 1 forks source link

Trying to rsync to z/OS from my Mac doesn't work #5

Open MikeFultonDev opened 2 years ago

MikeFultonDev commented 2 years ago
rsync -vvvv --rsync-path=/fultonm/zopen/prod/rsync-master/bin/rsync -r src fultonm_zotb:/tmp/dst/

produces:

cmd= machine=fultonm_zotb user= path=/tmp/dst/
cmd[0]=ssh cmd[1]=fultonm_zotb cmd[2]=/fultonm/zopen/prod/rsync-master/bin/rsync cmd[3]=--server cmd[4]=-vvvvr cmd[5]=. cmd[6]=/tmp/dst/ 
opening connection using ssh fultonm_zotb /fultonm/zopen/prod/rsync-master/bin/rsync --server -vvvvr . /tmp/dst/ 
(Client) Protocol versions: remote=31, negotiated=29
??????ʉ?&??????%???????>˚???_??????>?????/?????building file list ... 
[sender] make_file(src,*,2)
[sender] make_file(src/f1.txt,*,2)
done
unknown message -122:133 [sender]
_exit_cleanup(code=12, file=/AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Library/Caches/com.apple.xbs/Sources/rsync/rsync/io.c, line=307): entered
rsync error: error in rsync protocol data stream (code 12) at /AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Library/Caches/com.apple.xbs/Sources/rsync/rsync/io.c(307) [sender=2.6.9]
_exit_cleanup(code=12, file=/AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Library/Caches/com.apple.xbs/Sources/rsync/rsync/io.c, line=307): about to call exit(12)

First step will be to get the 'mode' mapped properly. There are no doubt ASCII/EBCDIC issues here too

MikeFultonDev commented 2 years ago

The garbled text is:

(Server) Protocol versions: remote=29, negotiated=29
MikeFultonDev commented 2 years ago

Installing the same version of rsync on my Mac, I get:

/Users/fultonm@ca.ibm.com/Downloads/rsync-3.2.4/rsync -vvvv --rsync-path=/fultonm/zopen/prod/rsync-master/bin/rsync -r src fultonm_zotb:/tmp/dst/
cmd=<NULL> machine=fultonm_zotb user=<NULL> path=/tmp/dst/
cmd[0]=ssh cmd[1]=fultonm_zotb cmd[2]=/fultonm/zopen/prod/rsync-master/bin/rsync cmd[3]=--server cmd[4]=-vvvvre.iLsfxCIvu cmd[5]=. cmd[6]=/tmp/dst/ 
opening connection using: ssh fultonm_zotb /fultonm/zopen/prod/rsync-master/bin/rsync --server -vvvvre.iLsfxCIvu . /tmp/dst/  (7 args)
msg checking charset: UTF-8
??????ʉ?&??????%???????>˚???_???????>?????/??????(Client) Protocol versions: remote=31, negotiated=31
sending incremental file list
[sender] make_file(src,*,0)
[sender] flist start=1, used=1, low=0, high=0
[sender] i=1 <NULL> src/ mode=040755 len=96 flags=1005
send_file_list done
[sender] pushing local filters for /private/tmp/src/
[sender] make_file(src/f1.txt,*,2)
[sender] flist start=3, used=1, low=0, high=0
[sender] i=3 <NULL> src/f1.txt mode=0100644 len=10 flags=1000
[sender] flist_eof=1
file list sent
send_files starting
unexpected tag -111 [sender/inc]
[sender] _exit_cleanup(code=12, file=io.c, line=1671): entered
rsync error: error in rsync protocol data stream (code 12) at io.c(1671) [sender=3.2.4]
[sender] _exit_cleanup(code=12, file=io.c, line=1671): about to call exit(12)
MikeFultonDev commented 2 years ago

Running against a 'dev' drop on z/OS via my ssh connection fultonm_zopendev1 (same as above except 'dev' and not 'prod') ./rsync -vvvv --rsync-path=\$HOME/zopen/dev/rsyncport/rsync/rsync -r /tmp/rsync/src fultonm_zopendev1:/tmp/dst/

MikeFultonDev commented 2 years ago

With the latest rsync build on z/OS, teh failure is a little different:

rsync -vvvv --rsync-path=\$HOME/zopen/dev/rsyncport/rsync/rsync -r /tmp/rsync/src fultonm_zopendev1:/tmp/dst/ 
cmd=<NULL> machine=fultonm_zopendev1 user=<NULL> path=/tmp/dst/
cmd[0]=ssh cmd[1]=fultonm_zopendev1 cmd[2]=$HOME/zopen/dev/rsyncport/rsync/rsync cmd[3]=--server cmd[4]=-vvvvre.iLsfxCIvu cmd[5]=. cmd[6]=/tmp/dst/ 
opening connection using: ssh fultonm_zopendev1 "$HOME/zopen/dev/rsyncport/rsync/rsync" --server -vvvvre.iLsfxCIvu . /tmp/dst/  (7 args)
msg checking charset: UTF-8
??????ʉ?&??????%???????>˚???_???????>?????/??????(Client) Protocol versions: remote=31, negotiated=31
sending incremental file list
[sender] make_file(src,*,0)
[sender] flist start=1, used=1, low=0, high=0
[sender] i=1 /tmp/rsync src/ mode=040755 len=64 flags=1005
send_file_list done
[sender] pushing local filters for /tmp/rsync/src/
[sender] flist start=3, used=0, low=0, high=-1
[sender] flist_eof=1
file list sent
send_files starting
unexpected tag -111 [sender/inc]
[sender] _exit_cleanup(code=12, file=io.c, line=1704): entered
rsync error: error in rsync protocol data stream (code 12) at io.c(1704) [sender=3.2.6]
[sender] _exit_cleanup(code=12, file=io.c, line=1704): about to call exit(12)