rsync failed after windows 10 update

classic Classic list List threaded Threaded
37 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
I had also re-install (run setup again) rsync - still the same error :(




--
Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
In reply to this post by jwang
Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
strace showed that it hangs after calling wsock_init

--- Process 33244 loaded C:\Windows\System32\ws2_32.dll at 00007ff98c3b0000
 3892  199371 [main] rsync 1839 wsock_init: res 0
  217  199588 [main] rsync 1839 wsock_init: wVersion 514
   88  199676 [main] rsync 1839 wsock_init: wHighVersion 514
  149  199825 [main] rsync 1839 wsock_init: szDescription WinSock 2.0
   81  199906 [main] rsync 1839 wsock_init: szSystemStatus Running
   81  199987 [main] rsync 1839 wsock_init: iMaxSockets 0
   80  200067 [main] rsync 1839 wsock_init: iMaxUdpDg 0
long wait then time out


Please shed some light
Thanks a lot in advance



--
Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

Houder
On Sat, 16 Mar 2019 01:36:38, jwang  wrote:

> strace showed that it hangs after calling wsock_init
>
> --- Process 33244 loaded C:\Windows\System32\ws2_32.dll at 00007ff98c3b0000
>  3892  199371 [main] rsync 1839 wsock_init: res 0
>   217  199588 [main] rsync 1839 wsock_init: wVersion 514
>    88  199676 [main] rsync 1839 wsock_init: wHighVersion 514
>   149  199825 [main] rsync 1839 wsock_init: szDescription WinSock 2.0
>    81  199906 [main] rsync 1839 wsock_init: szSystemStatus Running
>    81  199987 [main] rsync 1839 wsock_init: iMaxSockets 0
>    80  200067 [main] rsync 1839 wsock_init: iMaxUdpDg 0
> long wait then time out
>
> Please shed some light

We cannot ...

Please execute "cygcheck -srv > cygcheck.txt"

Please attach file cygcheck.txt to your next post.

Also, please show us the output of "rsync /tmp/test.log /temp/, i.e.
the command you are executing and which apparently fails ...

Henri


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
rsync  /tmp/test.log /cygdrive/c/temp/
rsync: pipe: Connection timed out (116)
rsync error: error in IPC code (code 14) at pipe.c(122) [sender=3.1.2]

cygcheck.txt <http://cygwin.1069669.n5.nabble.com/file/t11507/cygcheck.txt>  

file attached.

Thanks a lot



--
Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

Houder
On Sat, 16 Mar 2019 03:49:27, jwang  wrote:
> rsync  /tmp/test.log /cygdrive/c/temp/
> rsync: pipe: Connection timed out (116)
> rsync error: error in IPC code (code 14) at pipe.c(122) [sender=3.1.2]
>
> cygcheck.txt <http://cygwin.1069669.n5.nabble.com/file/t11507/cygcheck.txt>  

Based on the output of cygcheck -srv,

 - you are using W10 (while I am using W7 - rsync works at my place)

Also:

 - Current System Time: Sat Mar 16 11:44:27 2019
 - Windows 10 Home Ver 10.0 Build 17134

 - you are using the 64-bits version of Cygwin (root = c:\cygwin64)
 - Cygwin DLL version info: DLL version: 3.0.2
 - rsync: version: 3.1.2-1
 - librsync2: 1.0.0-1 (resulting in bin/cygrsync-2.dll)
   (not installed at my place)

Your PATH definition is exceptionally long ...

 - it contains e:\Cywin64\bin twice
 - it contains a multitude of "bins", irrelevant to Cygwin

Finding the cause of your problem is an exercise in reducing your
environment to the absolute minimum, required to execute rsync.

I would suggest to (temporarily):

 - uninstall librsync2 (it should not interfere w/ rsync, but it
   is also not required)
 - limit your PATH definition to e:\cygwin64
    - i.e. export PATH=/usr/bin, if you are using bash

and run, rsync -vvv <some file> <some directory> again, and show
us the output.

Do not use the arguments that you used previously; create a new
file and a new directory to 'copy' to.

Remember, finding the cause of a problem, is first and foremost
about excluding any factor (you did not think of).

Henri


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
Thanks a lot.
Shall try what you suggested and report back later.



--
Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
BTW, this is the best place I have ever experienced as far as community,
support and hospitality are concerned.

Wish you guys make cygwin an even more greater product



--
Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
In reply to this post by jwang
rsync  -vvv /tmp/test2.log /tmp/tmp/
rsync: pipe: Connection timed out (116)
rsync error: error in IPC code (code 14) at pipe.c(122) [sender=3.1.2]
[sender] _exit_cleanup(code=14, file=pipe.c, line=122): about to call
exit(14)


rsync used to work perfectly and still do on my other Windows 10 boxes.  
Just one box has problem.  

About PATH - i think it is defined by cygwin /etc/profile and my other boxes
also long PATH :)



--
Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

