Php.ini path for increase memory limit

CMK version: 2.3 RAW Edition
OS version: Ubuntu Server 22.04 LTS (minimized)

Hello everyone,

after updating CheckMK to the latest version I find myself with the Parent/Child Topology page returning an error 500. Reading other posts I saw that the solution is to increase the PHP memory_limit value however I didn’t understand the file path. Should I look for it in /etc/php/8.1/ or in /opt/omd/MYSITE/ ?

Do you see more information about the error in the ~/var/log/web.log ?

Hi @chauhan_sudhir,

this is the contents of the file you pointed me to

Traceback (most recent call last):
  File "/omd/sites/MySite/lib/python3/cmk/gui/wsgi/applications/checkmk.py", line 183, in _process_request
    resp = page_handler()
           ^^^^^^^^^^^^^^
  File "/omd/sites/MySite/lib/python3/cmk/gui/wsgi/applications/utils.py", line 112, in _call_auth
    func()
  File "/omd/sites/MySite/lib/python3/cmk/gui/pages.py", line 187, in wrapper
    return hc().handle_page()
           ^^^^^^^^^^^^^^^^^^
  File "/omd/sites/MySite/lib/python3/cmk/gui/pages.py", line 51, in handle_page
    self.page()
  File "/omd/sites/MySite/lib/python3/cmk/gui/pages.py", line 146, in <lambda>
    "page": lambda self: self._wrapped_callable[0](),
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/omd/sites/MySite/lib/python3/cmk/gui/wato/page_handler.py", line 88, in page_handler
    _wato_page_handler(current_mode, mode_instance)
  File "/omd/sites/MySite/lib/python3/cmk/gui/wato/page_handler.py", line 100, in _wato_page_handler

I also found a file web.log.1 and this is the content

2024-04-03 09:30:21,794 [40] [cmk.gui.wsgi.app 195279] Exception on /MySite/check_mk/parent_child_topology.py [GET]
Traceback (most recent call last):
  File "/omd/sites/MySite/lib/python3/cmk/gui/wsgi/applications/checkmk.py", line 183, in _process_request
    resp = page_handler()
           ^^^^^^^^^^^^^^
  File "/omd/sites/MySite/lib/python3/cmk/gui/wsgi/applications/utils.py", line 112, in _call_auth
    func()
  File "/omd/sites/MySite/lib/python3/cmk/gui/pages.py", line 187, in wrapper
    return hc().handle_page()
           ^^^^^^^^^^^^^^^^^^
  File "/omd/sites/MySite/lib/python3/cmk/gui/pages.py", line 51, in handle_page
    self.page()
  File "/omd/sites/MySite/lib/python3/cmk/gui/nodevis/topology.py", line 204, in page
    self.show_topology()
  File "/omd/sites/MySite/lib/python3/cmk/gui/nodevis/topology.py", line 216, in show_topology
    self.show_topology_content()
  File "/omd/sites/MySite/lib/python3/cmk/gui/nodevis/topology.py", line 221, in show_topology_content
    topology_configuration = get_topology_configuration(
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/omd/sites/MySite/lib/python3/cmk/gui/nodevis/topology.py", line 1591, in get_topology_configuration
    topology_configuration = TopologyConfiguration.parse(serialized_settings)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/omd/sites/MySite/lib/python3/cmk/gui/nodevis/type_defs.py", line 197, in parse
    cls._migrate_legacy_data(serialized_config)
  File "/omd/sites/MySite/lib/python3/cmk/gui/nodevis/type_defs.py", line 224, in _migrate_legacy_data
    "filter": TopologyFilterConfiguration().ident,
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 3, in __init__
TypeError: 'int' object is not callable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/omd/sites/MySite/lib/python3.12/site-packages/flask/app.py", line 1463, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/omd/sites/MySite/lib/python3.12/site-packages/flask/app.py", line 873, in full_dispatch_request
    return self.finalize_request(rv)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/omd/sites/MySite/lib/python3.12/site-packages/flask/app.py", line 892, in finalize_request
    response = self.make_response(rv)
"web.log.1" 108L, 6935B

Probably ~/var/log/apache/error_log will tell you more about the PHP involvement.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.