allianceauth icon indicating copy to clipboard operation
allianceauth copied to clipboard

ERROR [trigger_service_group_update:30]

Open ppfeufer opened this issue 6 years ago • 2 comments

Hey there,

Getting from time to time this error, as far as I can tell, this is when someone leaves a corp. It's not only Discord, SMF as well

Exception running update_groups for services module discord on user Jackson_Aldard

Traceback (most recent call last):
  File "/home/yf_auth/venv/auth/lib/python3.5/site-packages/allianceauth/services/signals.py", line 27, in trigger_service_group_update
    svc.validate_user(instance)
  File "/home/yf_auth/venv/auth/lib/python3.5/site-packages/allianceauth/services/modules/discord/auth_hooks.py", line 35, in validate_user
    self.delete_user(user, notify_user=True)
  File "/home/yf_auth/venv/auth/lib/python3.5/site-packages/allianceauth/services/modules/discord/auth_hooks.py", line 25, in delete_user
    return DiscordTasks.delete_user(user, notify_user=notify_user)
  File "/home/yf_auth/venv/auth/lib/python3.5/site-packages/allianceauth/services/modules/discord/tasks.py", line 42, in delete_user
    user.discord.delete()
  File "/home/yf_auth/venv/auth/lib/python3.5/site-packages/django/db/models/base.py", line 886, in delete
    (self._meta.object_name, self._meta.pk.attname)
AssertionError: DiscordUser object can't be deleted because its user_id attribute is set to None.

ppfeufer avatar May 22 '18 05:05 ppfeufer

This is related to #896 - a bug that's been ignored for quite a while as it had no functional impact. If you can confirm your users are properly being removed from services I'd say just ignore these messages for now.

Adarnof avatar May 24 '18 03:05 Adarnof

They are removed from services

ppfeufer avatar May 24 '18 06:05 ppfeufer