Topic "The system cannot find the path specified (synchronization)"

Author Message
asa
[View user's profile]

Joined: 2012-09-18
Posts: 1
Location: California, USA
I'm getting "(EOSError) System Error. Code: 3." + "The system cannot find the path specified"
64% through a long synchronization. The path listed in the error message is 266 characters long. I suspect it may be an issue with long pathname support in WinSCP?

WinSCP 5.0.9 RC
Windows 7 SP1 64-Bit
SFTP-3
GUI (Explorer style)

During a synchronization (local direction, mirror) I get the specified error meessage. Does WinSCP use the newer windows APIs that handle long paths?

Here is the log. I left the path lengths intact, but modified their text for privacy. It shows the error repeated several times - I assume those are automatic retries. No further retires were made.
Code:
. 2012-09-17 21:14:44.223 Binary transfer mode selected.
. 2012-09-17 21:14:44.223 Opening remote file.
> 2012-09-17 21:14:44.223 Type: SSH_FXP_OPEN, Size: 107, Number: 4388611
< 2012-09-17 21:14:44.273 Type: SSH_FXP_STATUS, Size: 24, Number: 4388356
. 2012-09-17 21:14:44.273 Discarding reserved response
< 2012-09-17 21:14:44.333 Type: SSH_FXP_HANDLE, Size: 13, Number: 4388611
> 2012-09-17 21:14:44.333 Type: SSH_FXP_FSTAT, Size: 13, Number: 4388872
< 2012-09-17 21:14:44.393 Type: SSH_FXP_ATTRS, Size: 37, Number: 4388872
> 2012-09-17 21:14:44.393 Type: SSH_FXP_READ, Size: 25, Number: 4389125
. 2012-09-17 21:14:44.453 Cached directory change via "/www.abcdefghijklmnop.org/abc/abcdefg/abcdefgh/abcdef/_abcd/_abcde" to "/www.abcdefghijklmnop.org/abc/abcdefg/abcdefgh/abcdef/_abcd/_abcde".
. 2012-09-17 21:14:44.453 Getting current directory name.
. 2012-09-17 21:14:44.463 Directory content loaded from cache.
< 2012-09-17 21:14:44.513 Status code: 1
. 2012-09-17 21:14:44.513 3 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2012-09-17 21:14:44.513 Type: SSH_FXP_CLOSE, Size: 13, Number: 4389636
. 2012-09-17 21:14:44.523 File: "/www.abcdefghijklmnop.org/abc/abcdefg/abcdef/_abcd/_abcde/0EEWPVOMUWEOIRUO9NT8V4WYBTW9P8YTM49P8Y7OE87YBHLKW4HYBWUO9J6LIT679K09I7BE785YTB874YTVG5XY_123.abc.1234.a12b.bak.mno"
. 2012-09-17 21:14:44.523 Copying "/www.abcdefghijklmnop.org/abc/abcdefg/abcdef/_abcd/_abcde/0EEWPVOMUWEOIRUO9NT8V4WYBTW9P8YTM49P8Y7OE87YBHLKW4HYBWUO9J6LIT679K09I7BE785YTB874YTVG5XY_123.abc.1234.a12b.bak.mno" to local directory started.
. 2012-09-17 21:14:44.523 Binary transfer mode selected.
. 2012-09-17 21:14:44.523 Opening remote file.
> 2012-09-17 21:14:44.523 Type: SSH_FXP_OPEN, Size: 189, Number: 4389891
< 2012-09-17 21:14:44.573 Type: SSH_FXP_STATUS, Size: 24, Number: 4389636
. 2012-09-17 21:14:44.573 Discarding reserved response
< 2012-09-17 21:14:44.623 Type: SSH_FXP_HANDLE, Size: 13, Number: 4389891
> 2012-09-17 21:14:44.623 Type: SSH_FXP_FSTAT, Size: 13, Number: 4390152
< 2012-09-17 21:14:44.683 Type: SSH_FXP_ATTRS, Size: 37, Number: 4390152
* 2012-09-17 21:14:44.683 (EOSError) System Error.  Code: 3.

* 2012-09-17 21:14:44.683 The system cannot find the path specified
. 2012-09-17 21:14:44.683 Asking user:
. 2012-09-17 21:14:44.683 Can't create file 'X:\Hwfo8-e\e7hhdqh\Bfgz.ckmf-2012.09.17+ - AJL - 5yrsjsr8jhvdza5lfpnf EFBJ PKBFEAC MIRROR\www.abcdefghijklmnop.org\abc\abcdefg\abcdef\_abcd\_abcde\0EEWPVOMUWEOIRUO9NT8V4WYBTW9P8YTM49P8Y7OE87YBHLKW4HYBWUO9J6LIT679K09I7BE785YTB874YTVG5XY_123.abc.1234.a12b.bak.mno'. ("System Error.  Code: 3.

. 2012-09-17 21:14:44.683 The system cannot find the path specified")
. 2012-09-17 21:14:45.853 Cached directory change via "/www.abcdefghijklmnop.org/abc/abcdefg/abcdefgh/abcdef/_abcd" to "/www.abcdefghijklmnop.org/abc/abcdefg/abcdefgh/abcdef/_abcd".
. 2012-09-17 21:14:45.853 Getting current directory name.
. 2012-09-17 21:14:45.863 Directory content loaded from cache.
* 2012-09-17 21:14:52.383 (EOSError) System Error.  Code: 3.

* 2012-09-17 21:14:52.383 The system cannot find the path specified
. 2012-09-17 21:14:52.383 Asking user:
. 2012-09-17 21:14:52.383 Can't create file 'X:\Hwfo8-e\e7hhdqh\Bfgz.ckmf-2012.09.17+ - AJL - 5yrsjsr8jhvdza5lfpnf EFBJ PKBFEAC MIRROR\www.abcdefghijklmnop.org\abc\abcdefg\abcdef\_abcd\_abcde\0EEWPVOMUWEOIRUO9NT8V4WYBTW9P8YTM49P8Y7OE87YBHLKW4HYBWUO9J6LIT679K09I7BE785YTB874YTVG5XY_123.abc.1234.a12b.bak.mno'. ("System Error.  Code: 3.

. 2012-09-17 21:14:52.383 The system cannot find the path specified")
* 2012-09-17 21:14:53.383 (EOSError) System Error.  Code: 3.

* 2012-09-17 21:14:53.383 The system cannot find the path specified
. 2012-09-17 21:14:53.383 Asking user:
. 2012-09-17 21:14:53.383 Can't create file 'X:\Hwfo8-e\e7hhdqh\Bfgz.ckmf-2012.09.17+ - AJL - 5yrsjsr8jhvdza5lfpnf EFBJ PKBFEAC MIRROR\www.abcdefghijklmnop.org\abc\abcdefg\abcdef\_abcd\_abcde\0EEWPVOMUWEOIRUO9NT8V4WYBTW9P8YTM49P8Y7OE87YBHLKW4HYBWUO9J6LIT679K09I7BE785YTB874YTVG5XY_123.abc.1234.a12b.bak.mno'. ("System Error.  Code: 3.

. 2012-09-17 21:14:53.383 The system cannot find the path specified")


Server/protocol connection data:
Quote:
Session protocol = SSH-2
SSH implementation = OpenSSH_4.3
Encryption algorithm = aes
Compression = ZLib
File transfer protocol = SFTP-3
------------------------------------------------------------
Server host key fingerprint
ssh-rsa 2048 (censored)
------------------------------------------------------------
Can change permissions = Yes
Can change owner/group = Yes
Can execute arbitrary command = No
Can create symlink/hardlink = Yes/No
Can lookup user groups = No
Can duplicate remote files = No
Can check available space = No
Can calculate file checksum = No
Native text (ASCII) mode transfers = No
------------------------------------------------------------
Additional information
The server does not support any SFTP extension.


Any tips? Workarounds that occur to me, providing the portion of the path on the remote server is not too long, are using a short local path either directly or via a symbolic link or junction. Or enabling force-use UTF8 in connection options (this is a wilder guess) since it may enable use of better winapis, provided it is in fact compatible with the server (I don't know, maybe UTF8 is already being used by default though?)

Help appreciated. And fix for future versions also appreciated.

In the meantime, I will see what I can do...

Thank you!

EDIT: I pressed "continue" each time the error came up (or the button with such function), which occurred several times, and then when the synch was complete, I created a junction point to my long local path that was very short. I then resynchronized and the previously skipped files all synchronized without error. This seems to reconfirm my suspicion that the issue is a pathname length limitation in the WinSCP code.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Thanks for your post.

This issue is being tracked already:
https://winscp.net/tracker/show_bug.cgi?id=821

UTF won't help.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License