Checkmk 2.1.0p30 Internal error: unsupported operand type(s) for +: 'NoneType' and 'int'

Can someone help me with issue I’m still having since … I cannot tell exactly but my best guess is I think it’s from 2.1.0 p7

CMK version: 2.1.0p30
OS version: Ubuntu 20.04.6 LTS

**Error message: Internal error: unsupported operand type(s) for +: ‘NoneType’ and ‘int’ **

Crash Report

File “/omd/sites/STE/lib/python3/cmk/gui/wsgi/applications/checkmk.py”, line 241, in _process_request
resp = page_handler()
File “/omd/sites/STE/lib/python3/cmk/gui/wsgi/applications/utils.py”, line 56, in _call_auth
func()
File “/omd/sites/STE/lib/python3/cmk/gui/pages.py”, line 195, in
return (lambda hc: lambda: hc().handle_page())(handle_class)
File “/omd/sites/STE/lib/python3/cmk/gui/pages.py”, line 48, in handle_page
self.page()
File “/omd/sites/STE/lib/python3/cmk/gui/pages.py”, line 165, in
“page”: lambda self: self._wrapped_callable0,
File “/omd/sites/STE/lib/python3/cmk/gui/wato/page_handler.py”, line 93, in page_handler
_wato_page_handler(current_mode, mode_permissions, mode_class)
File “/omd/sites/STE/lib/python3/cmk/gui/wato/page_handler.py”, line 131, in _wato_page_handler
update_config_generation()
File “/omd/sites/STE/lib/python3/cmk/gui/watolib/activate_changes.py”, line 2657, in update_config_generation
_config_generation_path(), _get_current_config_generation(lock=True) + 1

Hi @mehdiyahyaoui,

can you share when you can see the crash report?
Is it a crash of a service or where does it happen?

Did you updated from 2.1.0p7 to 2.1.0p30? Which edition do you use?

Any errors during the update?

Thanks in advance.

Norm

Hello @Norm
Actually this glitch is appearing in different UI

  • Running connection test on Host config
  • when I modify and save a rule (agent / service / discovery)
  • when I bake new agent
  • when I modify a BI

this is an example of a crash report I get when I try to update a check state BI rule




I must mention that this is purely UI and it is not blocking my modifications so far - as a workaround I can fall back to previous page in my browser, refresh and then apply the changes …

Did you updated from 2.1.0p7 to 2.1.0p30? Which edition do you use?

No I was steady following up the release frequency and I do not recall having any issues in the update process

I was using the free version because I was monitoring a very small infrastructure 20 hosts …

Thank you again @Norm for the support

I hope you’ll provide some insight on this mind boggling issue I have.

Mehdi

PS: you’ll find attached the crash reports extract as csv
They keep stacking up :slight_smile:
Rest_api and gui but always with TypeError: unsupported operand type(s) for +: ‘NoneType’ and ‘int’ designation

Checkmk_Crash_STE_35404c60-07c4-11ed-bbae-1732e7bded5d_2022-07-20_01-44-41.tar.gz.txt (1.6 KB)

Hello @Norm
Is there any chance you could look into this and provide some insights.

Kind Regards

Hi @mehdiyahyaoui,

I can’t tell the origin of the error from the crashlog.
To troubleshoot this further I would look into installed thirdparty MKP’s, Scripts, Modifications and deactivate or remove them.

Change into the site user context and execute the following command to find all the modifications of your site:

OMD[mysite]:~$ find -L ~/local -type f

The easiest would be to remove all the modified files and see if your error still occurs. Make sure to back up your files first. :slight_smile:

If you only worked with MKP’s you should use the mkp commands like:

OMD[mysite]:~$ mkp list

or use the webui for it.

Looking forward to your response.
Norm

Exactaky the same issue for me. no results from these commands:

image

no one knows handle this problems!

If you can do a “cmk --debug -vvU” on the command line then it is “only” a GUI problem. With error messages here it is more a core / config generation problem.
Can you please check this?

Unfortunately, I am unable to send these logs here. While there are no errors explicitly mentioned in the logs, the issue lies in the fact that these errors occur, leading to a malfunction in the notification system.

If there is no error on the command line then it means it is purely GUI based problem. You are sure that no modified files existing inside the “~/local/” structure?

Hello @andreas-doehler

Not sure how can I check the “structure” but I think it is normal to have a bunch of modified files in this folder - cf added plugin /scripts / bakery … and UI elements such as icons…
1841 files on the output of “find -L ~/local -type f”
Is there a way to reset somehow the GUI base structure file without touching all the instance related ruleset and configuration ???

sure that there is o modified files existing inside the “~/local/” structure. this error is a very bad situation, and the only reply that i have it is to deploy a new environment.

The problem is here that no one of us here knows what is modified or installed inside your instance. I would start with the changed or added GUI extensions. As it is a GUI problem it is possible that you can solve it if you move the GUI extensions to some folder outside of your instance.
GUI extensions → ~/local/share/check_mk/web/plugins/…

No plugins or extensions are currently in use.

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.