View previous topic :: View next topic |
Author |
Message |
pata
Joined: 27 Oct 2005 Posts: 21 Location: Long Island, NY
|
Posted: Mon Nov 07, 2005 9:04 pm Post subject: strange ftp files |
|
|
My weather data is uploaded every 15 mins to my web site (external). I've noticed that there are files with the name .pureftpd-upload.436e67ba ....
Most of the files are zero length but some are not and they are one of the html files. On average, one file of this type per hour is uploaded. Any ideas as to why these files are being created?
Thanks,
Pat |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Wed Nov 09, 2005 2:10 am Post subject: |
|
|
No clue. Probably an intermediate file while a transfer is being done and the transfer does not complete. Does pureftp run on the server?
This is a pureftp question.
Mark |
|
Back to top |
|
|
pata
Joined: 27 Oct 2005 Posts: 21 Location: Long Island, NY
|
Posted: Wed Nov 09, 2005 4:41 pm Post subject: |
|
|
I did a search on 'pureftp' and came up with the following FAQ response concerning these files:
The ftp client that is being used to upload the files is using the STOU (Store
Unique) FTP command instead of the STOR FTP command. If you check the ftp
logfile you should see something like this in the logs:
(user@a.b.c.d) [DEBUG] Command [stou] [file_name_from_the_client.ext]
/var/ftp/ftpcustomer/pureftpd.3f3300d2.33.0001 uploaded (218168 bytes,
127.79KB/sec)
The STOU command tells the ftp client to begin the transmission of the file to
the remote site; the remote filename picked by the ftp server will be unique
within in the current directory that the ftp client is using. The response
from the server will include the filename.
The ftp client has an option like "create unique files" or "upload file with a
temporary name" enabled. You should have the ftp user uncheck this option.
Trying to disable the STOU command on the server side is not a good idea or
solution as some ftp clients will use STOU to upload a file with the
temporary, unique name, and then rename the file once the upload is complete.
This helps prevent failed uploads from leaving partial files around.
I've looked over the ftp.c and ftputils.c modules but don't really see this option being set. I'm not sure if the default for tnftp is using the store unique option as suggested in the above faq. Kind of brings me back to not really knowing why these files are being created. I checked my web host and confirmed they are using freebsd and pureftp. They've pointed the problem back to me (my ftp client).
Pat |
|
Back to top |
|
|
|