rsync: read error: Connection reset by peer (104)












-1














I was running rsync just fine between 2 windows machine with cygwin.
I am moving files from old Windows 2008 server to NFS share storage through 2016 Windows server. Don't ask why, that's the way it works.



Now after a while a started getting this error:



sending incremental file list
rsync: read error: Connection reset by peer (104)
rsync error: error in socket IO (code 10) at io.c(785)
[sender=3.1.2]


My command from cmd:



C:cygwin64binrsync.exe -avdH --perms --append --delete-during --ignore-errors --force --stats --log-file=/home/Administrator/rsynclogs/backup.log /cygdrive/z/ /cygdrive/r/ 


or this from cygwin terminal:



rsync -avdH --perms --append --delete-during --ignore-errors --force --stats --log-file=/home/Administrator/rsynclogs/backup.log /cygdrive/z/ /cygdrive/r/


Now the connection is over a LAN and should be fast and stable.
Does anyone can think of a solution?



Log result for



 --itemize-changes -vvv


In the log you have alot of :



[sender]
recv_file_name()
[receiver]


The last line on the log are:



2018/12/25 14:41:37 [4368] [generator] i=2496 3 domain/Uploads/D627524.pdf mode=0100707 len=52,202 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2497 3 domain/Uploads/D627552.pdf mode=0100707 len=51,748 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2498 3 domain/Uploads/D627558.pdf mode=0100707 len=49,364 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2499 3 domain/Uploads/D627583.pdf mode=0100707 len=52,137 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2500 3 domain/Uploads/D627596.pdf mode=0100707 len=49,008 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2501 3 domain/Uploads/D627616.pdf mode=0100707 len=49,131 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2502 3 domain/Uploads/D627678.pdf mode=0100707 len=52,986 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2503 3 domain/Uploads/D627684.pdf mode=0100707 len=52,515 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2504 3 domain/Uploads/D627686.pdf mode=0100707 len=52,765 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2505 3 domain/Uploads/D627721.pdf mode=0100707 len=52,306 gid=(20) flags=1400


then notihng.
In commnd prompt I see (that are many generator lines before the error):



[generator] i=2503 3 domain/Uploads/D627684.pdf mode=0100707 len=52,515 gid=(20) flags=1400
[generator] i=2504 3 domain/Uploads/D627686.pdf mode=0100707 len=52,765 gid=(20) flags=1400
[generator] i=2505 3 domain/Uploads/D627721.pdf mode=0100707 len=52,306 gid=(20) flags=1400
rsync: read error: Connection reset by peer (104)
[sender] _exit_cleanup(code=10, file=io.c, line=785): entered
rsync error: error in socket IO (code 10) at io.c(785) [sender=3.1.2]
[sender] _exit_cleanup(code=10, file=io.c, line=785): about to call exit(10)









share|improve this question
























  • @roaima done in edit.
    – matisa
    Dec 25 '18 at 0:33






  • 3




    That's strange. The error message implies that rsync is having trouble communicating with a peer rsync, but your command line shows you trying to sync two filesystems on the same system.
    – Mark Plotnick
    Dec 25 '18 at 4:31










  • @MarkPlotnick not exactly. Z is a mapped smb share and R it a mounted nfs share. I can connect Z origin by ssh, but R will remain a mounted nfs because it is a remote nfs storage. The problem is I don't even know where the disconnection happening, on Z or R.
    – matisa
    Dec 25 '18 at 9:30












  • Neither. Both are local as far as rsync is concerned so you shouldn't be getting that error. Are you sure this command line generates the error message you've shown? I would have expected a client-server command, not this client-only variant.
    – roaima
    Dec 25 '18 at 10:27








  • 1




    Let's see if rsync has trouble with a specific file. Please add the options --itemize-changes -vvv and show us the output just before it gets the error.
    – Mark Plotnick
    Dec 25 '18 at 11:53
















-1














I was running rsync just fine between 2 windows machine with cygwin.
I am moving files from old Windows 2008 server to NFS share storage through 2016 Windows server. Don't ask why, that's the way it works.



Now after a while a started getting this error:



sending incremental file list
rsync: read error: Connection reset by peer (104)
rsync error: error in socket IO (code 10) at io.c(785)
[sender=3.1.2]


My command from cmd:



C:cygwin64binrsync.exe -avdH --perms --append --delete-during --ignore-errors --force --stats --log-file=/home/Administrator/rsynclogs/backup.log /cygdrive/z/ /cygdrive/r/ 


or this from cygwin terminal:



rsync -avdH --perms --append --delete-during --ignore-errors --force --stats --log-file=/home/Administrator/rsynclogs/backup.log /cygdrive/z/ /cygdrive/r/


Now the connection is over a LAN and should be fast and stable.
Does anyone can think of a solution?



Log result for



 --itemize-changes -vvv


In the log you have alot of :



[sender]
recv_file_name()
[receiver]


The last line on the log are:



2018/12/25 14:41:37 [4368] [generator] i=2496 3 domain/Uploads/D627524.pdf mode=0100707 len=52,202 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2497 3 domain/Uploads/D627552.pdf mode=0100707 len=51,748 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2498 3 domain/Uploads/D627558.pdf mode=0100707 len=49,364 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2499 3 domain/Uploads/D627583.pdf mode=0100707 len=52,137 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2500 3 domain/Uploads/D627596.pdf mode=0100707 len=49,008 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2501 3 domain/Uploads/D627616.pdf mode=0100707 len=49,131 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2502 3 domain/Uploads/D627678.pdf mode=0100707 len=52,986 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2503 3 domain/Uploads/D627684.pdf mode=0100707 len=52,515 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2504 3 domain/Uploads/D627686.pdf mode=0100707 len=52,765 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2505 3 domain/Uploads/D627721.pdf mode=0100707 len=52,306 gid=(20) flags=1400


then notihng.
In commnd prompt I see (that are many generator lines before the error):



[generator] i=2503 3 domain/Uploads/D627684.pdf mode=0100707 len=52,515 gid=(20) flags=1400
[generator] i=2504 3 domain/Uploads/D627686.pdf mode=0100707 len=52,765 gid=(20) flags=1400
[generator] i=2505 3 domain/Uploads/D627721.pdf mode=0100707 len=52,306 gid=(20) flags=1400
rsync: read error: Connection reset by peer (104)
[sender] _exit_cleanup(code=10, file=io.c, line=785): entered
rsync error: error in socket IO (code 10) at io.c(785) [sender=3.1.2]
[sender] _exit_cleanup(code=10, file=io.c, line=785): about to call exit(10)









share|improve this question
























  • @roaima done in edit.
    – matisa
    Dec 25 '18 at 0:33






  • 3




    That's strange. The error message implies that rsync is having trouble communicating with a peer rsync, but your command line shows you trying to sync two filesystems on the same system.
    – Mark Plotnick
    Dec 25 '18 at 4:31










  • @MarkPlotnick not exactly. Z is a mapped smb share and R it a mounted nfs share. I can connect Z origin by ssh, but R will remain a mounted nfs because it is a remote nfs storage. The problem is I don't even know where the disconnection happening, on Z or R.
    – matisa
    Dec 25 '18 at 9:30












  • Neither. Both are local as far as rsync is concerned so you shouldn't be getting that error. Are you sure this command line generates the error message you've shown? I would have expected a client-server command, not this client-only variant.
    – roaima
    Dec 25 '18 at 10:27








  • 1




    Let's see if rsync has trouble with a specific file. Please add the options --itemize-changes -vvv and show us the output just before it gets the error.
    – Mark Plotnick
    Dec 25 '18 at 11:53














-1












-1








-1







I was running rsync just fine between 2 windows machine with cygwin.
I am moving files from old Windows 2008 server to NFS share storage through 2016 Windows server. Don't ask why, that's the way it works.



Now after a while a started getting this error:



sending incremental file list
rsync: read error: Connection reset by peer (104)
rsync error: error in socket IO (code 10) at io.c(785)
[sender=3.1.2]


My command from cmd:



C:cygwin64binrsync.exe -avdH --perms --append --delete-during --ignore-errors --force --stats --log-file=/home/Administrator/rsynclogs/backup.log /cygdrive/z/ /cygdrive/r/ 


or this from cygwin terminal:



rsync -avdH --perms --append --delete-during --ignore-errors --force --stats --log-file=/home/Administrator/rsynclogs/backup.log /cygdrive/z/ /cygdrive/r/


Now the connection is over a LAN and should be fast and stable.
Does anyone can think of a solution?



Log result for



 --itemize-changes -vvv


In the log you have alot of :



[sender]
recv_file_name()
[receiver]


The last line on the log are:



