Skip to content

Update to 1.2.0 not possible on Postgres 13, not mentioned in update description #11315

Closed

Description

@MR-DOS

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

Not possible to upgrade from Docker container 1.1.12 to 1.2.0 with Postgres 13. Change of dependency not mentioned in update description. Updating Postgres to 14 or 15 (just by changing the container version in Docker compose) does not solve the issues, instead fails on container name resolve (my DB container is named "inventree-db", is in the correct network and works when Postgres 13 is used and is normally started even with 14/15).
Not reproducible on demo server as it requires system console access.

Steps to Reproduce

  1. Take working 1.1.12 installation with Postgres 13.
  2. Invoke update to 1.2.0, update crashes due to unsupported Postgres.
  3. Update Postgres to 14. Inventree update crashes differently now by not being able to resolve the container's name. The same happens for recommended Postgres 15.
  4. Revert back to 1.1.12 and Postgres 13, update works fine again and server starts correctly.

Expected behaviour

Dependency changes on other containers should ideally be visibly mentioned as (installation) breaking changes in update description.
DB version check would be handy at the start of update instead of failing unexpectedly after several minutes.

Deployment Method

Docker

Version Information

Official Docker container 1.2.0, doesn't start, so cannot copy from UI.

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

Loading config file : /home/inventree/data/config.yaml
Updating InvenTree installation...
Installing required python packages from '/home/inventree/src/backend/requirements.txt'
Requirement already satisfied: pip in /usr/local/lib/python3.11/site-packages (24.0)
Collecting pip
  Downloading pip-26.0.1-py3-none-any.whl.metadata (4.7 kB)
Requirement already satisfied: setuptools in /root/.local/lib/python3.11/site-packages (80.10.2)
Collecting setuptools
  Downloading setuptools-82.0.0-py3-none-any.whl.metadata (6.6 kB)
Downloading pip-26.0.1-py3-none-any.whl (1.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 48.8 MB/s eta 0:00:00
Downloading setuptools-82.0.0-py3-none-any.whl (1.0 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 101.8 MB/s eta 0:00:00
Installing collected packages: setuptools, pip
  Attempting uninstall: setuptools
    Found existing installation: setuptools 80.10.2
    Uninstalling setuptools-80.10.2:
      Successfully uninstalled setuptools-80.10.2
  Attempting uninstall: pip
    Found existing installation: pip 24.0
    Uninstalling pip-24.0:
      Successfully uninstalled pip-24.0
Successfully installed pip-26.0.1 setuptools-65.5.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: asgiref==3.11.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 3)) (3.11.0)
Requirement already satisfied: async-timeout==5.0.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 11)) (5.0.1)
Requirement already satisfied: attrs==25.4.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 15)) (25.4.0)
Requirement already satisfied: babel==2.17.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 21)) (2.17.0)
Requirement already satisfied: bcrypt==5.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 25)) (5.0.0)
Requirement already satisfied: bleach==6.3.0 in /root/.local/lib/python3.11/site-packages (from bleach[css]==6.3.0->-r /home/inventree/src/backend/requirements.txt (line 90)) (6.3.0)
Requirement already satisfied: blessed==1.25.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 94)) (1.25.0)
Requirement already satisfied: boto3==1.42.47 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 98)) (1.42.47)
Requirement already satisfied: botocore==1.42.47 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 104)) (1.42.47)
Requirement already satisfied: brotli==1.2.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 110)) (1.2.0)
Requirement already satisfied: certifi==2026.1.4 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 212)) (2026.1.4)
Requirement already satisfied: cffi==2.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 218)) (2.0.0)
Requirement already satisfied: charset-normalizer==3.4.4 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 307)) (3.4.4)
Requirement already satisfied: cryptography==46.0.5 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 422)) (46.0.5)
Requirement already satisfied: cssselect2==0.8.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 480)) (0.8.0)
Requirement already satisfied: defusedxml==0.7.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 484)) (0.7.1)
Requirement already satisfied: django==5.2.11 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 488)) (5.2.11)
Requirement already satisfied: django-allauth==65.13.1 in /root/.local/lib/python3.11/site-packages (from django-allauth[headless,mfa,openid,saml,socialaccount]==65.13.1->-r /home/inventree/src/backend/requirements.txt (line 521)) (65.13.1)
Requirement already satisfied: django-anymail==14.0 in /root/.local/lib/python3.11/site-packages (from django-anymail[amazon-ses,postal]==14.0->-r /home/inventree/src/backend/requirements.txt (line 525)) (14.0)
Requirement already satisfied: django-cleanup==9.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 529)) (9.0.0)
Requirement already satisfied: django-cors-headers==4.9.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 533)) (4.9.0)
Requirement already satisfied: django-dbbackup==5.1.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 537)) (5.1.2)
Requirement already satisfied: django-error-report-2==0.4.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 541)) (0.4.2)
Requirement already satisfied: django-filter==25.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 545)) (25.2)
Requirement already satisfied: django-flags==5.1.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 549)) (5.1.0)
Requirement already satisfied: django-ical==1.9.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 553)) (1.9.2)
Requirement already satisfied: django-ipware==7.0.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 557)) (7.0.1)
Requirement already satisfied: django-js-asset==3.1.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 561)) (3.1.2)
Requirement already satisfied: django-mailbox==4.10.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 565)) (4.10.1)
Requirement already satisfied: django-maintenance-mode==0.22.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 568)) (0.22.0)
Requirement already satisfied: django-markdownify==0.9.6 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 572)) (0.9.6)
Requirement already satisfied: django-money==3.5.4 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 576)) (3.5.4)
Requirement already satisfied: django-mptt==0.18.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 580)) (0.18.0)
Requirement already satisfied: django-oauth-toolkit==3.2.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 584)) (3.2.0)
Requirement already satisfied: django-otp==1.3.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 588)) (1.3.0)
Requirement already satisfied: django-picklefield==3.4.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 592)) (3.4.0)
Requirement already satisfied: django-q-sentry==0.1.6 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 596)) (0.1.6)
Requirement already satisfied: django-q2==1.9.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 599)) (1.9.0)
Requirement already satisfied: django-recurrence==1.14 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 603)) (1.14)
Requirement already satisfied: django-redis==6.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 607)) (6.0.0)
Requirement already satisfied: django-sesame==3.2.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 611)) (3.2.3)
Requirement already satisfied: django-sql-utils==0.7.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 615)) (0.7.0)
Requirement already satisfied: django-sslserver==0.22 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 619)) (0.22)
Requirement already satisfied: django-stdimage==6.0.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 622)) (6.0.2)
Requirement already satisfied: django-storages==1.14.6 in /root/.local/lib/python3.11/site-packages (from django-storages[s3,sftp]==1.14.6->-r /home/inventree/src/backend/requirements.txt (line 626)) (1.14.6)
Requirement already satisfied: django-structlog==10.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 630)) (10.0.0)
Requirement already satisfied: django-taggit==6.1.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 634)) (6.1.0)
Requirement already satisfied: django-xforwardedfor-middleware==2.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 638)) (2.0)
Requirement already satisfied: djangorestframework==3.16.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 641)) (3.16.1)
Requirement already satisfied: djangorestframework-simplejwt==5.5.1 in /root/.local/lib/python3.11/site-packages (from djangorestframework-simplejwt[crypto]==5.5.1->-r /home/inventree/src/backend/requirements.txt (line 648)) (5.5.1)
Requirement already satisfied: docutils==0.22.4 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 652)) (0.22.4)
Requirement already satisfied: drf-spectacular==0.29.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 656)) (0.29.0)
Requirement already satisfied: dulwich==1.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 660)) (1.0.0)
Requirement already satisfied: et-xmlfile==2.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 688)) (2.0.0)
Requirement already satisfied: feedparser==6.0.12 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 692)) (6.0.12)
Requirement already satisfied: fido2==2.1.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 696)) (2.1.1)
Requirement already satisfied: flexcache==0.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 700)) (0.3)
Requirement already satisfied: flexparser==0.4 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 704)) (0.4)
Requirement already satisfied: fonttools==4.61.1 in /root/.local/lib/python3.11/site-packages (from fonttools[woff]==4.61.1->-r /home/inventree/src/backend/requirements.txt (line 708)) (4.61.1)
Requirement already satisfied: googleapis-common-protos==1.72.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 760)) (1.72.0)
Requirement already satisfied: grpcio==1.76.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 766)) (1.76.0)
Requirement already satisfied: gunicorn==25.0.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 831)) (25.0.3)
Requirement already satisfied: icalendar==6.3.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 835)) (6.3.2)
Requirement already satisfied: idna==3.11 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 839)) (3.11)
Requirement already satisfied: importlib-metadata==8.7.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 845)) (8.7.1)
Requirement already satisfied: inflection==0.5.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 849)) (0.5.1)
Requirement already satisfied: invoke==2.2.1 in /usr/local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 853)) (2.2.1)
Requirement already satisfied: isodate==0.7.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 857)) (0.7.2)
Requirement already satisfied: jinja2==3.1.6 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 861)) (3.1.6)
Requirement already satisfied: jmespath==1.0.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 865)) (1.0.1)
Requirement already satisfied: jsonschema==4.26.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 871)) (4.26.0)
Requirement already satisfied: jsonschema-specifications==2025.9.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 875)) (2025.9.1)
Requirement already satisfied: jwcrypto==1.5.6 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 879)) (1.5.6)
Requirement already satisfied: lxml==6.0.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 883)) (6.0.2)
Requirement already satisfied: markdown==3.10.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1027)) (3.10.2)
Requirement already satisfied: markupsafe==3.0.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1031)) (3.0.3)
Requirement already satisfied: oauthlib==3.3.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1122)) (3.3.1)
Requirement already satisfied: openpyxl==3.1.5 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1128)) (3.1.5)
Requirement already satisfied: opentelemetry-api==1.39.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1132)) (1.39.1)
Requirement already satisfied: opentelemetry-exporter-otlp==1.39.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1151)) (1.39.1)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-common==1.39.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1155)) (1.39.1)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-grpc==1.39.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1161)) (1.39.1)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-http==1.39.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1165)) (1.39.1)
Requirement already satisfied: opentelemetry-instrumentation==0.60b1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1169)) (0.60b1)
Requirement already satisfied: opentelemetry-instrumentation-dbapi==0.60b1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1182)) (0.60b1)
Requirement already satisfied: opentelemetry-instrumentation-django==0.60b1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1189)) (0.60b1)
Requirement already satisfied: opentelemetry-instrumentation-psycopg==0.60b1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1193)) (0.60b1)
Requirement already satisfied: opentelemetry-instrumentation-pymysql==0.60b1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1197)) (0.60b1)
Requirement already satisfied: opentelemetry-instrumentation-redis==0.60b1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1201)) (0.60b1)
Requirement already satisfied: opentelemetry-instrumentation-requests==0.60b1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1205)) (0.60b1)
Requirement already satisfied: opentelemetry-instrumentation-sqlite3==0.60b1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1209)) (0.60b1)
Requirement already satisfied: opentelemetry-instrumentation-system-metrics==0.60b1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1213)) (0.60b1)
Requirement already satisfied: opentelemetry-instrumentation-wsgi==0.60b1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1217)) (0.60b1)
Requirement already satisfied: opentelemetry-proto==1.39.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1223)) (1.39.1)
Requirement already satisfied: opentelemetry-sdk==1.39.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1230)) (1.39.1)
Requirement already satisfied: opentelemetry-semantic-conventions==0.60b1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1237)) (0.60b1)
Requirement already satisfied: opentelemetry-util-http==0.60b1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1248)) (0.60b1)
Requirement already satisfied: packaging==26.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1255)) (26.0)
Requirement already satisfied: paramiko==4.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1261)) (4.0.0)
Requirement already satisfied: pdf2image==1.17.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1265)) (1.17.0)
Requirement already satisfied: pillow==12.1.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1269)) (12.1.1)
Requirement already satisfied: pint==0.25.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1368)) (0.25.2)
Requirement already satisfied: pip-licenses==5.5.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1372)) (5.5.0)
Requirement already satisfied: platformdirs==4.5.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1376)) (4.5.1)
Requirement already satisfied: ppf-datamatrix==0.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1380)) (0.2)
Requirement already satisfied: prettytable==3.17.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1384)) (3.17.0)
Requirement already satisfied: protobuf==6.33.5 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1388)) (6.33.5)
Requirement already satisfied: psutil==7.2.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1402)) (7.2.1)
Requirement already satisfied: py-moneyed==3.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1425)) (3.0)
Requirement already satisfied: pycparser==3.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1429)) (3.0)
Requirement already satisfied: pydyf==0.12.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1433)) (0.12.1)
Requirement already satisfied: pyjwt==2.10.1 in /root/.local/lib/python3.11/site-packages (from pyjwt[crypto]==2.10.1->-r /home/inventree/src/backend/requirements.txt (line 1437)) (2.10.1)
Requirement already satisfied: pynacl==1.6.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1443)) (1.6.2)
Requirement already satisfied: pypdf==6.6.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1470)) (6.6.2)
Requirement already satisfied: pyphen==0.17.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1474)) (0.17.2)
Requirement already satisfied: python-barcode==0.16.1 in /root/.local/lib/python3.11/site-packages (from python-barcode[images]==0.16.1->-r /home/inventree/src/backend/requirements.txt (line 1478)) (0.16.1)
Requirement already satisfied: python-dateutil==2.9.0.post0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1482)) (2.9.0.post0)
Requirement already satisfied: python-dotenv==1.2.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1489)) (1.2.1)
Requirement already satisfied: python-fsutil==0.16.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1493)) (0.16.0)
Requirement already satisfied: python-ipware==3.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1497)) (3.0.0)
Requirement already satisfied: python3-openid==3.2.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1501)) (3.2.0)
Requirement already satisfied: python3-saml==1.16.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1505)) (1.16.0)
Requirement already satisfied: pyyaml==6.0.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1510)) (6.0.3)
Requirement already satisfied: qrcode==8.2 in /root/.local/lib/python3.11/site-packages (from qrcode[pil]==8.2->-r /home/inventree/src/backend/requirements.txt (line 1588)) (8.2)
Requirement already satisfied: rapidfuzz==3.14.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1594)) (3.14.3)
Requirement already satisfied: redis==7.1.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1679)) (7.1.0)
Requirement already satisfied: referencing==0.37.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1683)) (0.37.0)
Requirement already satisfied: requests==2.32.5 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1689)) (2.32.5)
Requirement already satisfied: rpds-py==0.30.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1697)) (0.30.0)
Requirement already satisfied: s3transfer==0.16.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1816)) (0.16.0)
Requirement already satisfied: sentry-sdk==2.52.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1820)) (2.52.0)
Collecting setuptools==80.10.2 (from -r /home/inventree/src/backend/requirements.txt (line 1826))
  Downloading setuptools-80.10.2-py3-none-any.whl (1.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 24.5 MB/s  0:00:00
Requirement already satisfied: sgmllib3k==1.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1832)) (1.0.0)
Requirement already satisfied: six==1.17.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1835)) (1.17.0)
Requirement already satisfied: sqlparse==0.5.5 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1839)) (0.5.5)
Requirement already satisfied: structlog==25.5.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1845)) (25.5.0)
Requirement already satisfied: tablib==3.9.0 in /root/.local/lib/python3.11/site-packages (from tablib[xls,xlsx,yaml]==3.9.0->-r /home/inventree/src/backend/requirements.txt (line 1849)) (3.9.0)
Requirement already satisfied: tinycss2==1.4.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1853)) (1.4.0)
Requirement already satisfied: tinyhtml5==2.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1860)) (2.0.0)
Requirement already satisfied: typing-extensions==4.15.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1864)) (4.15.0)
Requirement already satisfied: tzdata==2025.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1881)) (2025.3)
Requirement already satisfied: uritemplate==4.2.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1885)) (4.2.0)
Requirement already satisfied: urllib3==2.6.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1889)) (2.6.3)
Requirement already satisfied: wcwidth==0.6.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1898)) (0.6.0)
Requirement already satisfied: weasyprint==66.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1904)) (66.0)
Requirement already satisfied: webencodings==0.5.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1908)) (0.5.1)
Requirement already satisfied: whitenoise==6.11.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1916)) (6.11.0)
Requirement already satisfied: wrapt==1.17.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1920)) (1.17.3)
Requirement already satisfied: xlrd==2.0.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 2006)) (2.0.2)
Requirement already satisfied: xlwt==1.3.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 2010)) (1.3.0)
Requirement already satisfied: xmlsec==1.3.17 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 2014)) (1.3.17)
Requirement already satisfied: zipp==3.23.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 2073)) (3.23.0)
Requirement already satisfied: zopfli==0.4.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 2077)) (0.4.0)
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 65.5.1
    Uninstalling setuptools-65.5.1:
      Successfully uninstalled setuptools-65.5.1
