Repository navigation
Closed
Description
Deployment Method
- Installer
- Docker Development
- Docker Production
- Bare metal Development
- Bare metal Production
- Digital Ocean image
- Other (please provide a link
Steps to Reproduce
Describe the problem*
I am getting the following error message:
If you see this text there might be an issue with your update.
See INVE-E1 in the docs for help.
After performing a fresh installation``
Steps to Reproduce
This is my docker compose file:
services:
inventree-db:
image: postgres:17
container_name: pw_inventory_db
expose:
- ${INVENTREE_DB_PORT:-5432}/tcp
environment:
- PGDATA=/var/lib/postgresql/data/pgdb
- POSTGRES_USER=${INVENTREE_DB_USER:?You must provide the 'INVENTREE_DB_USER' variable in the .env file}
- POSTGRES_PASSWORD=${INVENTREE_DB_PASSWORD:?You must provide the 'INVENTREE_DB_PASSWORD' variable in the .env file}
- POSTGRES_DB=${INVENTREE_DB_NAME:?You must provide the 'INVENTREE_DB_NAME' variable in the .env file}
volumes:
- ${INVENTREE_EXT_VOLUME:?You must specify the 'INVENTREE_EXT_VOLUME' variable in the .env file!}:/var/lib/postgresql/data/:z
restart: unless-stopped
inventree-cache:
image: redis:7-alpine
container_name: pw_inventory_cache
env_file:
- .env
expose:
- ${INVENTREE_CACHE_PORT:-6379}
restart: always
inventree-server:
image: inventree/inventree:${INVENTREE_TAG:-stable}
container_name: pw_inventory_server
expose:
- 8000
depends_on:
- inventree-db
- inventree-cache
env_file:
- .env
env file
# InvenTree environment variables for docker compose deployment
# For a full list of the available configuration options, refer to the InvenTree documentation:
# https://docs.inventree.org/en/stable/start/config/
# Specify the name of the docker-compose project
COMPOSE_PROJECT_NAME=inventree
# InvenTree version tag (e.g. 'stable' / 'latest' / 'x.x.x')
INVENTREE_TAG=stable
# InvenTree server URL - update this to match your server URL
# INVENTREE_SITE_URL="http://inventree.localhost"
INVENTREE_SITE_URL="http://inventree.domain.com" # You can specify a local IP address here
INVENTREE_TRUSTED_ORIGINS="https://inventree.domain.com"
#INVENTREE_SITE_URL="http://pw_inventory_proxy" # Or a public domain name (which you control)
# InvenTree proxy forwarding settings
INVENTREE_USE_X_FORWARDED_HOST=True
INVENTREE_USE_X_FORWARDED_PORT=True
INVENTREE_USE_X_FORWARDED_PROTO=True
# Specify the location of the external data volume
# By default, placed in local directory 'inventree-data'
INVENTREE_EXT_VOLUME=/home/c0fe/docker_containers/pw_inventory/data
# Ensure debug is false for a production setup
INVENTREE_LOG_LEVEL=WARNING
# Enable custom plugins?
INVENTREE_PLUGINS_ENABLED=True
# Run database migrations automatically?
# Note: This does not negate the need to run "invoke update"
INVENTREE_AUTO_UPDATE=True
# InvenTree superuser account details
# Un-comment (and complete) these lines to auto-create an admin account
INVENTREE_ADMIN_USER=[REDACTED]
INVENTREE_ADMIN_PASSWORD=[REDACTED]
INVENTREE_ADMIN_EMAIL=[REDACTED]
# Database configuration options
# DO NOT CHANGE THESE SETTINGS (unless you really know what you are doing)
INVENTREE_DB_ENGINE=postgresql
INVENTREE_DB_NAME=inventree
INVENTREE_DB_HOST=inventree-db
INVENTREE_DB_PORT=5432
# Database credentials - These should be changed from the default values!
# Note: These are *NOT* the InvenTree server login credentials,
# they are the credentials for the PostgreSQL database
INVENTREE_DB_USER=[REDACTED]
INVENTREE_DB_PASSWORD=[REDACTED]
# Redis cache setup
# Refer to the documentation for other cache options
INVENTREE_CACHE_ENABLED=True
INVENTREE_CACHE_HOST=inventree-cache
INVENTREE_CACHE_PORT=6379
# Options for gunicorn server
INVENTREE_GUNICORN_TIMEOUT=90
Caddyfile
# Example Caddyfile for InvenTree
# The following environment variables may be used:
# - INVENTREE_SITE_URL: The upstream URL of the InvenTree site (default: inventree.localhost)
# - INVENTREE_SERVER: The internal URL of the InvenTree container (default: http://inventree-server:8000)
#
# Note that while this file is a good starting point, it may need to be modified to suit your specific requirements
#
# Ref to the Caddyfile documentation: https://caddyserver.com/docs/caddyfile
# Logging configuration for Caddy
(log_common) {
log {
output file /var/log/caddy/{args[0]}.access.log
}
}
# CORS headers control (used for static and media files)
(cors-headers) {
header Allow GET,HEAD,OPTIONS
header Access-Control-Allow-Origin *
header Access-Control-Allow-Methods GET,HEAD,OPTIONS
header Access-Control-Allow-Headers Authorization,Content-Type,User-Agent
@cors_preflight{args[0]} method OPTIONS
handle @cors_preflight{args[0]} {
respond "" 204
}
}
# Trusted proxies:
{
servers {
trusted_proxies static 172.19.14.0/24
}
}
# The default server address is configured in the .env file
# If not specified, the proxy listens for all http/https traffic
# If you need to listen on multiple addresses, or use a different port, you can modify this section directly
{$INVENTREE_SITE_URL:"http://, https://"} {
import log_common inventree
encode gzip
request_body {
max_size 100MB
}
# Handle static request files
handle_path /static/* {
import cors-headers static
root * /var/www/static
file_server
}
# Handle media request files
handle_path /media/* {
import cors-headers media
root * /var/www/media
file_server
# Force download of media files (for security)
# Comment out this line if you do not want to force download
header Content-Disposition attachment
# Authentication is handled by the forward_auth directive
# This is required to ensure that media files are only accessible to authenticated users
forward_auth {$INVENTREE_SERVER:"http://inventree-server:8000"} {
uri /auth/
}
}
# All other requests are proxied to the InvenTree server
reverse_proxy {$INVENTREE_SERVER:"http://inventree-server:8000"} {
# If you are running behind another proxy, you may need to specify 'trusted_proxies'
# Ref: https://caddyserver.com/docs/json/apps/http/servers/trusted_proxies/
# trusted_proxies ...
}
}
Relevant log output
pw_inventory_db-20260210161115.log
pw_inventory_db-20260210160116.log
pw_inventory_worker-20260210160052.log
pw_inventory_proxy-20260210160043.log
pw_inventory_server-20260210160036.log
logs attached as files
Activity
SchrodingersGat commentedon Feb 11, 2026
Did you run the
invoke updatestep as per the documentation?c0fe commentedon Feb 12, 2026
@SchrodingersGat yes I did
c0fe commentedon Feb 16, 2026
@SchrodingersGat any tips to fix this?
SchrodingersGat commentedon Feb 16, 2026
Please try:
(and share the complete output of this command)
And then let me know if you are still seeing the error in your browser.
gh057k33p3r commentedon Feb 17, 2026
same issue for me
matmair commentedon Feb 17, 2026
@gh057k33p3r exact same setup and computer? Because otherwise your comment adds 0 value. We can not reproduce based on nothing.
gh057k33p3r commentedon Feb 17, 2026
well, I used the 3 files from the documentation at https://docs.inventree.org/en/stable/start/docker_install/#docker-production-server
fresh install on a fresh ubuntu server 24.04.3. Logs look pretty much the same. I wanted to make you aware that it is not an isolated case. Idk why you feel the urge to be rude
I get the exact same error at the exact same migration
Applying common.0009_delete_currency... OK
�[2m2026-02-10T22:00:19.273977Z�[0m [�[31m�[1merror �[0m] �[1mError setting setting '_PLUGIN_REGISTRY_HASH' for <class 'common.models.InvenTreeSetting'>: <class 'django.db.utils.InternalError'>�[0m [�[0m�[1m�[34minventree�[0m]�[0m
gh057k33p3r commentedon Feb 19, 2026
I missed the docker compose run --rm inventree-server invoke update BEFORE running docker compose up -d.
So @c0fe
INVENTREE_EXT_VOLUMEfolder (./inventree-data)docker compose run --rm inventree-server invoke updatedocker compose up -dc0fe commentedon Mar 1, 2026
@gh057k33p3r No I continue to have the same issue:
c0fe commentedon Mar 1, 2026
@SchrodingersGat
UtechtDustin commentedon Mar 9, 2026
We have the same issue, we installed inventree via docker.
After a fresh install we are not able to login.
Can we somehow help debugging that. ?
SchrodingersGat commentedon Mar 9, 2026
@UtechtDustin if you have installed via docker, and run the
invoke updatecommand - then the external data volume should contain a directory calledstatic- which will contain all of the compiled static files.Can you start by sharing a directory listing for this static directory?
UtechtDustin commentedon Mar 9, 2026
@SchrodingersGat sure:
SchrodingersGat commentedon Mar 10, 2026
@UtechtDustin thanks
Can you please next look in your web browser developer console when you try to load the InvenTree page - and look in "network" tab to see which javascript files it is trying to load from the
/static/pathYou should see one (or more) javascript files being requested - but returning either a 3xx / 4xx / 5xx code
UtechtDustin commentedon Mar 10, 2026
The console is empty.
Every js file which was loaded, was loaded from the static folder.
Also every file was successfully loaded (200).
If i don't filter to js, just one requests fails (/api/auth/v1/auth/session) with an 401.
Which is correct i guess, as i'm not logged in right now.
Btw. i get the login failed taost/notification twice in different styles.
SchrodingersGat commentedon Mar 10, 2026
The screenshot you show here is not of the same issue though, the
INVE-E1specifically is for when the frontend code is not loaded correctly?UtechtDustin commentedon Mar 10, 2026
Oh shit, you're right @SchrodingersGat. I wrote it in the wrong issue.
Right now i don't find the right one, where i wanted to post it.