long directory name problem
Does rsync has directory name length limit? I was trying to rsync a directory that has the name length of 34 characters and getting permission denied error. $ rsync -avz --delete --force -e ssh /usr/local/apache/htdocs 192.168.0.2:/usr/local/apache building file list ... readlink htdocs/CorporateLegalTimesEDITORIAL_files/cBug_blueXs.gif: Permission denied readlink httpd/html/CorporateLegalTimesEDITORIAL_files/title_a.gif: Permission denied When I rename the directory to about half of its original length, the error goes away. Any advise are appreciated. -- ER
Re: long directory name problem
I've never heard of a name length limit. One operating system(s) and rsync version(s) are you using? - Dave On Wed, Jan 08, 2003 at 07:32:19AM -0800, elijah reyen wrote: Does rsync has directory name length limit? I was trying to rsync a directory that has the name length of 34 characters and getting permission denied error. $ rsync -avz --delete --force -e ssh /usr/local/apache/htdocs 192.168.0.2:/usr/local/apache building file list ... readlink htdocs/CorporateLegalTimesEDITORIAL_files/cBug_blueXs.gif: Permission denied readlink httpd/html/CorporateLegalTimesEDITORIAL_files/title_a.gif: Permission denied When I rename the directory to about half of its original length, the error goes away. Any advise are appreciated. -- ER -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: long directory name problem
We experience that as well. We use (sadly) Rsycn in Win32 environment. I hear it's due to the Cygwin utilities. Rgds, Bart Coninckx Network Administrator CNE, ASE * Sita ICT Services Lilsedijk 19 B-2340 Beerse Belgium e-mail: [EMAIL PROTECTED] Tel: + 32 (0) 14 62 28 22 Fax: + 32 (0) 14 62 41 47 * Dave Dykstra [EMAIL PROTECTED]To: elijah reyen [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Sent by: Subject: Re: long directory name problem rsync-admin@lists .samba.org 01/08/2003 21:17 I've never heard of a name length limit. One operating system(s) and rsync version(s) are you using? - Dave On Wed, Jan 08, 2003 at 07:32:19AM -0800, elijah reyen wrote: Does rsync has directory name length limit? I was trying to rsync a directory that has the name length of 34 characters and getting permission denied error. $ rsync -avz --delete --force -e ssh /usr/local/apache/htdocs 192.168.0.2:/usr/local/apache building file list ... readlink htdocs/CorporateLegalTimesEDITORIAL_files/cBug_blueXs.gif: Permission denied readlink httpd/html/CorporateLegalTimesEDITORIAL_files/title_a.gif: Permission denied When I rename the directory to about half of its original length, the error goes away. Any advise are appreciated. -- ER -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: long directory name problem
On Wed, Jan 08, 2003 at 02:17:16PM -0600, Dave Dykstra wrote: I've never heard of a name length limit. One operating system(s) and rsync version(s) are you using? - Dave On Wed, Jan 08, 2003 at 07:32:19AM -0800, elijah reyen wrote: Does rsync has directory name length limit? I was trying to rsync a directory that has the name length of 34 characters and getting permission denied error. $ rsync -avz --delete --force -e ssh /usr/local/apache/htdocs 192.168.0.2:/usr/local/apache building file list ... readlink htdocs/CorporateLegalTimesEDITORIAL_files/cBug_blueXs.gif: Permission denied readlink httpd/html/CorporateLegalTimesEDITORIAL_files/title_a.gif: Permission denied When I rename the directory to about half of its original length, the error goes away. Any advise are appreciated. You aren't hitting an rsync limit. The only limit existing in rsync is MAXPATHLEN which if not defined by the libs will be 1024. Whatever is doing it seems to have a bug in any case. readlink or stat should return set errno to ENOENT, ENAMETOOLONG, or ENOTDIR depending on what is actually causing the error. EACCESS means the file is there and the path is good, you just don't have permission. Most likely it is the libraries causing the problem. In addition to the OS and rsync version question, what are the filesystem types? -- J.W. SchultzPegasystems Technologies email address: [EMAIL PROTECTED] Remember Cernan and Schmitt -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: long directory name problem
[EMAIL PROTECTED] wrote: We experience that as well. We use (sadly) Rsycn in Win32 environment. I hear it's due to the Cygwin utilities. What file sysetm, cygwni version and rsync version are you talking about? $ echo try ridicolouslyLongFileNameThatNoOnWillEverUseAsItIsReallyInsaneToDoButYetItWorkButImUsingNTFSHereMaybeThisIsTheIssueButWouldAnywayBeAWindowsIssueReally $ rsync -v ridicolouslyLongFileNameThatNoOnWillEverUseAsItIsReallyInsaneToDoButYetItWorkButImUsingNTFSHereMaybeThisIsTheIssueButWouldAnywayBeAWindowsIssueReally ridicolouslyLongFileNameThatNoOnWillEverUseAsItIsReallyInsaneToDoButYetItWorkButImUsingNTFSHereMaybeThisIsTheIssueButWouldAnywayBeAWindowsIssueReally2 ridicolouslyLongFileNameThatNoOnWillEverUseAsItIsReallyInsaneToDoButYetItWorkButImUsingNTFSHereMaybeThisIsTheIssueButWouldAnywayBeAWindowsIssueReally wrote 224 bytes read 36 bytes 27.37 bytes/sec total size is 4 speedup is 0.02 $ ls ridi* ridicolouslyLongFileNameThatNoOnWillEverUseAsItIsReallyInsaneToDoButYetItWorkButImUsingNTFSHereMaybeThisIsTheIssueButWouldAnywayBeAWindowsIssueReally ridicolouslyLongFileNameThatNoOnWillEverUseAsItIsReallyInsaneToDoButYetItWorkButImUsingNTFSHereMaybeThisIsTheIssueButWouldAnywayBeAWindowsIssueReally2 -- Lapo 'Raist' Luchini [EMAIL PROTECTED] (PGP X.509 keys available) http://www.lapo.it (ICQ UIN: 529796) -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Re: long directory name problem
All, Here is the complete picture of what I am doing: OS: RedHat Linux 7.2 Kernel 2.4.19 Here is the script that I am running with: #!/usr/bin/expect spawn su - rsyncusr expect { ter]\$ {send rsync -avz --delete --force -e ssh /usr/local/apache/htdocs 192.168.0.2:/usr/local/apache;exit\n} } interact jw schultz [EMAIL PROTECTED] wrote .. On Wed, Jan 08, 2003 at 02:17:16PM -0600, Dave Dykstra wrote: I've never heard of a name length limit. One operating system(s) and rsync version(s) are you using? - Dave On Wed, Jan 08, 2003 at 07:32:19AM -0800, elijah reyen wrote: Does rsync has directory name length limit? I was trying to rsync a directory that has the name length of 34 characters and getting permission denied error. $ rsync -avz --delete --force -e ssh /usr/local/apache/htdocs 192.168.0.2:/usr/local/apache building file list ... readlink htdocs/CorporateLegalTimesEDITORIAL_files/cBug_blueXs.gif: Permission denied readlink httpd/html/CorporateLegalTimesEDITORIAL_files/title_a.gif: Permission denied When I rename the directory to about half of its original length, the error goes away. Any advise are appreciated. You aren't hitting an rsync limit. The only limit existing in rsync is MAXPATHLEN which if not defined by the libs will be 1024. Whatever is doing it seems to have a bug in any case. readlink or stat should return set errno to ENOENT, ENAMETOOLONG, or ENOTDIR depending on what is actually causing the error. EACCESS means the file is there and the path is good, you just don't have permission. Most likely it is the libraries causing the problem. In addition to the OS and rsync version question, what are the filesystem types? -- J.W. SchultzPegasystems Technologies email address: [EMAIL PROTECTED] Remember Cernan and Schmitt -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html