Error initializing time zones: Error resolving local time zone
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 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?
[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.
This is a clean almalinux install, we didnt touch anything.
What's the version of AlmaLinux?
9.5, but its al the way updated from 8.9 as the initial install.
Reproduced in:
- Ubuntu Jammy - can be solved by
apt install tzdata - Alma Linux 9 - the above w/o doesn't help.
/etc/localtimeincludes this:[root@3fc7b19f15e1 /]# cat /etc/localtime TZif2UTCTZif2UTC UTC0
We need to solve the both issues.
Also reproduced in macOS.