Skip to content

error after 1.1.12 -> 1.2.0 "error: You're using the staticfiles app without having set the required STATIC_URL setting." #11342

Closed

Description

@lifeisafractal

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

I'm trying to upgrade from 1.1.12 -> 1.2.0 and the invoke update command is failing with:

[... truncated ...]
INVE-W3: Could not detect git information.
Unknown command: 'collectplugins'
Type 'manage.py help' for usage.
ERROR: InvenTree command failed: 'python3 manage.py collectplugins'
- Refer to the error messages in the log above for more information

I entered the container and tried to run manage.py and got this:

root@e775518f48bc:/home/inventree# ./src/backend/InvenTree/manage.py --help
INVE-W3: Could not detect git information.

Type 'manage.py help <subcommand>' for help on a specific subcommand.

Available subcommands:

[django]
    check
    compilemessages
    createcachetable
    dbshell
    diffsettings
    dumpdata
    flush
    inspectdb
    loaddata
    makemessages
    makemigrations
    migrate
    optimizemigration
    runserver
    sendtestemail
    shell
    showmigrations
    sqlflush
    sqlmigrate
    sqlsequencereset
    squashmigrations
    startapp
    startproject
    test
    testserver
Note that only Django core commands are listed as settings are not properly configured (error: You're using the staticfiles app without having set the required STATIC_URL setting.).

I highly bet this is due to my local configuration somehow, but if it worked on 1.1.12 if feels like it should work on 1.2.0. I looked through breaking changes and didn't see anything that seemed like it'd be relevant. I'm digging more into this, but wanted to open a bug in case this is obvious to a maintainer.

This feels similar to the already closed #9592, but this might just be a similar error presentation (Django mis-configuration) with different underlying root cause.

Steps to Reproduce

  1. Using docker install setup
  2. Start at 1.10.0
  3. Upgrade to 1.2.0
  4. run docker compose run --rm inventree-server invoke update
  5. Observe error

Note: It's very likely this is due to my configuration, not inherit to all InvenTree installs.

Expected behaviour

I expect to be able to upgrade to 1.2.0 from 1.1.10 or get a clearer error message with guidance on fixing the issue.

Deployment Method

Docker

Version Information

All from official docker releases:
Upgrading from 1.12.0
Upgrading to 1.2.0

I couldn't get the full version info as the server can't run right now.

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

Activity

  1. added
    bug
    question
    triage:not-checked
    on Feb 16, 2026
  2. SchrodingersGat commented on Feb 16, 2026

    @SchrodingersGat
    Member

    Unknown command: 'collectplugins'

    This indicates that the code is running outside of the proper environment context. Not sure how this could happen in the docker setup. Are you running the "canonical" docker install?

    Note: It's very likely this is due to my configuration, not inherit to all InvenTree installs.

    What makes you suspect this?

  3. added
    docker
    setup
    and removed
    bug
    triage:not-checked
    on Feb 16, 2026
  4. lifeisafractal commented on Feb 16, 2026

    @lifeisafractal
    ContributorAuthor

    Thanks for the quick reply! I started using Invetree back around version 0.12 so my configs have got a little crusty. I was holding on to the nginx config for a while as I couldn't get Caddy configured properly for my setup. I'm working on "re-cononicalizing" my setup before pushing any further. I'll report back after I've either fixed it, or still am hitting issues with a "canonical" setup.

    Side note, the immediate error around the staticfiles/STATUC_URL seems to be getting triggered by setting a custom site icon. This might be a red herring for a deeper issue however.

  5. lifeisafractal commented on Feb 16, 2026

    @lifeisafractal
    ContributorAuthor

    Okay, I got up to 1.2.0 by re-creating my whole docker setup from the current upstream (.env, Caddyfile, docker-compose.yaml). I'm now successfully on Caddy too.

    When I do set the INVENTREE_CUSTOM_LOGO env var things break. See otuput below. This seems similar to my original issue.

    Also, I was able to reproduce this by creating a completely fresh test instance. The act of setting INVENTREE_CUSTOM_LOGO breaks with the same error below as with my production data. Maybe I'm missing setting up a path somewhere in the configs or maybe this is a more systemic thing, not sure how many people are setting the custom logo.

    inventree-server  | Traceback (most recent call last):
    inventree-server  |   File "/root/.local/bin/gunicorn", line 8, in <module>
    inventree-server  |     sys.exit(run())
    inventree-server  |              ^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 66, in run
    inventree-server  |     WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]", prog=prog).run()
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/base.py", line 235, in run
    inventree-server  |     super().run()
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/base.py", line 71, in run
    inventree-server  |     Arbiter(self).run()
    inventree-server  |     ^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 63, in __init__
    inventree-server  |     self.setup(app)
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 128, in setup
    inventree-server  |     self.app.wsgi()
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/base.py", line 66, in wsgi
    inventree-server  |     self.callable = self.load()
    inventree-server  |                     ^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
    inventree-server  |     return self.load_wsgiapp()
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
    inventree-server  |     return util.import_app(self.app_uri)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/util.py", line 377, in import_app
    inventree-server  |     mod = importlib.import_module(module)
    inventree-server  |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    inventree-server  |     return _bootstrap._gcd_import(name[level:], package, level)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
    inventree-server  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
    inventree-server  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
    inventree-server  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
    inventree-server  |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
    inventree-server  |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/InvenTree/wsgi.py", line 19, in <module>
    inventree-server  |     application = get_wsgi_application()  # pragma: no cover
    inventree-server  |                   ^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
    inventree-server  |     django.setup(set_prefix=False)
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/__init__.py", line 19, in setup
    inventree-server  |     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
    inventree-server  |                       ^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/conf/__init__.py", line 81, in __getattr__
    inventree-server  |     self._setup(name)
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/conf/__init__.py", line 68, in _setup
    inventree-server  |     self._wrapped = Settings(settings_module)
    inventree-server  |                     ^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/conf/__init__.py", line 166, in __init__
    inventree-server  |     mod = importlib.import_module(self.SETTINGS_MODULE)
    inventree-server  |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    inventree-server  |     return _bootstrap._gcd_import(name[level:], package, level)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
    inventree-server  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
    inventree-server  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
    inventree-server  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
    inventree-server  |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
    inventree-server  |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/InvenTree/settings.py", line 1456, in <module>
    inventree-server  |     CUSTOM_LOGO = get_custom_file(
    inventree-server  |                   ^^^^^^^^^^^^^^^^
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/InvenTree/config.py", line 521, in get_custom_file
    inventree-server  |     static_storage = StaticFilesStorage()
    inventree-server  |                      ^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/contrib/staticfiles/storage.py", line 29, in __init__
    inventree-server  |     check_settings(base_url)
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/contrib/staticfiles/utils.py", line 49, in check_settings
    inventree-server  |     raise ImproperlyConfigured(
    inventree-server  | django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the required STATIC_URL setting.
    inventree-worker  | INVE-W3: Could not detect git information.
    inventree-worker  | Unknown command: 'wait_for_db'
    inventree-worker  | Type 'manage.py help' for usage.
    inventree-server exited with code 1 (restarting)
    
  6. SchrodingersGat commented on Feb 17, 2026

    @SchrodingersGat
    Member

    I have tried to break my setup in a similar way - but have not been able to.

    Are there any other custom config settings you are running here?

  7. LastEdit commented on Feb 18, 2026

    @LastEdit

    I just tried updating from 1.1.12 to 1.2.1 and received the same error mentioned in the beginning of the post

    Unknown command: 'collectplugins'
    Type 'manage.py help' for usage.
    ERROR: InvenTree command failed: 'python3 manage.py collectplugins'
    - Refer to the error messages in the log above for more information
    
  8. SchrodingersGat commented on Feb 18, 2026

    @SchrodingersGat
    Member

    @LastEdit can you please include the full error message / logs

    Also, do you have any custom logo or splash image configured?

  9. lifeisafractal commented on Feb 18, 2026

    @lifeisafractal
    ContributorAuthor

    I was able to repro this with a clean setup on v1.2.1. Repro steps below. Also, here is a link to a tgz with all the files and the volumes all configured in the error state.

    This is mostly following the
    Docker install docs here

    Here are the steps:

    • Start with a clean dir on a Linux system with docker 29.2.1
    • From the 1.2.1 tag, copy the following files into the dir
      • contrib/container/.env
      • contrib/container/Caddyfile
      • contrib/container/docker-compose.yml
    • Pin to InvenTree 1.2.1 release in .env
    INVENTREE_TAG=1.2.1
    • Do initial docker pull
    docker compose pull
    • Do initial DB setup and create admin user
    # DB setup
    docker compose run --rm inventree-server invoke update
    # Create admin user (user: foobar, email: [email protected], password: bizbaz)
    docker compose run inventree-server invoke superuser
    • Start and confirm we can login
    docker compose up
    # Login to `http://inventree.localhost` in a browser with above credentials
    # This does work
    # Terminate with `ctrl-c` and wait for containers to gracefully shut down
    • Append to .env to set a logo file.
    # Set a custom logo file
    INVENTREE_CUSTOM_LOGO=img/custom_logo.png

    Note: Putting an actual file in inventree-data/static/img/custom_logo.png or not doesn't affect
    the failure behaivor.

    • Bring the containers back up
    docker compose up
    • Observe error that comes out over and over from inventree-server and inventree-worker
    inventree-server           | Loading config file : /home/inventree/data/config.yaml
    inventree-worker exited with code 1 (restarting)
    inventree-server           | INVE-W3: Could not detect git information.
    inventree-worker           | Loading config file : /home/inventree/data/config.yaml
    inventree-server           | Traceback (most recent call last):
    inventree-server           |   File "/root/.local/bin/gunicorn", line 8, in <module>
    inventree-server           |     sys.exit(run())
    inventree-server           |              ^^^^^
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 66, in run
    inventree-server           |     WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]", prog=prog).run()
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/base.py", line 235, in run
    inventree-server           |     super().run()
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/base.py", line 71, in run
    inventree-server           |     Arbiter(self).run()
    inventree-server           |     ^^^^^^^^^^^^^
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 63, in __init__
    inventree-server           |     self.setup(app)
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 128, in setup
    inventree-server           |     self.app.wsgi()
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/base.py", line 66, in wsgi
    inventree-server           |     self.callable = self.load()
    inventree-server           |                     ^^^^^^^^^^^
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
    inventree-server           |     return self.load_wsgiapp()
    inventree-server           |            ^^^^^^^^^^^^^^^^^^^
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
    inventree-server           |     return util.import_app(self.app_uri)
    inventree-server           |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/gunicorn/util.py", line 377, in import_app
    inventree-server           |     mod = importlib.import_module(module)
    inventree-server           |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server           |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    inventree-server           |     return _bootstrap._gcd_import(name[level:], package, level)
    inventree-server           |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server           |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
    inventree-server           |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
    inventree-server           |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
    inventree-server           |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
    inventree-server           |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
    inventree-server           |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
    inventree-server           |   File "/home/inventree/src/backend/InvenTree/InvenTree/wsgi.py", line 19, in <module>
    inventree-server           |     application = get_wsgi_application()  # pragma: no cover
    inventree-server           |                   ^^^^^^^^^^^^^^^^^^^^^^
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
    inventree-server           |     django.setup(set_prefix=False)
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/django/__init__.py", line 19, in setup
    inventree-server           |     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
    inventree-server           |                       ^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/django/conf/__init__.py", line 81, in __getattr__
    inventree-server           |     self._setup(name)
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/django/conf/__init__.py", line 68, in _setup
    inventree-server           |     self._wrapped = Settings(settings_module)
    inventree-server           |                     ^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/django/conf/__init__.py", line 166, in __init__
    inventree-server           |     mod = importlib.import_module(self.SETTINGS_MODULE)
    inventree-server           |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server           |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    inventree-server           |     return _bootstrap._gcd_import(name[level:], package, level)
    inventree-server           |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server           |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
    inventree-server           |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
    inventree-server           |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
    inventree-server           |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
    inventree-server           |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
    inventree-server           |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
    inventree-server           |   File "/home/inventree/src/backend/InvenTree/InvenTree/settings.py", line 1456, in <module>
    inventree-server           |     CUSTOM_LOGO = get_custom_file(
    inventree-server           |                   ^^^^^^^^^^^^^^^^
    inventree-server           |   File "/home/inventree/src/backend/InvenTree/InvenTree/config.py", line 521, in get_custom_file
    inventree-server           |     static_storage = StaticFilesStorage()
    inventree-server           |                      ^^^^^^^^^^^^^^^^^^^^
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/django/contrib/staticfiles/storage.py", line 29, in __init__
    inventree-server           |     check_settings(base_url)
    inventree-server           |   File "/root/.local/lib/python3.11/site-packages/django/contrib/staticfiles/utils.py", line 49, in check_settings
    inventree-server           |     raise ImproperlyConfigured(
    inventree-server           | django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the required STATIC_URL setting.
    inventree-worker           | Waiting for database connection...
    inventree-server exited with code 1 (restarting)
    inventree-worker           | INVE-W3: Could not detect git information.
    inventree-worker           | Unknown command: 'wait_for_db'
    inventree-worker           | Type 'manage.py help' for usage.
    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 1 (restarting)
    
    • Also note this error when trying to interact with manage.py
    # Start with all containers down
    # get a shell into the server container
    docker compose run inventree-server /bin/bash
    
    # Run `manage.py`
    ./src/backend/InvenTree/manage.py --help
    # Get the following output. Note this doesn't happen without setting custom logo
    INVE-W3: Could not detect git information.
    
    Type 'manage.py help <subcommand>' for help on a specific subcommand.
    
    Available subcommands:
    
    [django]
        check
        compilemessages
        createcachetable
        dbshell
        diffsettings
        dumpdata
        flush
        inspectdb
        loaddata
        makemessages
        makemigrations
        migrate
        optimizemigration
        runserver
        sendtestemail
        shell
        showmigrations
        sqlflush
        sqlmigrate
        sqlsequencereset
        squashmigrations
        startapp
        startproject
        test
        testserver
    Note that only Django core commands are listed as settings are not properly configured (error: You're using the staticfiles app without having set the required STATIC_URL setting.).
  10. LastEdit commented on Feb 18, 2026

    @LastEdit

    @LastEdit can you please include the full error message / logs

    Also, do you have any custom logo or splash image configured?

    I do have a custom splash configured. At some point it stopped working around the new UI, but I never removed the env variable. I think it is probably the exact same issue as @lifeisafractal has been able to recreate.

    Edit: I retried the update without the INVENTREE_CUSTOM_LOGO= and was able to complete it, so thank you for pointing out where the issue was coming from.

  11. SchrodingersGat commented on Feb 19, 2026

    @SchrodingersGat
    Member

    @LastEdit @lifeisafractal are either of you using external staticfiles storage - e.g. S3? Or are the static files stored locally?

  12. lifeisafractal commented on Feb 19, 2026

    @lifeisafractal
    ContributorAuthor

    I'm using internal on both the example I posted and my production instance use local store, no S3.

  13. LastEdit commented on Feb 19, 2026

    @LastEdit

    @LastEdit @lifeisafractal are either of you using external staticfiles storage - e.g. S3? Or are the static files stored locally?

    Everything is local

  14. SchrodingersGat commented on Feb 20, 2026

    @SchrodingersGat
    Member

    It seems that the users reporting this error can successfully update if the INVENTREE_CUSTOM_LOGO is commented out during the invoke update process.

    Can anyone report if the server runs properly if you re-add INVENTREE_CUSTOM_LOGO after the update has succeeded, and then run docker compose up -d?

  15. stephensmith100 commented on Feb 20, 2026

    @stephensmith100

    I had this problem, commented out INVENTREE_CUSTOM_LOGO and it updated and ran fine. When I re-added the logo and ran docker compose up, the server fails to run.

    This shows up in the log:

    inventree-server  | INVE-W3: Could not detect git information.
    inventree-server  | Traceback (most recent call last):
    inventree-server  |   File "/root/.local/bin/gunicorn", line 8, in <module>
    inventree-server  |     sys.exit(run())
    inventree-server  |              ^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 66, in run
    inventree-server  |     WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]", prog=prog).run()
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/base.py", line 235, in run
    inventree-server  |     super().run()
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/base.py", line 71, in run
    inventree-server  |     Arbiter(self).run()
    inventree-server  |     ^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 63, in __init__
    inventree-server  |     self.setup(app)
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 128, in setup
    inventree-server  |     self.app.wsgi()
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/base.py", line 66, in wsgi
    inventree-server  |     self.callable = self.load()
    inventree-server  |                     ^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
    inventree-server  |     return self.load_wsgiapp()
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
    inventree-server  |     return util.import_app(self.app_uri)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/gunicorn/util.py", line 377, in import_app
    inventree-server  |     mod = importlib.import_module(module)
    inventree-server  |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    inventree-server  |     return _bootstrap._gcd_import(name[level:], package, level)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
    inventree-server  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
    inventree-server  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
    inventree-server  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
    inventree-server  |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
    inventree-server  |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/InvenTree/wsgi.py", line 19, in <module>
    inventree-server  |     application = get_wsgi_application()  # pragma: no cover
    inventree-server  |                   ^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
    inventree-server  |     django.setup(set_prefix=False)
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/__init__.py", line 19, in setup
    inventree-server  |     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
    inventree-server  |                       ^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/conf/__init__.py", line 81, in __getattr__
    inventree-server  |     self._setup(name)
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/conf/__init__.py", line 68, in _setup
    inventree-server  |     self._wrapped = Settings(settings_module)
    inventree-server  |                     ^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/conf/__init__.py", line 166, in __init__
    inventree-server  |     mod = importlib.import_module(self.SETTINGS_MODULE)
    inventree-server  |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    inventree-server  |     return _bootstrap._gcd_import(name[level:], package, level)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
    inventree-server  |   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
    inventree-server  |   File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
    inventree-server  |   File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
    inventree-server  |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
    inventree-server  |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/InvenTree/settings.py", line 1456, in <module>
    inventree-server  |     CUSTOM_LOGO = get_custom_file(
    inventree-server  |                   ^^^^^^^^^^^^^^^^
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/InvenTree/config.py", line 521, in get_custom_file
    inventree-server  |     static_storage = StaticFilesStorage()
    inventree-server  |                      ^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/contrib/staticfiles/storage.py", line 29, in __init__
    inventree-server  |     check_settings(base_url)
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/contrib/staticfiles/utils.py", line 49, in check_settings
    inventree-server  |     raise ImproperlyConfigured(
    inventree-server  | django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the required STATIC_URL setting.
    inventree-worker  | INVE-W3: Could not detect git information.
    inventree-worker  | Unknown command: 'wait_for_db'
    inventree-worker  | Type 'manage.py help' for usage.
    inventree-server exited with code 1
    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 1
    
  16. lifeisafractal commented on Feb 21, 2026

    @lifeisafractal
    ContributorAuthor

    Can anyone report if the server runs properly if you re-add INVENTREE_CUSTOM_LOGO after the update has succeeded, and then run docker compose up -d?

    @SchrodingersGat check out my repo steps and attached docker project and bind volumes. Even after the update and having the server start up normally, if I add back a custom logo the same error re-presents.

  17. virco commented on Feb 21, 2026

    @virco

    The same issue occurs in DigitalOcean Droplet when migrating from 1.1.7 to 1.2.2.
    btw Clean Droplet creation is also failing now.

  18. SchrodingersGat commented on Feb 22, 2026

    @SchrodingersGat
    Member

    I believe I have a working fix for this incoming in #11391

  19. added
    bug
    on Feb 22, 2026
  20. added this to the 1.3.0 milestone on Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdockerquestionsetup

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions