Hi, Could anyone please tell me how to get the meaning of rsync error codes. In "rsync return code: 12" error, what 12 indicates? Thanks, Jignesh -------------- next part -------------- HTML attachment scrubbed and removed
Tue, 20 Jan 2009 15:25:05 +0530, jignesh.shah1980 wrote:> Could anyone please tell me how to get the meaning of rsync error codes. > > In "rsync return code: 12" error, what 12 indicates?Please use the archive: http://www.mail-archive.com/rsync@lists.samba.org/msg22890.html -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available Url : http://lists.samba.org/archive/rsync/attachments/20090120/0317d496/attachment.bin
See bottom of Man page @ http://www.samba.org/ftp/rsync/rsync.html EXIT Values 12 is: Error in rsync protocol data stream I suggest that this may be caused by you using two different versions of Rsync? Please check that the daemon and client are running the same version. -- Stuart Halliday -----Original Message----- From: Jignesh Shah <jignesh.shah1980@gmail.com> To: rsync@lists.samba.org Date: Tue, 20 Jan 2009 15:25:05 +0530 Subject: find out the meaning of rsync error code> Hi, > > Could anyone please tell me how to get the meaning of rsync error > codes. > > In "rsync return code: 12" error, what 12 indicates? > > Thanks, > JigneshThis email is the property of ECS Technology Ltd. This company is registered in Scotland with company number 212513. VAT registered GB 761 7456 12 http://www.ecs-tech.com/
When I get errors like that I do a manual rsync command via a terminal (or command prompt) shell which tries to list the contents of either side of the connection. This at least shows you if the connection and rsync is working. ie rsync -v metatex.org::minimals-temp/test/ or rsync /cygdrive/c/ -- Stuart Halliday -----Original Message----- From: Jignesh Shah <jignesh.shah1980@gmail.com> To: Stuart Halliday <StuartH@ecs-tech.com> Date: Tue, 20 Jan 2009 16:18:25 +0530 Subject: Re: find out the meaning of rsync error code> Thanks Sven and Stuart for reply. > > They both are running at the same version 2.6.0 but still it gives > same error. It was working fine since months but just now it has > started throwing below error. > > ERROR: DoRsync(): rsync had errors or failed > rsync return code: 12 > unexpected tag -7 > rsync error: error in rsync protocol data stream (code 12) at > io.c(469) > rsync: connection unexpectedly closed (3941538 bytes read so far) > rsync error: error in rsync protocol data stream (code 12) at > io.c(189) > > > On 1/20/09, Stuart Halliday <StuartH@ecs-tech.com> wrote: > > See bottom of Man page @ http://www.samba.org/ftp/rsync/rsync.html > > > > EXIT Values 12 is: > > Error in rsync protocol data stream > > > > I suggest that this may be caused by you using two different versions > of > > Rsync? Please check that the daemon and client are running the same > version. > > > > > > -- > > Stuart Halliday > > > > > > > > -----Original Message----- > > From: Jignesh Shah <jignesh.shah1980@gmail.com> > > To: rsync@lists.samba.org > > Date: Tue, 20 Jan 2009 15:25:05 +0530 > > Subject: find out the meaning of rsync error code > > > >> Hi, > >> > >> Could anyone please tell me how to get the meaning of rsync error > >> codes. > >> > >> In "rsync return code: 12" error, what 12 indicates? > >> > >> Thanks, > >> Jignesh > > > > > > This email is the property of ECS Technology Ltd. > > This company is registered in Scotland with company number 212513. > > VAT registered GB 761 7456 12 > > http://www.ecs-tech.com/ > > > > > > -- > > 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 > >This email is the property of ECS Technology Ltd. This company is registered in Scotland with company number 212513. VAT registered GB 761 7456 12 http://www.ecs-tech.com/
Correct. -- Stuart Halliday> I think there is no bulletproof solution for this. Right? > > Thanks, > Jignesh > > On 1/20/09, Stuart Halliday <StuartH@ecs-tech.com> wrote: > > When I get errors like that I do a manual rsync command via a > terminal (or > > command prompt) shell which tries to list the contents of either side > of > > the connection. > > > > This at least shows you if the connection and rsync is working. > > > > ie > > > > rsync -v metatex.org::minimals-temp/test/ > > > > or > > > > rsync /cygdrive/c/ > > > > > > -- > > Stuart Halliday > > > > > > > > -----Original Message----- > > From: Jignesh Shah <jignesh.shah1980@gmail.com> > > To: Stuart Halliday <StuartH@ecs-tech.com> > > Date: Tue, 20 Jan 2009 16:18:25 +0530 > > Subject: Re: find out the meaning of rsync error code > > > >> Thanks Sven and Stuart for reply. > >> > >> They both are running at the same version 2.6.0 but still it gives > >> same error. It was working fine since months but just now it has > >> started throwing below error. > >> > >> ERROR: DoRsync(): rsync had errors or failed > >> rsync return code: 12 > >> unexpected tag -7 > >> rsync error: error in rsync protocol data stream (code 12) at > >> io.c(469) > >> rsync: connection unexpectedly closed (3941538 bytes read so far) > >> rsync error: error in rsync protocol data stream (code 12) at > >> io.c(189) > >> > >> > >> On 1/20/09, Stuart Halliday <StuartH@ecs-tech.com> wrote: > >> > See bottom of Man page @ http://www.samba.org/ftp/rsync/rsync.html > >> > > >> > EXIT Values 12 is: > >> > Error in rsync protocol data stream > >> > > >> > I suggest that this may be caused by you using two different > versions > >> of > >> > Rsync? Please check that the daemon and client are running the > same > >> version. > >> > > >> > > >> > -- > >> > Stuart Halliday > >> > > >> > > >> > > >> > -----Original Message----- > >> > From: Jignesh Shah <jignesh.shah1980@gmail.com> > >> > To: rsync@lists.samba.org > >> > Date: Tue, 20 Jan 2009 15:25:05 +0530 > >> > Subject: find out the meaning of rsync error code > >> > > >> >> Hi, > >> >> > >> >> Could anyone please tell me how to get the meaning of rsync error > >> >> codes. > >> >> > >> >> In "rsync return code: 12" error, what 12 indicates? > >> >> > >> >> Thanks, > >> >> Jignesh > >> > > >> >This email is the property of ECS Technology Ltd. This company is registered in Scotland with company number 212513. VAT registered GB 761 7456 12 http://www.ecs-tech.com/
Stuart, This problem is harassing us since long now. It occurs only when we run rsync in daemon mode and on remote sites. It works perfectly fine if source and destination are in same site. We have tried --blocking-io and also ran rsync manually but still no luck. We are not able to find what is the actual problem. Could you please help us here. Thanks, Jignesh On 1/20/09, Stuart Halliday <StuartH@ecs-tech.com> wrote:> Correct. > > -- > Stuart Halliday > > >> I think there is no bulletproof solution for this. Right? >> >> Thanks, >> Jignesh >> >> On 1/20/09, Stuart Halliday <StuartH@ecs-tech.com> wrote: >> > When I get errors like that I do a manual rsync command via a >> terminal (or >> > command prompt) shell which tries to list the contents of either side >> of >> > the connection. >> > >> > This at least shows you if the connection and rsync is working. >> > >> > ie >> > >> > rsync -v metatex.org::minimals-temp/test/ >> > >> > or >> > >> > rsync /cygdrive/c/ >> > >> > >> > -- >> > Stuart Halliday >> > >> > >> > >> > -----Original Message----- >> > From: Jignesh Shah <jignesh.shah1980@gmail.com> >> > To: Stuart Halliday <StuartH@ecs-tech.com> >> > Date: Tue, 20 Jan 2009 16:18:25 +0530 >> > Subject: Re: find out the meaning of rsync error code >> > >> >> Thanks Sven and Stuart for reply. >> >> >> >> They both are running at the same version 2.6.0 but still it gives >> >> same error. It was working fine since months but just now it has >> >> started throwing below error. >> >> >> >> ERROR: DoRsync(): rsync had errors or failed >> >> rsync return code: 12 >> >> unexpected tag -7 >> >> rsync error: error in rsync protocol data stream (code 12) at >> >> io.c(469) >> >> rsync: connection unexpectedly closed (3941538 bytes read so far) >> >> rsync error: error in rsync protocol data stream (code 12) at >> >> io.c(189) >> >> >> >> >> >> On 1/20/09, Stuart Halliday <StuartH@ecs-tech.com> wrote: >> >> > See bottom of Man page @ http://www.samba.org/ftp/rsync/rsync.html >> >> > >> >> > EXIT Values 12 is: >> >> > Error in rsync protocol data stream >> >> > >> >> > I suggest that this may be caused by you using two different >> versions >> >> of >> >> > Rsync? Please check that the daemon and client are running the >> same >> >> version. >> >> > >> >> > >> >> > -- >> >> > Stuart Halliday >> >> > >> >> > >> >> > >> >> > -----Original Message----- >> >> > From: Jignesh Shah <jignesh.shah1980@gmail.com> >> >> > To: rsync@lists.samba.org >> >> > Date: Tue, 20 Jan 2009 15:25:05 +0530 >> >> > Subject: find out the meaning of rsync error code >> >> > >> >> >> Hi, >> >> >> >> >> >> Could anyone please tell me how to get the meaning of rsync error >> >> >> codes. >> >> >> >> >> >> In "rsync return code: 12" error, what 12 indicates? >> >> >> >> >> >> Thanks, >> >> >> Jignesh >> >> > >> >> > > > > This email is the property of ECS Technology Ltd. > This company is registered in Scotland with company number 212513. > VAT registered GB 761 7456 12 > http://www.ecs-tech.com/ > > > -- > 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 >
I missed one point is that: It is also works between remote sites when we run rsync as a client-server normally.(i.e.non-daemon mode). Thanks. On 1/21/09, Jignesh Shah <jignesh.shah1980@gmail.com> wrote:> Stuart, > > This problem is harassing us since long now. It occurs only when we > run rsync in daemon mode and on remote sites. It works perfectly fine > if source and destination are in same site. We have tried > --blocking-io and also ran rsync manually but still no luck. We are > not able to find what is the actual problem. > > Could you please help us here. > > Thanks, > Jignesh > > On 1/20/09, Stuart Halliday <StuartH@ecs-tech.com> wrote: >> Correct. >> >> -- >> Stuart Halliday >> >> >>> I think there is no bulletproof solution for this. Right? >>> >>> Thanks, >>> Jignesh >>> >>> On 1/20/09, Stuart Halliday <StuartH@ecs-tech.com> wrote: >>> > When I get errors like that I do a manual rsync command via a >>> terminal (or >>> > command prompt) shell which tries to list the contents of either side >>> of >>> > the connection. >>> > >>> > This at least shows you if the connection and rsync is working. >>> > >>> > ie >>> > >>> > rsync -v metatex.org::minimals-temp/test/ >>> > >>> > or >>> > >>> > rsync /cygdrive/c/ >>> > >>> > >>> > -- >>> > Stuart Halliday >>> > >>> > >>> > >>> > -----Original Message----- >>> > From: Jignesh Shah <jignesh.shah1980@gmail.com> >>> > To: Stuart Halliday <StuartH@ecs-tech.com> >>> > Date: Tue, 20 Jan 2009 16:18:25 +0530 >>> > Subject: Re: find out the meaning of rsync error code >>> > >>> >> Thanks Sven and Stuart for reply. >>> >> >>> >> They both are running at the same version 2.6.0 but still it gives >>> >> same error. It was working fine since months but just now it has >>> >> started throwing below error. >>> >> >>> >> ERROR: DoRsync(): rsync had errors or failed >>> >> rsync return code: 12 >>> >> unexpected tag -7 >>> >> rsync error: error in rsync protocol data stream (code 12) at >>> >> io.c(469) >>> >> rsync: connection unexpectedly closed (3941538 bytes read so far) >>> >> rsync error: error in rsync protocol data stream (code 12) at >>> >> io.c(189) >>> >> >>> >> >>> >> On 1/20/09, Stuart Halliday <StuartH@ecs-tech.com> wrote: >>> >> > See bottom of Man page @ http://www.samba.org/ftp/rsync/rsync.html >>> >> > >>> >> > EXIT Values 12 is: >>> >> > Error in rsync protocol data stream >>> >> > >>> >> > I suggest that this may be caused by you using two different >>> versions >>> >> of >>> >> > Rsync? Please check that the daemon and client are running the >>> same >>> >> version. >>> >> > >>> >> > >>> >> > -- >>> >> > Stuart Halliday >>> >> > >>> >> > >>> >> > >>> >> > -----Original Message----- >>> >> > From: Jignesh Shah <jignesh.shah1980@gmail.com> >>> >> > To: rsync@lists.samba.org >>> >> > Date: Tue, 20 Jan 2009 15:25:05 +0530 >>> >> > Subject: find out the meaning of rsync error code >>> >> > >>> >> >> Hi, >>> >> >> >>> >> >> Could anyone please tell me how to get the meaning of rsync error >>> >> >> codes. >>> >> >> >>> >> >> In "rsync return code: 12" error, what 12 indicates? >>> >> >> >>> >> >> Thanks, >>> >> >> Jignesh >>> >> > >>> >> > >> >> >> This email is the property of ECS Technology Ltd. >> This company is registered in Scotland with company number 212513. >> VAT registered GB 761 7456 12 >> http://www.ecs-tech.com/ >> >> >> -- >> 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 >> >
On Tue, Jan 20, 2009 at 10:16:37AM +0000, Stuart Halliday wrote:> I suggest that this may be caused by you using two different versions of > Rsync? Please check that the daemon and client are running the same version.The only known issues of cross-version incompatibility have been fixed. If you know of any more, please let the list know. ..wayne..
On Tue, Jan 20, 2009 at 03:25:05PM +0530, Jignesh Shah wrote:> In "rsync return code: 12" error, what 12 indicates?The error code is pretty inconsequential compared to the errors that come before it. See what rsync is actually complaining about, and make sure you know if there is an issue with the remote side or the local side. ..wayne..