Re: rsync exit code 23 (partial transfer due to errors): List of possible reasons and how to ignore some?

2023-12-14 Thread Kevin Korb via rsync
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Unfortunately, exit 23 litterally just means something else went wrong and might have scrolled off of the screen if you have rsync listing files (--verbose or --itemize_changes). Essentially, it is anything that doesn't have its own exit cod

Re: rsync exit code 23 (partial transfer due to errors): List of possible reasons and how to ignore some?

2023-12-14 Thread rsync--- via rsync
27;t have its own exit code. I just ignore it. The most common > reaosn is file vanished. THX for sharing your experiences and knowledge :-) I have just tried to "reverse engineer" the possible reasons from the source code and have found 21 reasons that I hope will never happen ;-)

rsync exit code 23 (partial transfer due to errors): List of possible reasons and how to ignore some?

2023-12-14 Thread rsync--- via rsync
I am trying to find a solution for the open source Linux software "Back In Time" (https://github.com/bit-team/backintime) where we evaluate the rsync exit code when taking a backup via rsync and inform the user that an error has occured. Questions: 1. Is there full list of possib

Re: What is exit code 5888?

2018-02-23 Thread James Moe via rsync
On 02/22/2018 12:09 PM, James Moe via rsync wrote: > Code 35 is the highest code value I could find. > How should code 5888 be interpreted? > As y'all have noted, 5888 / 256 = 23. That is rsync code for "could not open all selected files for transfer." And, yes, that was the case. Thank yo

Re: What is exit code 5888?

2018-02-22 Thread SATOH Fumiyasu via rsync
Hi, On Fri, 23 Feb 2018 04:09:07 +0900, James Moe via rsync wrote: > 2018-02-22T05:02:00-0700 sma-server3 python3[31371]: backintime > (sma-user3x/3): WARNING: Command "rsync -rtDHh --links --no-p --no-g > --no-o --info=progress2 --no-i-r --delete --delete-excluded -i > --dry-run --out-format="B

Re: What is exit code 5888?

2018-02-22 Thread Kevin Korb via rsync
should be attacking whatever is looping the exit code or whatever isn't understanding looped exit codes. However, a shell wrapper would probably handle the problem. Simply put, running: $SHELL -c 'exit 5888' is considered to be a success in every $SHELL I have installed on my

Re: What is exit code 5888?

2018-02-22 Thread Kevin Korb via rsync
It is an exit 0 (success) that is being multiplied by 23 for some reason and whatever (shell?) is running rsync doesn't recognize that. On 02/22/2018 02:09 PM, James Moe via rsync wrote: > rsync v3.1.0 > linux v4.4.104-39-default x86_64 > > Found in the system log: > > 2018-02-22T05:02:00-070

What is exit code 5888?

2018-02-22 Thread James Moe via rsync
rsync v3.1.0 linux v4.4.104-39-default x86_64 Found in the system log: 2018-02-22T05:02:00-0700 sma-server3 python3[31371]: backintime (sma-user3x/3): WARNING: Command "rsync -rtDHh --links --no-p --no-g --no-o --info=progress2 --no-i-r --delete --delete-excluded -i --dry-run --out-format="BA

Re: remote rsync exit code 0: is this a bug?

2013-07-11 Thread Andrew Gideon
On Thu, 11 Jul 2013 15:46:06 +, Andrew Gideon wrote: > rsync: recv_generator: mkdir > > "/backup/host/vol/snapshot.2013.07.11.0.in_progress/live/lms/trylesson/toefl" > failed: No space left on device (28) > *** Skipping any contents from this failed directory *** I'm still looking th

remote rsync exit code 0: is this a bug?

2013-07-11 Thread Andrew Gideon
ns (to the result of previous backups) * Changing the destination directory to an "in progress" name It then runs the actual rsync in a child process. When the child completes, if it exits with a zero exit code, the "in progress" name is renamed to a permanent name by the wra

[Bug 9882] Incorrect exit code when sender over SSH is killed with SIGTERM

2013-05-26 Thread samba-bugs
||FIXED --- Comment #1 from Wayne Davison 2013-05-26 23:19:46 UTC --- The exit code gets passed from the sender to the receiver, but the generator doesn't get notified about it, so it exits with the wrong code. I have checked in a fix for the issue into git. Thanks for the r

[Bug 9882] New: Incorrect exit code when sender over SSH is killed with SIGTERM

2013-05-14 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=9882 Summary: Incorrect exit code when sender over SSH is killed with SIGTERM Product: rsync Version: 3.1.0 Platform: All OS/Version: Linux Status: NEW Severity

[Bug 8967] rsync returns with non-zero exit code when killed by SIGTERM

2012-06-16 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=8967 Wayne Davison changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Bug 8967] rsync returns with non-zero exit code when killed by SIGTERM

