Topic "can't upload file with ' in beginning and end"

Author Message
thorir
[View user's profile]

Joined: 2016-01-26
Posts: 2
Hi

I'm trying to script upload of a file with WinSCP. I can upload the file with FileZilla but I can't upload the file in WinSCP (both the gui and scripted)
The file name is strange : 'RBP.AUVV.AUDKENNI.STARFCER' (and the ' is included in the name)
G:\Vefir\Umsoknir\Strengur>dir *STAR*

Directory of G:\Vefir\Umsoknir\Strengur

26.01.2016 09:38 1.277 'RBP.AUVV.AUDKENNI.STARFCER'

This is a FileZilla log:

2016-01-26 11:55:24 4556 3 Response: 234 Security environment established - ready for negotiation
2016-01-26 11:55:24 4556 3 Status: Initializing TLS...
2016-01-26 11:55:24 4556 3 Status: Verifying certificate...
2016-01-26 11:55:24 4556 3 Status: TLS connection established.
2016-01-26 11:55:24 4556 3 Command: USER auftp01
2016-01-26 11:55:24 4556 3 Response: 331 Send password please.
2016-01-26 11:55:24 4556 3 Command: PASS ********
2016-01-26 11:55:24 4556 3 Response: 230 AUFTP01 is logged on. Working directory is "AUFTP01.".
2016-01-26 11:55:24 4556 3 Status: Server does not support non-ASCII characters.
2016-01-26 11:55:24 4556 3 Command: PBSZ 0
2016-01-26 11:55:24 4556 3 Response: 200 Protection buffer size accepted
2016-01-26 11:55:24 4556 3 Command: PROT P
2016-01-26 11:55:24 4556 3 Response: 200 Data connection protection set to private
2016-01-26 11:55:24 4556 3 Status: Connected
2016-01-26 11:55:24 4556 3 Status: Starting upload of G:\Vefir\Umsoknir\Strengur\'RBP.AUVV.AUDKENNI.STARFCER'
2016-01-26 11:55:24 4556 3 Command: CWD 'AUFTP01.'
2016-01-26 11:55:24 4556 3 Response: 250 "AUFTP01." is the working directory name prefix.
2016-01-26 11:55:24 4556 3 Command: PWD
2016-01-26 11:55:24 4556 3 Response: 257 "'AUFTP01.'" is working directory.
2016-01-26 11:55:24 4556 3 Command: TYPE A
2016-01-26 11:55:24 4556 3 Response: 200 Representation type is Ascii NonPrint
2016-01-26 11:55:24 4556 3 Command: PASV
2016-01-26 11:55:24 4556 3 Response: 227 Entering Passive Mode (193,4,182,35,195,122)
2016-01-26 11:55:24 4556 3 Command: STOR 'RBP.AUVV.AUDKENNI.STARFCER'
2016-01-26 11:55:24 4556 3 Response: 125 Storing data set RBP.AUVV.AUDKENNI.STARFCER
2016-01-26 11:55:24 4556 3 Response: 250 Transfer completed successfully.
2016-01-26 11:55:24 4556 3 Status: File transfer successful, transferred 1.277 bytes in 1 second
2016-01-26 11:55:24 4556 3 Status: Retrieving directory listing of "'AUFTP01.'"...
2016-01-26 11:55:24 4556 3 Command: TYPE I
2016-01-26 11:55:24 4556 3 Response: 200 Representation type is Image
2016-01-26 11:55:24 4556 3 Command: PASV
2016-01-26 11:55:24 4556 3 Response: 227 Entering Passive Mode (193,4,182,35,195,122)
2016-01-26 11:55:24 4556 3 Command: LIST
2016-01-26 11:55:24 4556 3 Response: 550 No data sets found.
2016-01-26 11:55:24 4556 3 Status: Directory listing of "'AUFTP01.'" successful


But if I use WinSCP I can't upload it in gui, get:
Error transfering file 'G:\Vefir\Umsoknir\Strengur\'RBP.AUVV.AUDKENNI.STARFCER". (see problem with ' and ")

If I do it from a script, the put command: put 'RBP.AUVV.AUDKENNI.STARFCER' I get this:
> 2016-01-26 13:22:11.729 Script: put 'RBP.AUVV.AUDKENNI.STARFCER'
. 2016-01-26 13:22:11.729 Copying 1 files/directories to remote directory "'AUFTP01.'"
. 2016-01-26 13:22:11.729 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2016-01-26 13:22:11.729 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2016-01-26 13:22:11.729 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2016-01-26 13:22:11.729 File: ''RBP.AUVV.AUDKENNI.STARFCER'' [2016-01-26T09:38:50.466Z] [1277]
. 2016-01-26 13:22:11.729 Copying "'RBP.AUVV.AUDKENNI.STARFCER'" to remote directory started.
. 2016-01-26 13:22:11.729 Binary transfer mode selected.
. 2016-01-26 13:22:11.729 Starting upload of 'RBP.AUVV.AUDKENNI.STARFCER'
> 2016-01-26 13:22:11.729 CWD /'AUFTP01.'/'AUFTP01.'/
< 2016-01-26 13:22:11.729 550 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x0594003D)
> 2016-01-26 13:22:11.729 CWD /'AUFTP01.'/
< 2016-01-26 13:22:11.729 550 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x05190050)
> 2016-01-26 13:22:11.729 CWD /
< 2016-01-26 13:22:11.729 250 HFS directory / is the current working directory
> 2016-01-26 13:22:11.729 MKD 'AUFTP01.'
< 2016-01-26 13:22:11.729 550 error allocating AUFTP01.
> 2016-01-26 13:22:11.729 CWD /'AUFTP01.'/
< 2016-01-26 13:22:11.729 550 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x05190050)
. 2016-01-26 13:22:11.729 Copying files to remote side failed.
* 2016-01-26 13:22:11.729 (ExtException) **Copying files to remote side failed.**
* 2016-01-26 13:22:11.729 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x05190050)
. 2016-01-26 13:22:11.729 Asking user:
. 2016-01-26 13:22:11.729 Error transferring file ''RBP.AUVV.AUDKENNI.STARFCER''. ("Copying files to remote side failed.","CWD cmd failed : EDC5129I No such file or directory. (errno2=0x05190050)")
< 2016-01-26 13:22:11.729 Script: Error transferring file ''RBP.AUVV.AUDKENNI.STARFCER''.
< 2016-01-26 13:22:11.729 Script: Copying files to remote side failed.

