inventree / InvenTree

Open Source Inventory Management System
https://docs.inventree.org
MIT License
4.34k stars 786 forks source link

Domain Change and Upgrade to 0.16.8: Missing Images and Old Interface Issues #8533

Closed PricelessToolkit closed 22 hours ago

PricelessToolkit commented 1 day ago

Deployment Method

Describe the problem*

Hi, I have an Inventree "0.12.7" server running on a Proxmox container. I decided to update Inventree to the latest stable version "0.16.8".

I cloned the container, and the new container's domain name is "inventree-new," while the old one is "inventree."

Problem

PS: I also tried the latest dev version, but the result is the same.

Steps to Reproduce

I added the following to the .env file because the old setup didn't have this configuration:

INVENTREE_SITE_URL=http://inventree-new.lab.lan

After updating the .env file, I ran the following commands to update the system and bring the new container online:

apt-get update && apt-get upgrade
docker compose down
docker compose pull
docker compose run --rm inventree-server invoke update
docker compose up -d

Relevant log output

root@inventree-new:/home/production# docker exec -it inventree-production-inventree-server-1 invoke update
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.3.1)
Requirement already satisfied: setuptools in /usr/local/lib/python3.11/site-packages (75.1.0)
Collecting setuptools
  Downloading setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB)
Downloading setuptools-75.6.0-py3-none-any.whl (1.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 13.3 MB/s eta 0:00:00
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 75.1.0
    Uninstalling setuptools-75.1.0:
      Successfully uninstalled setuptools-75.1.0
Successfully installed setuptools-75.6.0
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.
Requirement already satisfied: appdirs==1.4.4 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 3)) (1.4.4)
Requirement already satisfied: asgiref==3.8.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 7)) (3.8.1)
Requirement already satisfied: async-timeout==4.0.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 14)) (4.0.3)
Requirement already satisfied: attrs==24.2.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 18)) (24.2.0)
Requirement already satisfied: babel==2.16.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 24)) (2.16.0)
Requirement already satisfied: bleach==6.1.0 in /root/.local/lib/python3.11/site-packages (from bleach[css]==6.1.0->-r /home/inventree/src/backend/requirements.txt (line 28)) (6.1.0)
Requirement already satisfied: brotli==1.1.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 32)) (1.1.0)
Requirement already satisfied: certifi==2024.8.30 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 117)) (2024.8.30)
Requirement already satisfied: cffi==1.17.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 123)) (1.17.1)
Requirement already satisfied: charset-normalizer==3.4.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 194)) (3.4.0)
Requirement already satisfied: coreapi==2.3.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 301)) (2.3.3)
Requirement already satisfied: coreschema==0.0.4 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 305)) (0.0.4)
Requirement already satisfied: cryptography==43.0.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 309)) (43.0.1)
Requirement already satisfied: cssselect2==0.7.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 340)) (0.7.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 344)) (0.7.1)
Requirement already satisfied: deprecated==1.2.14 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 350)) (1.2.14)
Requirement already satisfied: diff-match-patch==20230430 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 358)) (20230430)
Requirement already satisfied: dj-rest-auth==6.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 362)) (6.0.0)
Requirement already satisfied: django==4.2.16 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 365)) (4.2.16)
Requirement already satisfied: django-allauth==64.1.0 in /root/.local/lib/python3.11/site-packages (from django-allauth[openid,saml]==64.1.0->-r /home/inventree/src/backend/requirements.txt (line 401)) (64.1.0)
Requirement already satisfied: django-allauth-2fa==0.11.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 406)) (0.11.1)
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 410)) (9.0.0)
Requirement already satisfied: django-cors-headers==4.5.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 414)) (4.5.0)
Requirement already satisfied: django-crispy-forms==1.14.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 418)) (1.14.0)
Requirement already satisfied: django-dbbackup==4.2.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 422)) (4.2.1)
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 426)) (0.4.2)
Requirement already satisfied: django-filter==24.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 430)) (24.3)
Requirement already satisfied: django-flags==5.0.13 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 434)) (5.0.13)
Requirement already satisfied: django-formtools==2.5.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 438)) (2.5.1)
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 442)) (1.9.2)
Requirement already satisfied: django-import-export==3.3.9 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 446)) (3.3.9)
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 450)) (7.0.1)
Requirement already satisfied: django-js-asset==2.2.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 454)) (2.2.0)
Requirement already satisfied: django-maintenance-mode==0.21.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 458)) (0.21.1)
Requirement already satisfied: django-markdownify==0.9.5 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 462)) (0.9.5)
Requirement already satisfied: django-money==3.2.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 466)) (3.2.0)
Requirement already satisfied: django-mptt==0.16.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 470)) (0.16.0)
Requirement already satisfied: django-otp==1.5.4 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 474)) (1.5.4)
Requirement already satisfied: django-picklefield==3.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 478)) (3.2)
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 482)) (0.1.6)
Requirement already satisfied: django-q2==1.7.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 485)) (1.7.3)
Requirement already satisfied: django-recurrence==1.11.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 489)) (1.11.1)
Requirement already satisfied: django-redis==5.4.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 493)) (5.4.0)
Requirement already satisfied: django-sesame==3.2.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 497)) (3.2.2)
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 501)) (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 505)) (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 508)) (6.0.2)
Requirement already satisfied: django-structlog==8.1.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 512)) (8.1.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 516)) (6.1.0)
Requirement already satisfied: django-user-sessions==2.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 520)) (2.0.0)
Requirement already satisfied: django-weasyprint==2.3.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 524)) (2.3.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 528)) (2.0)
Requirement already satisfied: djangorestframework==3.14.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 531)) (3.14.0)
Requirement already satisfied: djangorestframework-simplejwt==5.3.1 in /root/.local/lib/python3.11/site-packages (from djangorestframework-simplejwt[crypto]==5.3.1->-r /home/inventree/src/backend/requirements.txt (line 539)) (5.3.1)
Requirement already satisfied: drf-spectacular==0.27.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 543)) (0.27.2)
Requirement already satisfied: dulwich==0.22.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 547)) (0.22.1)
Requirement already satisfied: et-xmlfile==1.1.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 596)) (1.1.0)
Requirement already satisfied: feedparser==6.0.11 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 600)) (6.0.11)
Requirement already satisfied: flexcache==0.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 604)) (0.3)
Requirement already satisfied: flexparser==0.3.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 608)) (0.3.1)
Requirement already satisfied: fonttools==4.54.1 in /root/.local/lib/python3.11/site-packages (from fonttools[woff]==4.54.1->-r /home/inventree/src/backend/requirements.txt (line 612)) (4.54.1)
Requirement already satisfied: googleapis-common-protos==1.65.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 662)) (1.65.0)
Requirement already satisfied: grpcio==1.66.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 668)) (1.66.2)
Requirement already satisfied: gunicorn==23.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 727)) (23.0.0)
Requirement already satisfied: html5lib==1.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 731)) (1.1)
Requirement already satisfied: icalendar==6.0.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 735)) (6.0.1)
Requirement already satisfied: idna==3.10 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 739)) (3.10)
Requirement already satisfied: importlib-metadata==8.4.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 743)) (8.4.0)
Requirement already satisfied: inflection==0.5.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 750)) (0.5.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 754)) (0.7.2)
Requirement already satisfied: itypes==1.2.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 758)) (1.2.0)
Requirement already satisfied: jinja2==3.1.4 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 762)) (3.1.4)
Requirement already satisfied: jsonschema==4.23.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 766)) (4.23.0)
Requirement already satisfied: jsonschema-specifications==2024.10.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 770)) (2024.10.1)
Requirement already satisfied: lxml==5.3.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 774)) (5.3.0)
Requirement already satisfied: markdown==3.7 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 916)) (3.7)
Requirement already satisfied: markuppy==1.14 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 920)) (1.14)
Requirement already satisfied: markupsafe==3.0.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 923)) (3.0.1)
Requirement already satisfied: odfpy==1.4.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 986)) (1.4.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 989)) (3.1.5)
Requirement already satisfied: opentelemetry-api==1.27.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 993)) (1.27.0)
Requirement already satisfied: opentelemetry-exporter-otlp==1.27.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1007)) (1.27.0)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-common==1.27.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1011)) (1.27.0)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-grpc==1.27.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1017)) (1.27.0)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-http==1.27.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1021)) (1.27.0)
Requirement already satisfied: opentelemetry-instrumentation==0.48b0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1025)) (0.48b0)
Requirement already satisfied: opentelemetry-instrumentation-django==0.48b0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1033)) (0.48b0)
Requirement already satisfied: opentelemetry-instrumentation-redis==0.48b0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1037)) (0.48b0)
Requirement already satisfied: opentelemetry-instrumentation-requests==0.48b0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1041)) (0.48b0)
Requirement already satisfied: opentelemetry-instrumentation-wsgi==0.48b0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1045)) (0.48b0)
Requirement already satisfied: opentelemetry-proto==1.27.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1049)) (1.27.0)
Requirement already satisfied: opentelemetry-sdk==1.27.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1056)) (1.27.0)
Requirement already satisfied: opentelemetry-semantic-conventions==0.48b0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1063)) (0.48b0)
Requirement already satisfied: opentelemetry-util-http==0.48b0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1072)) (0.48b0)
Requirement already satisfied: packaging==24.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1079)) (24.1)
Requirement already satisfied: pdf2image==1.17.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1083)) (1.17.0)
Requirement already satisfied: pillow==10.4.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1087)) (10.4.0)
Requirement already satisfied: pint==0.24.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1175)) (0.24.3)
Requirement already satisfied: pip-licenses==5.0.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1179)) (5.0.0)
Requirement already satisfied: prettytable==3.11.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1183)) (3.11.0)
Requirement already satisfied: protobuf==4.25.5 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1187)) (4.25.5)
Requirement already satisfied: py-moneyed==3.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1202)) (3.0)
Requirement already satisfied: pycparser==2.22 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1206)) (2.22)
Requirement already satisfied: pydyf==0.10.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1210)) (0.10.0)
Requirement already satisfied: pyjwt==2.9.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1216)) (2.9.0)
Requirement already satisfied: pyphen==0.16.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1220)) (0.16.0)
Requirement already satisfied: python-barcode==0.15.1 in /root/.local/lib/python3.11/site-packages (from python-barcode[images]==0.15.1->-r /home/inventree/src/backend/requirements.txt (line 1224)) (0.15.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 1228)) (2.9.0.post0)
Requirement already satisfied: python-dotenv==1.0.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1234)) (1.0.1)
Requirement already satisfied: python-fsutil==0.14.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1238)) (0.14.1)
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 1242)) (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 1246)) (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 1250)) (1.16.0)
Requirement already satisfied: pytz==2024.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1255)) (2024.2)
Requirement already satisfied: pyyaml==6.0.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1261)) (6.0.2)
Requirement already satisfied: qrcode==8.0 in /root/.local/lib/python3.11/site-packages (from qrcode[pil]==8.0->-r /home/inventree/src/backend/requirements.txt (line 1319)) (8.0)
Requirement already satisfied: rapidfuzz==3.10.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1325)) (3.10.0)
Requirement already satisfied: redis==5.1.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1415)) (5.1.1)
Requirement already satisfied: referencing==0.35.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1419)) (0.35.1)
Requirement already satisfied: regex==2024.9.11 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1425)) (2024.9.11)
Requirement already satisfied: requests==2.32.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1521)) (2.32.3)
Requirement already satisfied: rpds-py==0.20.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1527)) (0.20.0)
Requirement already satisfied: sentry-sdk==2.16.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1634)) (2.16.0)
Collecting setuptools==75.1.0 (from -r /home/inventree/src/backend/requirements.txt (line 1640))
  Downloading setuptools-75.1.0-py3-none-any.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 12.7 MB/s eta 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 1647)) (1.0.0)
Requirement already satisfied: six==1.16.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1650)) (1.16.0)
Requirement already satisfied: sqlparse==0.5.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1657)) (0.5.1)
Requirement already satisfied: structlog==24.4.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1663)) (24.4.0)
Requirement already satisfied: tablib==3.5.0 in /root/.local/lib/python3.11/site-packages (from tablib[html,ods,xls,xlsx,yaml]==3.5.0->-r /home/inventree/src/backend/requirements.txt (line 1667)) (3.5.0)
Requirement already satisfied: tinycss2==1.2.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1673)) (1.2.1)
Requirement already satisfied: tomli==2.0.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1680)) (2.0.2)
Requirement already satisfied: typing-extensions==4.12.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1684)) (4.12.2)
Requirement already satisfied: tzdata==2024.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1695)) (2024.2)
Requirement already satisfied: uritemplate==4.1.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1699)) (4.1.1)
Requirement already satisfied: urllib3==2.2.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1705)) (2.2.3)
Requirement already satisfied: wcwidth==0.2.13 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1712)) (0.2.13)
Requirement already satisfied: weasyprint==61.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1716)) (61.2)
Requirement already satisfied: webencodings==0.5.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1722)) (0.5.1)
Requirement already satisfied: whitenoise==6.7.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1730)) (6.7.0)
Requirement already satisfied: wrapt==1.16.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1734)) (1.16.0)
Requirement already satisfied: xlrd==2.0.1 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1809)) (2.0.1)
Requirement already satisfied: xlwt==1.3.0 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1813)) (1.3.0)
Requirement already satisfied: xmlsec==1.3.14 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1817)) (1.3.14)
Requirement already satisfied: zipp==3.20.2 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1877)) (3.20.2)
Requirement already satisfied: zopfli==0.2.3 in /root/.local/lib/python3.11/site-packages (from -r /home/inventree/src/backend/requirements.txt (line 1881)) (0.2.3)
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 75.6.0
    Uninstalling setuptools-75.6.0:
      Successfully uninstalled setuptools-75.6.0
Successfully installed setuptools-75.1.0
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 plugin packages from '/home/inventree/data/plugins.txt'
Requirement already satisfied: inventree-wled-locator in /usr/local/lib/python3.11/site-packages (from -r /home/inventree/data/plugins.txt (line 3)) (0.4.0)
Requirement already satisfied: django in /root/.local/lib/python3.11/site-packages (from inventree-wled-locator->-r /home/inventree/data/plugins.txt (line 3)) (4.2.16)
Requirement already satisfied: requests in /root/.local/lib/python3.11/site-packages (from inventree-wled-locator->-r /home/inventree/data/plugins.txt (line 3)) (2.32.3)
Requirement already satisfied: asgiref<4,>=3.6.0 in /root/.local/lib/python3.11/site-packages (from django->inventree-wled-locator->-r /home/inventree/data/plugins.txt (line 3)) (3.8.1)
Requirement already satisfied: sqlparse>=0.3.1 in /root/.local/lib/python3.11/site-packages (from django->inventree-wled-locator->-r /home/inventree/data/plugins.txt (line 3)) (0.5.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /root/.local/lib/python3.11/site-packages (from requests->inventree-wled-locator->-r /home/inventree/data/plugins.txt (line 3)) (3.4.0)
Requirement already satisfied: idna<4,>=2.5 in /root/.local/lib/python3.11/site-packages (from requests->inventree-wled-locator->-r /home/inventree/data/plugins.txt (line 3)) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in /root/.local/lib/python3.11/site-packages (from requests->inventree-wled-locator->-r /home/inventree/data/plugins.txt (line 3)) (2.2.3)
Requirement already satisfied: certifi>=2017.4.17 in /root/.local/lib/python3.11/site-packages (from requests->inventree-wled-locator->-r /home/inventree/data/plugins.txt (line 3)) (2024.8.30)
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.
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Dependency installation complete
Backing up InvenTree database...
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
2024-11-20 20:41:57,483 INFO Backing Up Database: inventree
2024-11-20 20:41:57,483 DEBUG  pg_dump --dbname=postgresql://madman:Password@inventree-db:5432/inventree --format=custom 
2024-11-20 20:41:58,042 DEBUG Backup size: 415.8 KiB
2024-11-20 20:41:58,042 INFO Writing file to default-aaa80dc41c2c-2024-11-20-204157.psql.bin.gz
Backing up InvenTree media files...
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
2024-11-20 20:42:19,905 DEBUG Backup size: 382.5 MiB
2024-11-20 20:42:19,905 INFO Writing file to aaa80dc41c2c-2024-11-20-204200.tar.gz
Backup completed successfully
Running InvenTree database migrations...
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
No changes detected
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Operations to perform:
  Synchronize unmigrated apps: allauth, allauth_2fa, corsheaders, crispy_forms, dbbackup, dj_rest_auth, django_cleanup, django_filters, django_ical, django_otp, django_structlog, djmoney, drf_spectacular, formtools, generic, import_export, maintenance_mode, markdownify, messages, mptt, registration, rest_framework, runserver_nostatic, staticfiles, web
  Apply all migrations: InvenTree, account, admin, auth, build, common, company, contenttypes, django_q, error_report, exchange, flags, importer, machine, order, otp_static, otp_totp, part, plugin, report, socialaccount, stock, taggit, user_sessions, users
Synchronizing apps without migrations:
  Creating tables...
    Running deferred SQL...
Running migrations:
  No migrations to apply.
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
InvenTree database migrations completed
Skipping frontend update!
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Rendered all files in /home/inventree/src/backend/InvenTree/templates/js/translated
Collecting static files...
Python version 3.11.9 - /usr/local/bin/python3
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Static files collected successfully
InvenTree update complete!
Cleaning old settings from the database
Python version 3.11.9 - /usr/local/bin/python3
/root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Settings cleaned successfully
Python version 3.11.9 - /usr/local/bin/python3
File “/home/inventree/src/backend/InvenTree/locale/et/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/ko/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/es_MX/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/el/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/fi/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/nl/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/it/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/sr/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/bg/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/ru/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/ja/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/pl/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/fr/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/tr/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/sv/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/hi/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/ro/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/he/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/id/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/no/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/sk/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/hu/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/th/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/zh_Hans/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/cs/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/lv/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/es/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/pt_BR/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/en/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/de/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/lt/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/fa/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/ar/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/sl/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/uk/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/pt/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/da/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/zh_Hant/LC_MESSAGES/django.po” is already compiled and up to date.
File “/home/inventree/src/backend/InvenTree/locale/vi/LC_MESSAGES/django.po” is already compiled and up to date.
InvenTree translation coverage: 26%
tomse commented 1 day ago

title says missing pics.. this is what I get in the new interface.. Image

PricelessToolkit commented 1 day ago

yep the same thing, Do you still have access to the old interface?

SchrodingersGat commented 1 day ago

If you have made such a large update (0.12.x to 0.16.x) please note that our docker setup has changed considerably.

Have you updated your docker-compose.yml file too?

The UI is not rendering /media/ files which means that the proxy is either not running or not serving files correctly. Our new docker setup uses Caddy as the proxy, whereas the old one uses nginx.

Bare minimum, please share a list of containers that are running, and look for any error messages in the logs for each container.

Also, your browser should be reporting a bunch of network errors when trying to access files under /media/

PricelessToolkit commented 1 day ago

Okay, thanks. I will try to upgrade it with a new compose, caddy, and .env and report back. Thanks!!

PricelessToolkit commented 1 day ago

With the new Compose and Caddy, everything is now working perfectly. The only adjustment I made was updating the "domain" in the Caddy configuration. The .env file remains unchanged.

Image

PricelessToolkit commented 1 day ago

Thank you!!

SchrodingersGat commented 1 day ago

@PricelessToolkit awesome, glad you got it working :)

PricelessToolkit commented 1 day ago

After a reboot, the system stopped working.

I took a new approach, and here’s what I observed after updating "0.12.x to 0.16.8"

  1. The server starts, and all updates were applied successfully without errors.
  2. I cannot log in to the old UI.
  3. I can log in to the new UI, but refreshing the page redirects me back to the login screen.
  4. In the new UI, no images are displayed.
  5. The data folder is located at /home/inventree/data, which contains both media and static subfolders.

Here is the output of my docker ps command:

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9b3dfde1b6a5 inventree/inventree:stable /bin/ash ./init.sh … 41 minutes ago Up 41 minutes 8000/tcp inventree-worker
0ac86a1966cd caddy:alpine caddy run --config … 41 minutes ago Up 41 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 443/udp, 2019/tcp inventree-proxy
511310bbd620 inventree/inventree:stable /bin/ash ./init.sh … 41 minutes ago Up 41 minutes 8000/tcp inventree-server
6eec5f16b569 postgres:13 docker-entrypoint.s… 41 minutes ago Up 41 minutes 5432/tcp inventree-db
56a914c4a86a redis:7.0 docker-entrypoint.s… 41 minutes ago Up 41 minutes 6379/tcp inventree-cache

my Caddyfile PS: the file should be next to docker-compose right?

        log {
                output file /var/log/caddy/{args[0]}.access.log
        }
}

(cors-headers) {
        header Allow GET,HEAD,OPTIONS
        header Access-Control-Allow-Origin *
        header Access-Control-Allow-Methods GET,HEAD,OPTIONS
        header Access-Control-Allow-Headers Authorization,Content-Type,User-Agent

        @cors_preflight{args[0]} method OPTIONS

        handle @cors_preflight{args[0]} {
                respond "" 204
        }
}

# Change the host to your domain (this will serve at inventree.localhost)
{$INVENTREE_SITE_URL:inventree-new.lab.lan} {
        import log_common inventree

        encode gzip

        request_body {
                max_size 100MB
        }

        handle_path /static/* {
                import cors-headers static

                root * /var/www/static
                file_server
        }

        handle_path /media/* {
                import cors-headers media

                root * /var/www/media
                file_server

                header Content-Disposition attachment

                forward_auth {$INVENTREE_SERVER:"http://inventree-server:8000"} {
                        uri /auth/
                }
        }

        reverse_proxy {$INVENTREE_SERVER:"http://inventree-server:8000"}
}

.env file


# e.g. Linux
INVENTREE_EXT_VOLUME=/home/inventree/data

INVENTREE_SITE_URL="http://inventree-new.lab.lan"

# Ensure debug is false for a production setup
INVENTREE_DEBUG=False
INVENTREE_LOG_LEVEL=WARNING

# InvenTree admin account details
# Un-comment (and complete) these lines to auto-create an admin acount
INVENTREE_ADMIN_USER=usr
INVENTREE_ADMIN_PASSWORD=pass
INVENTREE_ADMIN_EMAIL=email

# Database configuration options
# Note: The example setup is for a PostgreSQL database
INVENTREE_DB_ENGINE=postgresql
INVENTREE_DB_NAME=inventree
INVENTREE_DB_HOST=inventree-db
INVENTREE_DB_PORT=5432

# Database credentials - These must be configured before running
# Uncomment the lines below, and change from the default values!
INVENTREE_DB_USER=usr
INVENTREE_DB_PASSWORD=pass

# Redis cache setup (disabled by default)
# Un-comment the following lines to enable Redis cache
# Note that you will also have to run docker-compose with the --profile redis command
# Refer to settings.py for other cache options
INVENTREE_CACHE_ENABLED=True
INVENTREE_CACHE_HOST=inventree-cache
INVENTREE_CACHE_PORT=6379

# Options for gunicorn server
INVENTREE_GUNICORN_TIMEOUT=90

# Enable custom plugins?
INVENTREE_PLUGINS_ENABLED=True

# Run migrations automatically?
INVENTREE_AUTO_UPDATE=True

# Image tag that should be used
INVENTREE_TAG=stable

COMPOSE_PROJECT_NAME=inventree

docker-compose.yaml is original https://raw.githubusercontent.com/inventree/inventree/stable/contrib/container/docker-compose.yml

I tried several times and couldn't figure out what the problem was, and how it worked the first time is not clear... If you can give me some advice, it would be great.

Thank you!

PricelessToolkit commented 1 day ago

In the config.yaml file, these two lines are commented out. Is this the correct configuration?


# MEDIA_ROOT is the local filesystem location for storing uploaded files
#media_root: '/home/inventree/data/media'

# STATIC_ROOT is the local filesystem location for storing static files
#static_root: '/home/inventree/data/static'
SchrodingersGat commented 1 day ago

The media and static root dirs are already defined in the docker container configuration, so it is ok to leave them commented out in your config.yaml file.

Can you look in the logs for each container, perhaps there is a clue there. If you are making requests to the server which are failing, either the inventree-proxy or inventree-server container logs should show errors

PricelessToolkit commented 1 day ago

inventree-proxy logs "Login attempt to old UI" web page just blnks

docker logs inventree-proxy
{"level":"info","ts":1732155005.2088892,"logger":"http.log.access","msg":"NOP","request":{"remote_ip":"192.168.1.107","remote_port":"61109","client_ip":"192.168.1.107","proto":"HTTP/1.1","method":"GET","host":"inventree-new","uri":"/","headers":{"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"],"Accept-Encoding":["gzip, deflate"],"Accept-Language":["en-US,en;q=0.9,fr-FR;q=0.8,fr;q=0.7,ru-RU;q=0.6,ru;q=0.5"],"Cookie":["REDACTED"],"Connection":["keep-alive"],"Upgrade-Insecure-Requests":["1"]}},"bytes_read":0,"user_id":"","duration":0.000002508,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
{"level":"info","ts":1732155005.3218799,"logger":"http.log.access","msg":"NOP","request":{"remote_ip":"192.168.1.107","remote_port":"61109","client_ip":"192.168.1.107","proto":"HTTP/1.1","method":"GET","host":"inventree-new","uri":"/favicon.ico","headers":{"Referer":["http://inventree-new/"],"Accept-Encoding":["gzip, deflate"],"Accept-Language":["en-US,en;q=0.9,fr-FR;q=0.8,fr;q=0.7,ru-RU;q=0.6,ru;q=0.5"],"Cookie":["REDACTED"],"Connection":["keep-alive"],"User-Agent":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"],"Accept":["image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8"]}},"bytes_read":0,"user_id":"","duration":0.000002567,"size":0,"status":0,"resp_headers":{"Server":["Caddy"]}}
docker logs inventree-server
192.168.1.125 - - [21/Nov/2024:03:43:06 +0000] "GET / HTTP/1.1" 302 0 "http://inventree-new.lab.lan/accounts/login/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
192.168.1.125 - - [21/Nov/2024:03:43:06 +0000] "GET /accounts/login/?next=/ HTTP/1.1" 200 8505 "http://inventree-new.lab.lan/accounts/login/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
192.168.1.125 - - [21/Nov/2024:03:46:46 +0000] "POST /accounts/login/ HTTP/1.1" 302 0 "http://inventree-new.lab.lan/accounts/login/?next=/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
192.168.1.125 - - [21/Nov/2024:03:46:46 +0000] "GET / HTTP/1.1" 302 0 "http://inventree-new.lab.lan/accounts/login/?next=/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"
192.168.1.125 - - [21/Nov/2024:03:46:46 +0000] "GET /accounts/login/?next=/ HTTP/1.1" 200 8505 "http://inventree-new.lab.lan/accounts/login/?next=/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36"

PS: If I install InvenTree from scratch, then run docker-compose down, copy the database and media folders, then compose up, will it work?

PricelessToolkit commented 22 hours ago
  1. Updated the old version, it worked with problems...
  2. Installed a fresh version.
  3. Stopped the containers using docker compose down.
  4. Copied the media, pgdb, plugins folders, and plugins.txt from updated version to the new installation’s data folder.
  5. Started the containers again with docker compose up -d.

This time Everything worked!