Help - rsync runs from command line, fails from task scheduler, hangs at msg checking charset: UTF-8

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Help - rsync runs from command line, fails from task scheduler, hangs at msg checking charset: UTF-8

leonv12
This post was updated on .
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@systemID.WebURL.com:/data/current/systemID/cygdrive/c > "D:\WorkingDIr\systemID.log" 2>&1



Logging file:


FILE_STRUCT_LEN=16, EXTRA_LEN=4
cmd=ssh -p 31122 -i "/cygdrive/c/Users/administrator/.ssh/id_rsa" machine=systemID.WebURL.com user=systemID path=/data/current/systemID/cygdrive/c
cmd[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/c
opening 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): entered
rsync 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!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help - rsync runs from command line, fails from task scheduler, hangs at msg checking charset: UTF-8

Samba - rsync mailing list
On Fri, 28 Jul 2017 14:47:02 -0700 (PDT)
leonv12 via rsync <[hidden email]> 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 <[hidden email]>
Free Software:  "You don't pay back, you pay forward."
                 -- Robert A. Heinlein

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help - rsync runs from command line, fails from task scheduler, hangs at msg checking charset: UTF-8

leonv12
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?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help - rsync runs from command line, fails from task scheduler, hangs at msg checking charset: UTF-8

Samba - rsync mailing list
On Sat, 29 Jul 2017 19:45:22 -0700 (PDT)
leonv12 via rsync <[hidden email]> wrote:

> 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?

Talk to someone who knows about task scheduling and its
failure modes?

Karl <[hidden email]>
Free Software:  "You don't pay back, you pay forward."
                 -- Robert A. Heinlein

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Help - rsync runs from command line, fails from task scheduler, hangs at msg checking charset: UTF-8

Samba - rsync mailing list
In reply to this post by leonv12
leonv12 via rsync <[hidden email]> wrote:

> 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?

Check the environment settings, which are often the cause of differences
in behavior between running from the command line vs. as scheduled.

You may need to have the scheduler run a script that sets up the
environment and runs rsync, rather than having the scheduler run
rsync directly.

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Loading...