Get ERROR failed: File name too long (91) with Copssh 4.9.0 (free) & cwRsync 3.1.0 (free)

10 posts / 0 new
Last post
mythink
Offline
Last seen: 8 years 12 months ago
Joined: 27.02.2014 - 20:57
Get ERROR failed: File name too long (91) with Copssh 4.9.0 (free) & cwRsync 3.1.0 (free)

My understanding this is an old issue from 3.1 and has to do with cygwin 1.7 assuming 3.1.0 should have current cygwin.

in windows work arround is to us \\?\path but don't belive cygwin can parse since it uses linux format i.e.//?/cygdrive/ doesn't work just gives error failed: no such file or directory.

 

 is their a work around for this issue?

 

itefix
Offline
Last seen: 1 hour 24 min ago
Joined: 01.05.2008 - 21:33
I don't have any clue about

I don't have any clue about your setup. Free editions have an almost latest (1.7.27) Cygwin and should be able to handle long file names.

 

mythink
Offline
Last seen: 8 years 12 months ago
Joined: 27.02.2014 - 20:57
To symply file the config

To symply file the config tried doing long directory & file using just cwrsync personal edition 3.1.

c:\tools\cwRsync>rsync -r /cygdrive/e/TEMP backup@16.75.55.186::backup
cannot send long-named file "/cygdrive/e/TEMP/1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/1234567890
456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/1234567890123456789012345678901234567/help_me_i_am_"
rsync: recv_generator: mkdir "TEMP/1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/123456789012345678901
5678901234567890123456789012345678901234567890123456789012345678901234567890/1234567890123456789012345678901234567" (in backup) failed: File name too long (9
*** Skipping any contents from this failed directory ***
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6]

log file:

2014/03/24 11:18:51 [5812] receiving file list
2014/03/24 11:18:51 [5812] rsync: recv_generator: mkdir "TEMP/1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890/1234567890123456789012345678901234567" (in backup) failed: File name too long (91)
2014/03/24 11:18:51 [5812] *** Skipping any contents from this failed directory ***

Any one know if this an issue wth the Free version being 32bit vs 64bit Cygwin 1.7 supposedly fixed this issue. So trying to find out if need to purchase the commercial version to resolve long filename and folder names issue.

mythink
Offline
Last seen: 8 years 12 months ago
Joined: 27.02.2014 - 20:57
Got this reply but no example

Got this reply but no example how to replicate. Only that current versions both 32/64bit cigwin 1.7 supporting long path and filenames.

 

Hi,

Both 32-bit and 64-bit versions have Cygwin 1.7 with long file name support. As long as your file management tool uses Unicode compatible APIs (Explorer and command prompt don't!!), to be able to create long file names, cwRsync will work as it supports long file names. Below you can see a transfer log with long file names:

2014/03/25 22:08:42 [1784] building file list
2014/03/25 22:08:42 [1784] cd+++++++++ backup/
2014/03/25 22:08:42 [1784] cd+++++++++ backup/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/
2014/03/25 22:08:42 [1784] cd+++++++++ backup/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/
2014/03/25 22:08:42 [1784] cd+++++++++ backup/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/
2014/03/25 22:08:42 [1784] cd+++++++++ backup/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/
2014/03/25 22:08:42 [1784] >f+++++++++ backup/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/testfile
2014/03/25 22:08:43 [1784] sent 863 bytes  received 64 bytes  total size 25

The trick is I've created those directories via bash shell and nano editor via Cygwin with long file name support.

Kind regards

Tev, Itefix

 

Tried using the bash -c command option to create the listner and the sender but neighter work.

On Receiving Server

bash -c /cygdrive/c/tools/copssh/bin/rsync --daemon --config=/cygdrive/c/tools/cwRsync/rsync.conf

GET:
Use "rsync --daemon --help" to see the daemon-mode command-line options.
Please see the rsync(1) and rsyncd.conf(5) man pages for full documentation.
See http://rsync.samba.org/ for updates, bug reports, and answers
rsync error: syntax or usage error (code 1) at main.c(1407) [client=3.0.6]

on Sending Server
C:\tools\cwRsync>C:\tools\copssh\bin\bash.exe -c /cygdrive/c/tools/cwRsync/bin/rsync -r /cygdrive/e/TEMP

backup@10.10.10.10::backup
      2 [main] rsync 11860 dtable::stdio_init: couldn't make stderr distinct from stdout

 

 

 

 

itefix
Offline
Last seen: 1 hour 24 min ago
Joined: 01.05.2008 - 21:33
You try to fire up an Rsync

You try to fire up an Rsync listener from the command line with wrong settings. Try

--config rsyncd.conf --daemon

 

or consider to purchase cwRsync to get access to cwRsyncServer installer which sets rsync daemon as a service.

mythink
Offline
Last seen: 8 years 12 months ago
Joined: 27.02.2014 - 20:57
swaping the two options

swaping the two options around has no effect on long file names still get error.

rsync --config=/cygdrive/c/tools/cwRsync/rsync.conf --daemon

Also I will purchase copssh licenses once can get rsync to replicate long paths & filnemes = 260+ Characters.

don't need to run rsync as a service I invoke it from ssh sesion just symplify the issue doing rsync to rsync without the ssh tunnel.

 

per Tev:

Both 32-bit and 64-bit versions have Cygwin 1.7 with long file name
support. As long as your file management tool uses Unicode compatible APIs
(Explorer and command prompt don't!!), to be able to create long file names,
cwRsync will work as it supports long file names. Below you can see a
transfer log with long file names:

The trick is I've created those directories via bash shell and nano editor
via Cygwin with long file name support. Kind regards
Tev, Itefix

 

Issue is I need to copy files and folder created from windows systems on a windows 2008 R2 to Windows 2008 R2 sever, the files are being parsed via unix style paths via cygwin so windows shell should not be an issue.

itefix
Offline
Last seen: 1 hour 24 min ago
Joined: 01.05.2008 - 21:33
As I've demonstrated before ,

As I've demonstrated before , rsync via Cygwin supports long file names. I think your problem may be related to forming of the bash command:

bash -c /cygdrive/c/tools/copssh/bin/rsync --daemon --config=/cygdrive/c/tools/cwRsync/rsync.conf

Try to put rsync command between quotes:

bash -c "/cygdrive/c/tools/copssh/bin/rsync --daemon --config=/cygdrive/c/tools/cwRsync/rsync.conf"

 

mythink
Offline
Last seen: 8 years 12 months ago
Joined: 27.02.2014 - 20:57
unable from cammand line

unable from cammand line execute rsync via bash with or with outh quotes.

 

c:\tools\copssh\bin\bash -c "rsync --config=/cygdrive/c/tools/cwRsync/rsync.conf --daemon"
Results in following Error:
6385 [main] rsync 3116 dtable::stdio_init: couldn't make stderr distinct from stdout

c:\tools\copssh\bin\bash -c rsync --config=/cygdrive/c/tools/cwRsync/rsync.conf --daemon
Results in following Error:
      6 [main] rsync 3724 dtable::stdio_init: couldn't make stderr distinct from stdout

mythink
Offline
Last seen: 8 years 12 months ago
Joined: 27.02.2014 - 20:57
OK just for grins starting

OK just for grins starting bash from shortcut in start menu
userid@server02 /cygdrive/c/tools/copssh/bin
$ rsync --config=/cygdrive/c/tools/cwRsync/rsync.conf --daemon
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
on other host
userid@server01 /cygdrive/c/toos/copssh/bin
$ export RSYNC_PASSWORD=password

userid@server01 /cygdrive/c/toos/copssh/bin
$ rsync -r /cygdrive/e/TEMP backup@10.10.10.10::backup
cannot send long-named file "/cygdrive/e/TEMP/1234567890123456789012345678901234
567890123456789012345678901234567890123456789012345678901234567890/1234567890123
45678901234567890123456789012345678901234567890123456789012345678901234567890123
4567890/1234567890123456789012345678901234567/help_me_i_am_"
rsync error: some files/attrs were not transferred (see previous errors) (code 2
3) at main.c(1039) [sender=3.0.6]

itefix
Offline
Last seen: 1 hour 24 min ago
Joined: 01.05.2008 - 21:33
It works here. Rsync transfer

It works here. Rsync transfer from a Windows 7 client to an Windows XP with cwRsyncServer installed. As mentioned before, Rsync on Cygwin has no problems with long file names. However, not all scenarios are expected to work seamlessly. We do provide support/assistance only on scenarios we do know that they work.

Client log (Win 7):

c:\cwrsync\bin\rsync -vrt /cygdrive/c/opt1/backup/ xxx.xxx.xxx.xxx::test
sending incremental file list
./
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678
901234567890123456789012345678901234567890123456789012345678901234567890123456789/
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678
901234567890123456789012345678901234567890123456789012345678901234567890123456789/01234567890123456789012345678901234567
89012345678901234567890123456789012345678901234567890123456789/
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678
901234567890123456789012345678901234567890123456789012345678901234567890123456789/01234567890123456789012345678901234567
89012345678901234567890123456789012345678901234567890123456789/012345678901234567890123456789012345678901234567890123456
7890123456789012345678901234567890123456789/
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678
901234567890123456789012345678901234567890123456789012345678901234567890123456789/01234567890123456789012345678901234567
89012345678901234567890123456789012345678901234567890123456789/012345678901234567890123456789012345678901234567890123456
7890123456789012345678901234567890123456789/testfile

sent 837 bytes  received 58 bytes  1,790.00 bytes/sec
total size is 25  speedup is 0.03

Server log (Win XP, w/o timestamps):

rsyncd version 3.1.0 starting, listening on port 873
name lookup failed for xxx.xxx.xxx.xxx: No address associated with hostname

connect from UNKNOWN (xxx.xxx.xxx.xxx)
rsync to test/ from UNKNOWN (xxx.xxx.xxx.xxx)
receiving file list
./
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/
recv UNKNOWN [192.168.56.51] test () 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/testfile 25
sent 63 bytes  received 845 bytes  total size 25

 

 

Release news