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'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
- Using docker install setup
- Start at 1.10.0
- Upgrade to 1.2.0
- run
docker compose run --rm inventree-server invoke update - 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
Activity
SchrodingersGat commentedon Feb 16, 2026
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?
What makes you suspect this?
lifeisafractal commentedon Feb 16, 2026
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.
lifeisafractal commentedon Feb 16, 2026
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_LOGOenv 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_LOGObreaks 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.SchrodingersGat commentedon Feb 17, 2026
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?
LastEdit commentedon Feb 18, 2026
I just tried updating from 1.1.12 to 1.2.1 and received the same error mentioned in the beginning of the post
SchrodingersGat commentedon Feb 18, 2026
@LastEdit can you please include the full error message / logs
Also, do you have any custom logo or splash image configured?
lifeisafractal commentedon Feb 18, 2026
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:
1.2.1tag, copy the following files into the dircontrib/container/.envcontrib/container/Caddyfilecontrib/container/docker-compose.yml.env.envto set a logo file.# Set a custom logo file INVENTREE_CUSTOM_LOGO=img/custom_logo.pngNote: Putting an actual file in
inventree-data/static/img/custom_logo.pngor not doesn't affectthe failure behaivor.
inventree-serverandinventree-workermanage.pyLastEdit commentedon Feb 18, 2026
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.SchrodingersGat commentedon Feb 19, 2026
@LastEdit @lifeisafractal are either of you using external staticfiles storage - e.g. S3? Or are the static files stored locally?
lifeisafractal commentedon Feb 19, 2026
I'm using internal on both the example I posted and my production instance use local store, no S3.
LastEdit commentedon Feb 19, 2026
Everything is local
SchrodingersGat commentedon Feb 20, 2026
It seems that the users reporting this error can successfully update if the
INVENTREE_CUSTOM_LOGOis commented out during theinvoke updateprocess.Can anyone report if the server runs properly if you re-add
INVENTREE_CUSTOM_LOGOafter the update has succeeded, and then rundocker compose up -d?stephensmith100 commentedon Feb 20, 2026
I had this problem, commented out
INVENTREE_CUSTOM_LOGOand it updated and ran fine. When I re-added the logo and randocker compose up, the server fails to run.This shows up in the log:
lifeisafractal commentedon Feb 21, 2026
@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.
virco commentedon Feb 21, 2026
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.
SchrodingersGat commentedon Feb 22, 2026
I believe I have a working fix for this incoming in #11391