Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

Re: [mythtv-commits] Ticket #5791: Allow time zone ID's whose to differ by space/underscore

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


simon at koala

Oct 8, 2008, 3:05 PM

Post #1 of 10 (562 views)
Permalink
Re: [mythtv-commits] Ticket #5791: Allow time zone ID's whose to differ by space/underscore

On Tue, 2008-10-07 at 19:32 +0000, MythTV wrote:
> #5791: Allow time zone ID's whose to differ by space/underscore

is this change anything to do with the fact that my FE will not start,
stating the following:

2008-10-08 22:58:42.270 Time zone settings on the master backend differ
from those on this system.
2008-10-08 22:58:42.271 Detected time zone settings:
Master: Zone ID: 'Eire', UTC Offset: '3600', Current Time:
'2008-10-08T22:58:42'
Local: Zone ID: 'TZif2
2008-10-08 22:58:42.272 The time and/or time zone settings on this
system do not match those in use on the master backend. Please ensure
all frontend and backend systems are configured to use the same time
zone and have the current time properly set.

my BE and FE both have /etc/localtime being symbolic links
to /usr/share/zoneinfo/Eire

so what did i do wrong?
--
simon

_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


janne-mythtv at grunau

Oct 8, 2008, 3:33 PM

Post #2 of 10 (549 views)
Permalink
Re: [mythtv-commits] Ticket #5791: Allow time zone ID's whose to differ by space/underscore [In reply to]

On Thursday 09 October 2008 00:05:43 Simon Kenyon wrote:
> On Tue, 2008-10-07 at 19:32 +0000, MythTV wrote:
> > #5791: Allow time zone ID's whose to differ by space/underscore
>
> is this change anything to do with the fact that my FE will not
> start, stating the following:
>
> 2008-10-08 22:58:42.270 Time zone settings on the master backend
> differ from those on this system.
> 2008-10-08 22:58:42.271 Detected time zone settings:
> Master: Zone ID: 'Eire', UTC Offset: '3600', Current Time:
> '2008-10-08T22:58:42'
> Local: Zone ID: 'TZif2
> 2008-10-08 22:58:42.272 The time and/or time zone settings on this
> system do not match those in use on the master backend. Please ensure
> all frontend and backend systems are configured to use the same time
> zone and have the current time properly set.
>
> my BE and FE both have /etc/localtime being symbolic links
> to /usr/share/zoneinfo/Eire

do you have a /etc/timezone or /etc/sysconfig/clock file on the
frontend?
If yes, is that a text file or also a symlink/copy to/of a time zone
file?

Janne

_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mtdean at thirdcontact

Oct 8, 2008, 3:49 PM

Post #3 of 10 (549 views)
Permalink
Re: [mythtv-commits] Ticket #5791: Allow time zone ID's whose to differ by space/underscore [In reply to]

On 10/08/2008 06:05 PM, Simon Kenyon wrote:
> On Tue, 2008-10-07 at 19:32 +0000, MythTV wrote:
>
>> #5791: Allow time zone ID's whose to differ by space/underscore
>>
> is this change anything to do with the fact that my FE will not start,
> stating the following:
>
> 2008-10-08 22:58:42.270 Time zone settings on the master backend differ
> from those on this system.
> 2008-10-08 22:58:42.271 Detected time zone settings:
> Master: Zone ID: 'Eire', UTC Offset: '3600', Current Time:
> '2008-10-08T22:58:42'
> Local: Zone ID: 'TZif2
>

Is that exactly what the log file said? If so, it seems that something
is wrong in the code as it should have given UTC Offset and Current time
for the frontend.

> 2008-10-08 22:58:42.272 The time and/or time zone settings on this
> system do not match those in use on the master backend. Please ensure
> all frontend and backend systems are configured to use the same time
> zone and have the current time properly set.
>
> my BE and FE both have /etc/localtime being symbolic links
> to /usr/share/zoneinfo/Eire
>
> so what did i do wrong?

For now, start the frontend with:

TZ='Eire' mythfrontend

Mike
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


tom at redpepperracing

Oct 8, 2008, 4:03 PM

Post #4 of 10 (552 views)
Permalink
Re: [mythtv-commits] Ticket #5791: Allow time zone ID's whose to differ by space/underscore [In reply to]

Simon Kenyon wrote:
> On Tue, 2008-10-07 at 19:32 +0000, MythTV wrote:
>
>> #5791: Allow time zone ID's whose to differ by space/underscore
>>
>
> is this change anything to do with the fact that my FE will not start,
> stating the following:
>
> 2008-10-08 22:58:42.270 Time zone settings on the master backend differ
> from those on this system.
> 2008-10-08 22:58:42.271 Detected time zone settings:
> Master: Zone ID: 'Eire', UTC Offset: '3600', Current Time:
> '2008-10-08T22:58:42'
> Local: Zone ID: 'TZif2
> 2008-10-08 22:58:42.272 The time and/or time zone settings on this
> system do not match those in use on the master backend. Please ensure
> all frontend and backend systems are configured to use the same time
> zone and have the current time properly set.
>
> my BE and FE both have /etc/localtime being symbolic links
> to /usr/share/zoneinfo/Eire
>
> so what did i do wrong?
>
It might be looking at (in the case of Fedora) /etc/sysconfig/clock,
which may differ from /etc/localtime. Something to check, at any rate.

Tom

_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


tom at redpepperracing

Oct 8, 2008, 4:04 PM

Post #5 of 10 (549 views)
Permalink
Re: [mythtv-commits] Ticket #5791: Allow time zone ID's whose to differ by space/underscore [In reply to]

Tom Lichti wrote:
> Simon Kenyon wrote:
>
>> On Tue, 2008-10-07 at 19:32 +0000, MythTV wrote:
>>
>>
>>> #5791: Allow time zone ID's whose to differ by space/underscore
>>>
>>>
>> is this change anything to do with the fact that my FE will not start,
>> stating the following:
>>
>> 2008-10-08 22:58:42.270 Time zone settings on the master backend differ
>> from those on this system.
>> 2008-10-08 22:58:42.271 Detected time zone settings:
>> Master: Zone ID: 'Eire', UTC Offset: '3600', Current Time:
>> '2008-10-08T22:58:42'
>> Local: Zone ID: 'TZif2
>> 2008-10-08 22:58:42.272 The time and/or time zone settings on this
>> system do not match those in use on the master backend. Please ensure
>> all frontend and backend systems are configured to use the same time
>> zone and have the current time properly set.
>>
>> my BE and FE both have /etc/localtime being symbolic links
>> to /usr/share/zoneinfo/Eire
>>
>> so what did i do wrong?
>>
>>
> It might be looking at (in the case of Fedora) /etc/sysconfig/clock,
> which may differ from /etc/localtime. Something to check, at any rate.
>
> Tom
>
Sorry, I didn't see the other responses.

Tom
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mtdean at thirdcontact

Oct 8, 2008, 4:15 PM

Post #6 of 10 (549 views)
Permalink
Re: [mythtv-commits] Ticket #5791: Allow time zone ID's whose to differ by space/underscore [In reply to]

On 10/08/2008 06:49 PM, Michael T. Dean wrote:
> On 10/08/2008 06:05 PM, Simon Kenyon wrote:
>
>> On Tue, 2008-10-07 at 19:32 +0000, MythTV wrote:
>>
>>> #5791: Allow time zone ID's whose to differ by space/underscor
>> is this change anything to do with the fact that my FE will not start,
>> stating the following:
>>
>> 2008-10-08 22:58:42.270 Time zone settings on the master backend differ
>> from those on this system.
>> 2008-10-08 22:58:42.271 Detected time zone settings:
>> Master: Zone ID: 'Eire', UTC Offset: '3600', Current Time:
>> '2008-10-08T22:58:42'
>> Local: Zone ID: 'TZif2
> Is that exactly what the log file said? If so, it seems that something
> is wrong in the code as it should have given UTC Offset and Current time
> for the frontend.

Nevermind. Janne figured out where that info is coming from, and
because there's a binary file where I had assumed a text file would be,
the binary data I'm reading from that file is breaking the logging info
(and the check for which zone rules are in use on your frontend
system). The only files we're reading data from are /etc/timezone and
/etc/sysconfig/clock.

/etc/timezone is used on Debian-based systems (and they're the only ones
I know of that use it). It should be a text file that contains a single
line with the name of the file (relative to the top directory of the
zoneinfo database) with the name of the file used to set the time zone
rules. I.e. in your case, it should contain "Eire".

/etc/sysconfig/clock on a Red Hat-based system should contain a line:
ZONE=Eire

However, the code we have would prevent /etc/sysconfig/clock from being
interpreted if it's a binary file, so as Janne indicated, it seems you
have an invalid (from the Debian perspective) /etc/timezone. I think
Janne is currently working on adding code to ignore invalid /etc/timezone.

Mike
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


janne-mythtv at grunau

Oct 8, 2008, 5:35 PM

Post #7 of 10 (540 views)
Permalink
Re: [mythtv-commits] Ticket #5791: Allow time zone ID's whose to differ by space/underscore [In reply to]

On Thursday 09 October 2008 00:05:43 Simon Kenyon wrote:
> On Tue, 2008-10-07 at 19:32 +0000, MythTV wrote:
> > #5791: Allow time zone ID's whose to differ by space/underscore
>
> is this change anything to do with the fact that my FE will not
> start, stating the following:
>
> 2008-10-08 22:58:42.270 Time zone settings on the master backend
> differ from those on this system.
> 2008-10-08 22:58:42.271 Detected time zone settings:
> Master: Zone ID: 'Eire', UTC Offset: '3600', Current Time:
> '2008-10-08T22:58:42'
> Local: Zone ID: 'TZif2
> 2008-10-08 22:58:42.272 The time and/or time zone settings on this
> system do not match those in use on the master backend. Please ensure
> all frontend and backend systems are configured to use the same time
> zone and have the current time properly set.
>
> my BE and FE both have /etc/localtime being symbolic links
> to /usr/share/zoneinfo/Eire
>
> so what did i do wrong?

