TypeError: Object of type bytes is not JSON serializable

hello everyone

I use UCS 5 and am on the latest Update.
i have an issue creating and editing users. the first noticeable problem is that I always get

An Error Occured;
Internal server error: The module process died unexpectedly.

inside the UMC when I’m in the users app.

then when I try to add or edit an user it tells me:

The following properties need to be specified or are invalid:
Primary group

and there is no way to select a primary group. it also happens when I put it in manually. when I check the group-app it shows me the right users.

when I check the log:
/var/log/univention/management-console-module-udm.log
it tells me:

02.08.21 17:28:40.203  DEBUG_INIT
02.08.21 17:28:40.567  MODULE      ( PROCESS ) : Loading python module.
02.08.21 17:28:40.764  MODULE      ( PROCESS ) : Imported python module.
02.08.21 17:28:40.764  MODULE      ( PROCESS ) : Module instance created.
02.08.21 17:28:40.764  MODULE      ( PROCESS ) : Module socket initialized.
02.08.21 17:28:40.787  MODULE      ( PROCESS ) : Setting user LDAP DN 'uid=Administrator,cn=myusers,cn=users,dc=domainname,dc=tld'
02.08.21 17:28:40.787  MODULE      ( PROCESS ) : Setting auth type to None
02.08.21 17:28:40.787  MODULE      ( PROCESS ) : Initializing module.
02.08.21 17:28:40.797  MAIN        ( PROCESS ) : LDAP bind for user 'uid=Administrator,cn=myusers,cn=users,dc=domainname,dc=tld'.
02.08.21 17:28:40.814  MAIN        ( PROCESS ) : LDAP bind for user 'uid=Administrator,cn=myusers,cn=users,dc=domainname,dc=tld'.
02.08.21 17:28:40.825  MAIN        ( PROCESS ) : LDAP bind for user 'uid=Administrator,cn=myusers,cn=users,dc=domainname,dc=tld'.
02.08.21 17:28:40.826  MAIN        ( PROCESS ) : LDAP bind for user 'uid=Administrator,cn=myusers,cn=users,dc=domainname,dc=tld'.
02.08.21 17:28:40.829  MAIN        ( PROCESS ) : LDAP bind for user 'uid=Administrator,cn=myusers,cn=users,dc=domainname,dc=tld'.
02.08.21 17:28:40.831  MAIN        ( PROCESS ) : LDAP bind for user 'uid=Administrator,cn=myusers,cn=users,dc=domainname,dc=tld'.
02.08.21 17:28:40.859  ADMIN       ( WARN    ) : mapValueDecoded returns a list for service. This is probably not wanted?
02.08.21 17:28:40.860  ADMIN       ( WARN    ) : mapValueDecoded returns a list for service. This is probably not wanted?
02.08.21 17:28:40.865  ADMIN       ( WARN    ) : mapValueDecoded returns a list for service. This is probably not wanted?
02.08.21 17:28:40.865  ADMIN       ( WARN    ) : mapValueDecoded returns a list for service. This is probably not wanted?
02.08.21 17:28:40.877  ADMIN       ( WARN    ) : mapValueDecoded returns a list for service. This is probably not wanted?
02.08.21 17:28:41.237  PROTOCOL    ( ERROR   ) : Could not JSON serialize message: {'result': [{'module': 'udm', 'flavor': 'users/user', 'objectType': 'users/user', 'id': '2002', 'label': b'Administrator', 'icon': 'udm-users-user'},  None, 'headers': {'Vary': 'Content-Language', 'Content-Language': 'en-US'}, 'error': None, 'reason': None, 'status': 200}
*> removed some content here as it listed all my users like this.*
02.08.21 17:28:41.237  MAIN        ( WARN    ) : Shutting down all open connections
02.08.21 17:28:41.241  MODULE      ( ERROR   ) : Traceback (most recent call last):
  File "/usr/sbin/univention-management-console-module", line 122, in <module>
    notifier.loop()
  File "/usr/lib/python3/dist-packages/notifier/nf_generic.py", line 306, in loop
    step()
  File "/usr/lib/python3/dist-packages/notifier/nf_generic.py", line 297, in step
    __min_timer = dispatch.dispatcher_run()
  File "/usr/lib/python3/dist-packages/notifier/dispatch.py", line 75, in dispatcher_run
    if not disp():
  File "/usr/lib/python3/dist-packages/notifier/threads.py", line 161, in _simple_threads_dispatcher
    task.announce()
  File "/usr/lib/python3/dist-packages/notifier/threads.py", line 139, in announce
    self._callback(self, self._result)
  File "/usr/lib/python3/dist-packages/notifier/__init__.py", line 105, in __call__
    return self._function(*tmp, **self._kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 283, in thread_finished_callback
    self.finished(request.id, result)
  File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 465, in finished
    self.result(res)
  File "/usr/lib/python3/dist-packages/univention/management/console/base.py", line 469, in result
    self.signal_emit('success', response)
  File "/usr/lib/python3/dist-packages/notifier/signals.py", line 87, in signal_emit
    self.__signals[signal].emit(*args)
  File "/usr/lib/python3/dist-packages/notifier/signals.py", line 50, in emit
    if cb(*args):
  File "/usr/lib/python3/dist-packages/notifier/__init__.py", line 105, in __call__
    return self._function(*tmp, **self._kwargs)
  File "/usr/lib/python3/dist-packages/univention/management/console/protocol/modserver.py", line 141, in _reply
    self.response(msg)
  File "/usr/lib/python3/dist-packages/univention/management/console/protocol/modserver.py", line 376, in response
    self.__queue += bytes(msg)
  File "/usr/lib/python3/dist-packages/univention/management/console/protocol/message.py", line 346, in __bytes__
    return Message._formattedMessage(self._id, self._type, self.mimetype, self.command, body, self.arguments)
  File "/usr/lib/python3/dist-packages/univention/management/console/protocol/message.py", line 123, in _formattedMessage
    data = json.dumps(body)
  File "/usr/lib/python3.7/json/__init__.py", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.7/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.7/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.7/json/encoder.py", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type bytes is not JSON serializable

system diagnostics and these tools don’t show any erros:
samba-tool drs kcc
samba-tool dbcheck
samba-tool dbcheck --cross-ncs

I created a new “Backup Directory Node”. But also there I’m not able to add/edit any users

This will be fixed by an Update.

Mastodon