leonv12
2017-Jul-28 21:47 UTC
Help - rsync runs from command line, fails from task scheduler, hangs at msg checking charset: UTF-8
Setting up a new system backup (done several before and they all work fine). Windows 10 x64 (cygwin with rsync version 3.1.2) backing up to ubuntu server 16.04 (rsync 3.1.1). Run test.bat from command window (run as administrator) and it runs fine.Created scheduled task that runs test.bat and it hangs at "msg checking charset: UTF-8" until the timeout. I have upped the timeout to 3000 with the same result. The scheduled task is run as administrator, with run with highest privileges checked. contents of test.bat:rsync --log-format="%1i %t %b of %l transferred for %f" --progress --timeout=300 -rltgoD --delete --partial-dir=./rsync_partial --chmod=Du+w,u+r,u+x -e "ssh -p 31122 -i \"/cygdrive/c/Users/administrator/.ssh/id_rsa\"" --stats --files-from=/cygdrive/d/WorkingDIr/c_from_file.dat -vvvvvvvv --exclude-from=/cygdrive/d/WorkingDIr/c_exc_file.dat / systemID at systemID.WebURL.com:/data/current/systemID/cygdrive/c > "D:\WorkingDIr\systemID.log" 2>&1Logging file:FILE_STRUCT_LEN=16, EXTRA_LEN=4cmd=ssh -p 31122 -i "/cygdrive/c/Users/administrator/.ssh/id_rsa" machine=systemID.WebURL.com user=systemID path=/data/current/systemID/cygdrive/ccmd[0]=ssh cmd[1]=-p cmd[2]=31122 cmd[3]=-i cmd[4]=/cygdrive/c/Users/administrator/.ssh/id_rsa cmd[5]=-l cmd[6]=systemID cmd[7]=systemID.WebURL.com cmd[8]=rsync cmd[9]=--server cmd[10]=-vvvvvvvvlogDtrRe.iLsfxC cmd[11]=--timeout=3000 cmd[12]=--delete cmd[13]=--stats cmd[14]=--partial-dir cmd[15]=rsync_partial cmd[16]=. cmd[17]=/data/current/systemID/cygdrive/copening connection using: ssh -p 31122 -i /cygdrive/c/Users/administrator/.ssh/id_rsa -l systemID systemID.WebURL.com rsync --server -vvvvvvvvlogDtrRe.iLsfxC --timeout=3000 --delete --stats --partial-dir rsync_partial . /data/current/systemID/cygdrive/c (18 args)*msg checking charset: UTF-8*[sender] io timeout after 3000 seconds -- exiting[sender] _exit_cleanup(code=30, file=io.c, line=195): enteredrsync error: timeout in data send/receive (code 30) at io.c(195) [sender=3.1.2][sender] _exit_cleanup(code=30, file=io.c, line=195): about to call exit(30)Help will be much appreciated! -- View this message in context: http://samba.2283325.n4.nabble.com/Help-rsync-runs-from-command-line-fails-from-task-scheduler-hangs-at-msg-checking-charset-UTF-8-tp4722140.html Sent from the Samba - rsync mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20170728/b3f89461/attachment.html>
Karl O. Pinc
2017-Jul-29 20:32 UTC
Help - rsync runs from command line, fails from task scheduler, hangs at msg checking charset: UTF-8
On Fri, 28 Jul 2017 14:47:02 -0700 (PDT) leonv12 via rsync <rsync at lists.samba.org> wrote:>(18 args)*msg > checking charset: UTF-8*[sender] io timeout after 3000 seconds -- > exiting[sender] _exit_cleanup(code=30, file=io.c, line=195): > enteredrsync error: timeout in data send/receive (code 30) at > io.c(195) [sender=3.1.2][sender] _exit_cleanup(code=30, file=io.c, > line=195): about to call exit(30)Help will be much appreciated!Reminds me of previous struggles I've had with MS Windows and byte order marks. (Something about the way it requires UTF-16 but breaks unless you use UTF-8, or something.) https://en.wikipedia.org/wiki/Byte_order_mark Karl <kop at meme.com> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein
leonv12
2017-Jul-30 02:45 UTC
Help - rsync runs from command line, fails from task scheduler, hangs at msg checking charset: UTF-8
I don't get why it runs from the command line but not from a scheduled task. Any suggestions for a fix or a work-around? -- View this message in context: http://samba.2283325.n4.nabble.com/Help-rsync-runs-from-command-line-fails-from-task-scheduler-hangs-at-msg-checking-charset-UTF-8-tp4722140p4722153.html Sent from the Samba - rsync mailing list archive at Nabble.com.