Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first visit to alert/notifications/event log pages causes error #16

Closed
fancy-rabbit opened this issue Oct 28, 2010 · 4 comments
Closed

Comments

@fancy-rabbit
Copy link

"not a valid date
this is not a valid date"

clicking the links again and the pages are acting properly.
restart httpd or kill the thruk_fastcgi.pl and visit the pages again(i.e. "alert") and the problem is reproduced.

@fancy-rabbit
Copy link
Author

[Thu Oct 28 14:27:52 2010] [warn] mod_fcgid: stderr: [error] ERROR: Date::Manip unable to determine Time Zone.

[Thu Oct 28 14:27:52 2010] [warn] mod_fcgid: stderr: at /opt/Thruk/script/../local-lib/lib/perl5/Date/Manip.pm line 3549

[Thu Oct 28 14:27:52 2010] [warn] mod_fcgid: stderr: \tDate::Manip::Date_TimeZone() called at /opt/Thruk/script/../local-lib/lib/perl5/Date/Manip.pm line 576

[Thu Oct 28 14:27:52 2010] [warn] mod_fcgid: stderr: \tDate::Manip::Date_Init() called at /opt/Thruk/script/../local-lib/lib/perl5/Date/Manip.pm line 699

[Thu Oct 28 14:27:52 2010] [warn] mod_fcgid: stderr: \tDate::Manip::ParseDateString('today 00:00') called at /opt/Thruk/script/../local-lib/lib/perl5/Date/Manip.pm line 1692

[Thu Oct 28 14:27:52 2010] [warn] mod_fcgid: stderr: \tDate::Manip::UnixDate('today 00:00', '%s') called at

[Thu Oct 28 14:27:52 2010] [warn] mod_fcgid: stderr: /opt/Thruk/script/../lib/Thruk/Utils.pm line 45

[Thu Oct 28 14:27:52 2010] [warn] mod_fcgid: stderr: \teval {...} called at /opt/Thruk/script/../lib/Thruk/Utils.pm line 39

[Thu Oct 28 14:27:52 2010] [warn] mod_fcgid: stderr: \tThruk::Utils::parse_date('Thruk=HASH(0xda667e0)', 'today 00:00') called at /opt/Thruk/script/../lib/Thruk/Controller/history.pm line 62

this is in my httpd error_log. and followed by many catalyst errors.

@sni
Copy link
Owner

sni commented Oct 28, 2010

If there are problems with the timezone, you can explicitly set one with "use_timezone" in your thruk_local.conf

@fancy-rabbit
Copy link
Author

I set one with use_timezone = "Asia/Shanghai"
this error still occurs. (use_timezone = Asia/Shanghai without quotes does the same.)

whether I set or not use_timezone, the second time(and later) I visit these pages they're OK, but the first time will fail with
ERROR: Date::Manip unable to determine Time Zone.

@fancy-rabbit
Copy link
Author

sorry. seems it's a mod_fcgid problem and it disappears after upgrading mod_fcgid to 2.3.5 from 2.2

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants