RT 5.0.2 New installation crashes with invalid date

Hi all!

Does anybody had such problem after installing a new instance of RT v5.0.2?
Here goes the log below:

Jul 4 19:00:05 dox RT: [132952] Invalid date 0000-00-00 00:00:00: Month ‘-1’ out of range 0…11 at /opt/rt5/sbin/…/lib/RT/Date.pm line 176.

Stack:
[/usr/share/perl/5.30/Carp.pm:291]
[/usr/share/perl/5.30/Time/Local.pm:122]
[/opt/rt5/sbin/…/lib/RT/Date.pm:176]
[/opt/rt5/sbin/…/lib/RT/Ticket.pm:1252]
[/opt/rt5/share/html/Elements/RT__Ticket/ColumnMap:285]
[/opt/rt5/share/html/Elements/CollectionAsTable/Row:117]
[/opt/rt5/share/html/Elements/CollectionList:176]
[/opt/rt5/share/html/Elements/ShowSearch:58]
[/opt/rt5/share/html/Widgets/TitleBox:61]
[/opt/rt5/share/html/Elements/ShowSearch:60]
[/opt/rt5/share/html/Elements/MyRT:162]
[/opt/rt5/local/html/index.html:78]
[/opt/rt5/sbin/…/lib/RT/Interface/Web.pm:719]
[/opt/rt5/sbin/…/lib/RT/Interface/Web.pm:398]
[/opt/rt5/share/html/autohandler:53]
Jul 4 19:00:05 dox RT: [132952] Invalid date 0000-00-00 00:00:00: Month ‘-1’ out of range 0…11 at /opt/rt5/sbin/…/lib/RT/Date.pm line 176.

Stack:
[/usr/share/perl/5.30/Carp.pm:291]
[/usr/share/perl/5.30/Time/Local.pm:122]
[/opt/rt5/sbin/…/lib/RT/Date.pm:176]
[/opt/rt5/sbin/…/lib/RT/Ticket.pm:1252]
[/opt/rt5/share/html/Elements/RT__Ticket/ColumnMap:277]
[/opt/rt5/share/html/Elements/CollectionAsTable/Row:148]
[/opt/rt5/share/html/Elements/CollectionList:176]
[/opt/rt5/share/html/Elements/ShowSearch:58]
[/opt/rt5/share/html/Widgets/TitleBox:61]
[/opt/rt5/share/html/Elements/ShowSearch:60]
[/opt/rt5/share/html/Elements/MyRT:162]
[/opt/rt5/local/html/index.html:78]
[/opt/rt5/sbin/…/lib/RT/Interface/Web.pm:719]
[/opt/rt5/sbin/…/lib/RT/Interface/Web.pm:398]
[/opt/rt5/share/html/autohandler:53]

====

Suggessions? Workaround?

Thanks, Peter.

That seems rather odd, what action are you taking that causes that? What distro/version are you running on?

Hi!
It can happen when I click on server/rt/Prefs/Other.html or server/rt/Admin/Users/Modify.html?id=someId

UPD (this is the today’s log on server/rt/Prefs/Other.html):
Jul 12 12:20:18 server RT: [606260] panic: unknown regstclass 188 at (eval 12) line 3.
Compilation failed in require at /usr/share/perl5/DateTime/TimeZone/OlsonDB.pm line 10.
BEGIN failed–compilation aborted at /usr/share/perl5/DateTime/TimeZone/OlsonDB.pm line 10.
Compilation failed in require at /usr/share/perl5/DateTime/TimeZone/Europe/Budapest.pm line 20.
BEGIN failed–compilation aborted at /usr/share/perl5/DateTime/TimeZone/Europe/Budapest.pm line 20.
Compilation failed in require at /usr/share/perl5/Module/Runtime.pm line 314.

Stack:
[/usr/share/perl5/DateTime/TimeZone.pm:124]
[/usr/lib/x86_64-linux-gnu/perl5/5.30/DateTime.pm:213]
[/usr/lib/x86_64-linux-gnu/perl5/5.30/DateTime.pm:184]
[/opt/rt5/sbin/…/lib/RT/Date.pm:1385]
[/opt/rt5/sbin/…/lib/RT/Date.pm:977]
[/opt/rt5/sbin/…/lib/RT/Date.pm:841]
[/opt/rt5/sbin/…/lib/RT/Config.pm:647]
[/opt/rt5/share/html/Widgets/FinalizeWidgetArguments:51]
[/opt/rt5/local/plugins/RT-Extension-CRMfolder/html/Prefs/Other.html:75]
[/opt/rt5/share/html/Widgets/TitleBox:61]
[/opt/rt5/local/plugins/RT-Extension-CRMfolder/html/Prefs/Other.html:82]
[/opt/rt5/sbin/…/lib/RT/Interface/Web.pm:719]
[/opt/rt5/sbin/…/lib/RT/Interface/Web.pm:398]
[/opt/rt5/share/html/autohandler:53]
Jul 12 12:20:20 server RT: [606260] Attempt to reload DateTime/TimeZone/Europe/Budapest.pm aborted.
Compilation failed in require at /usr/share/perl5/Module/Runtime.pm line 314.

Stack:
[/usr/share/perl5/DateTime/TimeZone.pm:124]
[/usr/lib/x86_64-linux-gnu/perl5/5.30/DateTime.pm:213]
[/usr/lib/x86_64-linux-gnu/perl5/5.30/DateTime.pm:184]
[/opt/rt5/sbin/…/lib/RT/Date.pm:1385]
[/opt/rt5/sbin/…/lib/RT/Date.pm:977]
[/opt/rt5/sbin/…/lib/RT/Date.pm:841]
[/opt/rt5/sbin/…/lib/RT/Config.pm:647]
[/opt/rt5/share/html/Widgets/FinalizeWidgetArguments:51]
[/opt/rt5/local/plugins/RT-Extension-CRMfolder/html/Prefs/Other.html:75]
[/opt/rt5/share/html/Widgets/TitleBox:61]
[/opt/rt5/local/plugins/RT-Extension-CRMfolder/html/Prefs/Other.html:82]
[/opt/rt5/sbin/…/lib/RT/Interface/Web.pm:719]
[/opt/rt5/sbin/…/lib/RT/Interface/Web.pm:398]
[/opt/rt5/share/html/autohandler:53]

Okay, there’s something wrong in the Olson timezone database on your server:

I have updated/reinstalled DateTime::TimeZone::OlsonDB with

cpan -i DateTime::TimeZone::OlsonDB

but it’s no use…

I’ve had this issue the last few times I’ve upgraded RT. The only solution I’ve found so far is rebooting the server after updating DateTime::TimeZone. Maybe someone has a better solution.

I’m using Ubuntu 20.04.4 LTS

Is it using the CPAN module or libdatetime-timezone-perl from Ubuntu? You could also try reinstalling the tzdata Ubuntu package.

Rebooting seems odd, but potentially some system daemons are caching it?!