Hello, I'm having a major problem with the timestamps in both the Icecast access.log and error.log. The timestamp on the logfiles themselves is accurate, but the logging of the various connections to my streams is in UTC. No matter how I try to configure the hwclock or the system clock, the log timestamp is always UTC, which is 8 hours ahead of my current time zone. I've even tried setting the hwclock to localtime, but to no avail. I've just updated and compiled to the newest kernel as well, but that still hasn't solved the problem. Clearly, I'm missing something, but I'm at a loss as to what it could be. I am running Icecast 2.3.2 with Darkice on a Gentoo box (Intel Pentium 4 CPU 3.20GHz kernel-2.6.36-gentoo-r5). I'm including my conf.d/clock settings and the result of 'date', 'hwclock --show' and 'uname -a' as well. I should also mention that the timestamps in my other logfiles (/var/log/messages for example) are accurately timestamped - the icecast logs are the only place where this UTC issue occurs. # date Thu Dec 16 12:24:02 PST 2010 # hwclock --show Thu Dec 16 12:24:08 2010 -0.156608 seconds # uname -a Linux live 2.6.36-gentoo-r5 #2 SMP Thu Dec 16 10:56:44 PST 2010 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz GenuineIntel GNU/Linux # /etc/conf.d/clock CLOCK="UTC" TIMEZONE="" CLOCK_OPTS="" CLOCK_SYSTOHC="YES" ### ALPHA SPECIFIC OPTIONS ### SRM="no" ARC="no" (/etc/locatime is copied from /usr/share/zoneinfo/PST8PDT) Any help would be greatly appreciated. Thank You. Bryan
Never mind. I figured it out. I added: export TZ=PST8PDT to the .bashrc for the user under which icecast runs, and it fixed the problem. Oops... Although if some sees something I should fix... :) Bryan On Dec 16, 2010, at 12:29 PM, Bryan D. Brown wrote:> Hello, > > I'm having a major problem with the timestamps in both the Icecast access.log and error.log. The timestamp on the logfiles themselves is accurate, but the logging of the various connections to my streams is in UTC. No matter how I try to configure the hwclock or the system clock, the log timestamp is always UTC, which is 8 hours ahead of my current time zone. I've even tried setting the hwclock to localtime, but to no avail. > > I've just updated and compiled to the newest kernel as well, but that still hasn't solved the problem. Clearly, I'm missing something, but I'm at a loss as to what it could be. > > I am running Icecast 2.3.2 with Darkice on a Gentoo box (Intel Pentium 4 CPU 3.20GHz kernel-2.6.36-gentoo-r5). I'm including my conf.d/clock settings and the result of 'date', 'hwclock --show' and 'uname -a' as well. I should also mention that the timestamps in my other logfiles (/var/log/messages for example) are accurately timestamped - the icecast logs are the only place where this UTC issue occurs. > > # date > Thu Dec 16 12:24:02 PST 2010 > # hwclock --show > Thu Dec 16 12:24:08 2010 -0.156608 seconds > # uname -a > Linux live 2.6.36-gentoo-r5 #2 SMP Thu Dec 16 10:56:44 PST 2010 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz GenuineIntel GNU/Linux > > # /etc/conf.d/clock > CLOCK="UTC" > TIMEZONE="" > CLOCK_OPTS="" > CLOCK_SYSTOHC="YES" > ### ALPHA SPECIFIC OPTIONS ### > SRM="no" > ARC="no" > > (/etc/locatime is copied from /usr/share/zoneinfo/PST8PDT) > > Any help would be greatly appreciated. > > Thank You. > > Bryan > > > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast >
On Thu, Dec 16, 2010 at 12:29:58PM -0800, Bryan D. Brown wrote:> I'm having a major problem with the timestamps in both the Icecast access.log and error.log. The timestamp on the logfiles themselves is accurate, but the logging of the various connections to my streams is in UTC. No matter how I try to configure the hwclock or the system clock, the log timestamp is always UTC, which is 8 hours ahead of my current time zone. I've even tried setting the hwclock to localtime, but to no avail. > > I've just updated and compiled to the newest kernel as well, but that still hasn't solved the problem. Clearly, I'm missing something, but I'm at a loss as to what it could be.You're lucky we had this problem once come up on IRC. What you describe is all well and fine, but you actually need to adjust the environment variables for the icecast process. For some reason those you set globally got ignored, maybe some override in the init script that sets TZ=UTC or sthg like that? If that's not it I can dig out the IRC logs during the weekend. ;) Cheers Thomas
Tom, Is it the icecast process that's the issue, or is it the user under which the process runs? FWIW, I call icecast from the command line, not an init script. This is a dedicated machine, so there's nothing else of note running under this particular (and only, aside from root) user. If fact, the only reason there is a user on this box is for non-root SSH and for icecast. Thanks for your help. Bryan On Dec 16, 2010, at 1:44 PM, Thomas B. Ruecker wrote:> On Thu, Dec 16, 2010 at 12:29:58PM -0800, Bryan D. Brown wrote: >> I'm having a major problem with the timestamps in both the Icecast access.log and error.log. The timestamp on the logfiles themselves is accurate, but the logging of the various connections to my streams is in UTC. No matter how I try to configure the hwclock or the system clock, the log timestamp is always UTC, which is 8 hours ahead of my current time zone. I've even tried setting the hwclock to localtime, but to no avail. >> >> I've just updated and compiled to the newest kernel as well, but that still hasn't solved the problem. Clearly, I'm missing something, but I'm at a loss as to what it could be. > You're lucky we had this problem once come up on IRC. > What you describe is all well and fine, but you actually need to adjust the environment variables for the icecast process. For some reason those you set globally got ignored, maybe some override in the init script that sets TZ=UTC or sthg like that? > > If that's not it I can dig out the IRC logs during the weekend. ;) > > Cheers > > Thomas > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast >