-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
bugIdentifies a bug which needs to be addressedIdentifies a bug which needs to be addressedquestionThis is a questionThis is a questiontriage:not-checkedItem was not checked by the core teamItem was not checked by the core team
Description
Please verify that this bug has NOT been raised before.
- I checked and didn't find a similar issue
Describe the bug*
When using a domain name without a tld like http://inventree/ as INVENTREE_SITE_URL, I get the following error.
inventree-worker | 2026-02-03 14:40:48,526 ERROR {'event': "Invalid SITE_URL value: 'http://inventree'. InvenTree server cannot start.", 'timestamp': '2026-02-03T14:40:48.525995Z', 'logger': 'inventree', 'level': 'error'}
inventree-worker | Invalid SITE_URL value: 'http://inventree'. InvenTree server cannot start.
inventree-worker | ERROR: InvenTree command failed: 'python3 manage.py wait_for_db'
inventree-worker | - Refer to the error messages in the log above for more information
inventree-worker exited with code 255 (restarting)
As I can far as see the error is thrown settings.py line 1098.
There is a related issue #5585 closed with #5615 but the BaseURLValidator(URLValidator) is not used in settings.py.
#1297 and #5577 might be related too.
I don't know if this is maybe a django issue, not an InvenTree issue
Steps to Reproduce
Using the official docker compose and
INVENTREE_SITE_URL="http://inventree/"
in .env
Expected behaviour
For InvenTree to accept a single-word domain without TLD
Deployment Method
Docker
Version Information
Screenshot since the Copy version information button does not do anything and I cannot select most of the dialog.
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
inventree-worker | 2026-02-03 14:40:48,526 ERROR {'event': "Invalid SITE_URL value: 'http://inventree'. InvenTree server cannot start.", 'timestamp': '2026-02-03T14:40:48.525995Z', 'logger': 'inventree', 'level': 'error'}
inventree-worker | Invalid SITE_URL value: 'http://inventree'. InvenTree server cannot start.
inventree-worker | ERROR: InvenTree command failed: 'python3 manage.py wait_for_db'
inventree-worker | - Refer to the error messages in the log above for more information
inventree-worker exited with code 255 (restarting)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIdentifies a bug which needs to be addressedIdentifies a bug which needs to be addressedquestionThis is a questionThis is a questiontriage:not-checkedItem was not checked by the core teamItem was not checked by the core team