Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: error uploading file: No such file or directory
phlexss

From: Waalwijk, Netherlands
Posts: 31
Member Since: 03/17/04
posted January 4, 2007 4:24 AM

When I try uploading a file to my website using ftp I suddenly get the following error-message:

550 /HTML/downloads/testupload.zip: No such file or directory

I get this error both in my own code as well as in the FtpListView demo-app. I didn't have this problem before using the exact same code.

When I use another FTP-client everything works fine.

Any help is appreciated!
Amit

From: Rome, NY USA
Posts: 315
Member Since: 03/15/06
posted January 4, 2007 1:03 PM

Hello,

The error message does suggest that no such file or directory exists. As you are using the same code snippet so have you changed any part of this code snippet? Have you tried to compare the Trace from another FTP Client to ours to check where exactly the problem exists? You may create Trace through the Trace method.

Regards,
Amit
phlexss

From: Waalwijk, Netherlands
Posts: 31
Member Since: 03/17/04
posted January 4, 2007 1:25 PM

I'm sure what I could be doing wrong here. The following code is used to upload the file;

Ftp1.Store RemoteFileName, LocalFileName, RemoteFileSize

The contects of the variables is correct. Isn't it strange that the file that supposedly doesn't exists is the remote-file? It's actually correct that it doesn't exists....because I'm just uploading it.....

Some of the trace-logging;

<--- 150 Opening ASCII mode data connection for file list
<--- 226 Transfer complete.
---> TYPE I
<--- 200 Type set to I
---> PASV
<--- 227 Entering Passive Mode (83,143,184,175,157,37).
---> STOR /HTML/downloads/tmp/test.xls
<--- 550 /HTML/downloads/tmp/test.xls: No such file or directory
---> TYPE A
<--- 200 Type set to A

Any ideas? Could it somehow be a problem at my provider?
Amit

From: Rome, NY USA
Posts: 315
Member Since: 03/15/06
posted January 4, 2007 3:06 PM

Hello,

It seems that you are specifying that the directory is off of the root. I would suggest you to please check what the actual path is when you are logged in. If the actual path is in the root directory (home directory) itself, then you have to use:
HTML/downloads/tmp/test.xls
Or
~/HTML/downloads/tmp/test.xls
I would also suggest you to please change the directory first and then just use the filename with no info.

Regards,
Amit
phlexss

From: Waalwijk, Netherlands
Posts: 31
Member Since: 03/17/04
posted January 4, 2007 3:38 PM

...I'm sorry but I can't imagine that could be the problem since I've always done this the same way and I used your own demo app to browse to the correct directory and then start a "Store" to upload the file. Nevertheless I tried to upload a file without specifying the complete path but got the same error.

When I'm running your FtpListView in debug mode I see the following error;

Error Number was : 11101
An established connection was aborted by the software in your host machine, possibly due to a data transmission timeout or protocol error. PowerTcp will close the connection when this error is encountered.
Session aborted.

...because I still think it might be related to something on the ftp-host I tried uploading the same file to another server and that works perfectly.

So somehow I can't upload anymore to my own provider with dart-ftp but I CAN upload to the same host with other ftp-clients.....

My provider is running ProFTPD 1.3.0a
Amit

From: Rome, NY USA
Posts: 315
Member Since: 03/15/06
posted January 5, 2007 2:25 PM

Hello,

Trace shows that the path is /HTML/downloads/tmp/test.xls however earlier you have said that the error message is related to the path /HTML/downloads/testupload.zip. I would suggest you to please check the path once again. If the FTP server is on a public IP, then please provide us Test Credentials so that we can try to check it from our end. You may send an email to support@dart.com with the required information.

Any further information to isolate the issue would be highly appreciated.

Regards,
Amit
phlexss

From: Waalwijk, Netherlands
Posts: 31
Member Since: 03/17/04
posted January 6, 2007 6:43 AM

Hi,

the different files/paths are not the problem. They are just several examples of when it goes wrong. As I said before; when I use your own demo-app "FtpListView" I use the app-gui to browse to the correct path, so how could this path be wrong then? And when I enter the path manually in my own app I'm 100% sure the path is correct.

