netbox
netbox copied to clipboard
Try to delete a username from netbox, some old plug-in in database does not allow me delete the user
Deployment Type
Self-hosted
NetBox Version
v3.6.5
Python Version
3.9
Steps to Reproduce
- Select the username from Admin-> Authentication -> Users
- Click Delete 1 user
- 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.