2018/12/25 14:41:37 [4368] [generator] i=2496 3 domain/Uploads/D627524.pdf mode=0100707 len=52,202 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2497 3 domain/Uploads/D627552.pdf mode=0100707 len=51,748 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2498 3 domain/Uploads/D627558.pdf mode=0100707 len=49,364 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2499 3 domain/Uploads/D627583.pdf mode=0100707 len=52,137 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2500 3 domain/Uploads/D627596.pdf mode=0100707 len=49,008 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2501 3 domain/Uploads/D627616.pdf mode=0100707 len=49,131 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2502 3 domain/Uploads/D627678.pdf mode=0100707 len=52,986 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2503 3 domain/Uploads/D627684.pdf mode=0100707 len=52,515 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2504 3 domain/Uploads/D627686.pdf mode=0100707 len=52,765 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2505 3 domain/Uploads/D627721.pdf mode=0100707 len=52,306 gid=(20) flags=1400


then notihng.
In commnd prompt I see (that are many generator lines before the error):



[generator] i=2503 3 domain/Uploads/D627684.pdf mode=0100707 len=52,515 gid=(20) flags=1400
[generator] i=2504 3 domain/Uploads/D627686.pdf mode=0100707 len=52,765 gid=(20) flags=1400
[generator] i=2505 3 domain/Uploads/D627721.pdf mode=0100707 len=52,306 gid=(20) flags=1400
rsync: read error: Connection reset by peer (104)
[sender] _exit_cleanup(code=10, file=io.c, line=785): entered
rsync error: error in socket IO (code 10) at io.c(785) [sender=3.1.2]
[sender] _exit_cleanup(code=10, file=io.c, line=785): about to call exit(10)









share|improve this question















I was running rsync just fine between 2 windows machine with cygwin.
I am moving files from old Windows 2008 server to NFS share storage through 2016 Windows server. Don't ask why, that's the way it works.



Now after a while a started getting this error:



sending incremental file list
rsync: read error: Connection reset by peer (104)
rsync error: error in socket IO (code 10) at io.c(785)
[sender=3.1.2]


My command from cmd:



C:cygwin64binrsync.exe -avdH --perms --append --delete-during --ignore-errors --force --stats --log-file=/home/Administrator/rsynclogs/backup.log /cygdrive/z/ /cygdrive/r/ 


or this from cygwin terminal:



rsync -avdH --perms --append --delete-during --ignore-errors --force --stats --log-file=/home/Administrator/rsynclogs/backup.log /cygdrive/z/ /cygdrive/r/


Now the connection is over a LAN and should be fast and stable.
Does anyone can think of a solution?



Log result for



 --itemize-changes -vvv


In the log you have alot of :



[sender]
recv_file_name()
[receiver]


The last line on the log are:



2018/12/25 14:41:37 [4368] [generator] i=2496 3 domain/Uploads/D627524.pdf mode=0100707 len=52,202 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2497 3 domain/Uploads/D627552.pdf mode=0100707 len=51,748 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2498 3 domain/Uploads/D627558.pdf mode=0100707 len=49,364 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2499 3 domain/Uploads/D627583.pdf mode=0100707 len=52,137 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2500 3 domain/Uploads/D627596.pdf mode=0100707 len=49,008 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2501 3 domain/Uploads/D627616.pdf mode=0100707 len=49,131 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2502 3 domain/Uploads/D627678.pdf mode=0100707 len=52,986 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2503 3 domain/Uploads/D627684.pdf mode=0100707 len=52,515 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2504 3 domain/Uploads/D627686.pdf mode=0100707 len=52,765 gid=(20) flags=1400
2018/12/25 14:41:37 [4368] [generator] i=2505 3 domain/Uploads/D627721.pdf mode=0100707 len=52,306 gid=(20) flags=1400


then notihng.
In commnd prompt I see (that are many generator lines before the error):



[generator] i=2503 3 domain/Uploads/D627684.pdf mode=0100707 len=52,515 gid=(20) flags=1400
[generator] i=2504 3 domain/Uploads/D627686.pdf mode=0100707 len=52,765 gid=(20) flags=1400
[generator] i=2505 3 domain/Uploads/D627721.pdf mode=0100707 len=52,306 gid=(20) flags=1400
rsync: read error: Connection reset by peer (104)
[sender] _exit_cleanup(code=10, file=io.c, line=785): entered
rsync error: error in socket IO (code 10) at io.c(785) [sender=3.1.2]
[sender] _exit_cleanup(code=10, file=io.c, line=785): about to call exit(10)






rsync cygwin connection-sharing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 25 '18 at 13:02

























asked Dec 25 '18 at 0:25









matisa

458




458












  • @roaima done in edit.
    – matisa
    Dec 25 '18 at 0:33






  • 3




    That's strange. The error message implies that rsync is having trouble communicating with a peer rsync, but your command line shows you trying to sync two filesystems on the same system.
    – Mark Plotnick
    Dec 25 '18 at 4:31










  • @MarkPlotnick not exactly. Z is a mapped smb share and R it a mounted nfs share. I can connect Z origin by ssh, but R will remain a mounted nfs because it is a remote nfs storage. The problem is I don't even know where the disconnection happening, on Z or R.
    – matisa
    Dec 25 '18 at 9:30












  • Neither. Both are local as far as rsync is concerned so you shouldn't be getting that error. Are you sure this command line generates the error message you've shown? I would have expected a client-server command, not this client-only variant.
    – roaima
    Dec 25 '18 at 10:27








  • 1




    Let's see if rsync has trouble with a specific file. Please add the options --itemize-changes -vvv and show us the output just before it gets the error.
    – Mark Plotnick
    Dec 25 '18 at 11:53


















  • @roaima done in edit.
    – matisa
    Dec 25 '18 at 0:33






  • 3




    That's strange. The error message implies that rsync is having trouble communicating with a peer rsync, but your command line shows you trying to sync two filesystems on the same system.
    – Mark Plotnick
    Dec 25 '18 at 4:31










  • @MarkPlotnick not exactly. Z is a mapped smb share and R it a mounted nfs share. I can connect Z origin by ssh, but R will remain a mounted nfs because it is a remote nfs storage. The problem is I don't even know where the disconnection happening, on Z or R.
    – matisa
    Dec 25 '18 at 9:30












  • Neither. Both are local as far as rsync is concerned so you shouldn't be getting that error. Are you sure this command line generates the error message you've shown? I would have expected a client-server command, not this client-only variant.
    – roaima
    Dec 25 '18 at 10:27








  • 1




    Let's see if rsync has trouble with a specific file. Please add the options --itemize-changes -vvv and show us the output just before it gets the error.
    – Mark Plotnick
    Dec 25 '18 at 11:53
















@roaima done in edit.
– matisa
Dec 25 '18 at 0:33




@roaima done in edit.
– matisa
Dec 25 '18 at 0:33




3




3




That's strange. The error message implies that rsync is having trouble communicating with a peer rsync, but your command line shows you trying to sync two filesystems on the same system.
– Mark Plotnick
Dec 25 '18 at 4:31




That's strange. The error message implies that rsync is having trouble communicating with a peer rsync, but your command line shows you trying to sync two filesystems on the same system.
– Mark Plotnick
Dec 25 '18 at 4:31












@MarkPlotnick not exactly. Z is a mapped smb share and R it a mounted nfs share. I can connect Z origin by ssh, but R will remain a mounted nfs because it is a remote nfs storage. The problem is I don't even know where the disconnection happening, on Z or R.
– matisa
Dec 25 '18 at 9:30






@MarkPlotnick not exactly. Z is a mapped smb share and R it a mounted nfs share. I can connect Z origin by ssh, but R will remain a mounted nfs because it is a remote nfs storage. The problem is I don't even know where the disconnection happening, on Z or R.
– matisa
Dec 25 '18 at 9:30














Neither. Both are local as far as rsync is concerned so you shouldn't be getting that error. Are you sure this command line generates the error message you've shown? I would have expected a client-server command, not this client-only variant.
– roaima
Dec 25 '18 at 10:27






Neither. Both are local as far as rsync is concerned so you shouldn't be getting that error. Are you sure this command line generates the error message you've shown? I would have expected a client-server command, not this client-only variant.
– roaima
Dec 25 '18 at 10:27






1




1




Let's see if rsync has trouble with a specific file. Please add the options --itemize-changes -vvv and show us the output just before it gets the error.
– Mark Plotnick
Dec 25 '18 at 11:53




Let's see if rsync has trouble with a specific file. Please add the options --itemize-changes -vvv and show us the output just before it gets the error.
– Mark Plotnick
Dec 25 '18 at 11:53










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f490828%2frsync-read-error-connection-reset-by-peer-104%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f490828%2frsync-read-error-connection-reset-by-peer-104%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Morgemoulin

Scott Moir

Souastre