Successfully installed setuptools-80.10.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
Installing required python packages from '/home/inventree/data/plugins.txt'
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
INVE-W3: Could not detect git information.
Traceback (most recent call last):
  File "/home/inventree/src/backend/InvenTree/manage.py", line 25, in <module>
    main()
  File "/home/inventree/src/backend/InvenTree/manage.py", line 21, in main
    execute_from_command_line(sys.argv)
  File "/root/.local/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/root/.local/lib/python3.11/site-packages/django/core/management/__init__.py", line 416, in execute
    django.setup()
  File "/root/.local/lib/python3.11/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/root/.local/lib/python3.11/site-packages/django/apps/registry.py", line 124, in populate
    app_config.ready()
  File "/root/.local/lib/python3.11/site-packages/django/contrib/admin/apps.py", line 27, in ready
    self.module.autodiscover()
  File "/root/.local/lib/python3.11/site-packages/django/contrib/admin/__init__.py", line 52, in autodiscover
    autodiscover_modules("admin", register_to=site)
  File "/root/.local/lib/python3.11/site-packages/django/utils/module_loading.py", line 58, in autodiscover_modules
    import_module("%s.%s" % (app_config.name, module_to_search))
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/inventree/src/backend/InvenTree/company/admin.py", line 5, in <module>
    import company.serializers
  File "/home/inventree/src/backend/InvenTree/company/serializers.py", line 15, in <module>
    import part.serializers as part_serializers
  File "/home/inventree/src/backend/InvenTree/part/serializers.py", line 25, in <module>
    import common.serializers
  File "/home/inventree/src/backend/InvenTree/common/serializers.py", line 642, in <module>
    class AttachmentSerializer(FilterableSerializerMixin, InvenTreeModelSerializer):
  File "/home/inventree/src/backend/InvenTree/common/serializers.py", line 691, in AttachmentSerializer
    choices=common.validators.attachment_model_options(),
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/inventree/src/backend/InvenTree/common/validators.py", line 56, in attachment_model_options
    for model in attachment_model_types()
                 ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/inventree/src/backend/InvenTree/common/validators.py", line 46, in attachment_model_types
    InvenTree.helpers_model.getModelsWithMixin(
  File "/home/inventree/src/backend/InvenTree/InvenTree/ready.py", line 199, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/inventree/src/backend/InvenTree/InvenTree/helpers_model.py", line 284, in getModelsWithMixin
    content_types = get_cached_content_types()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/inventree/src/backend/InvenTree/InvenTree/cache.py", line 185, in get_cached_content_types
    content_types = list(ContentType.objects.all())
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 386, in __iter__
    self._fetch_all()
  File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 1954, in _fetch_all
    self._result_cache = list(self._iterable_class(self))
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 93, in __iter__
    results = compiler.execute_sql(
              ^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1621, in execute_sql
    cursor = self.connection.cursor()
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 320, in cursor
    return self._cursor()
           ^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 296, in _cursor
    self.ensure_connection()
  File "/root/.local/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 279, in ensure_connection
    self.connect()
  File "/root/.local/lib/python3.11/site-packages/django/utils/asyncio.py", line 26, in inner
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 258, in connect
    self.init_connection_state()
  File "/root/.local/lib/python3.11/site-packages/django/db/backends/postgresql/base.py", line 398, in init_connection_state
    super().init_connection_state()
  File "/root/.local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 225, in init_connection_state
    self.check_database_version_supported()
  File "/root/.local/lib/python3.11/site-packages/django/db/backends/base/base.py", line 201, in check_database_version_supported
    raise NotSupportedError(
django.db.utils.NotSupportedError: PostgreSQL 14 or later is required (found 13.23).
ERROR: InvenTree command failed: 'python3 manage.py collectplugins'
- Refer to the error messages in the log above for more information




After change to Postgres 14/15:
2026-02-13 11:17:08,815 INFO Backing Up Database: inventree
2026-02-13 11:17:08,816 DEBUG  pg_dump --dbname=postgresql://REDACTED@inventree-db:5432/inventree --format=custom --exclude-table-data=django_session
2026-02-13 11:17:08,891 ERROR CommandConnectorError: Error running:  pg_dump --dbname=postgresql://REDACTED@inventree-db:5432/inventree --format=custom --exclude-table-data=django_session
pg_dump: error: could not translate host name "inventree-db" to address: Temporary failure in name resolution

  File "/root/.local/lib/python3.11/site-packages/dbbackup/utils.py", line 116, in wrapper
    func(*args, **kwargs)
  File "/root/.local/lib/python3.11/site-packages/dbbackup/management/commands/dbbackup.py", line 75, in handle
    self._save_new_backup(database)
  File "/root/.local/lib/python3.11/site-packages/dbbackup/management/commands/dbbackup.py", line 134, in _save_new_backup
    outputfile = self.connector.create_dump()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/dbbackup/db/base.py", line 95, in create_dump
    return self._create_dump()
           ^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/dbbackup/db/postgresql.py", line 149, in _create_dump
    stdout, _ = self.run_command(cmd, env={**self.dump_env, **pg_env})
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/dbbackup/db/base.py", line 186, in run_command
    raise exceptions.CommandConnectorError(msg)
Traceback (most recent call last):
  File "/root/.local/lib/python3.11/site-packages/dbbackup/utils.py", line 116, in wrapper
    func(*args, **kwargs)
  File "/root/.local/lib/python3.11/site-packages/dbbackup/management/commands/dbbackup.py", line 75, in handle
    self._save_new_backup(database)
  File "/root/.local/lib/python3.11/site-packages/dbbackup/management/commands/dbbackup.py", line 134, in _save_new_backup
    outputfile = self.connector.create_dump()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/dbbackup/db/base.py", line 95, in create_dump
    return self._create_dump()
           ^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/dbbackup/db/postgresql.py", line 149, in _create_dump
    stdout, _ = self.run_command(cmd, env={**self.dump_env, **pg_env})
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/dbbackup/db/base.py", line 186, in run_command
    raise exceptions.CommandConnectorError(msg)
dbbackup.db.exceptions.CommandConnectorError: Error running:  pg_dump --dbname=postgresql://REDACTED@inventree-db:5432/inventree --format=custom --exclude-table-data=django_session
pg_dump: error: could not translate host name "inventree-db" to address: Temporary failure in name resolution

Traceback (most recent call last):
  File "/home/inventree/src/backend/InvenTree/manage.py", line 25, in <module>
    main()
  File "/home/inventree/src/backend/InvenTree/manage.py", line 21, in main
    execute_from_command_line(sys.argv)
  File "/root/.local/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/root/.local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/root/.local/lib/python3.11/site-packages/django/core/management/base.py", line 420, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/root/.local/lib/python3.11/site-packages/django/core/management/base.py", line 464, in execute
    output = self.handle(*args, **options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/dbbackup/utils.py", line 116, in wrapper
    func(*args, **kwargs)
  File "/root/.local/lib/python3.11/site-packages/dbbackup/management/commands/dbbackup.py", line 75, in handle
    self._save_new_backup(database)
  File "/root/.local/lib/python3.11/site-packages/dbbackup/management/commands/dbbackup.py", line 134, in _save_new_backup
    outputfile = self.connector.create_dump()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/dbbackup/db/base.py", line 95, in create_dump
    return self._create_dump()
           ^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/dbbackup/db/postgresql.py", line 149, in _create_dump
    stdout, _ = self.run_command(cmd, env={**self.dump_env, **pg_env})
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.local/lib/python3.11/site-packages/dbbackup/db/base.py", line 186, in run_command
    raise exceptions.CommandConnectorError(msg)
dbbackup.db.exceptions.CommandConnectorError: Error running:  pg_dump --dbname=postgresql://REDACTED@inventree-db:5432/inventree --format=custom --exclude-table-data=django_session
pg_dump: error: could not translate host name "inventree-db" to address: Temporary failure in name resolution

ERROR: InvenTree command failed: 'python3 manage.py dbbackup --noinput -v 2 --compress'
- Refer to the error messages in the log above for more information

Activity

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

    @martin323232

    Got the same error

  3. Dome-Maurice commented on Feb 13, 2026

    @Dome-Maurice

    Yup here too, but with pg 17 and from 1.1.11 to 1.2

    i jumped to conclusions, after reading the output while starting the entire stack and not just invoke update, which did not had any helful errors except that the collect plugins command failed. i saw that i had a different error stemming from loading static files related to a custom splash image.

  4. MR-DOS commented on Feb 13, 2026

    @MR-DOS
    Author

    @Dome-Maurice Postgres 17 support was dropped in favor of Postgres 15 for dev containers (1.2.0 should be stable according to Docker hub) due to old pg_dump in Debian running in the container and was announced in 1.2.0 release info (though it was in the middle of a long list of bug fixes), so maybe it also applies to 1.2.0.
    #10937

    Do you get an error about DB hostname not being resolvable or error from pg_dump version incompatibility with your version of Postgres?

    This reply is obsolete as Dome-Maurice's issue has a different source.

  5. SchrodingersGat commented on Feb 14, 2026

    @SchrodingersGat
    Member

    @MR-DOS it looks like this comes from an upstream requirement (django)

    In this release we migrated to django 5.2 - which appears to have dropped support for postgres-13:

    https://code.djangoproject.com/wiki/SupportedDatabaseVersions

    So, this means that you will need to update the database container to a newer version.

    This will likely require a migration of your database data from the old pgsql database to the newer one.

    We have a data migration strategy outlined here:

    https://docs.inventree.org/en/latest/start/migrate/#migrating-between-incompatible-database-versions

    Please try this (make triple sure you have a good backup) and LMK how it goes.

    Apologies for the lack of notes - I'll update the release notes to make sure this is outlined. I was not aware that they had officially dropped support for postgres:13

  6. martin323232 commented on Feb 14, 2026

    @martin323232

    Hi,

    would i need to downgrade by doing a "git pull" to be able to do a database migration?
    If not just follow the steps on the migrate page?

    "The following procedure is advanced, and should only be attempted by experienced database administrators. Always ensure that database backups are made before attempting any migration procedure."
    I have little to non databse experince but Inventree makes daily backup and these are stored on google drive.
    Is this seen as a databse backup also similar to doing "docker compose run --rm inventree-server invoke backup"?

    "The location of the database files depends on how InvenTree was configured."
    I'm running it on docker, first install was done in 2022. docker is started from /download/inventree-master/docker.
    where would database be stored?

  7. MR-DOS commented on Feb 14, 2026

    @MR-DOS
    Author

    @SchrodingersGat , I tried the guide to upgrade from PG 13 to 15, did everything according to it (on IT 1.1.12 which worked for me) and it nearly worked. During DB restore, it fails, when it tries to set transaction_timeout parameter. See log below.

    After that, I have tried it also on IT 1.2.0 + PG15. That fails spectacularly at creating a new instance, yet it tries to proceed and finally, web does not work. It seems that it does communicate with PG, but something is not right. Only parts of log attached as it's very long.

    Off-topic remarks:
    There is still a lot of unnecessary repeated information about git and Python versions in the log.

    In the section "Start New Database", there is instruction to perform "docker compose up -d". The -d part maybe should not be there as it's not very helpful not to see when the initialisation is complete.

    IT 1.1.12 + PG15:

    sudo docker compose run --rm inventree-server invoke restore
    [+] Creating 1/1
     ✔ Container inventree-db  Running                                                                                                                                                                                                                       0.0s 
    Loading config file : /home/inventree/data/config.yaml
    Restoring InvenTree database
    INVE-W3: Could not detect git information.
    Python version 3.11.13 - /usr/local/bin/python3
    2026-02-14 20:04:05,175 INFO Finding latest backup
    2026-02-14 20:04:05,188 INFO Restoring backup for database 'default' and server 'None'
    2026-02-14 20:04:05,189 INFO Restoring: InvenTree-db-2026-02-14-195308.psql.bin.gz
    2026-02-14 20:04:05,197 INFO Restore tempfile created: 879.0 KiB
    2026-02-14 20:04:05,198 DEBUG pg_restore --dbname=postgresql://REDACTED@inventree-db:5432/inventree --single-transaction --clean --if-exists
    Traceback (most recent call last):
      File "/home/inventree/src/backend/InvenTree/manage.py", line 24, in <module>
        main()
      File "/home/inventree/src/backend/InvenTree/manage.py", line 20, in main
        execute_from_command_line(sys.argv)
      File "/root/.local/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
        utility.execute()
      File "/root/.local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
        self.fetch_command(subcommand).run_from_argv(self.argv)
      File "/root/.local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
        self.execute(*args, **cmd_options)
      File "/root/.local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
        output = self.handle(*args, **options)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/root/.local/lib/python3.11/site-packages/dbbackup/management/commands/dbrestore.py", line 85, in handle
        self._restore_backup()
      File "/root/.local/lib/python3.11/site-packages/dbbackup/management/commands/dbrestore.py", line 162, in _restore_backup
        self.connector.restore_dump(input_file)
      File "/root/.local/lib/python3.11/site-packages/dbbackup/db/base.py", line 109, in restore_dump
        return self._restore_dump(dump)
               ^^^^^^^^^^^^^^^^^^^^^^^^
      File "/root/.local/lib/python3.11/site-packages/dbbackup/db/postgresql.py", line 194, in _restore_dump
        stdout, _ = self.run_command(cmd_str, stdin=dump, env={**self.dump_env, **pg_env})
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/root/.local/lib/python3.11/site-packages/dbbackup/db/base.py", line 186, in run_command
        raise exceptions.CommandConnectorError(msg)
    dbbackup.db.exceptions.CommandConnectorError: Error running: pg_restore --dbname=postgresql://REDACTED@inventree-db:5432/inventree --single-transaction --clean --if-exists
    pg_restore: error: could not execute query: ERROR:  unrecognized configuration parameter "transaction_timeout"
    Command was: SET transaction_timeout = 0;
    
    ERROR: InvenTree command failed: 'python3 manage.py dbrestore --noinput -v 2 --uncompress'
    - Refer to the error messages in the log above for more information
    

    Start of IT 1.2.0 + PG15:

    Attaching to inventree-db, inventree-server, inventree-worker
    inventree-db      | The files belonging to this database system will be owned by user "postgres".
    inventree-db      | This user must also own the server process.
    inventree-db      | 
    inventree-db      | The database cluster will be initialized with locale "en_US.utf8".
    inventree-db      | The default database encoding has accordingly been set to "UTF8".
    inventree-db      | The default text search configuration will be set to "english".
    inventree-db      | 
    inventree-db      | Data page checksums are disabled.
    inventree-db      | 
    inventree-db      | fixing permissions on existing directory /var/lib/postgresql/data/pgdb ... ok
    inventree-db      | creating subdirectories ... ok
    inventree-db      | selecting dynamic shared memory implementation ... posix
    inventree-db      | selecting default max_connections ... 100
    inventree-db      | selecting default shared_buffers ... 128MB
    inventree-db      | selecting default time zone ... Etc/UTC
    inventree-db      | creating configuration files ... ok
    inventree-server  | Loading config file : /home/inventree/data/config.yaml
    inventree-db      | running bootstrap script ... ok
    inventree-worker  | Loading config file : /home/inventree/data/config.yaml
    inventree-worker  | Waiting for database connection...
    inventree-server  | INVE-W3: Could not detect git information.
    inventree-db      | performing post-bootstrap initialization ... ok
    inventree-db      | syncing data to disk ... ok
    inventree-db      | 
    inventree-db      | 
    inventree-db      | Success. You can now start the database server using:
    inventree-db      | 
    inventree-db      |     pg_ctl -D /var/lib/postgresql/data/pgdb -l logfile start
    inventree-db      | 
    inventree-db      | initdb: warning: enabling "trust" authentication for local connections
    inventree-db      | initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
    inventree-db      | waiting for server to start....2026-02-14 19:17:34.692 UTC [48] LOG:  starting PostgreSQL 15.12 (Debian 15.12-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
    inventree-db      | 2026-02-14 19:17:34.695 UTC [48] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
    inventree-db      | 2026-02-14 19:17:34.704 UTC [51] LOG:  database system was shut down at 2026-02-14 19:17:34 UTC
    inventree-db      | 2026-02-14 19:17:34.716 UTC [48] LOG:  database system is ready to accept connections
    inventree-db      |  done
    inventree-db      | server started
    inventree-worker  | INVE-W3: Could not detect git information.
    inventree-db      | CREATE DATABASE
    inventree-db      | 
    inventree-db      | 
    inventree-db      | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*
    inventree-db      | 
    inventree-db      | 2026-02-14 19:17:35.219 UTC [48] LOG:  received fast shutdown request
    inventree-db      | waiting for server to shut down....2026-02-14 19:17:35.220 UTC [48] LOG:  aborting any active transactions
    inventree-db      | 2026-02-14 19:17:35.235 UTC [48] LOG:  background worker "logical replication launcher" (PID 54) exited with exit code 1
    inventree-db      | 2026-02-14 19:17:35.235 UTC [49] LOG:  shutting down
    inventree-db      | 2026-02-14 19:17:35.245 UTC [49] LOG:  checkpoint starting: shutdown immediate
    inventree-db      | 2026-02-14 19:17:35.334 UTC [49] LOG:  checkpoint complete: wrote 918 buffers (5.6%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.065 s, sync=0.017 s, total=0.099 s; sync files=301, longest=0.002 s, average=0.001 s; distance=4222 kB, estimate=4222 kB
    inventree-db      | 2026-02-14 19:17:35.354 UTC [48] LOG:  database system is shut down
    inventree-db      |  done
    inventree-db      | server stopped
    inventree-db      | 
    inventree-db      | PostgreSQL init process complete; ready for start up.
    inventree-db      | 
    inventree-db      | 2026-02-14 19:17:35.474 UTC [1] LOG:  starting PostgreSQL 15.12 (Debian 15.12-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
    inventree-db      | 2026-02-14 19:17:35.475 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
    inventree-db      | 2026-02-14 19:17:35.475 UTC [1] LOG:  listening on IPv6 address "::", port 5432
    inventree-db      | 2026-02-14 19:17:35.483 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
    inventree-db      | 2026-02-14 19:17:35.493 UTC [64] LOG:  database system was shut down at 2026-02-14 19:17:35 UTC
    inventree-db      | 2026-02-14 19:17:35.523 UTC [1] LOG:  database system is ready to accept connections
    inventree-db      | 2026-02-14 19:17:37.121 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:37.121 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:37.123 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:37.123 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:37.125 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:37.125 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:37.138 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:37.138 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:37.151 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:37.151 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:37.166 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:37.166 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:37.190 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:37.190 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:37.198 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:37.198 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:37.222 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:37.222 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:37.234 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:37.234 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:37.262 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:37.262 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:37.272 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:37.272 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:37.379 UTC [68] ERROR:  relation "common_inventreesetting" does not exist at character 112
    inventree-db      | 2026-02-14 19:17:37.379 UTC [68] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('SERVER_RESTART_REQUIRED') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    inventree-db      | 2026-02-14 19:17:37.381 UTC [68] ERROR:  relation "common_inventreesetting" does not exist at character 112
    inventree-db      | 2026-02-14 19:17:37.381 UTC [68] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('PLUGIN_ON_STARTUP') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    inventree-db      | 2026-02-14 19:17:38.869 UTC [69] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:38.869 UTC [69] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:38.876 UTC [69] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:38.876 UTC [69] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:38.879 UTC [69] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:38.879 UTC [69] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:39.412 UTC [69] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:39.412 UTC [69] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:40.008 UTC [68] ERROR:  relation "common_inventreesetting" does not exist at character 112
    inventree-db      | 2026-02-14 19:17:40.008 UTC [68] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('ENABLE_PLUGINS_APP') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    inventree-db      | 2026-02-14 19:17:40.014 UTC [68] ERROR:  relation "common_inventreesetting" does not exist at character 112
    inventree-db      | 2026-02-14 19:17:40.014 UTC [68] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('ENABLE_PLUGINS_EVENTS') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    inventree-db      | 2026-02-14 19:17:40.019 UTC [68] ERROR:  relation "common_inventreesetting" does not exist at character 112
    inventree-db      | 2026-02-14 19:17:40.019 UTC [68] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('ENABLE_PLUGINS_INTERFACE') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    inventree-db      | 2026-02-14 19:17:40.027 UTC [68] ERROR:  relation "common_inventreesetting" does not exist at character 112
    inventree-db      | 2026-02-14 19:17:40.027 UTC [68] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('ENABLE_PLUGINS_NAVIGATION') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    inventree-db      | 2026-02-14 19:17:40.031 UTC [68] ERROR:  relation "common_inventreesetting" does not exist at character 112
    inventree-db      | 2026-02-14 19:17:40.031 UTC [68] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('ENABLE_PLUGINS_SCHEDULE') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    inventree-db      | 2026-02-14 19:17:40.037 UTC [68] ERROR:  relation "common_inventreesetting" does not exist at character 112
    inventree-db      | 2026-02-14 19:17:40.037 UTC [68] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('ENABLE_PLUGINS_URL') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    inventree-db      | 2026-02-14 19:17:40.039 UTC [68] ERROR:  relation "common_inventreesetting" does not exist at character 112
    inventree-db      | 2026-02-14 19:17:40.039 UTC [68] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('ENABLE_PLUGINS_MAILS') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    inventree-db      | 2026-02-14 19:17:40.041 UTC [68] ERROR:  relation "common_inventreesetting" does not exist at character 112
    inventree-db      | 2026-02-14 19:17:40.041 UTC [68] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('_PLUGIN_REGISTRY_HASH') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    inventree-db      | 2026-02-14 19:17:40.043 UTC [68] ERROR:  relation "common_inventreesetting" does not exist at character 112
    inventree-db      | 2026-02-14 19:17:40.043 UTC [68] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('PLUGIN_ON_STARTUP') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    inventree-db      | 2026-02-14 19:17:40.151 UTC [68] ERROR:  relation "common_inventreesetting" does not exist at character 112
    inventree-db      | 2026-02-14 19:17:40.151 UTC [68] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('CURRENCY_CODES') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    inventree-db      | 2026-02-14 19:17:40.154 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:40.154 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:40.165 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:40.165 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:40.192 UTC [68] ERROR:  relation "common_inventreesetting" does not exist at character 112
    inventree-db      | 2026-02-14 19:17:40.192 UTC [68] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('CURRENCY_CODES') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    inventree-db      | 2026-02-14 19:17:40.196 UTC [68] ERROR:  relation "common_inventreecustomuserstatemodel" does not exist at character 410
    inventree-db      | 2026-02-14 19:17:40.196 UTC [68] STATEMENT:  SELECT "common_inventreecustomuserstatemodel"."id", "common_inventreecustomuserstatemodel"."reference_status", "common_inventreecustomuserstatemodel"."logical_key", "common_inventreecustomuserstatemodel"."key", "common_inventreecustomuserstatemodel"."name", "common_inventreecustomuserstatemodel"."label", "common_inventreecustomuserstatemodel"."color", "common_inventreecustomuserstatemodel"."model_id" FROM "common_inventreecustomuserstatemodel" WHERE "common_inventreecustomuserstatemodel"."reference_status" = 'StockStatus'
    inventree-db      | 2026-02-14 19:17:40.199 UTC [68] ERROR:  relation "django_content_type" does not exist at character 106
    inventree-db      | 2026-02-14 19:17:40.199 UTC [68] STATEMENT:  SELECT "django_content_type"."id", "django_content_type"."app_label", "django_content_type"."model" FROM "django_content_type"
    inventree-db      | 2026-02-14 19:17:40.205 UTC [68] ERROR:  relation "common_inventreesetting" does not exist at character 112
    inventree-db      | 2026-02-14 19:17:40.205 UTC [68] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('CURRENCY_CODES') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    

    Then it complains about null values:

    inventree-server  |   Applying part.0116_auto_20231023_0332... OK
    inventree-server  |   Applying part.0117_remove_part_responsible... OK
    inventree-server  |   Applying part.0118_auto_20231024_1844... OK
    inventree-db      | 2026-02-14 19:22:13.875 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:13.875 UTC [33] DETAIL:  Failing row contains (9, INVENTREE_DEFAULT_CURRENCY, USD, null).
    inventree-db      | 2026-02-14 19:22:13.875 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('USD', 'INVENTREE_DEFAULT_CURRENCY') RETURNING "common_inventreesetting"."id"
    inventree-db      | 2026-02-14 19:22:13.889 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:13.889 UTC [33] DETAIL:  Failing row contains (10, INVENTREE_DEFAULT_CURRENCY, USD, null).
    inventree-db      | 2026-02-14 19:22:13.889 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('USD', 'INVENTREE_DEFAULT_CURRENCY') RETURNING "common_inventreesetting"."id"
    inventree-db      | 2026-02-14 19:22:13.901 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:13.901 UTC [33] DETAIL:  Failing row contains (11, INVENTREE_DEFAULT_CURRENCY, USD, null).
    inventree-db      | 2026-02-14 19:22:13.901 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('USD', 'INVENTREE_DEFAULT_CURRENCY') RETURNING "common_inventreesetting"."id"
    inventree-db      | 2026-02-14 19:22:14.019 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:14.019 UTC [33] DETAIL:  Failing row contains (12, INVENTREE_DEFAULT_CURRENCY, USD, null).
    inventree-db      | 2026-02-14 19:22:14.019 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('USD', 'INVENTREE_DEFAULT_CURRENCY') RETURNING "common_inventreesetting"."id"
    inventree-db      | 2026-02-14 19:22:14.031 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:14.031 UTC [33] DETAIL:  Failing row contains (13, INVENTREE_DEFAULT_CURRENCY, USD, null).
    inventree-db      | 2026-02-14 19:22:14.031 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('USD', 'INVENTREE_DEFAULT_CURRENCY') RETURNING "common_inventreesetting"."id"
    inventree-db      | 2026-02-14 19:22:14.041 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-server  |   Applying part.0119_auto_20231120_0457... OK
    inventree-db      | 2026-02-14 19:22:14.041 UTC [33] DETAIL:  Failing row contains (14, INVENTREE_DEFAULT_CURRENCY, USD, null).
    inventree-db      | 2026-02-14 19:22:14.041 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('USD', 'INVENTREE_DEFAULT_CURRENCY') RETURNING "common_inventreesetting"."id"
    inventree-server  |   Applying part.0120_parttesttemplate_key... OK
    inventree-server  |   Applying part.0121_auto_20240207_0344... OK
    

    Then some insertions fail:

    inventree-server  |   Applying order.0072_alter_salesorder_reference... OK
    inventree-server  |   Applying order.0073_alter_purchaseorder_reference... OK
    inventree-db      | 2026-02-14 19:22:28.076 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:28.076 UTC [33] DETAIL:  Failing row contains (16, ENABLE_PLUGINS_EVENTS, False, null).
    inventree-db      | 2026-02-14 19:22:28.076 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('False', 'ENABLE_PLUGINS_EVENTS') RETURNING "common_inventreesetting"."id"
    inventree-db      | 2026-02-14 19:22:28.182 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:28.182 UTC [33] DETAIL:  Failing row contains (18, ENABLE_PLUGINS_EVENTS, False, null).
    inventree-db      | 2026-02-14 19:22:28.182 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('False', 'ENABLE_PLUGINS_EVENTS') RETURNING "common_inventreesetting"."id"
    inventree-server  |   Applying order.0074_auto_20220709_0108... OK
    inventree-server  |   Applying order.0075_auto_20221110_0108... OK
    inventree-server  |   Applying order.0076_auto_20221111_0153... OK
    inventree-server  |   Applying order.0077_auto_20230129_0154... OK
    inventree-db      | 2026-02-14 19:22:29.001 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:29.001 UTC [33] DETAIL:  Failing row contains (19, INVENTREE_DEFAULT_CURRENCY, USD, null).
    inventree-db      | 2026-02-14 19:22:29.001 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('USD', 'INVENTREE_DEFAULT_CURRENCY') RETURNING "common_inventreesetting"."id"
    inventree-db      | 2026-02-14 19:22:29.016 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:29.016 UTC [33] DETAIL:  Failing row contains (20, INVENTREE_DEFAULT_CURRENCY, USD, null).
    inventree-db      | 2026-02-14 19:22:29.016 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('USD', 'INVENTREE_DEFAULT_CURRENCY') RETURNING "common_inventreesetting"."id"
    inventree-db      | 2026-02-14 19:22:29.026 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:29.026 UTC [33] DETAIL:  Failing row contains (21, INVENTREE_DEFAULT_CURRENCY, USD, null).
    inventree-db      | 2026-02-14 19:22:29.026 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('USD', 'INVENTREE_DEFAULT_CURRENCY') RETURNING "common_inventreesetting"."id"
    inventree-db      | 2026-02-14 19:22:29.150 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:29.150 UTC [33] DETAIL:  Failing row contains (22, INVENTREE_DEFAULT_CURRENCY, USD, null).
    inventree-db      | 2026-02-14 19:22:29.150 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('USD', 'INVENTREE_DEFAULT_CURRENCY') RETURNING "common_inventreesetting"."id"
    inventree-db      | 2026-02-14 19:22:29.160 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:29.160 UTC [33] DETAIL:  Failing row contains (23, INVENTREE_DEFAULT_CURRENCY, USD, null).
    inventree-db      | 2026-02-14 19:22:29.160 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('USD', 'INVENTREE_DEFAULT_CURRENCY') RETURNING "common_inventreesetting"."id"
    inventree-db      | 2026-02-14 19:22:29.174 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:29.174 UTC [33] DETAIL:  Failing row contains (24, INVENTREE_DEFAULT_CURRENCY, USD, null).
    inventree-db      | 2026-02-14 19:22:29.174 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('USD', 'INVENTREE_DEFAULT_CURRENCY') RETURNING "common_inventreesetting"."id"
    inventree-server  |   Applying order.0078_auto_20230304_0721... OK
    inventree-db      | 2026-02-14 19:22:29.348 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:29.348 UTC [33] DETAIL:  Failing row contains (25, INVENTREE_DEFAULT_CURRENCY, USD, null).
    inventree-db      | 2026-02-14 19:22:29.348 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('USD', 'INVENTREE_DEFAULT_CURRENCY') RETURNING "common_inventreesetting"."id"
    inventree-db      | 2026-02-14 19:22:29.513 UTC [33] ERROR:  null value in column "description" of relation "common_inventreesetting" violates not-null constraint
    inventree-db      | 2026-02-14 19:22:29.513 UTC [33] DETAIL:  Failing row contains (26, INVENTREE_DEFAULT_CURRENCY, USD, null).
    inventree-db      | 2026-02-14 19:22:29.513 UTC [33] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('USD', 'INVENTREE_DEFAULT_CURRENCY') RETURNING "common_inventreesetting"."id"
    inventree-server  |   Applying order.0079_auto_20230304_0904... OK
    

    And then it all crashes while initialisation goes on forward:

    inventree-server  |   Applying common.0009_delete_currency... OK
    inventree-db      | 2026-02-14 19:22:35.466 UTC [33] ERROR:  relation "plugin_pluginconfig" does not exist at character 203
    inventree-db      | 2026-02-14 19:22:35.466 UTC [33] STATEMENT:  SELECT "plugin_pluginconfig"."id", "plugin_pluginconfig"."metadata", "plugin_pluginconfig"."key", "plugin_pluginconfig"."name", "plugin_pluginconfig"."package_name", "plugin_pluginconfig"."active" FROM "plugin_pluginconfig"
    inventree-db      | 2026-02-14 19:22:35.468 UTC [33] ERROR:  current transaction is aborted, commands ignored until end of transaction block
    inventree-db      | 2026-02-14 19:22:35.468 UTC [33] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('ENABLE_PLUGINS_EVENTS') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1
    inventree-server  | 2026-02-14T19:22:35.469657Z [error    ] Unexpected error during plugin reload: current transaction is aborted, commands ignored until end of transaction block [inventree]
    inventree-server  | Traceback (most recent call last):
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute
    inventree-db      | 2026-02-14 19:22:35.482 UTC [33] ERROR:  current transaction is aborted, commands ignored until end of transaction block
    inventree-server  |     return self.cursor.execute(sql, params)
    inventree-db      | 2026-02-14 19:22:35.482 UTC [33] STATEMENT:  INSERT INTO "error_report_error" ("kind", "info", "data", "path", "when", "html", "modified") VALUES ('InternalError', 'current transaction is aborted, commands ignored until end of transaction block', 'Traceback (most recent call last):
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-db      | 
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/psycopg/cursor.py", line 117, in execute
    inventree-db      |       File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute
    inventree-server  |     raise ex.with_traceback(None)
    inventree-db      |         return self.cursor.execute(sql, params)
    inventree-server  | psycopg.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block
    inventree-db      |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  | 
    inventree-db      | 
    inventree-server  | The above exception was the direct cause of the following exception:
    inventree-db      |       File "/root/.local/lib/python3.11/site-packages/psycopg/cursor.py", line 117, in execute
    inventree-server  | 
    inventree-db      |         raise ex.with_traceback(None)
    inventree-server  | Traceback (most recent call last):
    inventree-db      | 
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/plugin/registry.py", line 469, in reload_plugins
    inventree-db      |     psycopg.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block
    inventree-server  |     self._load_plugins(full_reload=full_reload, _internal=_internal)
    inventree-db      | 
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/plugin/registry.py", line 391, in _load_plugins
    inventree-db      | 
    inventree-server  |     trigger_event(PluginEvents.PLUGINS_LOADED)
    inventree-db      |     The above exception was the direct cause of the following exception:
    inventree-server  |   File "/usr/local/lib/python3.11/contextlib.py", line 81, in inner
    inventree-db      | 
    inventree-server  |     return func(*args, **kwds)
    inventree-db      | 
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^
    inventree-db      |     Traceback (most recent call last):
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/plugin/base/event/events.py", line 33, in trigger_event
    inventree-db      | 
    inventree-server  |     if not get_global_setting('ENABLE_PLUGINS_EVENTS', False):
    inventree-db      |       File "/home/inventree/src/backend/InvenTree/plugin/registry.py", line 469, in reload_plugins
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-db      |         self._load_plugins(full_reload=full_reload, _internal=_internal)
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/common/settings.py", line 41, in get_global_setting
    inventree-db      | 
    inventree-server  |     return InvenTreeSetting.get_setting(key, **kwargs)
    inventree-db      |       File "/home/inventree/src/backend/InvenTree/plugin/registry.py", line 391, in _load_plugins
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-db      |         trigger_event(PluginEvents.PLUGINS_LOADED)
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/common/models.py", line 1268, in get_setting
    inventree-db      | 
    inventree-server  |     return super().get_setting(key, backup_value=backup_value, **kwargs)
    inventree-db      |       File "/usr/local/lib/python3.11/contextlib.py", line 81, in inner
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-db      |         return func(*args, **kwds)
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/common/models.py", line 659, in get_setting
    inventree-db      |                ^^^^^^^^^^^^^^^^^^^
    inventree-server  |     setting = cls.get_setting_object(key, **kwargs)
    inventree-db      | 
    inventree-server  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-db      |       File "/home/inventree/src/backend/InvenTree/plugin/base/event/events.py", line 33, in trigger_event
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/common/models.py", line 599, in get_setting_object
    inventree-db      |         if not get_global_setting(''ENABLE_PLUGINS_EVENTS'', False):
    inventree-server  |     setting = settings.filter(**filters).first()
    inventree-db      |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-db      | 
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 1106, in first
    inventree-db      |       File "/home/inventree/src/backend/InvenTree/common/settings.py", line 41, in get_global_setting
    inventree-server  |     for obj in queryset[:1]:
    inventree-db      |         return InvenTreeSetting.get_setting(key, **kwargs)
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 386, in __iter__
    inventree-db      |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |     self._fetch_all()
    inventree-db      | 
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 1954, in _fetch_all
    inventree-db      |       File "/home/inventree/src/backend/InvenTree/common/models.py", line 1268, in get_setting
    inventree-server  |     self._result_cache = list(self._iterable_class(self))
    inventree-db      |         return super().get_setting(key, backup_value=backup_value, **kwargs)
    inventree-server  |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-db      |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 93, in __iter__
    inventree-db      | 
    inventree-server  |     results = compiler.execute_sql(
    inventree-db      |       File "/home/inventree/src/backend/InvenTree/common/models.py", line 659, in get_setting
    inventree-server  |               ^^^^^^^^^^^^^^^^^^^^^
    inventree-db      |         setting = cls.get_setting_object(key, **kwargs)
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1623, in execute_sql
    inventree-db      |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |     cursor.execute(sql, params)
    inventree-db      | 
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 79, in execute
    inventree-db      |       File "/home/inventree/src/backend/InvenTree/common/models.py", line 599, in get_setting_object
    inventree-server  |     return self._execute_with_wrappers(
    inventree-db      |         setting = settings.filter(**filters).first()
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-db      |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers
    inventree-db      | 
    inventree-server  |     return executor(sql, params, many, context)
    inventree-db      |       File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 1106, in first
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-db      |         for obj in queryset[:1]:
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 100, in _execute
    inventree-db      | 
    inventree-server  |     with self.db.wrap_database_errors:
    inventree-db      |       File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 386, in __iter__
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/utils.py", line 91, in __exit__
    inventree-db      |         self._fetch_all()
    inventree-server  |     raise dj_exc_value.with_traceback(traceback) from exc_value
    inventree-db      | 
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute
    inventree-db      |       File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 1954, in _fetch_all
    inventree-server  |     return self.cursor.execute(sql, params)
    inventree-db      |         self._result_cache = list(self._iterable_class(self))
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-db      |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/psycopg/cursor.py", line 117, in execute
    inventree-db      | 
    inventree-server  |     raise ex.with_traceback(None)
    inventree-db      |       File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 93, in __iter__
    inventree-server  | django.db.utils.InternalError: current transaction is aborted, commands ignored until end of transaction block
    inventree-db      |         results = compiler.execute_sql(
    inventree-server  | 2026-02-14 20:22:35,478 ERROR {'event': 'Unexpected error during plugin reload: current transaction is aborted, commands ignored until end of transaction block', 'timestamp': '2026-02-14T19:22:35.469657Z', 'logger': 'inventree', 'level': 'error', 'exception': 'Traceback (most recent call last):\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute\n    return self.cursor.execute(sql, params)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/psycopg/cursor.py", line 117, in execute\n    raise ex.with_traceback(None)\npsycopg.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File "/home/inventree/src/backend/InvenTree/plugin/registry.py", line 469, in reload_plugins\n    self._load_plugins(full_reload=full_reload, _internal=_internal)\n  File "/home/inventree/src/backend/InvenTree/plugin/registry.py", line 391, in _load_plugins\n    trigger_event(PluginEvents.PLUGINS_LOADED)\n  File "/usr/local/lib/python3.11/contextlib.py", line 81, in inner\n    return func(*args, **kwds)\n           ^^^^^^^^^^^^^^^^^^^\n  File "/home/inventree/src/backend/InvenTree/plugin/base/event/events.py", line 33, in trigger_event\n    if not get_global_setting(\'ENABLE_PLUGINS_EVENTS\', False):\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/inventree/src/backend/InvenTree/common/settings.py", line 41, in get_global_setting\n    return InvenTreeSetting.get_setting(key, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/inventree/src/backend/InvenTree/common/models.py", line 1268, in get_setting\n    return super().get_setting(key, backup_value=backup_value, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/inventree/src/backend/InvenTree/common/models.py", line 659, in get_setting\n    setting = cls.get_setting_object(key, **kwargs)\n              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/inventree/src/backend/InvenTree/common/models.py", line 599, in get_setting_object\n    setting = settings.filter(**filters).first()\n              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 1106, in first\n    for obj in queryset[:1]:\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 386, in __iter__\n    self._fetch_all()\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 1954, in _fetch_all\n    self._result_cache = list(self._iterable_class(self))\n                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 93, in __iter__\n    results = compiler.execute_sql(\n              ^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1623, in execute_sql\n    cursor.execute(sql, params)\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 79, in execute\n    return self._execute_with_wrappers(\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers\n    return executor(sql, params, many, context)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 100, in _execute\n    with self.db.wrap_database_errors:\n  File "/root/.local/lib/python3.11/site-packages/django/db/utils.py", line 91, in __exit__\n    raise dj_exc_value.with_traceback(traceback) from exc_value\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute\n    return self.cursor.execute(sql, params)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/psycopg/cursor.py", line 117, in execute\n    raise ex.with_traceback(None)\ndjango.db.utils.InternalError: current transaction is aborted, commands ignored until end of transaction block'}
    inventree-db      |                   ^^^^^^^^^^^^^^^^^^^^^
    inventree-server  | 2026-02-14T19:22:35.481046Z [error    ] current transaction is aborted, commands ignored until end of transaction block [inventree]
    inventree-db      | 
    inventree-server  | 2026-02-14 20:22:35,481 ERROR {'event': InternalError('current transaction is aborted, commands ignored until end of transaction block'), 'timestamp': '2026-02-14T19:22:35.481046Z', 'logger': 'inventree', 'level': 'error'}
    inventree-db      |       File "/root/.local/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1623, in execute_sql
    inventree-server  | 2026-02-14T19:22:35.483930Z [error    ] Failed to log exception to database [inventree]
    inventree-db      |         cursor.execute(sql, params)
    inventree-server  | Traceback (most recent call last):
    inventree-db      | 
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute
    inventree-db      |       File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 79, in execute
    inventree-server  |     return self.cursor.execute(sql, params)
    inventree-db      |         return self._execute_with_wrappers(
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-db      |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/psycopg/cursor.py", line 117, in execute
    inventree-db      | 
    inventree-server  |     raise ex.with_traceback(None)
    inventree-db      |       File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers
    inventree-server  | psycopg.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block
    inventree-db      |         return executor(sql, params, many, context)
    inventree-server  | 
    inventree-db      |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  | The above exception was the direct cause of the following exception:
    inventree-db      | 
    inventree-server  | 
    inventree-db      |       File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 100, in _execute
    inventree-server  | Traceback (most recent call last):
    inventree-db      |         with self.db.wrap_database_errors:
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/plugin/registry.py", line 469, in reload_plugins
    inventree-db      | 
    inventree-server  |     self._load_plugins(full_reload=full_reload, _internal=_internal)
    inventree-db      |       File "/root/.local/lib/python3.11/site-packages/django/db/utils.py", line 91, in __exit__
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/plugin/registry.py", line 391, in _load_plugins
    inventree-db      |         raise dj_exc_value.with_traceback(traceback) from exc_value
    inventree-server  |     trigger_event(PluginEvents.PLUGINS_LOADED)
    inventree-db      | 
    inventree-server  |   File "/usr/local/lib/python3.11/contextlib.py", line 81, in inner
    inventree-db      |       File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute
    inventree-server  |     return func(*args, **kwds)
    inventree-db      |         return self.cursor.execute(sql, params)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^
    inventree-db      |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/plugin/base/event/events.py", line 33, in trigger_event
    inventree-db      | 
    inventree-server  |     if not get_global_setting('ENABLE_PLUGINS_EVENTS', False):
    inventree-db      |       File "/root/.local/lib/python3.11/site-packages/psycopg/cursor.py", line 117, in execute
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-db      |         raise ex.with_traceback(None)
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/common/settings.py", line 41, in get_global_setting
    inventree-db      | 
    inventree-server  |     return InvenTreeSetting.get_setting(key, **kwargs)
    inventree-db      |     django.db.utils.InternalError: current transaction is aborted, commands ignored until end of transaction block
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-db      |     ', 'plugins:reload_plugins', '2026-02-14 19:22:35.482143+00:00'::timestamptz, NULL, '2026-02-14 19:22:35.482171+00:00'::timestamptz) RETURNING "error_report_error"."id"
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/common/models.py", line 1268, in get_setting
    inventree-db      | 2026-02-14 19:22:35.494 UTC [33] ERROR:  relation "exchange_exchangebackend" does not exist at character 133
    inventree-server  |     return super().get_setting(key, backup_value=backup_value, **kwargs)
    inventree-db      | 2026-02-14 19:22:35.494 UTC [33] STATEMENT:  SELECT "exchange_exchangebackend"."name", "exchange_exchangebackend"."last_update", "exchange_exchangebackend"."base_currency" FROM "exchange_exchangebackend" WHERE "exchange_exchangebackend"."name" = 'InvenTreeExchange' LIMIT 21 FOR UPDATE
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/common/models.py", line 659, in get_setting
    inventree-server  |     setting = cls.get_setting_object(key, **kwargs)
    inventree-server  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/common/models.py", line 599, in get_setting_object
    inventree-server  |     setting = settings.filter(**filters).first()
    inventree-server  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 1106, in first
    inventree-server  |     for obj in queryset[:1]:
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 386, in __iter__
    inventree-server  |     self._fetch_all()
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 1954, in _fetch_all
    inventree-server  |     self._result_cache = list(self._iterable_class(self))
    inventree-server  |                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 93, in __iter__
    inventree-server  |     results = compiler.execute_sql(
    inventree-server  |               ^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1623, in execute_sql
    inventree-server  |     cursor.execute(sql, params)
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 79, in execute
    inventree-server  |     return self._execute_with_wrappers(
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers
    inventree-server  |     return executor(sql, params, many, context)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 100, in _execute
    inventree-server  |     with self.db.wrap_database_errors:
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/utils.py", line 91, in __exit__
    inventree-server  |     raise dj_exc_value.with_traceback(traceback) from exc_value
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute
    inventree-server  |     return self.cursor.execute(sql, params)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/psycopg/cursor.py", line 117, in execute
    inventree-server  |     raise ex.with_traceback(None)
    inventree-server  | django.db.utils.InternalError: current transaction is aborted, commands ignored until end of transaction block
    inventree-server  | 
    inventree-server  | During handling of the above exception, another exception occurred:
    inventree-server  | 
    inventree-server  | Traceback (most recent call last):
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute
    inventree-server  |     return self.cursor.execute(sql, params)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/psycopg/cursor.py", line 117, in execute
    inventree-server  |     raise ex.with_traceback(None)
    inventree-server  | psycopg.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block
    inventree-server  | 
    inventree-server  | The above exception was the direct cause of the following exception:
    inventree-server  | 
    inventree-server  | Traceback (most recent call last):
    inventree-server  |   File "/home/inventree/src/backend/InvenTree/InvenTree/exceptions.py", line 92, in log_error
    inventree-server  |     Error.objects.create(kind=kind, info=info or '', data=data or '', path=path)
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/manager.py", line 87, in manager_method
    inventree-server  |     return getattr(self.get_queryset(), name)(*args, **kwargs)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 665, in create
    inventree-server  |     obj.save(force_insert=True, using=self.db)
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/base.py", line 902, in save
    inventree-server  |     self.save_base(
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/base.py", line 1008, in save_base
    inventree-server  |     updated = self._save_table(
    inventree-server  |               ^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/base.py", line 1169, in _save_table
    inventree-server  |     results = self._do_insert(
    inventree-server  |               ^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/base.py", line 1210, in _do_insert
    inventree-server  |     return manager._insert(
    inventree-server  |            ^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/manager.py", line 87, in manager_method
    inventree-server  |     return getattr(self.get_queryset(), name)(*args, **kwargs)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 1873, in _insert
    inventree-server  |     return query.get_compiler(using=using).execute_sql(returning_fields)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1882, in execute_sql
    inventree-server  |     cursor.execute(sql, params)
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 79, in execute
    inventree-server  |     return self._execute_with_wrappers(
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers
    inventree-server  |     return executor(sql, params, many, context)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 100, in _execute
    inventree-server  |     with self.db.wrap_database_errors:
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/utils.py", line 91, in __exit__
    inventree-server  |     raise dj_exc_value.with_traceback(traceback) from exc_value
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute
    inventree-server  |     return self.cursor.execute(sql, params)
    inventree-server  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    inventree-server  |   File "/root/.local/lib/python3.11/site-packages/psycopg/cursor.py", line 117, in execute
    inventree-server  |     raise ex.with_traceback(None)
    inventree-server  | django.db.utils.InternalError: current transaction is aborted, commands ignored until end of transaction block
    inventree-server  | 2026-02-14 20:22:35,488 ERROR {'event': 'Failed to log exception to database', 'timestamp': '2026-02-14T19:22:35.483930Z', 'logger': 'inventree', 'level': 'error', 'exception': 'Traceback (most recent call last):\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute\n    return self.cursor.execute(sql, params)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/psycopg/cursor.py", line 117, in execute\n    raise ex.with_traceback(None)\npsycopg.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File "/home/inventree/src/backend/InvenTree/plugin/registry.py", line 469, in reload_plugins\n    self._load_plugins(full_reload=full_reload, _internal=_internal)\n  File "/home/inventree/src/backend/InvenTree/plugin/registry.py", line 391, in _load_plugins\n    trigger_event(PluginEvents.PLUGINS_LOADED)\n  File "/usr/local/lib/python3.11/contextlib.py", line 81, in inner\n    return func(*args, **kwds)\n           ^^^^^^^^^^^^^^^^^^^\n  File "/home/inventree/src/backend/InvenTree/plugin/base/event/events.py", line 33, in trigger_event\n    if not get_global_setting(\'ENABLE_PLUGINS_EVENTS\', False):\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/inventree/src/backend/InvenTree/common/settings.py", line 41, in get_global_setting\n    return InvenTreeSetting.get_setting(key, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/inventree/src/backend/InvenTree/common/models.py", line 1268, in get_setting\n    return super().get_setting(key, backup_value=backup_value, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/inventree/src/backend/InvenTree/common/models.py", line 659, in get_setting\n    setting = cls.get_setting_object(key, **kwargs)\n              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/home/inventree/src/backend/InvenTree/common/models.py", line 599, in get_setting_object\n    setting = settings.filter(**filters).first()\n              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 1106, in first\n    for obj in queryset[:1]:\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 386, in __iter__\n    self._fetch_all()\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 1954, in _fetch_all\n    self._result_cache = list(self._iterable_class(self))\n                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 93, in __iter__\n    results = compiler.execute_sql(\n              ^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1623, in execute_sql\n    cursor.execute(sql, params)\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 79, in execute\n    return self._execute_with_wrappers(\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers\n    return executor(sql, params, many, context)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 100, in _execute\n    with self.db.wrap_database_errors:\n  File "/root/.local/lib/python3.11/site-packages/django/db/utils.py", line 91, in __exit__\n    raise dj_exc_value.with_traceback(traceback) from exc_value\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute\n    return self.cursor.execute(sql, params)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/psycopg/cursor.py", line 117, in execute\n    raise ex.with_traceback(None)\ndjango.db.utils.InternalError: current transaction is aborted, commands ignored until end of transaction block\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute\n    return self.cursor.execute(sql, params)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/psycopg/cursor.py", line 117, in execute\n    raise ex.with_traceback(None)\npsycopg.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File "/home/inventree/src/backend/InvenTree/InvenTree/exceptions.py", line 92, in log_error\n    Error.objects.create(kind=kind, info=info or \'\', data=data or \'\', path=path)\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/manager.py", line 87, in manager_method\n    return getattr(self.get_queryset(), name)(*args, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 665, in create\n    obj.save(force_insert=True, using=self.db)\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/base.py", line 902, in save\n    self.save_base(\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/base.py", line 1008, in save_base\n    updated = self._save_table(\n              ^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/base.py", line 1169, in _save_table\n    results = self._do_insert(\n              ^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/base.py", line 1210, in _do_insert\n    return manager._insert(\n           ^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/manager.py", line 87, in manager_method\n    return getattr(self.get_queryset(), name)(*args, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/query.py", line 1873, in _insert\n    return query.get_compiler(using=using).execute_sql(returning_fields)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1882, in execute_sql\n    cursor.execute(sql, params)\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 79, in execute\n    return self._execute_with_wrappers(\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers\n    return executor(sql, params, many, context)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 100, in _execute\n    with self.db.wrap_database_errors:\n  File "/root/.local/lib/python3.11/site-packages/django/db/utils.py", line 91, in __exit__\n    raise dj_exc_value.with_traceback(traceback) from exc_value\n  File "/root/.local/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute\n    return self.cursor.execute(sql, params)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/root/.local/lib/python3.11/site-packages/psycopg/cursor.py", line 117, in execute\n    raise ex.with_traceback(None)\ndjango.db.utils.InternalError: current transaction is aborted, commands ignored until end of transaction block'}
    inventree-server  | 2026-02-14T19:22:35.496510Z [warning  ] Could not update exchange rates - database not ready [inventree]
    inventree-server  | 2026-02-14 20:22:35,496 WARNING {'event': 'Could not update exchange rates - database not ready', 'timestamp': '2026-02-14T19:22:35.496510Z', 'logger': 'inventree', 'level': 'warning'}
    inventree-server  |   Applying common.0010_migrate_currency_setting... OK
    
  8. matmair commented on Feb 14, 2026

    @matmair
    Member

    where would database be stored?

    @martin323232 we can not tell you that, it is user configurable and depends on the underlying operating system

  9. added
    setup
    and removed
    triage:not-checked
    on Feb 14, 2026
  10. added theissue type on Feb 14, 2026
  11. matmair commented on Feb 14, 2026

    @matmair
    Member

    @Dome-Maurice is it working now?

  12. matmair commented on Feb 14, 2026

    @matmair
    Member

    Off-topic remarks:
    There is still a lot of unnecessary repeated information about git and Python versions in the log.

    You wouldn't say that if you were having issues with git or python ;-) which was the case a lot of times in the past

    In the section "Start New Database", there is instruction to perform "docker compose up -d". The -d part maybe should not be there as it's not very helpful not to see when the initialisation is complete.

    we accept PRs

    it's very long.

    The is because you provided logs from the DB container, which is very noicy. In general: Please only provide logs for services that we code - namely inventree-server and inventree-worker.

    You can get only those logs with docker compose logs inventree-server

  13. SchrodingersGat commented on Feb 15, 2026

    @SchrodingersGat
    Member

    For anyone who is updating from an older version of PostgreSQL - we have put together a blog post explaining the process - it basically follows the already documented procedure, but with some specific versions and screenshots:

    https://inventree.org/blog/2026/02/12/db-update

  14. added
    docker
    wontfix
    and removed
    bug
    on Feb 15, 2026
  15. matmair commented on Feb 15, 2026

    @matmair
    Member

    We have added docs for this now; closing as complete;

    If you are not running in a secure context and having issues with login-redirects see #11318

  16. MR-DOS commented on Feb 16, 2026

    @MR-DOS
    Author

    @SchrodingersGat OK, doing everything according to the guide. When I start with a completely clean data volume of all services, I still get these errors with IT 1.1.12 + PG 17 when running migrate (PG13 container was communicating fine, only version number was changed):

    Running InvenTree database migrations...
    INVE-W3: Could not detect git information.
    Python version 3.11.13 - /usr/local/bin/python3
    2026-02-16 09:07:35,883 WARNING Plugin configuration file does not exist - creating default file
    /root/.local/lib/python3.11/site-packages/django/core/management/commands/makemigrations.py:160: RuntimeWarning: Got an error checking a consistent migration history performed for database connection 'default': connection failed: connection to server at "172.19.0.2", port 5432 failed: FATAL:  could not open file "global/pg_filenode.map": No such file or directory
    
    InvenTree database migrations completed
    Rebuilding internal database structures
    INVE-W3: Could not detect git information.
    Python version 3.11.13 - /usr/local/bin/python3
    2026-02-16T09:09:56.210221Z [warning  ] Failed to set maintenance mode state after 5 retries [inventree]
    2026-02-16 09:09:56,210 WARNING {'event': 'Failed to set maintenance mode state after 5 retries', 'timestamp': '2026-02-16T09:09:56.210221Z', 'logger': 'inventree', 'level': 'warning'}
    Rebuilding image thumbnails in /home/inventree/data/media
    

    And then when running restore:

     ✔ Container inventree-db  Running                                                                                                                                                                                          0.0s
    Loading config file : /home/inventree/data/config.yaml
    Restoring InvenTree database
    INVE-W3: Could not detect git information.
    Python version 3.11.13 - /usr/local/bin/python3
    2026-02-16 09:12:45,484 INFO Finding latest backup
    2026-02-16 09:12:45,492 INFO Restoring backup for database 'default' and server 'None'
    2026-02-16 09:12:45,492 INFO Restoring: InvenTree-db-2026-02-12-151538.psql.bin.gz
    2026-02-16 09:12:45,502 INFO Restore tempfile created: 1.4 MiB
    2026-02-16 09:12:45,504 DEBUG pg_restore --dbname=postgresql://REDACTED@inventree-db:5432/inventree --single-transaction --clean --if-exists
    Traceback (most recent call last):
      File "/home/inventree/src/backend/InvenTree/manage.py", line 24, in <module>
        main()
      File "/home/inventree/src/backend/InvenTree/manage.py", line 20, in main
        execute_from_command_line(sys.argv)
      File "/root/.local/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
        utility.execute()
      File "/root/.local/lib/python3.11/site-packages/django/core/management/__init__.py", line 436, in execute
        self.fetch_command(subcommand).run_from_argv(self.argv)
      File "/root/.local/lib/python3.11/site-packages/django/core/management/base.py", line 412, in run_from_argv
        self.execute(*args, **cmd_options)
      File "/root/.local/lib/python3.11/site-packages/django/core/management/base.py", line 458, in execute
        output = self.handle(*args, **options)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/root/.local/lib/python3.11/site-packages/dbbackup/management/commands/dbrestore.py", line 85, in handle
        self._restore_backup()
      File "/root/.local/lib/python3.11/site-packages/dbbackup/management/commands/dbrestore.py", line 162, in _restore_backup
        self.connector.restore_dump(input_file)
      File "/root/.local/lib/python3.11/site-packages/dbbackup/db/base.py", line 109, in restore_dump
        return self._restore_dump(dump)
               ^^^^^^^^^^^^^^^^^^^^^^^^
      File "/root/.local/lib/python3.11/site-packages/dbbackup/db/postgresql.py", line 194, in _restore_dump
        stdout, _ = self.run_command(cmd_str, stdin=dump, env={**self.dump_env, **pg_env})
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/root/.local/lib/python3.11/site-packages/dbbackup/db/base.py", line 186, in run_command
        raise exceptions.CommandConnectorError(msg)
    dbbackup.db.exceptions.CommandConnectorError: Error running: pg_restore --dbname=postgresql://REDACTED@inventree-db:5432/inventree --single-transaction --clean --if-exists
    pg_restore: error: could not execute query: ERROR:  column "id" of relation "users_ruleset" is an identity column
    HINT:  Use ALTER TABLE ... ALTER COLUMN ... DROP IDENTITY instead.
    Command was: ALTER TABLE IF EXISTS public.users_ruleset ALTER COLUMN id DROP DEFAULT;
    
    ERROR: InvenTree command failed: 'python3 manage.py dbrestore --noinput -v 2 --uncompress'
    - Refer to the error messages in the log above for more information
    
  17. SchrodingersGat commented on Feb 16, 2026

    @SchrodingersGat
    Member

    See also: #11338

  18. SchrodingersGat commented on Feb 16, 2026

    @SchrodingersGat
    Member

    @MR-DOS did you run the "restore" command before updating the InvenTree software version (to 1.2.0)? Please provide the output of

    docker compose run --rm inventree-server invoke version
    
  19. SchrodingersGat commented on Feb 16, 2026

    @SchrodingersGat
    Member

    When I start with a completely clean data volume of all services

    This is not a part of the recommended migration - only the pgdb directory needs to be renamed:

    e.g. mv data/pgdb data/pgdb_backup

  20. MR-DOS commented on Feb 16, 2026

    @MR-DOS
    Author

    This is not a part of the recommended migration

    I was getting these errors even when all files except pgdb folder were still there, it just took much longer because it runs backup first every time. I just wanted to also try restoring a backup on a clean installation, but that also fails for me, even if I first initialize this new installation.

    First, I upgraded to 1.2.0 and tried invoke update as usual. This resulted in an error due to PG13 being used. So I tried with 1.2.0 and PG15 and got the name resolution errors. Later, I tried PG17 and that crashes due to the identity column. Then I tried the database migration guide, again resulting in errors. I can't sadly retell the whole history.
    I have already tried a lot of combinations of IT 1.2.0, 1.1.12, 1.0.0, 0.17.0 and PG13, 15 and 17. I haven't found a combination which is able to restore my backup.

    So, currently I have all the media files and backups of media files and database before any experiments except for the original PG database folder. Sadly, I managed to destroy my database (for some reason, the number-named folders in PGDB did not copy over). I would also be OK with going back to 1.1.12 and staying there forever, but I can't get the restore mechanism to work.

    docker compose run --rm inventree-server invoke version

    Loading config file : /home/inventree/data/config.yaml
    INVE-W3: Could not detect git information.
    
    InvenTree - inventree.org
    The Open-Source Inventory Management System
    
    
    Python paths:
    Executable  /usr/local/bin/python
    Environment /usr/local
    Invoke Tool /usr/local/lib/python3.11/site-packages/invoke/__init__.py
    
    Installation paths:
    Base        /home/inventree
    Config      /home/inventree/data/config.yaml
    Plugin File /home/inventree/data/plugins.txt
    Media       /home/inventree/data/media
    Static      /home/inventree/data/static
    Backup      /home/inventree/data/backup
    
    Versions:
    InvenTree   1.1.12
    API         421
    Python      3.11.13
    Django      4.2.28
    Node        N/A
    Yarn        N/A
    
    Environment:
    Platform    Docker
    Debug       False
    
    Commit hash: aa93421
    Commit date: 2026-02-12
    

    I can later try running the commands with the delayed start as proposed, but that probably will only solve part of the issues I'm running into.

  21. MR-DOS commented on Feb 17, 2026

    @MR-DOS
    Author

    @SchrodingersGat I have again tried the migration guide posted above, following steps exactly. When I first start the DB container, then invoke migration on 1.1.12, everything runs fine (just with the info about failure to set maintenance mode), but when restore is invoked, a query error appears.

    dbbackup.db.exceptions.CommandConnectorError: Error running: pg_restore --dbname=postgresql://REDACTED@inventree-db:5432/inventree --single-transaction --clean --if-exists
    pg_restore: error: could not execute query: ERROR:  column "id" of relation "users_ruleset" is an identity column
    HINT:  Use ALTER TABLE ... ALTER COLUMN ... DROP IDENTITY instead.
    Command was: ALTER TABLE IF EXISTS public.users_ruleset ALTER COLUMN id DROP DEFAULT;
    

    So I have to admit that I have also tried asking ChatGPT for the fun of it.

    docker compose up inventree-db -d
    docker compose run --rm inventree-server invoke migrate
    docker compose exec inventree-db psql -U REDACTED -d postgres
    
    DROP DATABASE inventree;
    CREATE DATABASE inventree;
    \q
    
    docker compose run --rm inventree-server bash
    cd /home/inventree/data/backup
    gunzip InvenTree-db-2026-02-12-151538.psql.bin.gz
    pg_restore --dbname=postgresql://REDACTED@inventree-db:5432/inventree --single-transaction InvenTree-db-2026-02-12-151538.psql.bin
    
    (entered DB password)
    exit
    
    docker compose run --rm inventree-server invoke migrate
    docker compose run --rm inventree-server invoke update
    docker compose run --rm inventree-server python3 /home/inventree/src/backend/InvenTree/manage.py collectstatic --noinput
    docker compose down
    docker compose up
    

    After that, I still get an error instead of web interface even though the process seemed to go on fine (also now the DB dump is about 3x smaller than before).

    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.
    

    However, access via mobile app works and it seems as if the data make sense.

  22. MR-DOS commented on Feb 25, 2026

    @MR-DOS
    Author

    OK, so for anyone else having issues with restoring from old PostgreSQL version (<15) and updating to 1.2.0 from 1.1.12 in the future:

    • Start with completely clean inventree-data directory, only SQL(+media, but not needed) backup archives should be left there (maybe media folder may also be left there, but it may cost you a LOT of time as it will be producing backups of it).
    • You need to use a current docker compose file for Inventree 1.1.12 which contains proxy. Something inside Inventree has changed and if you restore a backup from a previously working Inventree instance which worked without the proxy (while using your own proxy), now it won't.
    • Also use a current .env file AND a Caddyfile (maybe you don't have any Caddyfile if you have been upgrading from older versions for a long time).
    • Try the above mentioned procedure with Inventree 1.2.0 and PostgreSQL 17 (yes, it will happily crunch PG13 backup in a fraction of a second without any output, that's normal), just replace the "REDACTED" with your PG username and filename of the SQL backup. It will allow you to directly restore the database without any migrations or importing backup into non-empty database. Note that it works ONLY with PG17 due to Inventree using set_timeout parameter.
    • After restoring the database, move back in the media directory.
    • The line with "collectstatic" (3rd from bottom) is not needed at all.
    • If you run into INVE-E1, it's likely your own proxy incorrectly configured. If you use jwilder-proxy, remove your Inventree vhost file and add VIRTUAL_HOST environment parameter to inventree-proxy (also add VIRTUAL_HOST).
    • If you get no page at all and "NOP" in logs, it is likely mismatch between your server's public address and SITE_URL. If you have any of these issues, try accessing directly inventree-server by opening its port publicly so you can bypass the proxy. You won't see any pictures or be able to download any files, but you will be able to see if Inventree works at all.
    • If all is OK, you may try upgrading to 1.2.0+ now.

    @SchrodingersGat I have worked it out for my case, though probably not in an ideal way. Maybe it could be simplified by just initialising a new Inventree instance by invoke update, then dropping and creating an empty database and then running normal backup restore - it seems the main issue was that pg_restore bundled with Inventree tries to perform some PG17 magic to simplify the database and merge it with the existing one, which fails, but does not fail if the target database is empty. Maybe it would work if Inventree was not initialised?
    Also the bundled pg_restore won't work if database is in any other version than 17 due to requiring the set_timeout parameter, even though documentation says that 15 should be used and that anything above 16 may run into issues.
    I have seen there are a few other issues dealing with INVE-E1, maybe they also have their own proxy which interferes with the Inventree's proxy.

    Anyways, thanks for this funny exercise which forced me to finally learn at least a tiny bit about how databases work.

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

    dockerdocumentationquestionsetupwontfix

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions