manticoresearch icon indicating copy to clipboard operation
manticoresearch copied to clipboard

Error initializing time zones: Error resolving local time zone

Open cappadaan opened this issue 11 months ago • 5 comments

Bug Description:

My log shows this warning:

[Mon May 19 07:18:55.181 2025] [150597] WARNING: Error initializing time zones: Error resolving local time zone from '/etc/localtime' and time zone dir '/usr/share/zoneinfo/'

But both exist and are valid

[server@server ~]$ ls -l /etc/localtime lrwxrwxrwx. 1 root root 35 Dec 13 2022 /etc/localtime -> ../usr/share/zoneinfo/Europe/Berlin

Result is that timezone is incorrect, log time is 2 hours too early.

Manticore Search Version:

9.3.2

Operating System Version:

AlmaLinux

Have you tried the latest development version?

None

Internal Checklist:

To be completed by the assignee. Check off tasks that have been completed or are not applicable.

  • [ ] Implementation completed
  • [ ] Tests developed
  • [ ] Documentation updated
  • [ ] Documentation reviewed

cappadaan avatar May 19 '25 07:05 cappadaan

@cappadaan can you please run

ls -la /usr/share/zoneinfo/Europe/Berlin

?

If there's an easy way to reproduce this in a clean Linux, pls let us know.

If you made the symlink yourself, can you also try to remake it to an absolute path to the timezone file?

sanikolaev avatar May 19 '25 08:05 sanikolaev

[server@server config]$ ls -la /usr/share/zoneinfo/Europe/Berlin -rw-r--r-- 6 root root 2298 Mar 31 05:48 /usr/share/zoneinfo/Europe/Berlin

This is a clean almalinux install, we didnt touch anything.

cappadaan avatar May 19 '25 08:05 cappadaan

This is a clean almalinux install, we didnt touch anything.

What's the version of AlmaLinux?

sanikolaev avatar May 20 '25 07:05 sanikolaev

9.5, but its al the way updated from 8.9 as the initial install.

cappadaan avatar May 20 '25 10:05 cappadaan

Reproduced in:

  • Ubuntu Jammy - can be solved by apt install tzdata
  • Alma Linux 9 - the above w/o doesn't help. /etc/localtime includes this:
    [root@3fc7b19f15e1 /]# cat /etc/localtime
    TZif2UTCTZif2UTC
    UTC0
    

We need to solve the both issues.

sanikolaev avatar May 23 '25 06:05 sanikolaev

Also reproduced in macOS.

cyformatician avatar Aug 09 '25 02:08 cyformatician