Repository navigation
Description
Please verify that this bug has NOT been raised before.
- I checked and didn't find a similar issue
Describe the bug*
I just upgraded to 1.6.0 from 1.5.7 and got the following error message:
django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: openid_connect
I had INVENTREE_SOCIAL_BACKENDS=allauth.socialaccount.providers.openid_connect in my .env. After removing this environment variable, the upgrade worked and my inventree is running again (including OIDC login). I am not sure if this is intended? Maybe this happened because I also have a database entry for the OIDC application and the database and environment config are conflicting?
But from the code it seems like the issue is that the openid connect and saml providers are registered by default now and there is no deduplication check for the social backends?
InvenTree/src/backend/InvenTree/InvenTree/settings.py
Lines 996 to 1007 in b69beb9
| DEFAULT_SOCIAL = ['saml', 'openid_connect'] | |
| _SOCIAL_BACKENDS = list(dict.fromkeys([*DEFAULT_SOCIAL, *SOCIAL_BACKENDS])) | |
| # region auth | |
| for app in _SOCIAL_BACKENDS: # pragma: no cover | |
| # Ensure that the app starts with 'allauth.socialaccount.providers' | |
| social_prefix = 'allauth.socialaccount.providers.' | |
| if not app.startswith(social_prefix): | |
| app = social_prefix + app | |
| INSTALLED_APPS.append(app) |
Steps to Reproduce
- Set up inventree 1.6.0
- Set
INVENTREE_SOCIAL_BACKENDStoallauth.socialaccount.providers.openid_connect - Notice the error message
Expected behaviour
I would expect my setup to work as before since I haven't changed the OIDC config for over a year
Deployment Method
Docker
Version Information
Update from 1.5.7 to 1.6.0
Try to reproduce on the demo site
I did not try to reproduce
Is the bug reproducible on the demo site?
Not reproducible
Relevant log output
Traceback (most recent call last):
File "/home/inventree/src/backend/InvenTree/manage.py", line 26, in <module>
main()
~~~~^^
File "/home/inventree/src/backend/InvenTree/manage.py", line 21, in main
execute_from_command_line(sys.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/root/.local/lib/python3.14/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
~~~~~~~~~~~~~~~^^
File "/root/.local/lib/python3.14/site-packages/django/core/management/__init__.py", line 416, in execute
django.setup()
~~~~~~~~~~~~^^
File "/root/.local/lib/python3.14/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.14/site-packages/django/apps/registry.py", line 93, in populate
raise ImproperlyConfigured(
...<2 lines>...
)
django.core.exceptions.ImproperlyConfigured: Application labels aren't unique, duplicates: openid_connect
ERROR: InvenTree command failed: 'python3 manage.py collectplugins -v 0'
- Refer to the error messages in the log above for more information
Task 'plugins' failed with an error.
Task 'install' failed with an error.
Task 'update' failed with an error.I have reviewed this report for correctness and filled out all sections.
- I have checked this report. I acknowledge that filing bugs via AI agents without review might lead to being blocked.
Activity
SchrodingersGat commentedon Oct 20, 2026
@p-fruck thanks for reporting - see #13046
Deduplicate social backends (#13046) (#13052)
Deduplicate social backends (inventree#13046)
p-fruck commentedon Oct 21, 2026
@SchrodingersGat thank you once again for the quick response and fix 🥳