Cannot upload file to server via SSL

Advertisement

motch
Guest

Cannot upload file to server via SSL

Hey all. I have configured my FTP server according to the LearnIIS documentation and all seems that it is working. I can connect to it using WinSCP, create a directory, change directories, download files from the server, but I cannot upload a file to the server. I get an error stating "The specified network name is no longer valid." I have attached the log below. Please someone help me figure out how to fix this. Thanks!

. 2012-05-17 10:09:49.915 --------------------------------------------------------------------------
. 2012-05-17 10:09:49.915 WinSCP Version 4.3.7 (Build 1679) (OS 6.1.7601 Service Pack 1)
. 2012-05-17 10:09:49.915 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2012-05-17 10:09:49.916 Local account: My Computer
. 2012-05-17 10:09:49.916 Login time: Thursday, May 17, 2012 10:09:49 AM
. 2012-05-17 10:09:49.916 --------------------------------------------------------------------------
. 2012-05-17 10:09:49.916 Session name: Test (Modified stored session)
. 2012-05-17 10:09:49.916 Host name: 64.184.170.120 (Port: 21)
. 2012-05-17 10:09:49.916 User name: Masked (Password: Yes, Key file: No)
. 2012-05-17 10:09:49.916 Tunnel: No
. 2012-05-17 10:09:49.916 Transfer Protocol: FTP
. 2012-05-17 10:09:49.916 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2012-05-17 10:09:49.916 Proxy: none
. 2012-05-17 10:09:49.916 FTP: FTPS: Explicit SSL; Passive: Yes [Force IP: No]
. 2012-05-17 10:09:49.916 Local directory: C:\awssdata, Remote directory: /, Update: No, Cache: Yes
. 2012-05-17 10:09:49.916 Cache directory changes: Yes, Permanent: Yes
. 2012-05-17 10:09:49.916 DST mode: 1
. 2012-05-17 10:09:49.916 --------------------------------------------------------------------------
. 2012-05-17 10:09:51.806 Connecting to 64.184.170.120 ...
. 2012-05-17 10:09:51.843 Connected with 64.184.170.120, negotiating SSL connection...
< 2012-05-17 10:09:51.891 220 Microsoft FTP Service
> 2012-05-17 10:09:51.891 AUTH SSL
< 2012-05-17 10:09:51.936 234 AUTH command ok. Expecting TLS Negotiation.
. 2012-05-17 10:09:53.105 SSL connection established. Waiting for welcome message...
> 2012-05-17 10:09:53.105 USER MyFTP
< 2012-05-17 10:09:53.147 331 Password required for MyFTP.
> 2012-05-17 10:09:53.147 PASS ********
< 2012-05-17 10:09:53.191 230 User logged in.
> 2012-05-17 10:09:53.191 SYST
< 2012-05-17 10:09:53.235 215 Windows_NT
> 2012-05-17 10:09:53.235 FEAT
< 2012-05-17 10:09:53.280 211-Extended features supported:
< 2012-05-17 10:09:53.280 LANG EN*
< 2012-05-17 10:09:53.280 UTF8
< 2012-05-17 10:09:53.280 AUTH TLS;TLS-C;SSL;TLS-P;
< 2012-05-17 10:09:53.280 PBSZ
< 2012-05-17 10:09:53.280 PROT C;P;
< 2012-05-17 10:09:53.280 CCC
< 2012-05-17 10:09:53.280 HOST
< 2012-05-17 10:09:53.281 SIZE
< 2012-05-17 10:09:53.281 MDTM
< 2012-05-17 10:09:53.281 REST STREAM
< 2012-05-17 10:09:53.281 211 END
> 2012-05-17 10:09:53.281 OPTS UTF8 ON
< 2012-05-17 10:09:53.325 200 OPTS UTF8 command successful - UTF8 encoding now ON.
> 2012-05-17 10:09:53.325 PBSZ 0
< 2012-05-17 10:09:53.368 200 PBSZ command successful.
> 2012-05-17 10:09:53.369 PROT P
< 2012-05-17 10:09:53.416 200 PROT command successful.
. 2012-05-17 10:09:53.418 Connected
. 2012-05-17 10:09:53.418 --------------------------------------------------------------------------
. 2012-05-17 10:09:53.418 Using FTP protocol.
. 2012-05-17 10:09:53.418 Doing startup conversation with host.
> 2012-05-17 10:09:53.420 PWD
< 2012-05-17 10:09:53.466 257 "/" is current directory.
. 2012-05-17 10:09:53.469 Changing directory to "/".
> 2012-05-17 10:09:53.469 CWD /
< 2012-05-17 10:09:53.514 250 CWD command successful.
. 2012-05-17 10:09:53.514 Getting current directory name.
> 2012-05-17 10:09:53.514 PWD
< 2012-05-17 10:09:53.562 257 "/" is current directory.
. 2012-05-17 10:09:53.565 Retrieving directory listing...
> 2012-05-17 10:09:53.566 TYPE A
< 2012-05-17 10:09:53.608 200 Type set to A.
> 2012-05-17 10:09:53.608 PASV
< 2012-05-17 10:09:53.652 227 Entering Passive Mode (64,184,170,120,23,161).
> 2012-05-17 10:09:53.652 LIST -a
< 2012-05-17 10:09:53.703 150 Opening ASCII mode data connection.
. 2012-05-17 10:09:53.815 SSL connection established
< 2012-05-17 10:09:53.820 226 Transfer complete.
. 2012-05-17 10:09:53.824 Directory listing successful
. 2012-05-17 10:09:53.830 Retrieving directory listing...
> 2012-05-17 10:09:53.830 TYPE A
< 2012-05-17 10:09:53.871 200 Type set to A.
> 2012-05-17 10:09:53.871 PASV
< 2012-05-17 10:09:53.916 227 Entering Passive Mode (64,184,170,120,23,162).
> 2012-05-17 10:09:53.916 LIST
< 2012-05-17 10:09:53.968 150 Opening ASCII mode data connection.
. 2012-05-17 10:09:54.071 SSL connection established
< 2012-05-17 10:09:54.071 226 Transfer complete.
. 2012-05-17 10:09:54.076 Directory listing successful
. 2012-05-17 10:09:54.077 Startup conversation with host finished.
. 2012-05-17 10:09:59.302 Copying 1 files/directories to remote directory "/"
. 2012-05-17 10:09:59.302 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2012-05-17 10:09:59.302 TM: B; ClAr: No; CPS: 0; ExclM(No):
. 2012-05-17 10:09:59.302 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2012-05-17 10:09:59.303 File: "C:\awssdata\GFData.xls"
. 2012-05-17 10:09:59.304 Copying "C:\awssdata\GFData.xls" to remote directory started.
. 2012-05-17 10:09:59.305 Binary transfer mode selected.
. 2012-05-17 10:09:59.305 Starting upload of C:\awssdata\GFData.xls
> 2012-05-17 10:09:59.305 TYPE I
< 2012-05-17 10:09:59.348 200 Type set to I.
> 2012-05-17 10:09:59.349 PASV
< 2012-05-17 10:09:59.395 227 Entering Passive Mode (64,184,170,120,23,163).
> 2012-05-17 10:09:59.395 STOR GFData.xls
< 2012-05-17 10:09:59.450 150 Opening BINARY mode data connection.
. 2012-05-17 10:09:59.553 SSL connection established
< 2012-05-17 10:10:00.452 550 The specified network name is no longer available.
. 2012-05-17 10:10:00.452 Copying files to remote side failed.
* 2012-05-17 10:10:00.452 (ExtException) Copying files to remote side failed.
* 2012-05-17 10:10:00.452 The specified network name is no longer available.
. 2012-05-17 10:10:00.455 Asking user:
. 2012-05-17 10:10:00.455 Error transferring file 'C:\awssdata\GFData.xls'. ("Copying files to remote side failed.","The specified network name is no longer available. ")
* 2012-05-17 10:10:04.000 (EScpSkipFile) Error transferring file 'C:\awssdata\GFData.xls'.
* 2012-05-17 10:10:04.000 Copying files to remote side failed.
* 2012-05-17 10:10:04.000 The specified network name is no longer available.
. 2012-05-17 10:10:04.001 Retrieving directory listing...
> 2012-05-17 10:10:04.001 TYPE A
< 2012-05-17 10:10:04.046 200 Type set to A.
> 2012-05-17 10:10:04.047 PASV
< 2012-05-17 10:10:04.092 227 Entering Passive Mode (64,184,170,120,23,164).
> 2012-05-17 10:10:04.092 LIST
< 2012-05-17 10:10:04.145 150 Opening ASCII mode data connection.
. 2012-05-17 10:10:04.242 SSL connection established
< 2012-05-17 10:10:04.253 226 Transfer complete.
. 2012-05-17 10:10:04.253 Directory listing successful
. 2012-05-17 10:10:10.356 Disconnected from server

Reply with quote

Advertisement

motch
Guest

more info

I have learned that I can upload an empty folder to the server via WinSCP and that I can transfer files to my ftp server through IE. I am completely baffled. WinSCP shows the file being about 97% copied before prompting me with the error that "the specified network name is no longer available". If anyone has an answer to this, please respond. Thanks!

I have attached the screen shots.

error2.jpg

error1.jpg

Reply with quote

motch
Guest

Log from Filezilla

Here is the log from Filezilla. The upload worked just fine.

2012-05-21 09:13:05 7000 3 Status: Connecting to 64.184.170.120:21...
2012-05-21 09:13:05 7000 3 Status: Connection established, waiting for welcome message...
2012-05-21 09:13:05 7000 3 Response: 220 Microsoft FTP Service
2012-05-21 09:13:05 7000 3 Command: USER MyFTP
2012-05-21 09:13:05 7000 3 Response: 331 Password required for ConAgraFTP.
2012-05-21 09:13:05 7000 3 Command: PASS ********
2012-05-21 09:13:05 7000 3 Response: 230 User logged in.
2012-05-21 09:13:05 7000 3 Command: SYST
2012-05-21 09:13:05 7000 3 Response: 215 Windows_NT
2012-05-21 09:13:05 7000 3 Command: FEAT
2012-05-21 09:13:05 7000 3 Response: 211-Extended features supported:
2012-05-21 09:13:05 7000 3 Response: LANG EN*
2012-05-21 09:13:05 7000 3 Response: UTF8
2012-05-21 09:13:05 7000 3 Response: AUTH TLS;TLS-C;SSL;TLS-P;
2012-05-21 09:13:05 7000 3 Response: PBSZ
2012-05-21 09:13:05 7000 3 Response: PROT C;P;
2012-05-21 09:13:05 7000 3 Response: CCC
2012-05-21 09:13:05 7000 3 Response: HOST
2012-05-21 09:13:05 7000 3 Response: SIZE
2012-05-21 09:13:05 7000 3 Response: MDTM
2012-05-21 09:13:05 7000 3 Response: REST STREAM
2012-05-21 09:13:05 7000 3 Response: 211 END
2012-05-21 09:13:05 7000 3 Command: OPTS UTF8 ON
2012-05-21 09:13:05 7000 3 Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
2012-05-21 09:13:05 7000 3 Status: Connected
2012-05-21 09:13:05 7000 3 Status: Retrieving directory listing...
2012-05-21 09:13:05 7000 3 Command: PWD
2012-05-21 09:13:05 7000 3 Response: 257 "/" is current directory.
2012-05-21 09:13:05 7000 3 Command: TYPE I
2012-05-21 09:13:05 7000 3 Response: 200 Type set to I.
2012-05-21 09:13:05 7000 3 Command: PASV
2012-05-21 09:13:05 7000 3 Response: 227 Entering Passive Mode (64,184,170,120,24,57).
2012-05-21 09:13:05 7000 3 Command: LIST
2012-05-21 09:13:06 7000 3 Response: 150 Opening BINARY mode data connection.
2012-05-21 09:13:06 7000 3 Response: 226 Transfer complete.
2012-05-21 09:13:06 7000 3 Status: Calculating timezone offset of server...
2012-05-21 09:13:06 7000 3 Command: MDTM 000DC5D345F2(Grading Room)_1_20120521040334_0.jpg
2012-05-21 09:13:06 7000 3 Response: 213 20120521080337
2012-05-21 09:13:06 7000 3 Status: Timezone offsets: Server: -25200 seconds. Local: -18000 seconds. Difference: 7200 seconds.
2012-05-21 09:13:06 7000 3 Status: Directory listing successful
2012-05-21 09:14:21 7000 1 Status: Connecting to 64.184.170.120:21...
2012-05-21 09:14:21 7000 1 Status: Connection established, waiting for welcome message...
2012-05-21 09:14:21 7000 1 Response: 220 Microsoft FTP Service
2012-05-21 09:14:21 7000 1 Command: USER MyFTP
2012-05-21 09:14:21 7000 1 Response: 331 Password required for MyFTP.
2012-05-21 09:14:21 7000 1 Command: PASS ********
2012-05-21 09:14:21 7000 1 Response: 230 User logged in.
2012-05-21 09:14:21 7000 1 Command: OPTS UTF8 ON
2012-05-21 09:14:21 7000 1 Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON.
2012-05-21 09:14:21 7000 1 Status: Connected
2012-05-21 09:14:21 7000 1 Status: Starting upload of C:\awssdata\GFData.xls
2012-05-21 09:14:21 7000 1 Command: CWD /
2012-05-21 09:14:21 7000 1 Response: 250 CWD command successful.
2012-05-21 09:14:21 7000 1 Command: PWD
2012-05-21 09:14:21 7000 1 Response: 257 "/" is current directory.
2012-05-21 09:14:21 7000 1 Command: TYPE I
2012-05-21 09:14:21 7000 1 Response: 200 Type set to I.
2012-05-21 09:14:21 7000 1 Command: PASV
2012-05-21 09:14:21 7000 1 Response: 227 Entering Passive Mode (64,184,170,120,24,58).
2012-05-21 09:14:21 7000 1 Command: STOR GFData.xls
2012-05-21 09:14:21 7000 1 Response: 150 Opening BINARY mode data connection.
2012-05-21 09:14:22 7000 1 Response: 226 Transfer complete.
2012-05-21 09:14:22 7000 1 Status: File transfer successful, transferred 90,532 bytes in 1 second
2012-05-21 09:14:22 7000 1 Status: Retrieving directory listing...
2012-05-21 09:14:22 7000 1 Command: PASV
2012-05-21 09:14:22 7000 1 Response: 227 Entering Passive Mode (64,184,170,120,24,59).
2012-05-21 09:14:22 7000 1 Command: LIST
2012-05-21 09:14:22 7000 1 Response: 150 Opening BINARY mode data connection.
2012-05-21 09:14:22 7000 1 Response: 226 Transfer complete.
2012-05-21 09:14:22 7000 1 Status: Directory listing successful

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum