Repository navigation
Description
Please verify that this bug has NOT been raised before.
- I checked and didn't find a similar issue
Describe the bug*
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
- Take working 1.1.12 installation with Postgres 13.
- Invoke update to 1.2.0, update crashes due to unsupported Postgres.
- 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.
- 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
martin323232 commentedon Feb 13, 2026
Got the same error
Dome-Maurice commentedon Feb 13, 2026
Yup here too, but with pg 17 and from 1.1.11 to 1.2i 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.
MR-DOS commentedon Feb 13, 2026
@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.
SchrodingersGat commentedon Feb 14, 2026
@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
martin323232 commentedon Feb 14, 2026
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?
MR-DOS commentedon Feb 14, 2026
@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:
Start of IT 1.2.0 + PG15:
Then it complains about null values:
Then some insertions fail:
And then it all crashes while initialisation goes on forward:
matmair commentedon Feb 14, 2026
@martin323232 we can not tell you that, it is user configurable and depends on the underlying operating system
matmair commentedon Feb 14, 2026
@Dome-Maurice is it working now?
matmair commentedon Feb 14, 2026
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
we accept PRs
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-serverandinventree-worker.You can get only those logs with
docker compose logs inventree-serverSchrodingersGat commentedon Feb 15, 2026
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
matmair commentedon Feb 15, 2026
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
MR-DOS commentedon Feb 16, 2026
@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):
And then when running restore:
SchrodingersGat commentedon Feb 16, 2026
See also: #11338
SchrodingersGat commentedon Feb 16, 2026
@MR-DOS did you run the "restore" command before updating the InvenTree software version (to 1.2.0)? Please provide the output of
SchrodingersGat commentedon Feb 16, 2026
This is not a part of the recommended migration - only the
pgdbdirectory needs to be renamed:e.g.
mv data/pgdb data/pgdb_backupMR-DOS commentedon Feb 16, 2026
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.
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.
MR-DOS commentedon Feb 17, 2026
@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.
So I have to admit that I have also tried asking ChatGPT for the fun of it.
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).
However, access via mobile app works and it seems as if the data make sense.
MR-DOS commentedon Feb 25, 2026
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:
@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.