[Check_mk (english)] Upgraded to Check_mk 1.2.5i6p1, Multisite now errors "Filter is not defined"

Andreas Döhler andreas.doehler at gmail.com
Mon Feb 2 19:48:01 CET 2015


What type of upgrade do you use?
Is it a complete OMD build with the actual version or is it a Check_MK only
upgrade inside a 1.20 OMD?

Best regards
Andreas

mathias.decker at mdc-berlin.de <mathias.decker at mdc-berlin.de> schrieb am Thu
Jan 29 2015 at 19:52:24:

> Strangly I still got this problem on every upgrade – can this be fixed
> somehow – can this be reverted in git or do I need to change something, if
> so à what?
>
>
>
> --
>
>
>
> *From:* Andreas Döhler [mailto:andreas.doehler at gmail.com]
> *Sent:* Mittwoch, 5. November 2014 09:05
> *To:* Decker, Mathias; Mike Hanby; checkmk-en at lists.mathias-kettner.de
> *Subject:* Re: [Check_mk (english)] Upgraded to Check_mk 1.2.5i6p1,
> Multisite now errors "Filter is not defined"
>
>
>
> The problem are two commits made short before this release.
>
>
> http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a14a911ce1211984c2be2b4c30906b3cffe81bf4
>
>
> http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d75aa40e62332c75055d86dda7a8f212446f95dc
>
>
>
> This can be reverted with a edit of htmllib.py and after this edit the
> webinterface is working again.
>
> There are only two lines edited.
>
>
>
>             # Load all specified style sheets and all user style sheets in
> htdocs/css
>
>             for css in [ "check_mk" ] + stylesheets + [ 'ie' ]:
>
>                 if defaults.omd_root:
>
> >                   fname = '%s.css' % css
>
>                 else:
>
>                     fname = '%s.css' % css
>
>
>
>                 if css == 'ie':
>
>                     self.write('<!--[if IE]>\n')
>
>                 self.write('<link rel="stylesheet" type="text/css"
> href="%s" />\n' % fname)
>
>                 if css == 'ie':
>
>                     self.write('<![endif]-->\n')
>
>
>
>             self.add_custom_style_sheet()
>
>
>
>             # Load specified Javascript files
>
>             for js in [ "checkmk", "hover" ] + javascripts:
>
>                 if defaults.omd_root:
>
> >                   fname = 'js/%s.js' % js
>
>                 else:
>
>                     fname = 'js/%s.js' % js
>
>                 self.write('<script type="text/javascript"
> src="%s"></script>\n' % fname)
>
>
>
> br
>
> Andreas
>
>
>
>
>
> mathias.decker at mdc-berlin.de <mathias.decker at mdc-berlin.de> schrieb am
> Sat Nov 01 2014 at 16:42:56:
>
> Simply delete the file
>
> /omd/sites/uabeng/local/share/check_mk/web/plugins/views/filters.py
>
>
>
> Furthermore you might need to rename or copy all css and js files from *
> *name**.css to **name**-1.2.5i6p1.css otherwise the ui will not load
> correctly (at least I need to do so)
>
>
>
> Although the search is broken…. Looks like a very buggy release this time
>
>
>
> --
>
>
>
> *From:* checkmk-en-bounces at lists.mathias-kettner.de [mailto:
> checkmk-en-bounces at lists.mathias-kettner.de] *On Behalf Of *Mike Hanby
> *Sent:* Samstag, 1. November 2014 03:22
> *To:* checkmk-en at lists.mathias-kettner.de
> *Subject:* [Check_mk (english)] Upgraded to Check_mk 1.2.5i6p1, Multisite
> now errors "Filter is not defined"
>
>
>
> Howdy,
>
> I upgraded a site from 1.2.5i5p4 to 1.2.5i6p1, restarted check_mk and now
> I get the following error when attempting to load the Multisite web
> interface:
>
> Internal error    not logged in
> GET/POST variables of this page
> POST / GET Variables
> debug    1
> Internal error: name 'Filter' is not defined
> Traceback (most recent call last):
>   File "/omd/sites/uabeng/local/share/check_mk/web/htdocs/index.py", line
> 138, in handler
>     load_all_plugins()
>   File "/omd/sites/uabeng/local/share/check_mk/web/htdocs/index.py", line
> 76, in load_all_plugins
>     module.load_plugins()
>   File "/omd/sites/uabeng/local/share/check_mk/web/htdocs/views.py", line
> 59, in load_plugins
>     load_web_plugins("views", globals())
>   File "/omd/sites/uabeng/local/share/check_mk/web/htdocs/lib.py", line
> 159, in load_web_plugins
>     execfile(file_path, globalvars)
>   File
> "/omd/sites/uabeng/local/share/check_mk/web/plugins/views/filters.py", line
> 30, in <module>
>     class FilterText(Filter):
> NameError: name 'Filter' is not defined
>
> _______________________________________________
> checkmk-en mailing list
> checkmk-en at lists.mathias-kettner.de
> http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/checkmk-en/attachments/20150202/a7710e86/attachment.html>


More information about the checkmk-en mailing list