Omega Weapon | 3 Aug 2012 12:32
Picon

Creation of directories with '1899-12-30 00:00' modified date from mirror command (BulletProof FTP Server)

Throwing this out here so that Google knows about it - I have
investigated into an odd rsync error - 'Time value of <directory path>
truncated on receiver.' - and found that it was caused by spurious
modified timestamps on directories that have been created by lftp
(v4.3.6-1, Debian Testing) mirroring a directory from a BulletProof FTP
Server.

It seems that every directory bar one has the '1899-12-30 00:00'
modified date (which will naturally cause rsync to choke).

Logging in manually and listing the home directory:

==================================================================

drwxr-xr-x   1 ftp      ftp             0 Jul 19 13:49 <directory>
drwxr-xr-x   1 ftp      ftp             0 Jul 17 21:07 <directory>
drwxr-xr-x   1 ftp      ftp             0 Jul 19 16:31 <directory>

==================================================================

Clearly the year is broken here. FileZilla doesnt seem to mind and
returns 2012 during testing.
_______________________________________________
lftp mailing list
lftp <at> uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Alexander V. Lukyanov | 3 Aug 2012 12:51
Picon
Gravatar

Re: Creation of directories with '1899-12-30 00:00' modified date from mirror command (BulletProof FTP Server)

On Fri, Aug 03, 2012 at 11:32:29AM +0100, Omega Weapon wrote:
> It seems that every directory bar one has the '1899-12-30 00:00'
> modified date (which will naturally cause rsync to choke).

Please turn on debug in lftp (command "debug") and see what the
server returns for MDTM command.

--

-- 
   Alexander.
_______________________________________________
lftp mailing list
lftp <at> uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Omega Weapon | 3 Aug 2012 16:00
Picon

Re: Creation of directories with '1899-12-30 00:00' modified date from mirror command (BulletProof FTP Server)

On 03/08/12 11:51, Alexander V. Lukyanov wrote:
> On Fri, Aug 03, 2012 at 11:32:29AM +0100, Omega Weapon wrote:
>> It seems that every directory bar one has the '1899-12-30 00:00'
>> modified date (which will naturally cause rsync to choke).
>
> Please turn on debug in lftp (command "debug") and see what the
> server returns for MDTM command.
>

Here is the output for logging in and listing the home directory:

===================================================================

lftp :~> open <URL>
---- Resolving host address...
---- 1 address found: <IP address>
---- Connecting to <hostname> (<IP address>) port 21
<--- 220 BulletProof FTP Server ready ...
---> FEAT
<--- 530 Please login with USER and PASS first.
---> AUTH TLS
<--- 500 Unknown command.
---> USER <username>
<--- 331 Password required for <username>.
---> PASS <password>
<--- 230 User <username> logged in.
---> FEAT
<--- 211-Extensions supported:
<---  CLNT
<---  MDTM
(Continue reading)

Alexander V. Lukyanov | 8 Aug 2012 09:08
Picon
Gravatar

Re: Creation of directories with '1899-12-30 00:00' modified date from mirror command (BulletProof FTP Server)

On Fri, Aug 03, 2012 at 03:00:33PM +0100, Omega Weapon wrote:
> On 03/08/12 11:51, Alexander V. Lukyanov wrote:
> >On Fri, Aug 03, 2012 at 11:32:29AM +0100, Omega Weapon wrote:
> >>It seems that every directory bar one has the '1899-12-30 00:00'
> >>modified date (which will naturally cause rsync to choke).
> >
> >Please turn on debug in lftp (command "debug") and see what the
> >server returns for MDTM command.

> lftp <username> <at> <site>:/> quote "MDTM /"
> 213 18991230000000

As you see, the ftp server returned the year 1899. So it is the server
to blame.

You can turn off using MDTM in lftp by this command: "set ftp:use-mdtm no".

--
   Alexander.
_______________________________________________
lftp mailing list
lftp <at> uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

Omega Weapon | 8 Aug 2012 13:50
Picon

Re: Creation of directories with '1899-12-30 00:00' modified date from mirror command (BulletProof FTP Server)

On 08/08/12 08:08, Alexander V. Lukyanov wrote:
> On Fri, Aug 03, 2012 at 03:00:33PM +0100, Omega Weapon wrote:
>> On 03/08/12 11:51, Alexander V. Lukyanov wrote:
>>> On Fri, Aug 03, 2012 at 11:32:29AM +0100, Omega Weapon wrote:

>>>> It seems that every directory bar one has the '1899-12-30
>>>> 00:00' modified date (which will naturally cause rsync to
>>>> choke).

>>> Please turn on debug in lftp (command "debug") and see what the
>>> server returns for MDTM command.

>> lftp <username> <at> <site>:/> quote "MDTM /" 213 18991230000000

> As you see, the ftp server returned the year 1899. So it is the
> server to blame.
>
> You can turn off using MDTM in lftp by this command: "set
> ftp:use-mdtm no".

Ah, I wasnt expecting to understand the protocol so glossed over the 
number. With mdtm off junk is still returned, so I will just tell the 
site admin that BulletProof FTP Server is crap.

Thanks
_______________________________________________
lftp mailing list
lftp <at> uniyar.ac.ru
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

(Continue reading)


Gmane