Re: Rsync Error Code 23?

2008-08-27 Thread earl . j . sanchez
Thank you for your response Matt.
On the source server, /snapshots/fs/tce_data/pc-software/pc is a symlink
to the directory /snapshots/fs/tce_data/pc.

On the destination server,
/drp/fmttcesrv1/snapshots/fs/tce_data/pc-software is a directory which
contains the partial content of /drp/fmttcesrv1/snapshots/fs/tce_data/pc.
rmdir cannot remove /drp/fmttcesrv1/snapshots/fs/tce_data/pc-software
which is not empty as it contains partial content from
/drp/fmttcesrv1/snapshots/fs/tce_data/pc. See below directory structure.

drpvault# pwd
/drp/fmttcesrv1/snapshots/fs/tce_data
drpvault# ls
client_logs ItemValRequest  pc-software tcdata_unx
trans_9135
fmtprd  lost+found  pc-software.README  tcdata_win
imandata_unxmcadPdfCreateRequestteam
imandata_winpc  softwaretrans
drpvault# ls -l pc-software
total 4
drwxr-xr-x   3 ideasadm ideasadm 512 Jun 14  2006 pc-software
lrwxrwxrwx   1 ideasadm ideasadm  14 Nov  5  2007 team -
/tce_data/team
drpvault# ls -l pc
total 6
lrwxrwxrwx   1 ideasadm ideasadm   7 Nov  5  2007 mcad - ../mcad
drwxrwxrwx  11 ideasadm ideasadm 512 Apr  4 16:27 pc-software
lrwxrwxrwx   1 ideasadm ideasadm   7 Nov  5  2007 team - ../team
drpvault#




   
 Matt McCutchen
 [EMAIL PROTECTED] 
 en.netTo 
 No Phone Info [EMAIL PROTECTED]  
 Available  cc 
   rsync@lists.samba.org   
   Subject 
 08/26/2008 08:02  Re: Rsync Error Code 23?
 PM
   
   
   
   
   




On Tue, 2008-08-26 at 16:29 -0700, [EMAIL PROTECTED] wrote:
 Regarding rsync error code 23 could the below delete_file: ...file
 exist failures cause the error code 23? Or, how can I resolve this as
 these are the only errors I see in the log files.
 Thank you!

 START  Tue Aug 26 11:10:12 PDT 2008
 /home/filerep/bin/rsync -e /var/openssh/bin/ssh --archive --stats
 --timeout 3600
  fmttcesrv1::tce_data /drp/fmttcesrv1/snapshots/fs/tce_data
 --bwlimit=900
 delete_file: rmdir /drp/fmttcesrv1/snapshots/fs/tce_data/pc-software
 failed: F
 ile exists
 symlink /drp/fmttcesrv1/snapshots/fs/tce_data/pc-software - pc
 failed: File
  exists

In this case I think it's actually the symlink failure causing the
code 23.  delete_file failures currently don't cause code 23, but they
probably should because they result in an incorrect transfer.

Rsync appears to be trying to delete what it believes is a directory
from the destination and make a symlink there instead.  However, its
rmdir call fails with EEXIST (File exists), which isn't even listed as a
possible error in my rmdir(2) man page.  What is at the
path /drp/fmttcesrv1/snapshots/fs/tce_data/pc-software ?  Is it a
directory, as rsync believes?  Can you remove the directory manually
with rmdir(1)?  If you can't, you have a non-rsync-specific filesystem
problem, while if you can, we'll have to investigate further why rsync
is failing.

Matt
(See attached file: signature.asc)

signature.asc
Description: Binary data
-- 
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

Re: Rsync Error Code 23?

2008-08-27 Thread Matt McCutchen
On Wed, 2008-08-27 at 10:45 -0700, [EMAIL PROTECTED] wrote:
 Thank you for your response Matt.
 On the source server, /snapshots/fs/tce_data/pc-software/pc is a symlink
 to the directory /snapshots/fs/tce_data/pc.
 
 On the destination server,
 /drp/fmttcesrv1/snapshots/fs/tce_data/pc-software is a directory which
 contains the partial content of /drp/fmttcesrv1/snapshots/fs/tce_data/pc.
 rmdir cannot remove /drp/fmttcesrv1/snapshots/fs/tce_data/pc-software
 which is not empty as it contains partial content from
 /drp/fmttcesrv1/snapshots/fs/tce_data/pc.

Ah.  If you want rsync to recursively delete a destination directory
that is to be replaced with a non-directory, you just need to use
--force.  (I was thrown off by the File exists error; I would have
expected Directory not empty.)

Matt


signature.asc
Description: This is a digitally signed message part
-- 
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

Rsync Error Code 23?

2008-08-26 Thread earl . j . sanchez
Regarding rsync error code 23 could the below delete_file: ...file 
exist failures cause the error code 23? Or, how can I resolve this as 
these are the only errors I see in the log files.
Thank you!

START  Tue Aug 26 11:10:12 PDT 2008
/home/filerep/bin/rsync -e /var/openssh/bin/ssh --archive --stats 
--timeout 3600
 fmttcesrv1::tce_data /drp/fmttcesrv1/snapshots/fs/tce_data --bwlimit=900
delete_file: rmdir /drp/fmttcesrv1/snapshots/fs/tce_data/pc-software 
failed: F
ile exists
symlink /drp/fmttcesrv1/snapshots/fs/tce_data/pc-software - pc 
failed: File
 exists
delete_file: rmdir 
/drp/fmttcesrv1/snapshots/fs/tce_data/software/ugs/custom f
ailed: File exists
symlink /drp/fmttcesrv1/snapshots/fs/tce_data/software/ugs/custom - 
/tce_dat
a/mcad/NX5/custom failed: File exists
delete_file: rmdir 
/drp/fmttcesrv1/snapshots/fs/tce_data/software/ugs/lib/v9 f
ailed: File exists
symlink /drp/fmttcesrv1/snapshots/fs/tce_data/software/ugs/lib/v9 - 
id13/v9
 failed: File exists

Number of files: 511604
Number of files transferred: 75
Total file size: 107684107564 bytes
Total transferred file size: 13358336 bytes
Literal data: 2097627 bytes
Matched data: 11260709 bytes
File list size: 11714766
Total bytes written: 49157
Total bytes read: 13837325

wrote 49157 bytes  read 13837325 bytes  55657.24 bytes/sec
total size is 107684107564  speedup is 7754.60
rsync error: some files could not be transferred (code 23) at main.c(1048)
END Tue Aug 26 11:14:21 PDT 2008-- 
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

Re: Rsync Error Code 23?

2008-08-26 Thread Matt McCutchen
On Tue, 2008-08-26 at 16:29 -0700, [EMAIL PROTECTED] wrote:
 Regarding rsync error code 23 could the below delete_file: ...file
 exist failures cause the error code 23? Or, how can I resolve this as
 these are the only errors I see in the log files. 
 Thank you! 
 
 START  Tue Aug 26 11:10:12 PDT 2008 
 /home/filerep/bin/rsync -e /var/openssh/bin/ssh --archive --stats
 --timeout 3600 
  fmttcesrv1::tce_data /drp/fmttcesrv1/snapshots/fs/tce_data
 --bwlimit=900 
 delete_file: rmdir /drp/fmttcesrv1/snapshots/fs/tce_data/pc-software
 failed: F 
 ile exists 
 symlink /drp/fmttcesrv1/snapshots/fs/tce_data/pc-software - pc
 failed: File 
  exists

In this case I think it's actually the symlink failure causing the
code 23.  delete_file failures currently don't cause code 23, but they
probably should because they result in an incorrect transfer.

Rsync appears to be trying to delete what it believes is a directory
from the destination and make a symlink there instead.  However, its
rmdir call fails with EEXIST (File exists), which isn't even listed as a
possible error in my rmdir(2) man page.  What is at the
path /drp/fmttcesrv1/snapshots/fs/tce_data/pc-software ?  Is it a
directory, as rsync believes?  Can you remove the directory manually
with rmdir(1)?  If you can't, you have a non-rsync-specific filesystem
problem, while if you can, we'll have to investigate further why rsync
is failing.

Matt


signature.asc
Description: This is a digitally signed message part
-- 
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

Re: Rsync Error Code 23

2008-04-18 Thread Wayne Davison
On Thu, Apr 17, 2008 at 12:57:27PM -0600, Kenneth Seal wrote:
 I have tried running my script in verbose mode -vv but I really don't
 want to read all 1000+ lines of output to look for the error code.

Errors should be output to stderr, and it isn't required that you have
even one -v specified to see errors.  You should be able to redirect
stderr (file-handle 2) like this:

rsync -av src/ dest/ 2/tmp/rsync-$$.txt

That should give you the errors in whatever file you like.

..wayne..
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Rsync Error Code 23

2008-04-17 Thread Kenneth Seal

Hi,

Is it possible to log rsync error messages and read them in console  
(Mac OS 10.5 Utility), or perhaps a text file? I have tried running my  
script in verbose mode -vv but I really don't want to read all 1000+  
lines of output to look for the error code.


Currently my script looks something like this:

rsync -aE --delete --progress ~/(Entire Home Directory) /Volumes/(My  
backup drive)


Thanks,
Ken
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Rsync Error Code 23?

2005-01-27 Thread Wayne Davison
On Wed, Jan 26, 2005 at 06:47:31PM -0500, Tristan Fiedler wrote:
 I have an error code 23 (shown below) which I can't debug:

Mixed into the verbose output should be one or more warnings about
either a file-access or a file-writing problem that prevented a file
from being updated.  Typically the warning is something like an access
permission not allowing the reading of a source file or directory,
however it might also be a read error when reading the file, which could
indicate a disk problem -- but that is usually not the case.  Finding
the error in the verbose output should tell you what's going on.

You should be able to to re-run rsync to see it again.  Note that if the
transfer is going to or from a daemon (which your command-line example
did not show, but I'll mention this just to be complete) that some
versions of rsync only put these warnings into the daemon logfile.

..wayne..
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Rsync Error Code 23?

2005-01-26 Thread Tristan Fiedler
Hi All,
I have an error code 23 (shown below) which I can't debug:
 I am using:
$ rsync --version
rsync  version 2.6.2  protocol version 28
Here's the command I execute:
rsync -av --delete /Users/mydir /Volumes/FireLite\ 60\ GB/backup/
After the transfer which apparently transfers the files correctly, I 
get the following error code:

wrote 2630815 bytes  read 200 bytes  78537.76 bytes/sec
total size is 9906336280  speedup is 3765.21
rsync error: some files could not be transferred (code 23) at 
/SourceCache/rsync/rsync-14/rsync/main.c(633)

What is error code 23? Is this serious?  I have not seen any examples 
of running rsync as sudo, so I haven't tested that (out of fear!)

Cheers,Tristan
--
Tristan J. Fiedler
Cold Spring Harbor Laboratory
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html