Long file name problem, fixed in 5.14

Advertisement

djs
Joined:
Posts:
10
Location:
Connecticut

Long file name problem, fixed in 5.14

Hi,

I'm having problems uploading files to our FTP server which have long file names. As a test I created a bunch of files with increasing length names to test the upload, and found the upload stopped working after the file name was 82 characters plus a 3 character extension. The folder I was uploading to was 21 characters long. I can upload these same files, and longer ones, using FTP command line as well as FileZilla.

When running this in a the GUI the upload progresses then stops for about 20 seconds, and I get this error message.
---------------------------
Error
---------------------------
Lost connection.
---------------------------
Timeout detected. (control connection)
Copying files to remote side failed.
---------------------------
Abort Reconnect Help
---------------------------

When running via script it simply stops working and I don't see any error message.

I noticed an existing bug ticket reporting a long file name problem is fixed in version 5.14, but I'm not sure if I'm having the same issue or not.
https://winscp.net/tracker/1337

I'm currently running 5.13.3, which is the same version available on your download page. Can I get an early release of version 5.14 to see if it fixes my problem?

I have attached a log of my FTP session in case that is helpful. Please let me know if you need any other information.

Thanks
Dan
  • Stage.log (87.87 KB, Private file)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,430
Location:
Prague, Czechia

Re: Long file name problem, fixed in 5.14

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.

Reply with quote

djs
Joined:
Posts:
10
Location:
Connecticut

Re: Long file name problem, fixed in 5.14

Hi Martin,

Thanks for sending me the 5.14 download link, but it looks like I'm still having the problem.

I again tried uploading a series of files with increasing filename length, and when it reached a file name of 82 characters long plus a .txt extension, the upload stopped. I can see from the log WinSCP tried to do a "MDTM" command after which it got a session timeout.

I then disabled the "Preserve Timestamp" option from the Default transfer settings(https://winscp.net/eng/docs/ui_transfer_custom) and retried uploading the files, which this time worked, uploading files with names of 94 characters long.

However, then when I tried deleting these files I got another error when trying to delete a file with a name 49 characters long. Reconnecting to the FTP server I can see that it did delete this file, but I get the same session timeout error preventing WinSCP from deleting the remaining files.

I don't want to workaround this problem by just disabling the "Preserve Timestamp" option since that is very important to make sure we are uploading the correct files to the server.

I've attached logs of both sessions to the post. Let me know if I can help with the troubleshooting.

Thanks
Dan
  • Temp-Stage2.log (369.05 KB, Private file)
Description: Session with Preserve Timestamp disabled, and also tried to delete uploaded files.
  • Temp-Stage.log (122.72 KB, Private file)
Description: Session with Preserve Timestamp enabled.

Reply with quote

martin
Site Admin
martin avatar

Re: Long file name problem, fixed in 5.14

OK, so it looks like a server-side problem.
Or, can FileZilla preserve timestamp and/or delete files with a long name?

Reply with quote

miroslaw
Joined:
Posts:
1

Re: Long file name problem, fixed in 5.14

Dear Martin,

Can I also ask for developmnent version of WinSCP v5.14?
I'm encounter issue with copy files from FTP, when folder path is quite long, 18 folders inside.
(WinSCP v5.13.4)
Thank you in advance
Miroslaw

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Long file name problem, fixed in 5.14

miroslaw wrote:

Can I also ask for developmnent version of WinSCP v5.14?
Sent to your email address.

Reply with quote

dklimoski
Joined:
Posts:
2
Location:
NYC

Error 206 bug using version 5.14.4 RC (Build 9136)

Martin,

My apologies, I downloaded the latest beta build. However, I seem to get the same error using 5.14.4 RC (Build 9136) build over FTP. Note that I am running Windows 10 Professional and have enabled long paths using instructions from this article (https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#maximum-path-length-limitation).

Let me know if you need any additional info or original log file. I was using get command.

Regards,
Don

Here is the WinSCP log:

. 2019-02-19 21:47:33.242 File: '/[...]/Background Checks' [2014-01-01T10:55:11.000Z] [0]
* 2019-02-19 21:47:33.242 (EOSError) System Error. Code: 206.

* 2019-02-19 21:47:33.242 The filename or extension is too long
. 2019-02-19 21:47:33.242 Asking user:
. 2019-02-19 21:47:33.242 Error creating folder 'E:\FTP_Box_Backup\[...]\Background Checks'. ("System Error. Code: 206.

. 2019-02-19 21:47:33.242 The filename or extension is too long")
< 2019-02-19 21:47:33.242 Script: Error creating folder 'E:\FTP_Box_Backup\[...]\Background Checks'.
< 2019-02-19 21:47:33.242 Script: System Error. Code: 206.

< 2019-02-19 21:47:33.242 The filename or extension is too long
* 2019-02-19 21:47:33.242 (ESkipFile) Error creating folder 'E:\FTP_Box_Backup\[...]\Background Checks'.
* 2019-02-19 21:47:33.242 System Error. Code: 206.
* 2019-02-19 21:47:33.242 The filename or extension is too long
. 2019-02-19 21:47:33.242 Script: Failed
. 2019-02-19 21:47:33.242 Script: Exit code: 1
. 2019-02-19 21:47:33.273 Disconnected from server

martin wrote:

WinSCP 5.14 is available for a download a long time already:
https://winscp.net/eng/downloads.php

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,430
Location:
Prague, Czechia

Re: Error 206 bug using version 5.14.4 RC (Build 9136)

dklimoski wrote:

My apologies, I downloaded the latest beta build. However, I seem to get the same error using 5.14.4 RC (Build 9136) build over FTP. Note that I am running Windows 10 Professional and have enabled long paths using instructions from this article (https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#maximum-path-length-limitation).
This is most probably your post:
https://winscp.net/forum/viewtopic.php?t=14386#90158

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.

Reply with quote

Advertisement

You can post new topics in this forum