2012-06-02 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=8967 --- Comment #4 from Paul Slootman 2012-06-02 11:29:07 UTC --- How difficult is it for systemd to extend its service file format to include a line that defines valid exit statusses? It's this attitude of systemd being perfect and everything else bei

[Bug 8967] rsync returns with non-zero exit code when killed by SIGTERM

2012-06-01 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=8967 --- Comment #3 from Brian K. White 2012-06-01 19:14:21 UTC --- (In reply to comment #2) > that's not the point. This is something that must be fixed in rsync, not in > systemd. systemd does the right thing: if the process exits with 0, everything >

[Bug 8967] rsync returns with non-zero exit code when killed by SIGTERM

2012-06-01 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=8967 --- Comment #2 from mus@gmail.com 2012-06-01 18:00:13 UTC --- that's not the point. This is something that must be fixed in rsync, not in systemd. systemd does the right thing: if the process exits with 0, everything is ok, if not, something went

[Bug 8967] rsync returns with non-zero exit code when killed by SIGTERM

2012-06-01 Thread samba-bugs
considered an error and therefore rsync should return > with > exit code 0. this also causes problems with systemd, see: > https://bugzilla.samba.org/show_bug.cgi?id=8416#c3 So submit a bug to systemd to be more flexible. -- bkw -- Configure bugmail: https://bugzilla.samba.org/

[Bug 8967] New: rsync returns with non-zero exit code when killed by SIGTERM

2012-05-31 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=8967 Summary: rsync returns with non-zero exit code when killed by SIGTERM Product: rsync Version: 3.0.9 Platform: All OS/Version: All Status: NEW Severity

Re: v3.0.4 and OSXS - Exit code: 1

2009-12-21 Thread Jonathan S. Abrams
henri wrote: When launchd executed this command, it did not work. The system.log file reads "Exited with exit code: 1". Can you redirect the output to a file so it can tell you why it failed? e.g. >file.out 2>&1 One common thing that prevents non-interactive sudo

Re: v3.0.4 and OSXS - Exit code: 1

2009-12-13 Thread henri
> When launchd executed this command, it did not work. The system.log file > reads "Exited with exit code: 1". > > Can you redirect the output to a file so it can tell you why it failed? e.g. > >file.out 2>&1 > > One common thing that prevents

Re: v3.0.4 and OSXS - Exit code: 1

2009-12-13 Thread Jonathan S. Abrams
Wayne Davison wrote: On Sun, Dec 13, 2009 at 8:49 AM, Jonathan S. Abrams mailto:hoci...@comcast.net>> wrote: When launchd executed this command, it did not work. The system.log file reads "Exited with exit code: 1". Can you redirect the output to a file so it can

Re: v3.0.4 and OSXS - Exit code: 1

2009-12-13 Thread Wayne Davison
On Sun, Dec 13, 2009 at 8:49 AM, Jonathan S. Abrams wrote: > When launchd executed this command, it did not work. The system.log file > reads "Exited with exit code: 1". > Can you redirect the output to a file so it can tell you why it failed? e.g. >file.out 2>

Re: v3.0.4 and OSXS - Exit code: 1

2009-12-13 Thread Stefan Nowak
File_Storage_Mirror/docs When launchd executed this command, it did not work. The system.log file reads "Exited with exit code: 1". It called it at 12:01 AM, but it did not execute properly. When I VNC via SSH into the server, and execute that exact same command at the

v3.0.4 and OSXS - Exit code: 1

2009-12-13 Thread Jonathan S. Abrams
not work. The system.log file reads "Exited with exit code: 1". It called it at 12:01 AM, but it did not execute properly. When I VNC via SSH into the server, and execute that exact same command at the Terminal manually, it works as expected. If anyone can offer any insight as

DO NOT REPLY [Bug 6965] New: truncated files and exit code 23

2009-12-04 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=6965 Summary: truncated files and exit code 23 Product: rsync Version: 3.0.4 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P3 Component

DO NOT REPLY [Bug 6508] Inconsistent exit code behavior between local, ssh transport, and rsyncd transport

2009-09-05 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=6508 way...@samba.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

DO NOT REPLY [Bug 6508] New: Inconsistent exit code behavior between local, ssh transport, and rsyncd transport

2009-06-25 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=6508 Summary: Inconsistent exit code behavior between local, ssh transport, and rsyncd transport Product: rsync Version: 3.0.4 Platform: All OS/Version: All Status: NEW

Re: what is the right exit code for some vanished files?

2007-12-24 Thread Ming Zhang
ot ideal. so one way or the other, just stick to either one is fine. since the exit code sometime is a personal taste... > > > all file sync/backup software for a live file system can have same > > issue > > here. which state to maintain. rsync can always do a stat on the

Re: what is the right exit code for some vanished files?

2007-12-23 Thread Matt McCutchen
On Sun, 2007-12-23 at 15:55 -0500, Ming Zhang wrote: > if sender read by path again and get ENOENT, then this ENOENT can tell > rsync enough info. (though current rsync might say partial transfer > though it is a vanished file... ) Treating the file as completely vanished on the basis of the ENOEN

Re: what is the right exit code for some vanished files?

2007-12-23 Thread Ming Zhang
On Thu, 2007-12-20 at 10:24 -0500, Matt McCutchen wrote: > On Wed, 2007-12-19 at 22:25 -0500, Ming Zhang wrote: > > so this file-list is the internal file list, not the --files-from > > content. > > Yes, the correctness property is based on the internal file list. > > > rsync's goal is to keep sr

Re: what is the right exit code for some vanished files?

2007-12-20 Thread Matt McCutchen
On Wed, 2007-12-19 at 22:25 -0500, Ming Zhang wrote: > so this file-list is the internal file list, not the --files-from > content. Yes, the correctness property is based on the internal file list. > rsync's goal is to keep src and dest in same state (same content, or the > fact that none side ha

Re: what is the right exit code for some vanished files?

2007-12-19 Thread Ming Zhang
is > whether to alert the user that s/he may have mistyped the --files-from > entry. By default, rsync alerts the user with a code 23. In the case > of inotify, an option would indicate that this alerting is not desired, > and no exit code would be needed at all.

Re: what is the right exit code for some vanished files?

2007-12-19 Thread Matt McCutchen
property. Then the only issue is whether to alert the user that s/he may have mistyped the --files-from entry. By default, rsync alerts the user with a code 23. In the case of inotify, an option would indicate that this alerting is not desired, and no exit code would be needed at all. Matt --

Re: what is the right exit code for some vanished files?

2007-12-16 Thread Ming Zhang
On Fri, 2007-12-14 at 23:27 -0500, Matt McCutchen wrote: > On Fri, 2007-12-14 at 18:24 -0500, Ming Zhang wrote: > > What should be the right exit code for vanished file in this scenario. > > > > (1) Use inotify or other mechanism to check changed files and then >

Re: what is the right exit code for some vanished files?

2007-12-14 Thread Matt McCutchen
On Fri, 2007-12-14 at 18:24 -0500, Ming Zhang wrote: > What should be the right exit code for vanished file in this scenario. > > (1) Use inotify or other mechanism to check changed files and then > generate a file list. > > (2) < file get deleted> > > (3) run rs

what is the right exit code for some vanished files?

2007-12-14 Thread Ming Zhang
Hi What should be the right exit code for vanished file in this scenario. (1) Use inotify or other mechanism to check changed files and then generate a file list. (2) < file get deleted> (3) run rsync with --files-from with the old list. then send_file_list()->link_stat() will retur

Re: exit code for vanished files in 2.6.9

2007-12-10 Thread Marc DeTrano
Matt McCutchen wrote: > > If a file has vanished and there is also an error that affects the > correctness of the transfer, the code 23 takes precedence over the code > 24. Check rsync's output for any error messages. If there are none, > Indeed that is the case. I did not realize at first

Re: exit code for vanished files in 2.6.9

2007-12-07 Thread Matt McCutchen
On Fri, 2007-12-07 at 14:40 -0600, Marc DeTrano wrote: > I am using rsync 2.6.9 (as currently packaged in Mandriva 2007.1) > > Ever since the latest update of the package I have been getting an exit > code of 23 with the output "file has vanished: {filename}". > >

exit code for vanished files in 2.6.9

2007-12-07 Thread Marc DeTrano
I am using rsync 2.6.9 (as currently packaged in Mandriva 2007.1) Ever since the latest update of the package I have been getting an exit code of 23 with the output "file has vanished: {filename}". For partial transfers due to vanished files, I (and my script) would expect exit code

Re: Exit Code

2007-08-10 Thread Samuel Vogel
te: I'm wondering why rsync stop without any message regarding that it is finished. So I ran in verbose mode and I'm wondering if this: _exit_cleanup(code=20, file=log.c, line=230): about to call exit(20) _exit_cleanup(code=20, file=log.c, line=230): about to call exit(129) Is the no

Re: Exit Code

2007-08-10 Thread Matt McCutchen
_exit_cleanup(code=20, file=log.c, line=230): about to call exit(129) > > Is the normal exit code, or if something went wrong? Something definitely went wrong. Code 20 (RERR_SIGNAL) means rsync is quitting because it received a signal: SIGINT, SIGTERM, or SIGHUP. However, the file/lin

Exit Code

2007-08-10 Thread Samuel Vogel
I'm wondering why rsync stop without any message regarding that it is finished. So I ran in verbose mode and I'm wondering if this: _exit_cleanup(code=20, file=log.c, line=230): about to call exit(20) _exit_cleanup(code=20, file=log.c, line=230): about to call exit(129) Is the normal

DO NOT REPLY [Bug 3787] Optional exit code indicating receiver was changed

2006-05-30 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=3787 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

DO NOT REPLY [Bug 3787] New: Optional exit code indicating receiver was changed

2006-05-18 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=3787 Summary: Optional exit code indicating receiver was changed Product: rsync Version: 2.6.9 Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P3

Re: 2.6.0 "file has vanished" fails to set exit code on local client

2004-01-15 Thread John Van Essen
On Thu, 15 Jan 2004, Wayne Davison <[EMAIL PROTECTED]> wrote: > On Tue, Jan 13, 2004 at 11:45:22PM -0600, John Van Essen wrote: >> But as I mentioned, it also happens with a daemon > > Yeah, the daemon's exit code is not available to the client, so it is > getting

Re: 2.6.0 "file has vanished" fails to set exit code on local client

2004-01-15 Thread Wayne Davison
On Tue, Jan 13, 2004 at 11:45:22PM -0600, John Van Essen wrote: > But as I mentioned, it also happens with a daemon Yeah, the daemon's exit code is not available to the client, so it is getting lost. I've committed a patch that will cause a daemon sender to go ahead and use F

Re: 2.6.0 "file has vanished" fails to set exit code on local client

2004-01-13 Thread John Van Essen
On Tue, 13 Jan 2004 20:47:30 -0800, Wayne Davison <[EMAIL PROTECTED]> wrote: > On Tue, Jan 13, 2004 at 10:38:23PM -0600, John Van Essen wrote: >> Are you by any chance doing internal rsyncs? > > No. What remote shell are you using? If it doesn't propagate the exit &

Re: 2.6.0 "file has vanished" fails to set exit code on local client

