[Check_mk (english)] Internal error: 'list' object has no attribute 'items'

Hi,

I am getting the error Internal error: 'list' object has no attribute 'items' when selecting a host on a new installation of check_mk 1.2.8p26 on CentOS7 with python 2.7.

Has anyone come across the same error and is there a known fix for it?

Time 2018-05-03 09:27:44
Operating System CentOS Linux release 7.4.1708 (Core)
Check_MK Version 1.2.8p26
Python Version 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]
Exception
AttributeError ('list' object has no attribute 'items')
Traceback
  File "/usr/share/check_mk/web/htdocs/index.py", line 135, in handler
    handler()

  File "/usr/share/check_mk/web/htdocs/views.py", line 793, in page_view
    show_view(view, True, True, True)

  File "/usr/share/check_mk/web/htdocs/views.py", line 1174, in show_view
    browser_reload)

  File "/usr/share/check_mk/web/htdocs/views.py", line 1281, in render_view
    show_checkboxes and not html.do_actions())

  File "/usr/share/check_mk/web/plugins/views/layouts.py", line 94, in render_single_dataset
    paint(p, row)

  File "/usr/share/check_mk/web/htdocs/views.py", line 2103, in paint
    tdclass, content = prepare_paint(p, row)

  File "/usr/share/check_mk/web/htdocs/views.py", line 2140, in prepare_paint
    tdclass, content = paint_painter(painter, row)

  File "/usr/share/check_mk/web/htdocs/views.py", line 2125, in paint_painter
    return painter["paint"](row)

  File "/usr/share/check_mk/web/plugins/views/painters.py", line 1195, in <lambda>
    "paint" : lambda row: paint_custom_vars('service', row),

  File "/usr/share/check_mk/web/plugins/views/painters.py", line 1182, in paint_custom_vars
    items = row[what + "_custom_variables"].items()

···

--
Kind Regards
Shakeel

Hi Shakeel,

can you try if you get the same error with the latest 1.2.8 version? That should be p27.

What view do you open to get this error?

Best regards

Andreas

···

Shakeel ms12.work@gmail.com schrieb am Do., 3. Mai 2018 um 11:29 Uhr:

Hi,

I am getting the error Internal error: ‘list’ object has no attribute ‘items’ when selecting a host on a new installation of check_mk 1.2.8p26 on CentOS7 with python 2.7.

Has anyone come across the same error and is there a known fix for it?

Time 2018-05-03 09:27:44

Operating System CentOS Linux release 7.4.1708 (Core)

Check_MK Version 1.2.8p26

Python Version 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]

Exception

AttributeError (‘list’ object has no attribute ‘items’)

Traceback

File “/usr/share/check_mk/web/htdocs/index.py”, line 135, in handler

handler()

File “/usr/share/check_mk/web/htdocs/views.py”, line 793, in page_view

show_view(view, True, True, True)

File “/usr/share/check_mk/web/htdocs/views.py”, line 1174, in show_view

browser_reload)

File “/usr/share/check_mk/web/htdocs/views.py”, line 1281, in render_view

show_checkboxes and not html.do_actions())

File “/usr/share/check_mk/web/plugins/views/layouts.py”, line 94, in render_single_dataset

paint(p, row)

File “/usr/share/check_mk/web/htdocs/views.py”, line 2103, in paint

tdclass, content = prepare_paint(p, row)

File “/usr/share/check_mk/web/htdocs/views.py”, line 2140, in prepare_paint

tdclass, content = paint_painter(painter, row)

File “/usr/share/check_mk/web/htdocs/views.py”, line 2125, in paint_painter

return painter["paint"](row)

File “/usr/share/check_mk/web/plugins/views/painters.py”, line 1195, in

"paint"   : lambda row: paint_custom_vars('service', row),

File “/usr/share/check_mk/web/plugins/views/painters.py”, line 1182, in paint_custom_vars

items = row[what + "_custom_variables"].items()

Kind Regards

Shakeel


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Hi Andreas,

    I am using the EPEL

check-mk package 1.2.8p26. They do not have the latest
version.

  The error occurs when I select a service from either the service

view or a host.

Kind Regards

Shakeel

···

On 03/05/18 13:01, Andreas Döhler
wrote:

Hi Shakeel,

      can you try if you get the same error with the latest 1.2.8

version? That should be p27.

What view do you open to get this error?

Best regards

Andreas

Shakeel <ms12.work@gmail.com >
schrieb am Do., 3. Mai 2018 um 11:29 Uhr:

Hi,

      I am getting the error Internal error: 'list' object has no