I'm afraid I can't give you access to this ftp-server so that's a problem.

Doesn't this error 11101 give you a hint of what's going on?
Amit

From: Rome, NY USA
Posts: 315
Member Since: 03/15/06
posted January 8, 2007 9:48 AM

Hello,

Error 11101 can occur due to multiple reasons. To narrow down the issue further, I would request you to please send us the Trace log of any working client. Also send us the Trace log of our FTPListViewSample project.

Any further information to isolate the issue would be highly appreciated.

Regards,
Amit
phlexss

From: Waalwijk, Netherlands
Posts: 31
Member Since: 03/17/04
posted January 20, 2007 3:37 AM

Here is the listviwclient & FlashFXP log;

<--- 220 ProFTPD 1.3.0a Server (ProFTPD Default Installation)---> USER (hidden)
<--- 331 Password required for (hidden).
---> PASS (hidden)
<--- 230 User (hidden) logged in.
---> REST 100
<--- 501 REST: Resuming transfers not allowed in ASCII mode
---> CWD /HTML
<--- 250 CWD command successful
---> PASV
<--- 227 Entering Passive Mode (83,143,184,175,222,21).
---> LIST
<--- 150 Opening ASCII mode data connection for file list
<--- 226 Transfer complete.
---> PWD
<--- 257 "/HTML" is current directory.
---> TYPE I
<--- 200 Type set to I
---> PASV
<--- 227 Entering Passive Mode (83,143,184,175,141,127).
---> STOR /HTML/test.txt
<--- 550 /HTML/test.txt: No such file or directory
---> TYPE A
<--- 200 Type set to A
---> PASV
<--- 227 Entering Passive Mode (83,143,184,175,209,30).
---> LIST
<--- 150 Opening ASCII mode data connection for file list
<--- 226 Transfer complete.
---> QUIT
<--- 221 Goodbye.


FLASHFXK-Log:

[R] Connecting to Uniserver (hidden) -> DNS=(hidden) IP=(hidden) PORT=21
[R] Connected to Uniserver
[R] 220 ProFTPD 1.3.0a Server (ProFTPD Default Installation)
[R] USER (hidden)
[R] 331 Password required for (hidden).
[R] PASS (hidden)
[R] 230 User phlexsscom logged in.
[R] SYST
[R] 215 UNIX Type: L8
[R] FEAT
[R] 211-Features:
[R] MDTM
[R] REST STREAM
[R] SIZE
[R] 211 End
[R] PWD
[R] 257 "/" is current directory.
[R] TYPE A
[R] 200 Type set to A
[R] PASV
[R] 227 Entering Passive Mode (83,143,184,175,159,218).
[R] Opening data connection IP: (hidden) PORT: 40922
[R] LIST -al
[R] 150 Opening ASCII mode data connection for file list
[R] 226 Transfer complete.
[R] List Complete: 1 KB in 0,09 seconds (14,4 KB/s)
[R] CWD HTML
[R] 250 CWD command successful
[R] PWD
[R] 257 "/HTML" is current directory.
[R] PASV
[R] 227 Entering Passive Mode (83,143,184,175,166,36).
[R] Opening data connection IP: (hidden) PORT: 42532
[R] LIST -al
[R] 150 Opening ASCII mode data connection for file list
[R] 226 Transfer complete.
[R] List Complete: 1 KB in 0,14 seconds (8,7 KB/s)
[R] PASV
[R] 227 Entering Passive Mode (83,143,184,175,175,251).
[R] Opening data connection IP: (hidden) PORT: 45051
[R] STOR test.txt
[R] 150 Opening ASCII mode data connection for test.txt
[R] 226 Transfer complete.
Transferred: test.txt 88 bytes in 0,03 seconds (2,8 KB/s)
[R] PASV
[R] 227 Entering Passive Mode (83,143,184,175,149,226).
[R] Opening data connection IP: (hidden) PORT: 38370
[R] LIST -al
[R] 150 Opening ASCII mode data connection for file list
[R] 226 Transfer complete.
[R] List Complete: 1 KB in 0,08 seconds (16,5 KB/s)
Transfer queue completed
Transferred 1 file totaling 88 bytes in 0,23 seconds (2,8 KB/s)
[R] QUIT
[R] 221 Goodbye.
[R] Logged off: Uniserver
Raj