2004-01-13 Thread Wayne Davison
On Tue, Jan 13, 2004 at 10:38:23PM -0600, John Van Essen wrote: > Are you by any chance doing internal rsyncs? No. What remote shell are you using? If it doesn't propagate the exit code from the sender (i.e. the process on the other side of the connection), that may explain why the rec

Re: 2.6.0 "file has vanished" fails to set exit code on local client

2004-01-13 Thread John Van Essen
ient (the io_error value is passed at the end of the file list, >> not during or after the file transfer phase). > > Yes it is, it is passed as the exit code. In the tests I just ran, the > new error message appears if both sides are 2.6.0: > > rsync warning: some files vanis

Re: 2.6.0 "file has vanished" fails to set exit code on local client

2004-01-13 Thread Wayne Davison
ter the file transfer phase). Yes it is, it is passed as the exit code. In the tests I just ran, the new error message appears if both sides are 2.6.0: rsync warning: some files vanished before they could be transfered (code 24) at main.c(1064) and the new error code (24) is still returned

2.6.0 "file has vanished" fails to set exit code on local client

2004-01-07 Thread John Van Essen
A new 2.6.0 feature is supposed to use a different exit code when the only 'errors' were from files that disappeared between the building of the file list and the actual transfer of files. But if the client is local and the server is remote, IOERR_VANISHED gets set on the remote serv

Re: exit code definitions

2003-09-25 Thread Hardy Merrill
I didn't search the web for this - I just looked for *.h files in the rsync source, and found error.h. I'm guessing the contents of error.h is what you're after. Check the rsync source out of CVS and view error.h. HTH. -- Hardy Merrill Red Hat, Inc. [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: >

exit code definitions

2003-09-25 Thread Brenda_Finnegan
Hi ! I've spent countless hours search the internet to find a list of exit codes for rsync. Can someone point me to a list of error codes and their meanings? this would be much appreciated !! thanks !! -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before p

child exit code rsync bug patch finally submitted

2003-01-09 Thread Dave Dykstra
I am preparing for making 2.5.6pre1 today and decided to submit David Staples patch with a little rework. Here's the version I submitted. - Dave Dykstra --- main.c~ Thu Aug 1 15:46:59 2002 +++ main.c Thu Jan 9 12:43:55 2003 @@ -26,6 +26,16 @@ extern struct stats stats; extern int v

rsync daemon exit code

2002-10-02 Thread Todd Howard
Greetings, I'm getting a different exit code from rsh versus daemon when syncing the same data. I've listed an example below. The exit code is 0 for the client to daemon example, it does not reflect the Permission denied errors. The second example is rsh and it returns exit code

exit code 23 - inappropriate error for copying symlinks?

2002-05-21 Thread Kevin J Walters
> "k" == Kevin J Walters <[EMAIL PROTECTED]> writes: k> I've just created a small directory as an example, it holds a file and k> two symlinks that don't point to anything, and another symlink going k> nowhere in a subdirectory. k> rsync (2.5.5) is happy to copy these but produces an error.

Re: exit code 23 - inappropriate error for copying symlinks?

2002-05-20 Thread Phil Howard
On Mon, May 20, 2002 at 10:59:41AM -0400, Crisler, Jon wrote: | Error 23 is an incomplete copy. As I understand it, there is an | inconsistancy between the first check for differences, and the start of the | copy process. | | I run into this all the time, but for my implemention it is a legiti

RE: exit code 23 - inappropriate error for copying symlinks?

2002-05-20 Thread Crisler, Jon
Title: RE: exit code 23 - inappropriate error for copying symlinks? Error 23 is an incomplete copy.  As I understand it, there is an inconsistancy between the first check for differences, and the start of the copy process.  I run into this all the time, but for my implemention it is a

exit code 23 - inappropriate error for copying symlinks?

2002-05-20 Thread Kevin J Walters
Hi, I've just created a small directory as an example, it holds a file and two symlinks that don't point to anything, and another symlink going nowhere in a subdirectory. rsync (2.5.5) is happy to copy these but produces an error. I can't see why it considers this an error? It's not even abort