wviewweather.com Forum Index wviewweather.com
wview and Weather Topics
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

strange ftp files

 
Post new topic   Reply to topic    wviewweather.com Forum Index -> Troubleshooting
View previous topic :: View next topic  
Author Message
pata



Joined: 27 Oct 2005
Posts: 21
Location: Long Island, NY

PostPosted: Mon Nov 07, 2005 9:04 pm    Post subject: strange ftp files Reply with quote

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
View user's profile Send private message Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Wed Nov 09, 2005 2:10 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
pata



Joined: 27 Oct 2005
Posts: 21
Location: Long Island, NY

PostPosted: Wed Nov 09, 2005 4:41 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    wviewweather.com Forum Index -> Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group