Bothari
2018-09-24 20:32:11 UTC
I just upgraded from 1.0.4.p19 to 1.5.0p4, and now when I load a page I get
the error below in the logs, and I see this on the page.
Internal error: year out of range
Around line 200 it looks like this:
198 if mode == "abs" or \
199 (mode == "mixed" and abs(age) >= 48 * 3600):
200 return "age", time.strftime(dateformat + " %H:%M:%S",
time.localtime(timestamp))
It looks like the timestamp may be the problem, but I can't trace back to
where it gets passed in.
Anybody seen this before?
Thx,
Joe
File "/omd/sites/master/share/check_mk/web/htdocs/index.py", line 101, in
handler
handler()
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 1474,
in page_view
show_view(view, True, True, True)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 1728,
in show_view
browser_reload)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 1938,
in render_view
show_checkboxes and not html.do_actions())
File "/omd/sites/master/share/check_mk/web/plugins/views/layouts.py",
line 686, in render_grouped_list
cell.paint(row, is_last_cell=last_cell==cell)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 864, in
paint
tdclass, content = self.render(row)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 767, in
render
tdclass, content = self.render_content(row)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 860, in
render_content
return painter["paint"](*painter_args)
File "/omd/sites/master/share/check_mk/web/plugins/views/painters.py",
line 810, in <lambda>
"paint" : lambda row: paint_checked("service", row),
File "/omd/sites/master/share/check_mk/web/plugins/views/painters.py",
line 800, in paint_checked
css, td = paint_age(age, row[what + "_has_been_checked"] == 1, 0)
File "/omd/sites/master/share/check_mk/web/plugins/views/painters.py",
line 200, in paint_age
return "age", time.strftime(dateformat + " %H:%M:%S",
time.localtime(timestamp))
the error below in the logs, and I see this on the page.
Internal error: year out of range
Around line 200 it looks like this:
198 if mode == "abs" or \
199 (mode == "mixed" and abs(age) >= 48 * 3600):
200 return "age", time.strftime(dateformat + " %H:%M:%S",
time.localtime(timestamp))
It looks like the timestamp may be the problem, but I can't trace back to
where it gets passed in.
Anybody seen this before?
Thx,
Joe
File "/omd/sites/master/share/check_mk/web/htdocs/index.py", line 101, in
handler
handler()
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 1474,
in page_view
show_view(view, True, True, True)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 1728,
in show_view
browser_reload)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 1938,
in render_view
show_checkboxes and not html.do_actions())
File "/omd/sites/master/share/check_mk/web/plugins/views/layouts.py",
line 686, in render_grouped_list
cell.paint(row, is_last_cell=last_cell==cell)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 864, in
paint
tdclass, content = self.render(row)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 767, in
render
tdclass, content = self.render_content(row)
File "/omd/sites/master/share/check_mk/web/htdocs/views.py", line 860, in
render_content
return painter["paint"](*painter_args)
File "/omd/sites/master/share/check_mk/web/plugins/views/painters.py",
line 810, in <lambda>
"paint" : lambda row: paint_checked("service", row),
File "/omd/sites/master/share/check_mk/web/plugins/views/painters.py",
line 800, in paint_checked
css, td = paint_age(age, row[what + "_has_been_checked"] == 1, 0)
File "/omd/sites/master/share/check_mk/web/plugins/views/painters.py",
line 200, in paint_age
return "age", time.strftime(dateformat + " %H:%M:%S",
time.localtime(timestamp))
--
"There are only two industries that refer to their customers as âusersâ." -
Edward Tufte
"There are only two industries that refer to their customers as âusersâ." -
Edward Tufte