Skip to content

INV-E1 error after upgrading from 1.0.1 to 1.1.0 with docker #10740

@christianvw

Description

@christianvw

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

I tried upgrading my docker compose setup of InvenTree from 1.0.1 to 1.1.0 but ended up with the following on the web ui:

If you see this text there might be an issue with your update.
See INVE-E1 in the docs for help.

The logs from the container when it applied the migrations of the update looked fine (applying migrations...). Just one line was yellow when it was in maintenance mode and then forced to get out of it.

My docker-compose.yml:

---
services:
  prod-invtree-app:
    container_name: prod-invtree-app
    image: inventree/inventree:1.0.1
    volumes:
      - ${INVTREE_HOME}/data:/home/inventree/data
      - ./bg.jpg:/home/inventree/data/static/img/inventree_splash.jpg
    restart: unless-stopped
    expose:
      - '8000'
    environment:
      INVENTREE_SITE_URL: "https://inv.example.org"
      INVENTREE_USE_X_FORWARDED_HOST: 'True'
      INVENTREE_USE_X_FORWARDED_PROTO: 'True'
      INVENTREE_USE_X_FORWARDED_PORT: 'True'
      INVENTREE_ALLOWED_HOSTS: "inv.example.org"
      INVENTREE_TRUSTED_ORIGINS: "https://inv.example.org"
      INVENTREE_AUTO_UPDATE: "False"
      INVENTREE_PLUGINS_ENABLED: "True"
      INVENTREE_ADMIN_USER: "${ADMIN_USER_USERNAME}"
      INVENTREE_ADMIN_PASSWORD: "${ADMIN_USER_PASSWORD}"
      INVENTREE_ADMIN_EMAIL: "[email protected]"
      INVENTREE_DB_ENGINE: "postgresql"
      INVENTREE_DB_NAME: "invtree"
      INVENTREE_DB_HOST: "prod-invtree-postgres"
      INVENTREE_DB_PORT: "5432"
      INVENTREE_DB_USER: "${DB_USER}"
      INVENTREE_DB_PASSWORD: "${DB_PASSWORD}"
      INVENTREE_CACHE_ENABLED: "True"
      INVENTREE_CACHE_HOST: "prod-invtree-redis"
      INVENTREE_CACHE_PORT: "6379"
      INVENTREE_GUNICORN_TIMEOUT: "90"
      INVENTREE_SOCIAL_BACKENDS: "allauth.socialaccount.providers.openid_connect"
      INVENTREE_EMAIL_HOST: "${EMAIL_HOST}"
      INVENTREE_EMAIL_PORT: "${EMAIL_PORT}"
      INVENTREE_EMAIL_USERNAME: "${EMAIL_USERNAME}"
      INVENTREE_EMAIL_PASSWORD: "${EMAIL_PASSWORD}"
      INVENTREE_EMAIL_TLS: "True"
      INVENTREE_EMAIL_SSL: "False"
      INVENTREE_EMAIL_SENDER: "${EMAIL_SENDER}"
    depends_on:
      - prod-invtree-postgres
    networks:
      - invtree-backend
      - prod-reverseproxy

  prod-invtree-worker:
    container_name: prod-invtree-worker
    image: inventree/inventree:1.0.1
    restart: unless-stopped
    command: invoke worker
    depends_on:
      - prod-invtree-app
    environment:
      IINVENTREE_SITE_URL: "https://inv.example.org"
      INVENTREE_USE_X_FORWARDED_HOST: 'True'
      INVENTREE_USE_X_FORWARDED_PROTO: 'True'
      INVENTREE_USE_X_FORWARDED_PORT: 'True'
      INVENTREE_ALLOWED_HOSTS: "inv.example.org"
      INVENTREE_TRUSTED_ORIGINS: "https://inv.example.org"
      INVENTREE_AUTO_UPDATE: "False"
      INVENTREE_PLUGINS_ENABLED: "True"
      INVENTREE_ADMIN_USER: "${ADMIN_USER_USERNAME}"
      INVENTREE_ADMIN_PASSWORD: "${ADMIN_USER_PASSWORD}"
      INVENTREE_ADMIN_EMAIL: "[email protected]"
      INVENTREE_DB_ENGINE: "postgresql"
      INVENTREE_DB_NAME: "invtree"
      INVENTREE_DB_HOST: "prod-invtree-postgres"
      INVENTREE_DB_PORT: "5432"
      INVENTREE_DB_USER: "${DB_USER}"
      INVENTREE_DB_PASSWORD: "${DB_PASSWORD}"
      INVENTREE_CACHE_ENABLED: "True"
      INVENTREE_CACHE_HOST: "prod-invtree-redis"
      INVENTREE_CACHE_PORT: "6379"
      INVENTREE_GUNICORN_TIMEOUT: "90"
      INVENTREE_SOCIAL_BACKENDS: "allauth.socialaccount.providers.openid_connect"
      INVENTREE_EMAIL_HOST: "${EMAIL_HOST}"
      INVENTREE_EMAIL_PORT: "${EMAIL_PORT}"
      INVENTREE_EMAIL_USERNAME: "${EMAIL_USERNAME}"
      INVENTREE_EMAIL_PASSWORD: "${EMAIL_PASSWORD}"
      INVENTREE_EMAIL_TLS: "True"
      INVENTREE_EMAIL_SSL: "False"
      INVENTREE_EMAIL_SENDER: "${EMAIL_SENDER}"
    volumes:
      - ${INVTREE_HOME}/data:/home/inventree/data
    networks:
      - invtree-backend

  prod-invtree-postgres:
    container_name: prod-invtree-postgres
    image: postgres:17.6-alpine
    restart: unless-stopped
    expose:
      - '5432'
    environment:
      PGDATA: "/var/lib/postgresql/data/pgdb"
      POSTGRES_DB: "invtree"
      POSTGRES_USER: "${DB_USER}"
      POSTGRES_PASSWORD: "${DB_PASSWORD}"
    volumes:
      - ${INVTREE_HOME}/postgres:/var/lib/postgresql/data/pgdb
    networks:
      - invtree-backend

  prod-invtree-redis:
    container_name: prod-invtree-redis
    image: redis:8.2.1-alpine
    restart: unless-stopped
    expose:
      - '6379'
    networks:
      - invtree-backend

  prod-invtree-media:
    container_name: prod-invtree-media
    image: nginx:1.27.5-alpine
    expose:
      - "80"
    volumes:
      - ${INVTREE_HOME}/data/media:/usr/share/nginx/html:ro
    depends_on:
      - prod-invtree-app
    networks:
      - invtree-backend
      - prod-reverseproxy

networks:
  prod-reverseproxy:
    external: true
  invtree-backend:

Steps to Reproduce

  1. Have a running docker instance of inventreee in version 1.0.1 (inventree:1.0.1)
  2. Stop the running docker compose with docker compose down
  3. Change the image/version in docker-compose.yml from inventree:1.0.1 to inventree:1.1.0
  4. Start the docker compose with docker compose up -d
  5. You see on the web frontend:

If you see this text there might be an issue with your update.
See INVE-E1 in the docs for help.

I then tried to run invoke update inside the prod-invtree-app container and it went through but in the end crashed with something related to static files collecting. A restart of the containers after that did not resolve the issue either.

Expected behaviour

Normal working frontend would be my expected behavior.

Deployment Method

Docker

Version Information

Version before upgrade: inventree:1.0.1
Version after upgrade: inventree:1.1.0

Try to reproduce on the demo site

I tried to reproduce

Is the bug reproducible on the demo site?

Not reproducible

Relevant log output

Not reproducable in UI since its the server side upgrade.

Metadata

Metadata

Assignees

Labels

bugIdentifies a bug which needs to be addressedquestionThis is a question

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions