Skip to content

INV-E1 error after fresh installation #11284

Closed

Description

@c0fe

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

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

    @SchrodingersGat
    Member

    Did you run the invoke update step as per the documentation?

  3. added
    docker
    and removed
    triage:not-checked
    on Feb 11, 2026
  4. c0fe commented on Feb 12, 2026

    @c0fe
    Author
  5. c0fe commented on Feb 16, 2026

    @c0fe
    Author

    @SchrodingersGat any tips to fix this?

  6. SchrodingersGat commented on Feb 16, 2026

    @SchrodingersGat
    Member

    Please try:

    docker compose run --rm inventree-server invoke static
    

    (and share the complete output of this command)

    And then let me know if you are still seeing the error in your browser.

  7. gh057k33p3r commented on Feb 17, 2026

    @gh057k33p3r

    same issue for me

  8. matmair commented on Feb 17, 2026

    @matmair
    Member

    @gh057k33p3r exact same setup and computer? Because otherwise your comment adds 0 value. We can not reproduce based on nothing.

  9. gh057k33p3r commented on Feb 17, 2026

    @gh057k33p3r

    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

  10. gh057k33p3r commented on Feb 19, 2026

    @gh057k33p3r

    I missed the docker compose run --rm inventree-server invoke update BEFORE running docker compose up -d.

    So @c0fe

    • Delete the INVENTREE_EXT_VOLUME folder (./inventree-data)
    • Run docker compose run --rm inventree-server invoke update
    • Run docker compose up -d
  11. c0fe commented on Mar 1, 2026

    @c0fe
    Author

    @gh057k33p3r No I continue to have the same issue:

    
    If you see this text there might be an issue with your update.
    See [INVE-E1](https://docs.inventree.org/en/stable/settings/error_codes/#inve-e1) in the docs for help.
    
  12. c0fe commented on Mar 1, 2026

    @c0fe
    Author

    @SchrodingersGat

    pos_acc# docker compose run --rm inventree-server invoke static
    [+]  1/1t 1/11
     ✔ Container pos_acc_redis Running                                                                                                                                                                                                                                                0.0sContainer inventree-inventree-server-run-38351bd58b0d Creating 
    Container inventree-inventree-server-run-38351bd58b0d Created 
    Loading config file : /home/inventree/data/config.yaml
    Collecting static files...
    INVE-W3: Could not detect git information.
    Python version 3.11.13 - /usr/local/bin/python3
    INVE-W3: Could not detect git information.
    Python version 3.11.13 - /usr/local/bin/python3
    Static files collected successfully
    root@server1:/home/snow/docker_containers/
    
  13. UtechtDustin commented on Mar 9, 2026

    @UtechtDustin

    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. ?

  14. SchrodingersGat commented on Mar 9, 2026

    @SchrodingersGat
    Member

    @UtechtDustin if you have installed via docker, and run the invoke update command - then the external data volume should contain a directory called static - which will contain all of the compiled static files.

    Can you start by sharing a directory listing for this static directory?

  15. UtechtDustin commented on Mar 9, 2026

    @UtechtDustin

    @SchrodingersGat sure:

    drwxr-xr-x 10 root root 4096 Mär  3 15:22 .
    drwxr-xr-x  9 root root 4096 Mär  3 15:30 ..
    drwxr-xr-x  3 root root 4096 Mär  3 15:22 account
    drwxr-xr-x  5 root root 4096 Mär  3 15:22 admin
    drwxr-xr-x  3 root root 4096 Mär  9 15:36 img
    drwxr-xr-x  3 root root 4096 Mär  3 15:22 mfa
    drwxr-xr-x  2 root root 4096 Mär  9 15:36 mptt
    drwxr-xr-x  7 root root 4096 Mär  3 15:22 rest_framework
    drwxr-xr-x  2 root root 4096 Mär  9 15:36 tabler-icons
    drwxr-xr-x  3 root root 4096 Mär  9 15:36 web
    
  16. SchrodingersGat commented on Mar 10, 2026

    @SchrodingersGat
    Member

    @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/ path

    You should see one (or more) javascript files being requested - but returning either a 3xx / 4xx / 5xx code

  17. UtechtDustin commented on Mar 10, 2026

    @UtechtDustin

    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.

    Image

    Btw. i get the login failed taost/notification twice in different styles.

    Image
  18. SchrodingersGat commented on Mar 10, 2026

    @SchrodingersGat
    Member

    We have the same issue, we installed inventree via docker.

    The screenshot you show here is not of the same issue though, the INVE-E1 specifically is for when the frontend code is not loaded correctly?

  19. UtechtDustin commented on Mar 10, 2026

    @UtechtDustin

    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.

  20. locked as resolved and limited conversation to collaborators on Mar 11, 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

    dockerquestionsetup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions