netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Try to delete a username from netbox, some old plug-in in database does not allow me delete the user

Open kzhang1310 opened this issue 1 year ago • 0 comments

Deployment Type

Self-hosted

NetBox Version

v3.6.5

Python Version

3.9

Steps to Reproduce

  1. Select the username from Admin-> Authentication -> Users
  2. Click Delete 1 user
  3. with following error message

<class 'django.db.utils.IntegrityError'>

update or delete on table "auth_user" violates foreign key constraint "secrets_userkey_user_id_13ada46b_fk_auth_user_id" on table "netbox_secretstore_userkey" DETAIL: Key (id)=(40) is still referenced from table "netbox_secretstore_userkey".

Python version: 3.9.16 NetBox version: 3.6.5 Plugins: netbox_napalm_plugin: 0.1.7

We have uninstall the secretstore plugin long time ago.

Expected Behavior

not allow me delete the user

Observed Behavior

The complete exception is provided below: <class 'django.db.utils.IntegrityError'>

update or delete on table "auth_user" violates foreign key constraint "secrets_userkey_user_id_13ada46b_fk_auth_user_id" on table "netbox_secretstore_userkey" DETAIL: Key (id)=(40) is still referenced from table "netbox_secretstore_userkey".

Python version: 3.9.16 NetBox version: 3.6.5 Plugins: netbox_napalm_plugin: 0.1.7

We have uninstall the secretstore plugin long time ago.

kzhang1310 avatar Feb 21 '24 21:02 kzhang1310