Houder
In reply to this post by Houder
On 2019-03-16 13:45, Houder wrote:
> On Sat, 16 Mar 2019 03:49:27, jwang  wrote:
>> rsync  /tmp/test.log /cygdrive/c/temp/
>> rsync: pipe: Connection timed out (116)
>> rsync error: error in IPC code (code 14) at pipe.c(122) [sender=3.1.2]
>>
>> cygcheck.txt
>> <http://cygwin.1069669.n5.nabble.com/file/t11507/cygcheck.txt>
[snip]

> Your PATH definition is exceptionally long ...
>
>  - it contains e:\Cywin64\bin twice
>  - it contains a multitude of "bins", irrelevant to Cygwin
>
> Finding the cause of your problem is an exercise in reducing your
> environment to the absolute minimum, required to execute rsync.
>
> I would suggest to (temporarily):
>
>  - uninstall librsync2 (it should not interfere w/ rsync, but it
>    is also not required)
>  - limit your PATH definition to e:\cygwin64
>     - i.e. export PATH=/usr/bin, if you are using bash

Sorry, that should be:

export PATH=/usr/bin:/cygdrive/c/Windows/System32

(cygdrive, or whatever your prefix is)

as rsync is also dependent on .dll's from the Windows bin ...

Henri

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

Houder
In reply to this post by jwang
On Sat, 16 Mar 2019 06:26:05, jwang  wrote:

> rsync  -vvv /tmp/test2.log /tmp/tmp/
> rsync: pipe: Connection timed out (116)
> rsync error: error in IPC code (code 14) at pipe.c(122) [sender=3.1.2]
> [sender] _exit_cleanup(code=14, file=pipe.c, line=122): about to call
> exit(14)
>
> rsync used to work perfectly and still do on my other Windows 10 boxes.  
> Just one box has problem.  
>
> About PATH - i think it is defined by cygwin /etc/profile and my other boxes
> also long PATH :)

Yes James,

But this is NOT about "what used to work", it is about what is NOT working NOW
on this specific machine ...

It is also not relevant (to a large extent) that rsync is working on the other
W10 boxes you own ...

The main issue (to us) here is: Is it Cygwin that is causing the problem? Said
differently, if it is not Cygwin, than we cannot help you.

In that case, you will have to rely on your own capabilities (and the support,
if any, given by Microsoft).

So, the reason I am asking to reduce your PATH definition is to exclude Cygwin
as the cause of your recent problem on this specific box.

Excluding, excluding ... that is the main theme here!

Henri


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
Thanks lot for your advice.

Microsoft - no reply there.
Shall keep trying.

Have a good weekend.



--
Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

ASSI
In reply to this post by Houder
Houder writes:
> Sorry, that should be:
>
> export PATH=/usr/bin:/cygdrive/c/Windows/System32

The proper way to isolate Cygwin from Windows to the extent possible
is to set "CYGWIN_NOWINPATH=yes" in the control panel in either the system
or user variables so it is in the environment when you start the first
Cygwin process (which should be a login shell).  I recommend that as the
default setting.  If it turns out you need a specific Windows path later
on, you can add it as needed from ORIGINAL_PATH (provided you use a
POSIX shell).

> (cygdrive, or whatever your prefix is)

Here, too: this should be set independently of whatever the cygdrive
prefix is, so "/proc/cygdrive/c…"


Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
update: rclone worked on my troubled Windows 10 box.  

not sure if rclone can do sync via ssh yet, nor if it can do sync
incrementally yet as rsync can for both

thank you all for your help



--
Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

Eliot Moss
On 3/17/2019 4:15 AM, jwang wrote:
> update: rclone worked on my troubled Windows 10 box.
>
> not sure if rclone can do sync via ssh yet, nor if it can do sync
> incrementally yet as rsync can for both
>
> thank you all for your help

Well, if you want a Windows native rsync, you can look into
acrosync.  (cwrsync, on the other hand, is just a repackaging
or cygwin and cygwin's rsync.)

But given the effort invested so far, it might be reasonable
to try to find why rsync broke on your one particular machine.
Perhaps some BLODA?  (See the cygwin acronyms for a definition!)
Basically some interfering program or setting?  Multiple
installations of cygwin?  Lots of things can cause it, and the
folks on this list have truly been trying to be helpful -- but
(as said before) we don't have your box, so there is testing
and narrowing down of possibilities that you have to do ...

Whatever is breaking rsync could well affect other programs
too.

Regards - Eliot Moss

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
Good point.  ssh-agent also breaks at

ssh-add /home/james/.ssh/my_priv_key
Error connecting to agent: Connection timed out

strace (only extracted a couple lines here) showed:

--- Process 55056 thread 7068 created
21045991 21278135 [main] ssh-add 2194 __set_errno: void
__set_winsock_errno(const char*, int):200 setting errno 116


Read and tried BLODA:
removed citrix
disabled Windows firewall in total

none worked.

About isolation: export PATH=/usr/bin:/cygdrive/c/Windows/System32
did not make difference.  

Thanks a lot for your help




--
Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
In case any one else has the same issue in future:  I resolved mine by
disable Windows firewall (private profile).  

All back to normal now.  Thanks



--
Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

12