rsync failed after windows 10 update

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

rsync failed after windows 10 update

jwang
Error message via strace:

1238   99433 [main] rsync 10684 getwinenv: can't set native for HOME= since
no environ yet
 3295  164392 [main] rsync 10684 transport_layer_pipes::connect: Try to
connect to named pipe: \\.\pipe\cygwin-e022582115c10879-lpc
  199  164591 [main] rsync 10684 transport_layer_pipes::connect: Error
opening the pipe (2)
  138  164729 [main] rsync 10684 client_request::make_request: cygserver
un-available (/etc/cygserver.conf  not in office either, nor on asus)
  109  282075 [main] rsync 10684 fhandler_pipe::create: name
\\.\pipe\cygwin-e022582115c10879-pty0-from-master, size 131072, mode
PIPE_TYPE_MESSAGE
  188  282263 [main] rsync 10684 fhandler_pipe::create: pipe busy
   84  416660 [main] rsync 10684 fhandler_base::open:
(\??\C:\cygwin64\home\james\.popt, 0x108000)
  154  416814 [main] rsync 10684 seterrno_from_nt_status:
/home/corinna/src/cygwin/cygwin-2.10.0/cygwin-2.10.0-1.x86_64/src/newlib-cygwin/winsup/cygwin/fhandler.cc:680
status 0xC0000034 -> windows error 2
   85  416899 [main] rsync 10684 geterrno_from_win_error: windows error 2 ==
errno 2
  82  417227 [main] rsync 10684 open: -1 = open(/home/james/.popt, 0x8000),
errno 2
 1129  418356 [main] rsync 10684 sigaction_worker: signal 2, newact