should be fixed but please report the file type and contents
of /etc/timezone.

Which distribution do you use?

Janne
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


simon at koala

Oct 9, 2008, 12:23 AM

Post #8 of 10 (532 views)
Permalink
Re: [mythtv-commits] Ticket #5791: Allow time zone ID's whose to differ by space/underscore [In reply to]

On Thu, 2008-10-09 at 02:35 +0200, Janne Grunau wrote:

> should be fixed but please report the file type and contents
> of /etc/timezone.
>
> Which distribution do you use?

All my machines run gentoo

i've checked and indeed /etc/timezone does exist and is a symbolic link
to /usr/share/zoneinfo/Europe/Dublin (which is different from
my /etc/localtime, which is a symbolic link
to /usr/share/zoneinfo/Eire). However, these are identical files.

How and why /etc/timezone got here I do not know. I have always
updated /etc/localtime (as per the Gentoo docs). Furthermore,
the /etc/timezone file is not "owner" (in the Gentoo sense) by any
package, so I must have created the link myself. I don't remember why.

searching on the web it would appear that /etc/timezone can either
contain a string (like "Europe/Dublin") or be a symbolic link to a file
in /usr/share/zoneinfo. that is certainly true of debian. but it is a
long time since i ran that OS

regards
--
simon

_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


simon at koala

Oct 9, 2008, 12:26 AM

Post #9 of 10 (535 views)
Permalink
Re: [mythtv-commits] Ticket #5791: Allow time zone ID's whose to differ by space/underscore [In reply to]

On Wed, 2008-10-08 at 19:15 -0400, Michael T. Dean wrote:

> /etc/timezone is used on Debian-based systems (and they're the only ones
> I know of that use it). It should be a text file that contains a single
> line with the name of the file (relative to the top directory of the
> zoneinfo database) with the name of the file used to set the time zone
> rules. I.e. in your case, it should contain "Eire".
>
> /etc/sysconfig/clock on a Red Hat-based system should contain a line:
> ZONE=Eire
>
> However, the code we have would prevent /etc/sysconfig/clock from being
> interpreted if it's a binary file, so as Janne indicated, it seems you
> have an invalid (from the Debian perspective) /etc/timezone. I think
> Janne is currently working on adding code to ignore invalid /etc/timezone.

as they say "close, but no cigar"

google tells me that /etc/timezone can also be a link to a file
in /usr/share/zoneinfo on debian
--
simon

_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


mtdean at thirdcontact

Oct 9, 2008, 1:15 AM

Post #10 of 10 (523 views)
Permalink
Re: [mythtv-commits] Ticket #5791: Allow time zone ID's whose to differ by space/underscore [In reply to]

On 10/09/2008 03:26 AM, Simon Kenyon wrote:
> On Wed, 2008-10-08 at 19:15 -0400, Michael T. Dean wrote:
>
>> /etc/timezone is used on Debian-based systems (and they're the only ones
>> I know of that use it). It should be a text file that contains a single
>> line with the name of the file (relative to the top directory of the
>> zoneinfo database) with the name of the file used to set the time zone
>> rules. I.e. in your case, it should contain "Eire".
>>
>> /etc/sysconfig/clock on a Red Hat-based system should contain a line:
>> ZONE=Eire
>>
>> However, the code we have would prevent /etc/sysconfig/clock from being
>> interpreted if it's a binary file, so as Janne indicated, it seems you
>> have an invalid (from the Debian perspective) /etc/timezone. I think
>> Janne is currently working on adding code to ignore invalid /etc/timezone.
>>
>
> as they say "close, but no cigar"
>
> google tells me that /etc/timezone can also be a link to a file
> in /usr/share/zoneinfo on debian

Ref? It seems a waste to make /etc/timezone a link to the zoneinfo
rules file when /etc/localtime is a link to or copy of the zoneinfo
rules file (and /etc/localtime is "universal," so it will be there on a
Debian system).

According to
http://www.debian.org/doc/manuals/system-administrator/ch-sysadmin-time.html#s16.1
and http://wiki.debian.org/TimeZoneChanges /etc/timezone is a file with
the name of the timezone. And, the tzconfig program on Debian writes
the name of the zone to the /etc/timezone file. (See
https://www.cs.drexel.edu/cgi-bin/manServer.pl/tzconfig.8 )

There is a file, /etc/TIMEZONE (which is not /etc/timezone) that is
often a link, but it's generally used on Solaris and is a link to
/etc/default/init (which contains environment variable initialization,
including the initialization of the TZ environment variable). So even
it is not a link to a zoneinfo rules file.

Regardless, the changes that went in will ignore an /etc/timezone whose
contents (or whose linked file's contents) are binary. That
means--assuming there's no /etc/sysconfig/clock file--myth will now use
/etc/localtime to determine the time zone ID if /etc/timezone is binary.

Mike
_______________________________________________
mythtv-dev mailing list
mythtv-dev[at]mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.