Deactivating STAT command

Hello,

I have a simple question...

Is it possible to deactivate the STAT command the FTP client execute on the server after each file is uploaded? This "glitch" is bugging me a little. I cannot navigate the server folders throught the remote browser while the transfer queue is uploading my files. The 2.5 version was not doing that, on the exact same server I am uploading now. Can we turn off the command, or its "integrated" in the software source code?


Thanx for the answer!

No one have an idea? Or at least something on which I should look at?

A server configuration, or just a the software config?


Any thoughts would be appreciated...

What problems do you have with the STAT command? The client doesn't just send it for fun :-) It uses it to get the information of the file(s).

I have a problem with STAT command when using proxy server.
When I use proxy the reply for STAT command is "502 Command Not Implemented"

The problem I'm having is that the queue is never uploaded, it just keeps retrying.
Without proxy the uploads work fine but from my work I must use this proxy.
There is same problem with the FEAT command so I have disabled it.

Any fix?

[codebox]
[09:45:35] SYST
[09:45:35] 215 UNIX Type: L8
[09:45:35] Detected Server Type: UNIX
[09:45:35] TYPE I
[09:45:35] 200 Command okay.
[09:45:35] REST 0
[09:45:35] 350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer
[09:45:35] PWD
[09:45:35] 257 "/" is the current directory
[09:45:39] CWD /oma
[09:45:39] 250 CWD command successful.
[09:45:39] PWD
[09:45:39] 257 "/oma" is the current directory
[09:45:39] SIZE MyFile.mp3
[09:45:39] 550 MyFile.mp3: No such file or directory
[09:45:39] MDTM MyFile.mp3
[09:45:39] 550 MyFile.mp3: No such file or directory
[09:45:39] TYPE A
[09:45:39] 200 Command okay.
[09:45:39] PASV
[09:45:39] 227 Entering Passive Mode (3,187,1,177,6,36)
[09:45:39] Opening data connection to 3.187.1.177 Port: 1572
[09:45:39] LIST -aL
[09:45:39] 150 File status okay; about to open data connection.
[09:45:39] 121 bytes transferred. (3,81 KB/s) (31 ms)
[09:45:39] 226 Transfer complete, closing data connection.
[09:45:39] The operation has been added to the Transfer Queue. Check the Transfer Queue for the status.
[09:45:40] STAT MyFile.mp3
[09:45:40] 502 Command not implemented.
[09:45:40] MDTM MyFile.mp3
[09:45:40] 550 MyFile.mp3: No such file or directory
[09:46:10] STAT MyFile.mp3
[09:46:10] 502 Command not implemented.
[09:46:10] MDTM MyFile.mp3
[09:46:10] 550 MyFile.mp3: No such file or directory
[09:46:40] STAT MyFile.mp3
[09:46:40] 502 Command not implemented.
[09:46:40] MDTM MyFile.mp3
[09:46:40] 550 MyFile.mp3: No such file or directory

[/codebox]

Post the log from the transfer queue.

I found the problem!

In my default settings, the option "Verify Integrity" was Enabled. It was the option that was sending STAT command to the server, to check the uploaded file integrity. I deactivated it, and its now working as I was expecting!

Thanks! Hope the solution will help other people!

Here are the logs.
What I have done is that I'm trying to upload two files.
When the queue is started the first file is uploaded to the server but second one is not.
The second will be sent when the queue is stopped and started again.

Log for the first file
[codebox]
[13:44:23] Resolving host name "xxx"
[13:44:23] Connecting to x.x.x.x Port: 21
[13:44:23] Connected to ftp.x.x.
[13:44:23] 220 Blue Coat FTP Service
[13:44:23] USER @ftp.x.x
[13:44:23] 220 FTP Server ready.
[13:44:23] USER 1g-user
[13:44:23] 331 Password required for 1g-user
[13:44:23] PASS (hidden)
[13:44:23] 230 User 1g-user logged in.
[13:44:23] SYST
[13:44:23] 215 UNIX Type: L8
[13:44:23] Detected Server Type: UNIX
[13:44:23] TYPE I
[13:44:23] 200 Command okay.
[13:44:23] REST 0
[13:44:23] 350 Restarting at 0. Send STORE or RETRIEVE to initiate transfer
[13:44:23] PWD
[13:44:23] 257 "/" is the current directory
[13:44:23] CWD /public_html/kuvat
[13:44:23] 250 CWD command successful.
[13:44:23] PWD
[13:44:23] 257 "/public_html/kuvat" is the current directory
[13:44:23] Remote file exist check: "Pic1.JPG".
[13:44:23] STAT Pic1.JPG
[13:44:23] 502 Command not implemented.
[13:44:23] SIZE Pic1.JPG
[13:44:23] 550 Pic1.JPG: No such file or directory
[13:44:23] File exist check failed. File not found or permission denied.
[13:44:23] PASV
[13:44:23] 227 Entering Passive Mode (x,187,1,177,25,66)
[13:44:23] Opening data connection to x.187.1.177 Port: 6466
[13:44:23] STOR Pic1.JPG
[13:44:23] 150 File status okay; about to open data connection.
[13:44:24] 1506176 bytes transferred. (1,50 MB/s) (953 ms)
[13:44:24] 226 Transfer complete, closing data connection.
[13:44:24] MDTM 20070708121106 Pic1.JPG
[13:44:24] 550 20070708121106 Pic1.JPG: No such file or directory
[13:44:24] MFMT 20070708121106 Pic1.JPG
[13:44:24] 502 Command not implemented.
[13:44:24] SITE UTIME Pic1.JPG 20070708121106 20070708121106 20070708121106 UTC
[13:44:24] 500 'SITE UTIME' not understood
[13:44:24] SITE UTIME 20070708121106 Pic1.JPG
[13:44:24] 530 User access denied.
[13:44:24] STAT Pic1.JPG
[13:44:24] 530 User access denied.
[13:44:24] SIZE Pic1.JPG
[13:44:24] 530 User access denied.
[13:44:24] Obtaining file information (size/date) from directory listing.
[13:44:24] TYPE A
[13:44:24] 530 User access denied.
[13:44:24] File "Pic1.JPG" not found in directory listing.
[13:44:24] File not found. Skipping file exist check.
[/codebox]

Then the log for the second file

[codebox][13:44:24] Remote file exist check: "Pic2.JPG".
[13:44:24] STAT Pic2.JPG
[13:44:24] 530 User access denied.
[13:44:24] SIZE Pic2.JPG
[13:44:24] 530 User access denied.
[13:44:24] MDTM Pic2.JPG
[13:44:24] 530 User access denied.
[13:44:24] Obtaining file information (size/date) from directory listing.
[13:44:24] TYPE A
[13:44:24] 530 User access denied.
[13:44:24] File "Pic2.JPG" not found in directory listing.
[13:44:24] PASV
[13:44:24] 530 User access denied.
[13:44:54] Remote file exist check: "Pic2.JPG".
[13:44:54] STAT Pic2.JPG
[13:44:54] 530 User access denied.
[13:44:54] SIZE Pic2.JPG
[13:44:54] 530 User access denied.
[13:44:54] MDTM Pic2.JPG
[13:44:54] 530 User access denied.
[13:44:54] Obtaining file information (size/date) from directory listing.
[13:44:54] TYPE A
[13:44:54] 530 User access denied.
[13:44:54] File "Pic2.JPG" not found in directory listing.
[13:44:54] PASV
[13:44:54] 530 User access denied.
[/codebox]

As the second log says you have no permissions to upload to the server.
[13:44:54] PASV[13:44:54] 530 User access denied.

Regards,
Mat

I thought that I had mentioned this but I guess I wasn't so clear.
I have no problem uploading files if I do not use the proxy!
And even with proxy I can upload one file at a time but not with the queue.
So I do have rights to upload files on the server and also the proxy lets me upload files but not with the queue.

So why is that?

Just one more thing.
Just tried with the version 2.5 (with the same settings).
With the queue there is the same problem than with the version 3.0.
But with direct transfer I can upload multiple files just fine.
Now that 3.0 doesn't have "direct transfer" it is a bit difficult to upload multiple files from behind the proxy.

[codebox][10:31:36] Resolving host name "ftp-proxy.xx.xxx.xx"
[10:31:36] Connecting to x.xxx.1.177 Port: 21
[10:31:36] Connected to ftp.x.x.x.
[10:31:36] 220 Blue Coat FTP Service
[10:31:36] USER @ftp.x.x.x
[10:31:36] 220 FTP Server ready.
[10:31:36] USER 1g-user
[10:31:36] 331 Password required for 1g-user
[10:31:36] PASS (hidden)
[10:31:36] 230 User 1g-user logged in.
[10:31:36] SYST
[10:31:36] 215 UNIX Type: L8
[10:31:36] Detected Server Type: UNIX
[10:31:36] FEAT
[10:31:36] 502 Command not implemented.
[10:31:36] PWD
[10:31:36] 257 "/" is the current directory
[10:31:36] CWD /public_html/kuvat
[10:31:36] 250 CWD command successful.
[10:31:36] PWD
[10:31:36] 257 "/public_html/kuvat" is the current directory
[10:31:36] TYPE A
[10:31:36] 200 Command okay.
[10:31:36] PASV
[10:31:36] 227 Entering Passive Mode (x,x,1,177,32,242)
[10:31:36] Opening data connection to x.x.1.177 Port: 8434
[10:31:36] LIST -aL
[10:31:36] 150 File status okay; about to open data connection.
[10:31:36] 121 bytes transferred. (555 bytes/s) (218 ms)
[10:31:36] 226 Transfer complete, closing data connection.
[10:31:45] Remote file exist check: "Pic1.JPG".
[10:31:45] TYPE I
[10:31:45] 200 Command okay.
[10:31:45] SIZE Pic1.JPG
[10:31:45] 550 Pic1.JPG: No such file or directory
[10:31:45] File size check (SIZE) failed. File not found or permission denied.
[10:31:45] PASV
[10:31:45] 227 Entering Passive Mode (x,x,1,177,36,52)
[10:31:45] Opening data connection to x.x.1.177 Port: 9268
[10:31:45] STOR Pic1.JPG
[10:31:45] 150 File status okay; about to open data connection.
[10:31:46] 1506176 bytes transferred. (1,13 MB/s) (00:00:01)
[10:31:46] 226 Transfer complete, closing data connection.
[10:31:46] SIZE Pic1.JPG
[10:31:46] 213 1506176
[10:31:46] Remote file exist check: "Pic2.JPG".
[10:31:46] SIZE Pic2.JPG
[10:31:46] 550 Pic2.JPG: No such file or directory
[10:31:46] File size check (SIZE) failed. File not found or permission denied.
[10:31:46] PASV
[10:31:46] 227 Entering Passive Mode (x,x,1,177,36,205)
[10:31:46] Opening data connection to x.x.1.177 Port: 9421
[10:31:46] STOR Pic2.JPG
[10:31:46] 150 File status okay; about to open data connection.
[10:31:47] 1506176 bytes transferred. (1,06 MB/s) (00:00:01)
[10:31:48] 226 Transfer complete, closing data connection.
[10:31:48] SIZE Pic2.JPG
[10:31:48] 213 1506176
[10:31:48] TYPE A
[10:31:48] 200 Command okay.
[10:31:48] PASV
[10:31:48] 227 Entering Passive Mode (x,x,1,177,37,44)
[10:31:48] Opening data connection to x.x.1.177 Port: 9516
[10:31:48] LIST -aL
[10:31:48] 150 File status okay; about to open data connection.
[10:31:48] 255 bytes transferred. (1,22 KB/s) (203 ms)
[10:31:48] 226 Transfer complete, closing data connection.
[10:31:48] Transfer successful.
[/codebox]

You may want to purchase a license at:
https://www.smartftp.com/buy.php

And our technicians will be able to look at your problem.

Regards
Mat

OK, Thanks.

I might buy a license because I think that you have a great product here for my purposes but not just because by buying it something might be fixed for me. But I do understand the reasoning, though.
This is not that big of a deal for me, I might not be using this proxy tomorrow anyhow.

I just let you have this information so you may use it in your development and improve your product, or not.

Thank you for sharing the information about your proxy. Your proxy is restricted as it doesn't let you use certain commands (SIZE, MDTM, STAT, PASV, etc). There is nothing an FTP client can do about this since the restrictions are on the server/proxy side.

Regards,
Mat

Yes I know, proxy "configurators" can be so paranoid.
So if nothing can be done why to get support by getting the license.
Sorry, had to say that.

Well, the FTP client can do so much that with 2.5 it is possible upload multiple files but not with 3.0, event with the restrictions in place.

Hi Mat,

I’m getting back to this matter.
Now I also have valid license for SmartFTP so that is also taken care of.

This problem really confuses me.
I know that the root cause for this is with the proxy server but there is something with SmartFTP that it could do differently.

Why do I think so? Well, This problem does not occur with SmartFTP 2.0.
With the same connection setting I can transfer files in SmartFTP 2.0 by drag and droping and also using the Transfer Queue.

With SmartFTP 3.0 the first file in the queue is sent but it fails with the second one. If I would increase the number of Workers it might send more files before stopping.
When I stop and start the queue again it will send the next file.

So, the proxy does allow me to transfer files (i.e. I do have rights to do it).
Maybe it is the MFMT or SITE UTIME commands that make the proxy to go “User Access Denied” mode. Those commands are not used in 2.0 version. At least, they don’t show up in file transfer logs.
Also, I have seen in logs that before the “connection” goes to “User Access Denied” mode it does successfully execute command you listed.



Thank you for sharing the information about your proxy. Your proxy is restricted as it doesn't let you use certain commands (SIZE, MDTM, STAT, PASV, etc). There is nothing an FTP client can do about this since the restrictions are on the server/proxy side.

Regards,
Mat

A workaround for your situation would be to disable the "[x] Reuse Connection" in the menu: Tools->Settings Transfer Queue. This way SmartFTP will open a new connection for each item in the transfer queue.

Regards,
Mat

Another solution would be to disable the [x] Keep File Time option in the Favorite properties. To to do this:
1. Menu: Favorites->Edit Favorites
2. Locate your favorite
3. Right-click on it and select Properties
4. Go to the Transfer->Files dialog
5. Disable all Keep Alive options.

Regards,
Mat

Mat,

Thank you for your solutions.
They both seem to work fine for me and I'm quite happy how the program works for me now.
This is exactly the kind of help I was hoping for.

jyli

PS. I must say that I saw your original reply, which you deleted, and I was quite disappointed with it.
Glad you changed it.

Case solved.