0x10047D700 (handle
--- Process 10684 loaded C:\Windows\System32\mswsock.dll at 00007ffc55ca0000
21023506 21450873 [main] rsync 10684 socketpair: connect error
 9154 21460027 [main] rsync 10684 __set_errno: void
__set_winsock_errno(const char*, int):224 setting errno 116
  128 21460155 [main] rsync 10684 __set_winsock_errno: socketpair:2656 -
winsock error 10060 -> errno 116
   83 21460238 [main] rsync 10684 socketpair: -1 = socketpair(...), errno
116
   76 21464431 [main] rsync 10684 write: 1 = write(2, 0x1802019A7, 1)
  606 21465037 [main] rsync 10684 __set_errno:
cygheap_fdget::cygheap_fdget(int, bool, bool):683 setting errno 9
 116 21695034 [main] rsync 10684 __set_errno: fhandler_socket* get(int):86
setting errno 108
  132 21695166 [main] rsync 10684 cygwin_getsockopt: -1 = getsockopt(0,
65535, 0x1008, 0xFFFFA918, 0xFFFFA91C), errno 108
  508 21695674 [main] rsync 10684 close: close(0)


Would you please shed some light how to fix this issue?

Thanks a lot in advance
James



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

Corinna Vinschen-2
On Mar  4 05:13, jwang wrote:

> Error message via strace:
>
> 1238   99433 [main] rsync 10684 getwinenv: can't set native for HOME= since
> no environ yet
>  3295  164392 [main] rsync 10684 transport_layer_pipes::connect: Try to
> connect to named pipe: \\.\pipe\cygwin-e022582115c10879-lpc
>   199  164591 [main] rsync 10684 transport_layer_pipes::connect: Error
> opening the pipe (2)
>   138  164729 [main] rsync 10684 client_request::make_request: cygserver
> un-available (/etc/cygserver.conf  not in office either, nor on asus)
>   109  282075 [main] rsync 10684 fhandler_pipe::create: name
> \\.\pipe\cygwin-e022582115c10879-pty0-from-master, size 131072, mode
> PIPE_TYPE_MESSAGE
>   188  282263 [main] rsync 10684 fhandler_pipe::create: pipe busy
>    84  416660 [main] rsync 10684 fhandler_base::open:
> (\??\C:\cygwin64\home\james\.popt, 0x108000)
>   154  416814 [main] rsync 10684 seterrno_from_nt_status:
> /home/corinna/src/cygwin/cygwin-2.10.0/cygwin-2.10.0-1.x86_64/src/newlib-cygwin/winsup/cygwin/fhandler.cc:680
> status 0xC0000034 -> windows error 2
  ^^^^^^^^^^^^^^^^^

This looks like a problem I only found this weekend.  Do you have WSL
activated?  If so, can you please do two things:

First, install the latest developer snapshot from
https://cygwin.com/snapshots/.  This is essential!

Second, check with `lsattr' if all or some of the directories you're
trying to rsync have the "case-sensitivity" flag set, e.g.

$ lsattr -d foo
---------n-C foo

That means the flag is set.  Remove the flag recursively, e.g.

$ chattr -R -C foo

Now try rsync again.

Here's what I found two days ago:

  https://github.com/Microsoft/WSL/issues/3885

The developer snapshot is needed so that Cygwin does not create
case-sensitive directories by default.  I'd released 3.0.2 with
this patch already but I'm still waiting for a report to a certain.
problem.


HTH,
Corinna

--
Corinna Vinschen
Cygwin Maintainer

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
Thanks a lot - shall check WSL (office desktop default is OFF).

rsync used to work very well at home laptop till, i guess, a major Windows
10 update (I tried to disable update service but failed).





--
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
Hi All,

My home laptop has:  WSL off
Also tried "netsh winsock reset" and reboot - "rsync /tmp/test.log /temp/"
still timeout with the same pipe error.

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

Corinna Vinschen-2
On Mar  5 02:40, jwang wrote:
> Hi All,
>
> My home laptop has:  WSL off
> Also tried "netsh winsock reset" and reboot - "rsync /tmp/test.log /temp/"
> still timeout with the same pipe error.
>
> Please shed some light.

Another look into your strace snippet shows that socketpair fails and
you're using an old Cygwin version, so my hunch was entirely off-track
anyway.

Please update Cygwin first and try again.


Corinna

--
Corinna Vinschen
Cygwin Maintainer

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

Andrey Repin
In reply to this post by jwang
Greetings, jwang!

> Hi All,

> My home laptop has:  WSL off
> Also tried "netsh winsock reset" and reboot - "rsync /tmp/test.log /temp/"
> still timeout with the same pipe error.

> Please shed some light.

> Thanks a lot in advance

Did you try the snapshot as Corinna suggested?


--
With best regards,
Andrey Repin
Tuesday, March 5, 2019 15:15:32

Sorry for my terrible english...


--
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
Nope.  Thought that was for WSL activated.
Shall try.  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

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
In reply to this post by Corinna Vinschen-2
Shall upgrade regardless if no WSL.  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

jwang
Not sure if this (update to the latest Cygwin snapshots) will fix my issue
though as all my other "Windows 10" boxes, all have the great Cygwin
installed, have no such an issue.

Is it possible that some Windows back-end services stopped ?

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

jwang
Good morning (UK time) All

I downloaded the snapshots:
https://cygwin.com/snapshots/x86_64/cygwin-20190304.tar.xz

1). tar -zvf cygwin-20190304.tzr.xz
2). cp -p /usr/bin/rsync usr/bin/
3). usr/bin/rsync /tmp/test.log /tmp2/
4). above failed with syntax error
5). strace usr/bin/rsync /tmp/test.log /tmp2/ showed similar error as
before, i.e. named pipe issue et al

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

Corinna Vinschen-2
On Mar  6 02:54, jwang wrote:
> Good morning (UK time) All
>
> I downloaded the snapshots:
> https://cygwin.com/snapshots/x86_64/cygwin-20190304.tar.xz
>
> 1). tar -zvf cygwin-20190304.tzr.xz

tar: You must specify one of the '-Acdtrux', '--delete' or '--test-label' options

In the meantime you could just have installed 3.0.2 which is equivalent
to the latest snapshot.

> 2). cp -p /usr/bin/rsync usr/bin/

This doesn't make sense.  Are you copying rsync into a local dir
with the extracted cygwin?  Inside another Cygwin session?
Don't do that, you're bound to get into trouble.

> 3). usr/bin/rsync /tmp/test.log /tmp2/

Works fine for me

> 4). above failed with syntax error
> 5). strace usr/bin/rsync /tmp/test.log /tmp2/ showed similar error as
> before, i.e. named pipe issue et al

I mainly asked to try the latest snapshot to see the strace, because it
doesn't makes sense to inspect the strace of an old version.  Please
attach the strace to your reply.


Thanks,
Corinna

--
Corinna Vinschen
Cygwin Maintainer

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
Sorry, i meant

1). tar -xvf cygwin-20190304.tzr.xz  (just unzip and un-tar the downloaded
snapshots)

reason for step 2) - just wanna test rsync (3.1.2) with the new cygwin1.dll
(20190304) without messing up other applications

step 3) (old rsync but with new cygwin1.dll) always failed with printing:
syntax error.  And I knew the syntax was correct.

Shall upload a full strace report tonight.

Thanks a lot for your help indeed.



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

Corinna Vinschen-2
On Mar  6 04:59, jwang wrote:

> Sorry, i meant
>
> 1). tar -xvf cygwin-20190304.tzr.xz  (just unzip and un-tar the downloaded
> snapshots)
>
> reason for step 2) - just wanna test rsync (3.1.2) with the new cygwin1.dll
> (20190304) without messing up other applications
>
> step 3) (old rsync but with new cygwin1.dll) always failed with printing:
> syntax error.  And I knew the syntax was correct.
This is not related to Cygwin per se.  Your rsync syntax (at least
in the example call) is fine and, as I wrote, it works for me without
trouble with Cygwin 3.0.2.  There's something weird on your system,
perhaps.  Did you check for BLODA influence?


Corinna

--
Corinna Vinschen
Cygwin Maintainer

signature.asc (849 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
Shall check "BLODA influence" as described here:
https://cygwin.com/faq/faq.html#faq.using.bloda

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

jwang
I saw:
6296       0       0       6296  ?              0   Mar  4 C:\Program Files
(x86)\Citrix\ICA Client\redirector.exe

Not sure if this is cause, nor if it was included by Windows update.

Is it safe to remove it please?

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

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

Houder
On Fri, 8 Mar 2019 06:53:08, jwang  wrote:
> I saw:
> 6296       0       0       6296  ?              0   Mar  4 C:\Program Files
> (x86)\Citrix\ICA Client\redirector.exe
>
> Not sure if this is cause, nor if it was included by Windows update.
>
> Is it safe to remove it please?

Rename, not remove. Your Citrix application might need this file ...

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 for the tip :)



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

Cygwin list mailing list
In reply to this post by jwang
On 3/8/2019 5:53 AM, jwang wrote:
> I saw:
> 6296       0       0       6296  ?              0   Mar  4 C:\Program Files
> (x86)\Citrix\ICA Client\redirector.exe
>
> Not sure if this is cause, nor if it was included by Windows update.
>
> Is it safe to remove it please?
>
> Thanks

It's safe to remove if you do not use Citrix to access remote systems.
Otherwise, you probably need it.

--
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
Hi All,

I killed redirector.exe process.
However, rsync still fail with the same error.

Please help

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

Reply | Threaded
Open this post in threaded view
|

Re: rsync failed after windows 10 update

jwang
"net start" showed:
   Windows Defender Antivirus Network Inspection Service
   Windows Defender Antivirus Service
   Windows Defender Firewall
   Windows Defender Security Centre Service

may it be one of them messed up rsync?

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