Timestamps for some files are off by 8 minutes

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Message
Author
TheEvilHammer
504 Command not implemented
Posts: 10
Joined: 2010-11-27 02:47

Timestamps for some files are off by 8 minutes

#1 Post by TheEvilHammer » 2011-09-07 04:29

It seems that I've run into the dreaded "timestamps are off by 8 minutes" which has come up before:

http://forum.filezilla-project.org/view ... =6&t=18067
http://forum.filezilla-project.org/view ... f=6&t=2307

I've read through both threads and I'm not seeing anything that resembles a solution. The only worthwhile answer is this one from boco:
If the FTP client uses the LIST command to get directory listings, the time field is only returned when the files date is not older than 30 days/1 month. If the file's date is older, only the year is returned.
This seems to imply that you should just wait for the affected files to be older than a month and then the problem will magically go away. Is this really the official solution?

User avatar
boco
Contributor
Posts: 26934
Joined: 2006-05-01 03:28
Location: Germany

Re: Timestamps for some files are off by 8 minutes

#2 Post by boco » 2011-09-07 09:08

That one's still alive? :( I've not encountered that behavior since FZ is using MLSD...
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

TheEvilHammer
504 Command not implemented
Posts: 10
Joined: 2010-11-27 02:47

Re: Timestamps for some files are off by 8 minutes

#3 Post by TheEvilHammer » 2011-09-07 16:58

I'm seeing the problem with multiple client computers (Windows XP, Windows 7) and multiple FTP clients (WinSCP, Firefox).

User avatar
boco
Contributor
Posts: 26934
Joined: 2006-05-01 03:28
Location: Germany

Re: Timestamps for some files are off by 8 minutes

#4 Post by boco » 2011-09-07 18:10

Right now I'm unable to recreate the offset with any client on my PC. There must be something causing this. Maybe a common program you're using on all your machines, one that other people don't use.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

TheEvilHammer
504 Command not implemented
Posts: 10
Joined: 2010-11-27 02:47

Re: Timestamps for some files are off by 8 minutes

#5 Post by TheEvilHammer » 2011-09-07 18:26

As others have noted in the other threads, this doesn't happen all the time and it doesn't happen with all files, so trying to repro it on your end is probably fruitless. I've been using my WinSCP <-> FileZilla Server setup for a while now without any problems. I synced a bunch of files to my FTP server recently and a subset of them are experiencing this timestamp problem. Even if I re-sync and overwrite all the files, the problem is still there.

Is it possible that the problem is timestamp-specific? In other words, specific values for the timestamps cause problems, regardless of everything else?

User avatar
boco
Contributor
Posts: 26934
Joined: 2006-05-01 03:28
Location: Germany

Re: Timestamps for some files are off by 8 minutes

#6 Post by boco » 2011-09-07 19:12

Yes, one such magic date and time is 2006-05-02 08:00 PM. Though you have to change system date, too, to see it (due to the 1 month rule).

It would be very kind to post all magic date time strings you encounter, maybe we find a pattern.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

TheEvilHammer
504 Command not implemented
Posts: 10
Joined: 2010-11-27 02:47

Re: Timestamps for some files are off by 8 minutes

#7 Post by TheEvilHammer » 2011-09-08 18:53

Here are the timestamps for one of the files, as reported by Windows Explorer:

Created: Monday, ‎August ‎22, ‎2011, ‏‎10:37:30 PM
Modified: Monday, ‎August ‎22, ‎2011, ‏‎10:36:57 PM
Accessed: Monday, ‎August ‎22, ‎2011, ‏‎10:37:30 PM

When FileZilla server is creating the response to my client's LIST command, it is saying the timestamp of the file is "Aug 22 22:29" (verified with a Wireshark network trace).

User avatar
boco
Contributor
Posts: 26934
Joined: 2006-05-01 03:28
Location: Germany

Re: Timestamps for some files are off by 8 minutes

#8 Post by boco » 2011-09-08 20:59

FTP uses only the Modified time stamp, the other two (actually other three* in modern OS) are not important.

Recreated successfully. FileZilla Server does return an incorrect time value in the LIST response, while returning the correct one in the MLSD response.




*There are now four different timestamps:
-Creation time,
-Modify time,
-Access time, and
-Change time.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

TheEvilHammer
504 Command not implemented
Posts: 10
Joined: 2010-11-27 02:47

Re: Timestamps for some files are off by 8 minutes

#9 Post by TheEvilHammer » 2011-09-08 21:08

Whew! I feel less crazy now. :D

User avatar
botg
Site Admin
Posts: 35558
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Timestamps for some files are off by 8 minutes

#10 Post by botg » 2011-09-08 21:43

@boco: Most modern operating systems are trying to get rid of access times since having to store them all the time causes severe slowdown.

User avatar
boco
Contributor
Posts: 26934
Joined: 2006-05-01 03:28
Location: Germany

Re: Timestamps for some files are off by 8 minutes

#11 Post by boco » 2011-09-09 10:42

That's a myth. Access times are heavily cached and usually only written once every hour. But you are right, they are disabled by default since Vista.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

TheEvilHammer
504 Command not implemented
Posts: 10
Joined: 2010-11-27 02:47

Re: Timestamps for some files are off by 8 minutes

#12 Post by TheEvilHammer » 2012-07-12 05:32

Just ran into this again. What's the next step here? Should I file a formal bug report?

TheEvilHammer
504 Command not implemented
Posts: 10
Joined: 2010-11-27 02:47

Re: Timestamps for some files are off by 8 minutes

#13 Post by TheEvilHammer » 2012-07-12 05:40

Also, I've verified that this issue exists in the latest version (0.9.41).

User avatar
boco
Contributor
Posts: 26934
Joined: 2006-05-01 03:28
Location: Germany

Re: Timestamps for some files are off by 8 minutes

#14 Post by boco » 2012-07-12 13:44

http://trac.filezilla-project.org

Please check first is a ticket of that subject already exists.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

TheEvilHammer
504 Command not implemented
Posts: 10
Joined: 2010-11-27 02:47

Re: Timestamps for some files are off by 8 minutes

#15 Post by TheEvilHammer » 2012-07-12 17:30


Post Reply