< 2016-01-26 13:22:11.729 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x05190050)
* 2016-01-26 13:22:11.729 (EScpSkipFile) Error transferring file ''RBP.AUVV.AUDKENNI.STARFCER''.
* 2016-01-26 13:22:11.729 Copying files to remote side failed.
* 2016-01-26 13:22:11.729 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x05190050)
. 2016-01-26 13:22:11.729 Script: Failed
. 2016-01-26 13:22:11.729 Script: Exit code: 1
. 2016-01-26 13:22:11.729 Disconnected from server


How can I upload this file in WinSCP?

Regards
Thorir
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Can you attach a complete log file from WinSCP?
thorir
[View user's profile]

Joined: 2016-01-26
Posts: 2
prikryl wrote:
Can you attach a complete log file from WinSCP?


Hi, I changed the domain name in the logs.


. 2016-01-28 13:49:38.342 --------------------------------------------------------------------------
. 2016-01-28 13:49:38.342 WinSCP Version 5.7.6 (Build 5874) (OS 6.1.7601 Service Pack 1 - Windows Server 2008 R2 Standard)
. 2016-01-28 13:49:38.342 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2016-01-28 13:49:38.342 Log level: Normal
. 2016-01-28 13:49:38.342 Local account: WWW\Administrator
. 2016-01-28 13:49:38.342 Working directory: C:\Program Files (x86)\WinSCP
. 2016-01-28 13:49:38.342 Process ID: 4068
. 2016-01-28 13:49:38.342 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe"
. 2016-01-28 13:49:38.342 Time zone: Current: GMT+0 (Greenwich Standard Time), No DST
. 2016-01-28 13:49:38.342 Login time: 28. janúar 2016 13:49:38
. 2016-01-28 13:49:38.342 --------------------------------------------------------------------------
. 2016-01-28 13:49:38.342 Session name: auftp01@ftps.test.com (Site)
. 2016-01-28 13:49:38.342 Host name: ftps.test.com (Port: 21)
. 2016-01-28 13:49:38.342 User name: auftp01 (Password: Yes, Key file: No)
. 2016-01-28 13:49:38.342 Transfer Protocol: FTP
. 2016-01-28 13:49:38.342 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2016-01-28 13:49:38.342 Disable Nagle: No
. 2016-01-28 13:49:38.342 Proxy: none
. 2016-01-28 13:49:38.342 Send buffer: 262144
. 2016-01-28 13:49:38.342 UTF: 2
. 2016-01-28 13:49:38.342 FTP: FTPS: Explicit TLS; Passive: Yes [Force IP: A]; MLSD: A [List all: A]
. 2016-01-28 13:49:38.342 Session reuse: Yes
. 2016-01-28 13:49:38.342 TLS/SSL versions: TLSv1.0-TLSv1.2
. 2016-01-28 13:49:38.342 Local directory: G:\Vefir\Umsoknir\Strengur, Remote directory: '', Update: Yes, Cache: Yes
. 2016-01-28 13:49:38.342 Cache directory changes: Yes, Permanent: Yes
. 2016-01-28 13:49:38.342 Timezone offset: 0h 0m
. 2016-01-28 13:49:38.342 --------------------------------------------------------------------------
. 2016-01-28 13:49:38.405 Connecting to ftps.test.com ...
. 2016-01-28 13:49:38.405 Connected with ftps.test.com, negotiating TLS connection...
< 2016-01-28 13:49:38.405 220-FTPD1 IBM FTP CS V2R1 at name.test.com, 13:49:38 on 2016-01-28.
< 2016-01-28 13:49:38.405 220 Connection will close if idle for more than 5 minutes.
> 2016-01-28 13:49:38.405 AUTH TLS
< 2016-01-28 13:49:38.405 234 Security environment established - ready for negotiation
. 2016-01-28 13:49:38.405 Verifying certificate for "************" with fingerprint f5:45:fa:5d:f0:86:71:1f:76:df:30:3f:e5:ec:d7:7d:82:e2:cf:da and 19 failures
. 2016-01-28 13:49:38.420 Certificate verified against Windows certificate store
. 2016-01-28 13:49:38.420 Certificate common name "ftps.test.com" matches hostname
. 2016-01-28 13:49:38.420 Using TLSv1.1, cipher TLSv1/SSLv3: DES-CBC3-SHA, 2048 bit RSA
. 2016-01-28 13:49:38.467 TLS connection established. Waiting for welcome message...
> 2016-01-28 13:49:38.467 USER auftp01
< 2016-01-28 13:49:38.467 331 Send password please.
> 2016-01-28 13:49:38.467 PASS ********
< 2016-01-28 13:49:38.467 230 AUFTP01 is logged on. Working directory is "AUFTP01.".
> 2016-01-28 13:49:38.467 SYST
< 2016-01-28 13:49:38.467 215 MVS is the operating system of this server. FTP Server is running on z/OS.
> 2016-01-28 13:49:38.467 FEAT
< 2016-01-28 13:49:38.467 211- Extensions supported
< 2016-01-28 13:49:38.467 SIZE
< 2016-01-28 13:49:38.467 MDTM
< 2016-01-28 13:49:38.467 REST STREAM
< 2016-01-28 13:49:38.467 AUTH TLS
< 2016-01-28 13:49:38.467 PBSZ
< 2016-01-28 13:49:38.467 PROT
< 2016-01-28 13:49:38.467 211 End
> 2016-01-28 13:49:38.467 PBSZ 0
< 2016-01-28 13:49:38.467 200 Protection buffer size accepted
> 2016-01-28 13:49:38.467 PROT P
< 2016-01-28 13:49:38.467 200 Data connection protection set to private
. 2016-01-28 13:49:38.529 Connected
. 2016-01-28 13:49:38.529 --------------------------------------------------------------------------
. 2016-01-28 13:49:38.529 Using FTP protocol.
. 2016-01-28 13:49:38.529 Doing startup conversation with host.
> 2016-01-28 13:49:38.592 PWD
< 2016-01-28 13:49:38.592 257 "'AUFTP01.'" is working directory.
. 2016-01-28 13:49:38.592 Changing directory to "''".
> 2016-01-28 13:49:38.592 CWD ''
< 2016-01-28 13:49:38.592 250 "" is the working directory name prefix.
. 2016-01-28 13:49:38.592 Getting current directory name.
> 2016-01-28 13:49:38.592 PWD
< 2016-01-28 13:49:38.592 257 "''" is working directory.
. 2016-01-28 13:49:38.841 Retrieving directory listing...
> 2016-01-28 13:49:38.841 CWD /''/''/
< 2016-01-28 13:49:38.841 550 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x0594003D)
. 2016-01-28 13:49:38.841 Could not retrieve directory listing
. 2016-01-28 13:49:38.841 LIST with -a failed, will try pure LIST
. 2016-01-28 13:49:38.841 Retrieving directory listing...
> 2016-01-28 13:49:38.841 CWD /''/''/
< 2016-01-28 13:49:38.841 550 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x0594003D)
. 2016-01-28 13:49:38.841 Could not retrieve directory listing
* 2016-01-28 13:49:38.966 (ECommand) Error listing directory ''''.
* 2016-01-28 13:49:38.966 Could not retrieve directory listing
* 2016-01-28 13:49:38.966 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x0594003D)
. 2016-01-28 13:49:40.557 Startup conversation with host finished.
. 2016-01-28 13:49:40.682 Disconnected from server
. 2016-01-28 13:49:51.758 Copying 1 files/directories to remote directory "''/"
. 2016-01-28 13:49:51.758 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2016-01-28 13:49:51.758 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2016-01-28 13:49:51.758 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2016-01-28 13:49:51.774 File: 'G:\Vefir\Umsoknir\Strengur\'RBP.AUVV.AUDKENNI.STARFCER'' [2016-01-27T09:31:14.083Z] [2413]
. 2016-01-28 13:49:51.774 Copying "G:\Vefir\Umsoknir\Strengur\'RBP.AUVV.AUDKENNI.STARFCER'" to remote directory started.
. 2016-01-28 13:49:51.774 Binary transfer mode selected.
. 2016-01-28 13:49:51.774 Starting upload of G:\Vefir\Umsoknir\Strengur\'RBP.AUVV.AUDKENNI.STARFCER'
> 2016-01-28 13:49:51.774 CWD /''/''/
< 2016-01-28 13:49:51.774 550 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x0594003D)
> 2016-01-28 13:49:51.774 CWD /''/
< 2016-01-28 13:49:51.774 550 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x05190050)
> 2016-01-28 13:49:51.774 CWD /
< 2016-01-28 13:49:51.774 250 HFS directory / is the current working directory
> 2016-01-28 13:49:51.774 MKD ''
< 2016-01-28 13:49:51.774 501 MKDIR fails: invalid directory name ''
> 2016-01-28 13:49:51.774 CWD /''/
< 2016-01-28 13:49:51.774 550 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x05190050)
. 2016-01-28 13:49:51.774 Copying files to remote side failed.
* 2016-01-28 13:49:51.774 (ExtException) **Copying files to remote side failed.**
* 2016-01-28 13:49:51.774 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x05190050)
. 2016-01-28 13:49:51.774 Asking user:
. 2016-01-28 13:49:51.774 Error transferring file 'G:\Vefir\Umsoknir\Strengur\'RBP.AUVV.AUDKENNI.STARFCER''. ("Copying files to remote side failed.","CWD cmd failed : EDC5129I No such file or directory. (errno2=0x05190050)")
* 2016-01-28 13:49:55.627 (EScpSkipFile) Error transferring file 'G:\Vefir\Umsoknir\Strengur\'RBP.AUVV.AUDKENNI.STARFCER''.
* 2016-01-28 13:49:55.643 Copying files to remote side failed.
* 2016-01-28 13:49:55.643 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x05190050)
. 2016-01-28 13:49:55.643 Retrieving directory listing...
> 2016-01-28 13:49:55.643 CWD /''/''/
< 2016-01-28 13:49:55.643 550 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x0594003D)
. 2016-01-28 13:49:55.643 Could not retrieve directory listing
* 2016-01-28 13:49:55.643 (ECommand) Error listing directory ''''.
* 2016-01-28 13:49:55.643 Could not retrieve directory listing
* 2016-01-28 13:49:55.643 CWD cmd failed : EDC5129I No such file or directory. (errno2=0x0594003D)



I can't use winscp (both from gui and command line)
I have been able to use FileZilla gui and Moveit command line

Regards
Thorir
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
This issue is being tracked here:
https://winscp.net/tracker/show_bug.cgi?id=1400
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