Crash on updating group

11.03.19 21:10:39.360  LISTENER    ( ERROR   ) : gafw: HttpError 404 trying to create 'members' with properties {'role': 'MEMBER', 'id': '102334945787518964524'} and key {'memberKey': '1023349457875189645
24'}.
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/googleapps/handler.py", line 488, in _create_object
    return getattr(self.service, object_type)().insert(body=properties, **kwargs).execute()
  File "/usr/lib/python2.7/dist-packages/oauth2client/util.py", line 137, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/googleapiclient/http.py", line 838, in execute
    raise HttpError(resp, content, uri=self.uri)
HttpError: <HttpError 404 when requesting https://www.googleapis.com/admin/directory/v1/groups/00rjefff2g2elrq/members?alt=json&prettyPrint=false returned "Resource Not Found: groupKey">
Traceback (most recent call last):
  File "/usr/lib/univention-directory-listener/system/google-apps-group.py", line 158, in handler
    ol.modify_google_group(old, new)
  File "/usr/lib/pymodules/python2.7/univention/googleapps/listener.py", line 293, in modify_google_group
    self.gh.add_member_to_group(group_id, udm_user["UniventionGoogleAppsObjectID"])
  File "/usr/lib/pymodules/python2.7/univention/googleapps/handler.py", line 274, in add_member_to_group
    return self._create_object("members", properties, modify_args, groupKey=group_id)
  File "/usr/lib/pymodules/python2.7/univention/googleapps/handler.py", line 488, in _create_object
    return getattr(self.service, object_type)().insert(body=properties, **kwargs).execute()
  File "/usr/lib/python2.7/dist-packages/oauth2client/util.py", line 137, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/googleapiclient/http.py", line 838, in execute
    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 404 when requesting https://www.googleapis.com/admin/directory/v1/groups/00rjefff2g2elrq/members?alt=json&prettyPrint=false returned "Resource Not Found: group
Key">

Not sure, but possible the gapps module tries to update a non existing group.

Can’t find anything on listener.log (and rotates) and google audit log, that this group ever exist.

One more question:

How to work around? I need to sync that group. Just deleting the google ID?

Created the Group manually in google and changed the ID in ldap.

Mastodon