attribute ‘items’ when selecting a host on a new installation
of check_mk 1.2.8p26 on CentOS7 with python 2.7.

      Has anyone come across the same error and is there a known fix

for it?

      Time    2018-05-03 09:27:44

      Operating System        CentOS Linux release 7.4.1708 (Core)

      Check_MK Version        1.2.8p26

      Python Version  2.7.5 (default, Aug 4 2017, 00:39:18) [GCC

4.8.5 20150623 (Red Hat 4.8.5-16)]

      Exception       

      AttributeError ('list' object has no attribute 'items')

      Traceback       

        File "/usr/share/check_mk/web/htdocs/index.py", line 135, in

handler

          handler()



        File "/usr/share/check_mk/web/htdocs/views.py", line 793, in

page_view

          show_view(view, True, True, True)



        File "/usr/share/check_mk/web/htdocs/views.py", line 1174,

in show_view

          browser_reload)



        File "/usr/share/check_mk/web/htdocs/views.py", line 1281,

in render_view

          show_checkboxes and not html.do_actions())



        File "/usr/share/check_mk/web/plugins/views/layouts.py",

line 94, in render_single_dataset

          paint(p, row)



        File "/usr/share/check_mk/web/htdocs/views.py", line 2103,

in paint

          tdclass, content = prepare_paint(p, row)



        File "/usr/share/check_mk/web/htdocs/views.py", line 2140,

in prepare_paint

          tdclass, content = paint_painter(painter, row)



        File "/usr/share/check_mk/web/htdocs/views.py", line 2125,

in paint_painter

          return painter["paint"](row)



        File "/usr/share/check_mk/web/plugins/views/painters.py",

line 1195, in

          "paint"   : lambda row: paint_custom_vars('service', row),



        File "/usr/share/check_mk/web/plugins/views/painters.py",

line 1182, in paint_custom_vars

          items = row[what + "_custom_variables"].items()



      --

      Kind Regards

      Shakeel

      _______________________________________________

      checkmk-en mailing list

      checkmk-en@lists.mathias-kettner.de

      [http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)
-- Kind Regards
Shakeel Suffee

Ok this is something else. It looks like a problem inside the package.
If i check with a OMD / Check_MK Raw version with this check_mk version mentioned i don’t get this error message.

Can you test on your system with an Check_MK Raw package from mathias-kettner.com if you get the same errors.

https://mathias-kettner.de/support/1.2.8p26/check-mk-raw-1.2.8p26-el7-49.x86_64.rpm

If the same error happens there then it is a problem on your base system. But i don’t think so.

Best regards

Andreas

···

Shakeel ms12.work@gmail.com schrieb am Do., 3. Mai 2018 um 14:22 Uhr:

Hi Andreas,

    I am using the EPEL

check-mk package 1.2.8p26. They do not have the latest
version.

  The error occurs when I select a service from either the service

view or a host.

Kind Regards

Shakeel

  On 03/05/18 13:01, Andreas Döhler > wrote:

Hi Shakeel,

      can you try if you get the same error with the latest 1.2.8

version? That should be p27.

What view do you open to get this error?

Best regards

Andreas

Shakeel <ms12.work@gmail.com >
schrieb am Do., 3. Mai 2018 um 11:29 Uhr:

Hi,

      I am getting the error Internal error: 'list' object has no

attribute ‘items’ when selecting a host on a new installation
of check_mk 1.2.8p26 on CentOS7 with python 2.7.

      Has anyone come across the same error and is there a known fix

for it?

      Time    2018-05-03 09:27:44

      Operating System        CentOS Linux release 7.4.1708 (Core)

      Check_MK Version        1.2.8p26

      Python Version  2.7.5 (default, Aug 4 2017, 00:39:18) [GCC

4.8.5 20150623 (Red Hat 4.8.5-16)]

      Exception       

      AttributeError ('list' object has no attribute 'items')

      Traceback       

        File "/usr/share/check_mk/web/htdocs/index.py", line 135, in

handler

          handler()



        File "/usr/share/check_mk/web/htdocs/views.py", line 793, in

page_view

          show_view(view, True, True, True)



        File "/usr/share/check_mk/web/htdocs/views.py", line 1174,

in show_view

          browser_reload)



        File "/usr/share/check_mk/web/htdocs/views.py", line 1281,

in render_view

          show_checkboxes and not html.do_actions())



        File "/usr/share/check_mk/web/plugins/views/layouts.py",

line 94, in render_single_dataset

          paint(p, row)



        File "/usr/share/check_mk/web/htdocs/views.py", line 2103,

in paint

          tdclass, content = prepare_paint(p, row)



        File "/usr/share/check_mk/web/htdocs/views.py", line 2140,

in prepare_paint

          tdclass, content = paint_painter(painter, row)



        File "/usr/share/check_mk/web/htdocs/views.py", line 2125,

in paint_painter

          return painter["paint"](row)



        File "/usr/share/check_mk/web/plugins/views/painters.py",

line 1195, in

          "paint"   : lambda row: paint_custom_vars('service', row),



        File "/usr/share/check_mk/web/plugins/views/painters.py",

line 1182, in paint_custom_vars

          items = row[what + "_custom_variables"].items()



      --

      Kind Regards

      Shakeel

      _______________________________________________

      checkmk-en mailing list

      checkmk-en@lists.mathias-kettner.de

      [http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)
-- Kind Regards
Shakeel Suffee

Hi Andreas,

    I've found the

answer to the error I am getting, it was in an earlier post

.

    I am running a shinken 2.4.3 backend as well.

Kind Regards

Shakeel.

···

http://lists.mathias-kettner.de/pipermail/checkmk-en/2017-November/024197.html
On 03/05/18 13:45, Andreas Döhler
wrote:

    Ok this is something else. It looks like a problem

inside the package.
If i check with a OMD / Check_MK Raw version with this
check_mk version mentioned i don’t get this error message.

      Can you test on your system with an Check_MK Raw package

from mathias-kettner.com if
you get the same errors.

https://mathias-kettner.de/support/1.2.8p26/check-mk-raw-1.2.8p26-el7-49.x86_64.rpm

      If the same error happens there then it is a problem on

your base system. But i don’t think so.

Best regards

Andreas

Shakeel <ms12.work@gmail.com >
schrieb am Do., 3. Mai 2018 um 14:22 Uhr:

Hi Andreas,

            I am using

the EPEL check-mk package 1.2.8p26. They do not
have the latest version.

          The error occurs when I select a service from either the

service view or a host.

Kind Regards

Shakeel

          On

03/05/18 13:01, Andreas Döhler wrote:

Hi Shakeel,

              can you try if you get the same error with the

latest 1.2.8 version? That should be p27.

What view do you open to get this error?

Best regards

Andreas

Shakeel <ms12.work@gmail.com >
schrieb am Do., 3. Mai 2018 um 11:29 Uhr:

Hi,

              I am getting the error Internal error: 'list' object

has no attribute ‘items’ when selecting a host on a
new installation of check_mk 1.2.8p26 on CentOS7 with
python 2.7.

              Has anyone come across the same error and is there a

known fix for it?

              Time    2018-05-03 09:27:44

              Operating System        CentOS Linux release 7.4.1708

(Core)

              Check_MK Version        1.2.8p26

              Python Version  2.7.5 (default, Aug 4 2017, 00:39:18)

[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]

              Exception       

              AttributeError ('list' object has no attribute

‘items’)

              Traceback       

                File "/usr/share/check_mk/web/htdocs/index.py", line

135, in handler

                  handler()



                File "/usr/share/check_mk/web/htdocs/views.py", line

793, in page_view

                  show_view(view, True, True, True)



                File "/usr/share/check_mk/web/htdocs/views.py", line

1174, in show_view

                  browser_reload)



                File "/usr/share/check_mk/web/htdocs/views.py", line

1281, in render_view

                  show_checkboxes and not html.do_actions())



                File

“/usr/share/check_mk/web/plugins/views/layouts.py”,
line 94, in render_single_dataset

                  paint(p, row)



                File "/usr/share/check_mk/web/htdocs/views.py", line

2103, in paint

                  tdclass, content = prepare_paint(p, row)



                File "/usr/share/check_mk/web/htdocs/views.py", line

2140, in prepare_paint

                  tdclass, content = paint_painter(painter, row)



                File "/usr/share/check_mk/web/htdocs/views.py", line

2125, in paint_painter

                  return painter["paint"](row)



                File

“/usr/share/check_mk/web/plugins/views/painters.py”,
line 1195, in

                  "paint"   : lambda row:

paint_custom_vars(‘service’, row),

                File

“/usr/share/check_mk/web/plugins/views/painters.py”,
line 1182, in paint_custom_vars

                  items = row[what + "_custom_variables"].items()



              --

              Kind Regards

              Shakeel

              _______________________________________________

              checkmk-en mailing list

              checkmk-en@lists.mathias-kettner.de

              [http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en](http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en)
-- Kind Regards
Shakeel Suffee
-- Kind Regards
Shakeel Suffee