Error when I open users from the settings

CMK version: 2.0.0p21 (CFE) Trial expired
OS version: Ubuntu 20.04 LTE

Hi Team,

I get below error when i open users from the settings. Please refer the attachment.

Error message:
Internal error: source code string cannot contain null bytes

An internal error occured while processing your request. You can report this issue to the Checkmk team to help fixing this issue. Please open the [crash report page]

did you open the crash report page to get more details :)?

Exception ValueError (source code string cannot contain null bytes)

File “/omd/sites/Netradyne/lib/python3/cmk/gui/wsgi/applications/checkmk.py”, line 165, in _process_request
response = page_handler()
File “/omd/sites/Netradyne/lib/python3/cmk/gui/wsgi/applications/utils.py”, line 59, in _call_auth
func()
File “/omd/sites/Netradyne/lib/python3/cmk/gui/pages.py”, line 186, in
return (lambda hc: lambda: hc().handle_page())(handle_class)
File “/omd/sites/Netradyne/lib/python3/cmk/gui/pages.py”, line 48, in handle_page
self.page()
File “/omd/sites/Netradyne/lib/python3/cmk/gui/pages.py”, line 158, in
“page”: lambda self: self._wrapped_callable0
File “/omd/sites/Netradyne/lib/python3/cmk/gui/wato/page_handler.py”, line 92, in page_handler
_wato_page_handler(current_mode, mode_permissions, mode_class)
File “/omd/sites/Netradyne/lib/python3/cmk/gui/wato/page_handler.py”, line 101, in _wato_page_handler
mode = mode_class()
File “/omd/sites/Netradyne/lib/python3/cmk/gui/wato/pages/users.py”, line 95, in init
self._job_snapshot = userdb.UserSyncBackgroundJob().get_status_snapshot()
File “/omd/sites/Netradyne/lib/python3/cmk/gui/gui_background_job.py”, line 210, in get_status_snapshot
return GUIBackgroundStatusSnapshot(self)
File “/omd/sites/Netradyne/lib/python3/cmk/gui/gui_background_job.py”, line 250, in init
self._job_status = job.get_status()
File “/omd/sites/Netradyne/lib/python3/cmk/gui/background_job.py”, line 430, in get_status
status = self._jobstatus.get_status_from_file()
File “/omd/sites/Netradyne/lib/python3/cmk/gui/background_job.py”, line 558, in get_status_from_file
data = store.load_object_from_file(str(self._jobstatus_path), default={}, lock=True)
File “/omd/sites/Netradyne/lib/python3/cmk/utils/store.py”, line 204, in load_object_from_file
return ast.literal_eval(content)
File “/omd/sites/Netradyne/lib/python3.8/ast.py”, line 59, in literal_eval
node_or_string = parse(node_or_string, mode=‘eval’)
File “/omd/sites/Netradyne/lib/python3.8/ast.py”, line 47, in parse
return compile(source, filename, mode, flags,

Looks like maybe the background job status files are corrupt.

2 suggestions:

  1. move the files from /omd/sites/Netradyne/var/check_mk/background_jobs/user_sync to a backup folder
  2. I don’t see any confidential information, so maybe share the content of the 3 files in this folder here.

server:/opt/omd/sites/Netradyne/var/check_mk/background_jobs/user_sync# ls -ltr
total 4
-rw-rw---- 1 Netradyne Netradyne 0 Apr 6 09:19 result_message
-rw-rw---- 1 Netradyne Netradyne 0 Apr 6 09:19 progress_update
-rw-rw---- 1 Netradyne Netradyne 295 Apr 6 09:19 jobstatus.mk

Hi,

did you move the files after the ls? i.e. mv /opt/omd/sites/Netradyne/var/check_mk/background_jobs/user_sync /opt/omd/sites/Netradyne/var/check_mk/background_jobs/user_sync_old_apr_06

Hi @gstolz

My Issues with users page is resolved after removing jobstatus.mk from /opt/omd/sites/Netradyne/var/check_mk/background_jobs/user_sync

now the page loads perfectly.
Thank you so much for your help and quick resolution of my issues.

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.