Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113576 - RSYNC Logs show combination of GMT and Localtime
Summary: RSYNC Logs show combination of GMT and Localtime
Status: RESOLVED DUPLICATE of bug 89046
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://bugs.gentoo.org/show_bug.cgi?i...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-25 11:36 UTC by Bob
Modified: 2005-11-25 12:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob 2005-11-25 11:36:43 UTC
This is a continuation of bug # 89046 which was closed prematurely with an
improper resolution based on a mistaken assumption that the bug was a duplicate
of another bug.  Because I am not the original poster of the bug, I cannot
reopen it, so I am forced to open a new bug report.  Sorry for the discontinuity.

The problem is that RSYNC logs report time for each transaction using a
combination of GMT and Localtime instead of using either GMT or Localtime.  This
makes review of the logs very difficult, and compels the server user to change
is local timezone to GMT to make the logs intellegible.  This is (for obvious
reasons) not a very good solution to the problem.


Reproducible: Always
Steps to Reproduce:
1.  install rsync daemon
2.  logs show a hybrid of GMT and localtime for each transaction
3.

Actual Results:  
inconsistent time zone reporting by rsync.

Expected Results:  
consistent time zone reporting by rsync.

Here is a snippet from the original bug report:

<snip>
I have identified the same problem, but I can clarify the situation a bit.  The
rsyncd daemon is not consistently using localtime or GMT.  instead, the first
line entries are created using localtime and subsequent entries are created
using GMT.

My rsyncd.log files show a mixtrure of GMT timestamps and localtime timestamps.
in each case, when the user logs on to perform an rsync, the initial log entry
for that process ID is written in localtime, the transaction records are written
in GMT, and the final log entry for that process ID is always written in GMT.

is this the norm? is there some change that i can implement so that all of the
timestamps use the same timezone? i've looked at the manpage and i couldn't find
the answer. hopefully somebody can point out a simple oversight on my part.

fyi here is a snippet from rsyncd.log:

2005/09/04 13:56:22 [7926] rsync on script from carton.764net (192.168.1.15)
2005/09/04 18:56:22 [7926] send script  rsync-script-3.sh 1212
2005/09/04 18:56:22 [7926] wrote 2335 bytes  read 97 bytes  total size 9728


and another one:

2005/09/03 04:49:29 [1505] rsync on jackass from carton.764net (192.168.1.15)
2005/09/03 09:50:35 [1505] send jackass  2005.0/jackass-2005.0-pentium4.iso
167208960
2005/09/03 09:50:35 [1505] send jackass  2005.0/jackass-2005.0-pentium4.iso.md5 62
2005/09/03 09:50:35 [1505] send jackass  rsync-jackass-2.sh 888
2005/09/03 09:50:35 [1505] wrote 167232215 bytes  read 158 bytes  total size
1201233200

in my case, my local timezone is GMT-5.  i hope that this helps to clarify the
problem.
</snip>


This bug was mistakenly marked as a duplicate of Bug 110038.  It is not a
duplicate of Bug 110038, as the remainder of the Gentoo system correctly reports
system time and reported fix in the "duplicate" thread doesn't solve the
problem.  This is not a system-wide problem.  Its specific to rsync and only to
rsync.  Other daemons are not to be similarly effected.

in my case, i performed the following steps -- as suggested in the referenced
buyg report -- but they FAILED to solve the problem:

1.  i removed the symlink where /etc/localtime points to
/usr/share/zoneinfo/America/Chicago.  

2.  i copied the timezone data file to /etc/localtime instead of creating a
symlink for /etc/localtime that points to the timezone data file.

3.  i restarted the server

the result?  nothing has changed.  RSYNC continues to log using a hybrid of GMT
and localtime in its logs.  the problem is not being caused by the localtime
symlink.  when rsync chroots, the localtime data doesn't follow.

one user has recommended copying the /etc/localtime data into the rsync data
path FOR EVERY RSYNC MODULE be ing served.  if the user does that, it seems that
every rsync transfer would include a transfer of the /etc/localtime file -- this
is obviously not a good solution to the problem.

FWIW none of the other daemons running on the system (HTTP Servers, FTP servers,
NTP servers) are similarly effected.  this is a problem that is unique to rsync.

so i guess its safe to say that the problem is not being caused by the use of a
symlink instead of by copying the time zone data file.  

or am i missing something really obvious???

thanks!
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-25 12:01:02 UTC

*** This bug has been marked as a duplicate of 89046 ***