From: Rome, NY, USA
Posts: 389
Member Since: 02/01/06
posted January 22, 2007 4:50 PM

Hi,

It looks, as if the server is declining a data connection, when destination path is given with the STORe command.

If you test the above confirm; the solution would be to change directories using the CWD commands and then send only the filename (instead of the complete path as parameter) to the STORe command.

The samples can be edited to implement the above. Change the DoStore method, and update the following:
  If Right(Ftp1.Directory, 1) = "/" Then
    'RemoteFileName = Ftp1.Directory + GetFileName(dlg.FileName)
    RemoteFileName = GetFileName(dlg.FileName)
  Else
    'RemoteFileName = Ftp1.Directory + "/" + GetFileName(dlg.FileName)
    RemoteFileName = GetFileName(dlg.FileName)
  End If

I hope this helps.

Regards,
Raj
phlexss

From: Waalwijk, Netherlands
Posts: 31
Member Since: 03/17/04
posted January 23, 2007 4:12 AM

Hi, unfortunately it doesn't make any difference;

<--- 220 ProFTPD 1.3.0a Server (ProFTPD Default Installation) [83.143.184.175]
---> USER -----
<--- 331 Password required for -----.
---> PASS ------
<--- 230 User ------ logged in.
---> REST 100
<--- 501 REST: Resuming transfers not allowed in ASCII mode
---> CWD /HTML
<--- 250 CWD command successful
---> PASV
<--- 227 Entering Passive Mode (83,143,184,175,193,117).
---> LIST
<--- 150 Opening ASCII mode data connection for file list
<--- 226 Transfer complete.
---> PWD
<--- 257 "/HTML" is current directory.
---> TYPE I
<--- 200 Type set to I
---> PASV
<--- 227 Entering Passive Mode (83,143,184,175,230,166).
---> STOR GetPlist.exe
<--- 550 GetPlist.exe: No such file or directory
---> TYPE A
<--- 200 Type set to A
---> PASV
<--- 227 Entering Passive Mode (83,143,184,175,168,187).
---> LIST
<--- 150 Opening ASCII mode data connection for file list
<--- 226 Transfer complete.



Any more ideas?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 23, 2007 6:53 AM

The problem is evidenced in the two logs that you posted previously. The working example is not using the full path from the root. It is changing into HTML (NOT /HTML):

CWD HTML

Then when the store is done, it specifies the name of the file only.

My suggestion would be to do what Raj suggested a couple messages ago: Drop the "/" from the path. If, as you say, "I've always done this the same way " then it indicates to me that something changed on the server.
Probably something with it's virtual file system.

phlexss

From: Waalwijk, Netherlands
Posts: 31
Member Since: 03/17/04
posted January 23, 2007 7:11 AM

Again I find it very hard to believe that the CWD command could be the problem; both logs report "257 "/HTML" is current directory"....so the CWD obviously worked. The listview-log also reports "250 CWD command successful"...so how can that be the problem then?

Anyway....I already tried doing a CWD without the / and also tried to upload a file without specifying the full output-path (as suggested by Raj).....whatever I try I get the same error.

Today I noticed/tried something new though;

using the FtpListView demo-app; the first time I do a "Store" I get the error, but when I use the "Store" command again to upload the same file as the first time it suddenly works....and all subsequent store-commands also work fine.
When I disconnect/connect again the first store again fails and the rest again works fine....

I suppose this shines a new light on the problem?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 23, 2007 7:42 AM

At this point I would suggest that you contact us directly to discuss more advanced support options. The quickest solution would be for you to get us a test account on the same server, or another server that exhibits the same problem. Please contact David Harry (sales@dart.com) when you are ready to go over the different options.
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX