502 Bad Gateway after upgrade 0.16.1 -> 0.16.5 / OSError: No translation files found

Please verify that this bug has NOT been raised before.

[x] I checked and didn't find a similar issue

Describe the bug*
After updating to 0.16.5, the server only serves a "502 Bad Gateway".
Console output:
Preparing to unpack .../01-inventree_0.16.5-1728322301.6e37f0cd.focal_amd64.deb ...
# Clearing precompiled files
# PRI01| Running preinstall script - start - Mon 07 Oct 2024 07:57:20 PM CEST
# PRI02| Clearing precompiled files - skipping
# PRI03| Running preinstall script - done - Mon 07 Oct 2024 07:57:21 PM CEST
Unpacking inventree (0.16.5-1728322301.6e37f0cd.focal) over (0.16.1-1724998827.4c15e5c9.focal) ...
Preparing to unpack .../02-libcups2_2.3.3op2-3+deb11u9_amd64.deb ...
Unpacking libcups2:amd64 (2.3.3op2-3+deb11u9) over (2.3.3op2-3+deb11u8) ...
Preparing to unpack .../03-libexpat1-dev_2.2.10-2+deb11u6_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.2.10-2+deb11u6) over (2.2.10-2+deb11u5) ...
Preparing to unpack .../04-libexpat1_2.2.10-2+deb11u6_amd64.deb ...
Unpacking libexpat1:amd64 (2.2.10-2+deb11u6) over (2.2.10-2+deb11u5) ...
Preparing to unpack .../05-mariadb-common_1%3a10.5.26-0+deb11u2_all.deb ...
Unpacking mariadb-common (1:10.5.26-0+deb11u2) over (1:10.5.23-0+deb11u1) ...
Preparing to unpack .../06-libmariadb3_1%3a10.5.26-0+deb11u2_amd64.deb ...
Unpacking libmariadb3:amd64 (1:10.5.26-0+deb11u2) over (1:10.5.23-0+deb11u1) ...
Preparing to unpack .../07-libnghttp2-14_1.43.0-1+deb11u2_amd64.deb ...
Unpacking libnghttp2-14:amd64 (1.43.0-1+deb11u2) over (1.43.0-1+deb11u1) ...
Preparing to unpack .../08-libss2_1.46.2-2+deb11u1_amd64.deb ...
Unpacking libss2:amd64 (1.46.2-2+deb11u1) over (1.46.2-2) ...
Selecting previously unselected package linux-image-5.10.0-33-amd64.
Preparing to unpack .../09-linux-image-5.10.0-33-amd64_5.10.226-1_amd64.deb ...
Unpacking linux-image-5.10.0-33-amd64 (5.10.226-1) ...
Preparing to unpack .../10-linux-image-amd64_5.10.226-1_amd64.deb ...
Unpacking linux-image-amd64 (5.10.226-1) over (5.10.223-1) ...
Preparing to unpack .../11-linux-libc-dev_5.10.226-1_amd64.deb ...
Unpacking linux-libc-dev:amd64 (5.10.226-1) over (5.10.223-1) ...
Setting up libexpat1:amd64 (2.2.10-2+deb11u6) ...
Setting up linux-image-5.10.0-33-amd64 (5.10.226-1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-5.10.0-32-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-5.10.0-32-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-5.10.0-33-amd64
I: /initrd.img is now a symlink to boot/initrd.img-5.10.0-33-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.10.0-33-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...

Its output will be used to detect bootable binaries on them and create new boot entries.
done
Setting up libsqlite3-0:amd64 (3.34.1-3+deb11u1) ...
Setting up libnghttp2-14:amd64 (1.43.0-1+deb11u2) ...
Setting up linux-libc-dev:amd64 (5.10.226-1) ...
Setting up inventree (0.16.5-1728322301.6e37f0cd.focal) ...
# POI01| Running postinstall script - start - Mon 07 Oct 2024 07:57:36 PM CEST
# POI01| Importing functions
# POI01| Functions imported
# POI03| Setting base environment variables
# POI03| Using existing config file: /etc/inventree/config.yaml
# POI03| Installing requirements
# POI03| Installed requirements
# POI03| Collected environment variables:
# POI03|    INVENTREE_MEDIA_ROOT=/opt/inventree/data/media
# POI03|    INVENTREE_STATIC_ROOT=/opt/inventree/data/static
# POI03|    INVENTREE_BACKUP_DIR=/opt/inventree/data/backup
# POI03|    INVENTREE_PLUGINS_ENABLED=true
# POI03|    INVENTREE_PLUGIN_FILE=/etc/inventree/plugins.txt
# POI03|    INVENTREE_SECRET_KEY_FILE=/etc/inventree/secret_key.txt
# POI03|    INVENTREE_DB_ENGINE=postgresql
# POI03|    INVENTREE_DB_NAME=inventree
# POI03|    INVENTREE_DB_USER=inventree
# POI03|    INVENTREE_DB_HOST=localhost
# POI03|    INVENTREE_DB_PORT=5432
# POI04| Running in docker: no
# POI05| Using init command: systemctl
# POI06| Getting the IP address of the server via web service
# POI06| IP address is <IP_ADDRESS>
# POI07| Python environment already present
# POI07| Found earlier used version: /opt/inventree/env/bin/python
# POI07| Using python command: /opt/inventree/env/bin/python
# POI08| Checking if update checks are needed
# POI08| Running upgrade
# POI08| Old version is: 0.16.1-1724998827.4c15e5c9.focal | 16 - updating to 0.16.5-1728322301.6e37f0cd.focal | 16
# POI09| Setting up python environment
Requirement already satisfied: invoke in ./env/lib/python3.9/site-packages (2.1.3)
Requirement already satisfied: wheel in ./env/lib/python3.9/site-packages (0.40.0)
# POI09| Stopping nginx
# POI09| Stopped nginx
# POI09| Setting up nginx to /etc/nginx/sites-enabled/inventree.conf
# POI09| Starting nginx
# POI09| Started nginx
# POI09| (Re)creating init scripts
Nothing to do.
Nothing to do.
# POI09| Enabling InvenTree on boot
# POI09| Enabled InvenTree on boot
# POI10| Admin data already exists - skipping
# POI11| Stopping InvenTree
# POI11| Stopped InvenTree
# POI12| Updating InvenTree
Collecting uv
  Downloading uv-0.4.18-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
Requirement already satisfied: wheel in ./env/lib/python3.9/site-packages (0.40.0)
Downloading uv-0.4.18-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.9/12.9 MB 3.5 MB/s eta 0:00:00
Installing collected packages: uv
Successfully installed uv-0.4.18
Resolved 137 packages in 4.61s
Prepared 1 package in 988ms
Uninstalled 1 package in 27ms
Installed 1 package in 7ms
 - setuptools==75.1.0
 + setuptools==72.1.0
warning: Requirements file /etc/inventree/plugins.txt does not contain any dependencies
Audited in 2ms
2024-10-07 19:57:59,979 ERROR No CSRF_TRUSTED_ORIGINS specified. Please provide a list of trusted origins, or specify INVENTREE_SITE_URL
# POI12| u | Installing required python packages from 'src/backend/requirements.txt'
# POI12| u | Requirement already satisfied: uv in ./env/lib/python3.9/site-packages (0.4.18)
# POI12| u | Requirement already satisfied: setuptools in ./env/lib/python3.9/site-packages (72.1.0)
# POI12| u | Collecting setuptools
# POI12| u |   Downloading setuptools-75.1.0-py3-none-any.whl.metadata (6.9 kB)
# POI12| u | Downloading setuptools-75.1.0-py3-none-any.whl (1.2 MB)
# POI12| u |    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 2.0 MB/s eta 0:00:00
# POI12| u | Installing collected packages: setuptools
# POI12| u |   Attempting uninstall: setuptools
# POI12| u |     Found existing installation: setuptools 72.1.0
# POI12| u |     Uninstalling setuptools-72.1.0:
# POI12| u |       Successfully uninstalled setuptools-72.1.0
# POI12| u | Successfully installed setuptools-75.1.0
# POI12| u | Installing plugin packages from '/etc/inventree/plugins.txt'
# POI12| u | Requirement already satisfied: uv in ./env/lib/python3.9/site-packages (0.4.18)
# POI12| u | Python version 3.9.2 - /opt/inventree/env/bin/python3
# POI12| Set permissions for data dir and media: /opt/inventree/data
# POI14| Site URL already set - skipping
# POI15| Starting InvenTree
# POI15| Started InvenTree
# POI16| Printing Final message
####################################################################################
This InvenTree install uses nginx, the settings for the webserver can be found in
/etc/nginx/sites-enabled/inventree.conf
Try opening InvenTree with either
http://localhost/ or http://XXXXXXXXXXX/

Admin user data:
   Email:
   Username:
   Password:
####################################################################################
# POI17| Running postinstall script - done - Mon 07 Oct 2024 07:58:00 PM CEST

Seem good except for 2024-10-07 19:57:59,979 ERROR No CSRF_TRUSTED_ORIGINS specified. Please provide a list of trusted origins, or specify INVENTREE_SITE_URL
After the update, I have a case of 502 Bad Gateway. So tried to trigger a database migration as that sometimes works when upgrades fail. Result:
Running InvenTree database migrations...
========================================
Python version 3.9.2 - /opt/inventree/env/bin/python3
Traceback (most recent call last):
  File "/opt/inventree/src/backend/InvenTree/manage.py", line 24, in <module>
    main()
  File "/opt/inventree/src/backend/InvenTree/manage.py", line 20, in main
    execute_from_command_line(sys.argv)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/opt/inventree/env/lib/python3.9/site-packages/django/core/management/__init__.py", line 416, in execute
    django.setup()
  File "/opt/inventree/env/lib/python3.9/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/apps/registry.py", line 116, in populate
    app_config.import_models()
  File "/opt/inventree/env/lib/python3.9/site-packages/django/apps/config.py", line 269, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/opt/inventree/src/backend/InvenTree/build/models.py", line 9, in <module>
    from django.contrib.auth.models import User
  File "/opt/inventree/env/lib/python3.9/site-packages/django/contrib/auth/models.py", line 98, in <module>
    class Group(models.Model):
  File "/opt/inventree/env/lib/python3.9/site-packages/django/db/models/base.py", line 194, in __new__
    new_class.add_to_class(obj_name, obj)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/db/models/base.py", line 371, in add_to_class
    value.contribute_to_class(cls, name)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/db/models/fields/related.py", line 1910, in contribute_to_class
    self.remote_field.through = create_many_to_many_intermediary_model(
  File "/opt/inventree/env/lib/python3.9/site-packages/django/db/models/fields/related.py", line 1269, in create_many_to_many_intermediary_model
    "verbose_name": _("%(from)s-%(to)s relationship")
  File "/opt/inventree/env/lib/python3.9/site-packages/django/utils/functional.py", line 191, in __mod__
    return str(self) % rhs
  File "/opt/inventree/env/lib/python3.9/site-packages/django/utils/functional.py", line 155, in __text_cast
    return func(*self.__args, **self.__kw)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/utils/translation/__init__.py", line 95, in gettext
    return _trans.gettext(message)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/utils/translation/trans_real.py", line 380, in gettext
    _default = _default or translation(settings.LANGUAGE_CODE)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/utils/translation/trans_real.py", line 293, in translation
    _translations[language] = DjangoTranslation(language)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/utils/translation/trans_real.py", line 179, in __init__
    raise OSError(
OSError: No translation files found for default language en-us.

Seems to be related to #8155 ...
Steps to Reproduce
Upgrade
Expected behaviour
Hassle free upgrade :-)
Deployment Method

[ ] Docker
[ ] Package
[x] Bare metal
[ ] Other - added info in Steps to Reproduce

Version Information
0.16.5 (can't copy version info, server is down)
Please verify if you can reproduce this bug on the demo site.

[ ] I can reproduce this bug on the demo site.

Relevant log output
No response

Hello, I'm trying to set up Inventree for the first time and I have the same/similar issue on a fresh install using the install script.
I'm using it on a Debian 12 virtual machine (VirtualBox). The 502 error occurs when I try accessing the site inside the virtual machine (to rule out any VM networking quirks).
I tried rebooting the VM after the installation and still have the 502 error.
I hope this helps!
Logs

 Installation logs
Output of wget -qO install.sh https://get.inventree.org && sudo bash install.sh:
### Installer for InvenTree - source: inventree/stable
### Detected distribution: Debian GNU/Linux 12
### Installing required packages for download
Selecting previously unselected package apt-transport-https.
(Reading database ... 41588 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_2.6.1_all.deb ...
Unpacking apt-transport-https (2.6.1) ...
Setting up apt-transport-https (2.6.1) ...
### Getting and adding key
### Adding package source
### Updating package lists
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:4 http://security.debian.org/debian-security bookworm-security/main Sources [121 kB]
Get:5 http://security.debian.org/debian-security bookworm-security/main amd64 Packages [188 kB]
Get:6 http://security.debian.org/debian-security bookworm-security/main Translation-en [115 kB]
Get:7 https://dl.packager.io/srv/deb/inventree/InvenTree/stable/debian 11 InRelease [1,857 B]
Get:8 https://dl.packager.io/srv/deb/inventree/InvenTree/stable/debian 11/main amd64 Packages [6,649 B]
Fetched 537 kB in 4s (137 kB/s)
Reading package lists... Done
### Setting installer args
### Installing InvenTree
Reading package lists... Done
Building dependency tree... Done
Reading state information...
Need to get 161 MB of archives.
After this operation, 509 MB of additional disk space will be used.

Selecting previously unselected package binutils-common:amd64.
(Reading database ... 41592 files and directories currently installed.)
Preparing to unpack .../00-binutils-common_2.40-2_amd64.deb ...
Unpacking binutils-common:amd64 (2.40-2) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../01-libbinutils_2.40-2_amd64.deb ...
Unpacking libbinutils:amd64 (2.40-2) ...
Selecting previously unselected package libctf-nobfd0:amd64.
Preparing to unpack .../02-libctf-nobfd0_2.40-2_amd64.deb ...
Unpacking libctf-nobfd0:amd64 (2.40-2) ...
Selecting previously unselected package libctf0:amd64.
Preparing to unpack .../03-libctf0_2.40-2_amd64.deb ...
Unpacking libctf0:amd64 (2.40-2) ...
Selecting previously unselected package libgprofng0:amd64.
Preparing to unpack .../04-libgprofng0_2.40-2_amd64.deb ...
Unpacking libgprofng0:amd64 (2.40-2) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../05-binutils-x86-64-linux-gnu_2.40-2_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.40-2) ...
Selecting previously unselected package binutils.
Preparing to unpack .../06-binutils_2.40-2_amd64.deb ...
Unpacking binutils (2.40-2) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../07-libc-dev-bin_2.36-9+deb12u8_amd64.deb ...
Unpacking libc-dev-bin (2.36-9+deb12u8) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../08-linux-libc-dev_6.1.112-1_amd64.deb ...
Unpacking linux-libc-dev:amd64 (6.1.112-1) ...
Selecting previously unselected package libcrypt-dev:amd64.
Preparing to unpack .../09-libcrypt-dev_1%3a4.4.33-2_amd64.deb ...
Unpacking libcrypt-dev:amd64 (1:4.4.33-2) ...
Selecting previously unselected package libtirpc-dev:amd64.
Preparing to unpack .../10-libtirpc-dev_1.3.3+ds-1_amd64.deb ...
Unpacking libtirpc-dev:amd64 (1.3.3+ds-1) ...
Selecting previously unselected package libnsl-dev:amd64.
Preparing to unpack .../11-libnsl-dev_1.3.0-2_amd64.deb ...
Unpacking libnsl-dev:amd64 (1.3.0-2) ...
Selecting previously unselected package rpcsvc-proto.
Preparing to unpack .../12-rpcsvc-proto_1.4.3-1_amd64.deb ...
Unpacking rpcsvc-proto (1.4.3-1) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../13-libc6-dev_2.36-9+deb12u8_amd64.deb ...
Unpacking libc6-dev:amd64 (2.36-9+deb12u8) ...
Selecting previously unselected package libisl23:amd64.
Preparing to unpack .../14-libisl23_0.25-1.1_amd64.deb ...
Unpacking libisl23:amd64 (0.25-1.1) ...
Selecting previously unselected package libmpfr6:amd64.
Preparing to unpack .../15-libmpfr6_4.2.0-1_amd64.deb ...
Unpacking libmpfr6:amd64 (4.2.0-1) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../16-libmpc3_1.3.1-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.3.1-1) ...
Selecting previously unselected package cpp-12.
Preparing to unpack .../17-cpp-12_12.2.0-14_amd64.deb ...
Unpacking cpp-12 (12.2.0-14) ...
Selecting previously unselected package cpp.
Preparing to unpack .../18-cpp_4%3a12.2.0-3_amd64.deb ...
Unpacking cpp (4:12.2.0-3) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../19-libcc1-0_12.2.0-14_amd64.deb ...
Unpacking libcc1-0:amd64 (12.2.0-14) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../20-libgomp1_12.2.0-14_amd64.deb ...
Unpacking libgomp1:amd64 (12.2.0-14) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../21-libitm1_12.2.0-14_amd64.deb ...
Unpacking libitm1:amd64 (12.2.0-14) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../22-libatomic1_12.2.0-14_amd64.deb ...
Unpacking libatomic1:amd64 (12.2.0-14) ...
Selecting previously unselected package libasan8:amd64.
Preparing to unpack .../23-libasan8_12.2.0-14_amd64.deb ...
Unpacking libasan8:amd64 (12.2.0-14) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../24-liblsan0_12.2.0-14_amd64.deb ...
Unpacking liblsan0:amd64 (12.2.0-14) ...
Selecting previously unselected package libtsan2:amd64.
Preparing to unpack .../25-libtsan2_12.2.0-14_amd64.deb ...
Unpacking libtsan2:amd64 (12.2.0-14) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack .../26-libubsan1_12.2.0-14_amd64.deb ...
Unpacking libubsan1:amd64 (12.2.0-14) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../27-libquadmath0_12.2.0-14_amd64.deb ...
Unpacking libquadmath0:amd64 (12.2.0-14) ...
Selecting previously unselected package libgcc-12-dev:amd64.
Preparing to unpack .../28-libgcc-12-dev_12.2.0-14_amd64.deb ...
Unpacking libgcc-12-dev:amd64 (12.2.0-14) ...
Selecting previously unselected package gcc-12.
Preparing to unpack .../29-gcc-12_12.2.0-14_amd64.deb ...
Unpacking gcc-12 (12.2.0-14) ...
Selecting previously unselected package gcc.
Preparing to unpack .../30-gcc_4%3a12.2.0-3_amd64.deb ...
Unpacking gcc (4:12.2.0-3) ...
Selecting previously unselected package libstdc++-12-dev:amd64.
Preparing to unpack .../31-libstdc++-12-dev_12.2.0-14_amd64.deb ...
Unpacking libstdc++-12-dev:amd64 (12.2.0-14) ...
Selecting previously unselected package g++-12.
Preparing to unpack .../32-g++-12_12.2.0-14_amd64.deb ...
Unpacking g++-12 (12.2.0-14) ...
Selecting previously unselected package g++.
Preparing to unpack .../33-g++_4%3a12.2.0-3_amd64.deb ...
Unpacking g++ (4:12.2.0-3) ...
Selecting previously unselected package make.
Preparing to unpack .../34-make_4.3-4.1_amd64.deb ...
Unpacking make (4.3-4.1) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../35-libdpkg-perl_1.21.22_all.deb ...
Unpacking libdpkg-perl (1.21.22) ...
Selecting previously unselected package patch.
Preparing to unpack .../36-patch_2.7.6-7_amd64.deb ...
Unpacking patch (2.7.6-7) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../37-dpkg-dev_1.21.22_all.deb ...
Unpacking dpkg-dev (1.21.22) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../38-build-essential_12.9_amd64.deb ...
Unpacking build-essential (12.9) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../39-libfakeroot_1.31-1.2_amd64.deb ...
Unpacking libfakeroot:amd64 (1.31-1.2) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../40-fakeroot_1.31-1.2_amd64.deb ...
Unpacking fakeroot (1.31-1.2) ...
Selecting previously unselected package fontconfig.
Preparing to unpack .../41-fontconfig_2.14.1-4_amd64.deb ...
Unpacking fontconfig (2.14.1-4) ...
Selecting previously unselected package gettext.
Preparing to unpack .../42-gettext_0.21-12_amd64.deb ...
Unpacking gettext (0.21-12) ...
Selecting previously unselected package libpq5:amd64.
Preparing to unpack .../43-libpq5_15.8-0+deb12u1_amd64.deb ...
Unpacking libpq5:amd64 (15.8-0+deb12u1) ...
Selecting previously unselected package libxslt1.1:amd64.
Preparing to unpack .../44-libxslt1.1_1.1.35-1_amd64.deb ...
Unpacking libxslt1.1:amd64 (1.1.35-1) ...
Selecting previously unselected package python3-pip-whl.
Preparing to unpack .../45-python3-pip-whl_23.0.1+dfsg-1_all.deb ...
Unpacking python3-pip-whl (23.0.1+dfsg-1) ...
Selecting previously unselected package python3-setuptools-whl.
Preparing to unpack .../46-python3-setuptools-whl_66.1.1-1_all.deb ...
Unpacking python3-setuptools-whl (66.1.1-1) ...
Selecting previously unselected package python3.11-venv.
Preparing to unpack .../47-python3.11-venv_3.11.2-6+deb12u3_amd64.deb ...
Unpacking python3.11-venv (3.11.2-6+deb12u3) ...
Selecting previously unselected package libpython3.11:amd64.
Preparing to unpack .../48-libpython3.11_3.11.2-6+deb12u3_amd64.deb ...
Unpacking libpython3.11:amd64 (3.11.2-6+deb12u3) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../49-libexpat1-dev_2.5.0-1+deb12u1_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.5.0-1+deb12u1) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../50-zlib1g-dev_1%3a1.2.13.dfsg-1_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.13.dfsg-1) ...
Selecting previously unselected package libpython3.11-dev:amd64.
Preparing to unpack .../51-libpython3.11-dev_3.11.2-6+deb12u3_amd64.deb ...
Unpacking libpython3.11-dev:amd64 (3.11.2-6+deb12u3) ...
Selecting previously unselected package python3.11-dev.
Preparing to unpack .../52-python3.11-dev_3.11.2-6+deb12u3_amd64.deb ...
Unpacking python3.11-dev (3.11.2-6+deb12u3) ...
Selecting previously unselected package python3-setuptools.
Preparing to unpack .../53-python3-setuptools_66.1.1-1_all.deb ...
Unpacking python3-setuptools (66.1.1-1) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../54-python3-wheel_0.38.4-2_all.deb ...
Unpacking python3-wheel (0.38.4-2) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../55-python3-pip_23.0.1+dfsg-1_all.deb ...
Unpacking python3-pip (23.0.1+dfsg-1) ...
Selecting previously unselected package python3-cffi-backend:amd64.
Preparing to unpack .../56-python3-cffi-backend_1.15.1-5+b1_amd64.deb ...
Unpacking python3-cffi-backend:amd64 (1.15.1-5+b1) ...
Selecting previously unselected package python3-ply.
Preparing to unpack .../57-python3-ply_3.11-5_all.deb ...
Unpacking python3-ply (3.11-5) ...
Selecting previously unselected package python3-pycparser.
Preparing to unpack .../58-python3-pycparser_2.21-1_all.deb ...
Unpacking python3-pycparser (2.21-1) ...
Selecting previously unselected package python3-cffi.
Preparing to unpack .../59-python3-cffi_1.15.1-5_all.deb ...
Unpacking python3-cffi (1.15.1-5) ...
Selecting previously unselected package python3-brotli.
Preparing to unpack .../60-python3-brotli_1.0.9-2+b6_amd64.deb ...
Unpacking python3-brotli (1.0.9-2+b6) ...
Selecting previously unselected package libfribidi0:amd64.
Preparing to unpack .../61-libfribidi0_1.0.8-2.1_amd64.deb ...
Unpacking libfribidi0:amd64 (1.0.8-2.1) ...
Selecting previously unselected package libgraphite2-3:amd64.
Preparing to unpack .../62-libgraphite2-3_1.3.14-1_amd64.deb ...
Unpacking libgraphite2-3:amd64 (1.3.14-1) ...
Selecting previously unselected package libharfbuzz0b:amd64.
Preparing to unpack .../63-libharfbuzz0b_6.0.0+dfsg-3_amd64.deb ...
Unpacking libharfbuzz0b:amd64 (6.0.0+dfsg-3) ...
Selecting previously unselected package libthai-data.
Preparing to unpack .../64-libthai-data_0.1.29-1_all.deb ...
Unpacking libthai-data (0.1.29-1) ...
Selecting previously unselected package libdatrie1:amd64.
Preparing to unpack .../65-libdatrie1_0.2.13-2+b1_amd64.deb ...
Unpacking libdatrie1:amd64 (0.2.13-2+b1) ...
Selecting previously unselected package libthai0:amd64.
Preparing to unpack .../66-libthai0_0.1.29-1_amd64.deb ...
Unpacking libthai0:amd64 (0.1.29-1) ...
Selecting previously unselected package libpango-1.0-0:amd64.
Preparing to unpack .../67-libpango-1.0-0_1.50.12+ds-1_amd64.deb ...
Unpacking libpango-1.0-0:amd64 (1.50.12+ds-1) ...
Selecting previously unselected package libpangoft2-1.0-0:amd64.
Preparing to unpack .../68-libpangoft2-1.0-0_1.50.12+ds-1_amd64.deb ...
Unpacking libpangoft2-1.0-0:amd64 (1.50.12+ds-1) ...
Selecting previously unselected package nginx-common.
Preparing to unpack .../69-nginx-common_1.22.1-9_all.deb ...
Unpacking nginx-common (1.22.1-9) ...
Selecting previously unselected package nginx.
Preparing to unpack .../70-nginx_1.22.1-9_amd64.deb ...
Unpacking nginx (1.22.1-9) ...
Selecting previously unselected package libonig5:amd64.
Preparing to unpack .../71-libonig5_6.9.8-1_amd64.deb ...
Unpacking libonig5:amd64 (6.9.8-1) ...
Selecting previously unselected package libjq1:amd64.
Preparing to unpack .../72-libjq1_1.6-2.1_amd64.deb ...
Unpacking libjq1:amd64 (1.6-2.1) ...
Selecting previously unselected package jq.
Preparing to unpack .../73-jq_1.6-2.1_amd64.deb ...
Unpacking jq (1.6-2.1) ...
Selecting previously unselected package inventree.
Preparing to unpack .../74-inventree_0.16.5-1728322301.6e37f0cd.bullseye_amd64.deb ...
# PRI01| Running preinstall script - start - Wed Oct 23 10:39:18 AM EDT 2024
# PRI02| No python environment found - skipping
# PRI03| Running preinstall script - done - Wed Oct 23 10:39:18 AM EDT 2024
Unpacking inventree (0.16.5-1728322301.6e37f0cd.bullseye) ...
Selecting previously unselected package javascript-common.
Preparing to unpack .../75-javascript-common_11+nmu1_all.deb ...
Unpacking javascript-common (11+nmu1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../76-libalgorithm-diff-perl_1.201-1_all.deb ...
Unpacking libalgorithm-diff-perl (1.201-1) ...
Selecting previously unselected package libalgorithm-diff-xs-perl:amd64.
Preparing to unpack .../77-libalgorithm-diff-xs-perl_0.04-8+b1_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl:amd64 (0.04-8+b1) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../78-libalgorithm-merge-perl_0.08-5_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-5) ...
Selecting previously unselected package libc-devtools.
Preparing to unpack .../79-libc-devtools_2.36-9+deb12u8_amd64.deb ...
Unpacking libc-devtools (2.36-9+deb12u8) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../80-libfile-fcntllock-perl_0.22-4+b1_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-4+b1) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../81-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ...
Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ...
Selecting previously unselected package libjs-underscore.
Preparing to unpack .../82-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ...
Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ...
Selecting previously unselected package libjs-sphinxdoc.
Preparing to unpack .../83-libjs-sphinxdoc_5.3.0-4_all.deb ...
Unpacking libjs-sphinxdoc (5.3.0-4) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../84-libpython3-dev_3.11.2-1+b1_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.11.2-1+b1) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../85-manpages-dev_6.03-2_all.deb ...
Unpacking manpages-dev (6.03-2) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../86-python3-dev_3.11.2-1+b1_amd64.deb ...
Unpacking python3-dev (3.11.2-1+b1) ...
Setting up javascript-common (11+nmu1) ...
apache2_invoke: Enable configuration javascript-common
apache2.service is not active, cannot reload.
invoke-rc.d: initscript apache2, action "reload" failed.
Setting up libgraphite2-3:amd64 (1.3.14-1) ...
Setting up manpages-dev (6.03-2) ...
Setting up fontconfig (2.14.1-4) ...
Regenerating fonts cache... done.
Setting up python3-setuptools-whl (66.1.1-1) ...
Setting up python3-setuptools (66.1.1-1) ...
Setting up libpython3.11:amd64 (3.11.2-6+deb12u3) ...
Setting up libdatrie1:amd64 (0.2.13-2+b1) ...
Setting up libfile-fcntllock-perl (0.22-4+b1) ...
Setting up python3-pip-whl (23.0.1+dfsg-1) ...
Setting up libalgorithm-diff-perl (1.201-1) ...
Setting up python3-ply (3.11-5) ...
Setting up binutils-common:amd64 (2.40-2) ...
Setting up libpq5:amd64 (15.8-0+deb12u1) ...
Setting up linux-libc-dev:amd64 (6.1.112-1) ...
Setting up libctf-nobfd0:amd64 (2.40-2) ...
Setting up nginx-common (1.22.1-9) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /lib/systemd/system/nginx.service.
Setting up libgomp1:amd64 (12.2.0-14) ...
Setting up python3-wheel (0.38.4-2) ...
Setting up libfakeroot:amd64 (1.31-1.2) ...
Setting up python3-pycparser (2.21-1) ...
Setting up fakeroot (1.31-1.2) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up libtirpc-dev:amd64 (1.3.3+ds-1) ...
Setting up rpcsvc-proto (1.4.3-1) ...
Setting up python3.11-venv (3.11.2-6+deb12u3) ...
Setting up make (4.3-4.1) ...
Setting up libmpfr6:amd64 (4.2.0-1) ...
Setting up python3-brotli (1.0.9-2+b6) ...
Setting up libfribidi0:amd64 (1.0.8-2.1) ...
Setting up libquadmath0:amd64 (12.2.0-14) ...
Setting up libmpc3:amd64 (1.3.1-1) ...
Setting up libatomic1:amd64 (12.2.0-14) ...
Setting up patch (2.7.6-7) ...
Setting up python3-pip (23.0.1+dfsg-1) ...
Setting up libdpkg-perl (1.21.22) ...
Setting up libubsan1:amd64 (12.2.0-14) ...
Setting up libnsl-dev:amd64 (1.3.0-2) ...
Setting up libcrypt-dev:amd64 (1:4.4.33-2) ...
Setting up libasan8:amd64 (12.2.0-14) ...
Setting up libxslt1.1:amd64 (1.1.35-1) ...
Setting up libharfbuzz0b:amd64 (6.0.0+dfsg-3) ...
Setting up libthai-data (0.1.29-1) ...
Setting up libtsan2:amd64 (12.2.0-14) ...
Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ...
Setting up libbinutils:amd64 (2.40-2) ...
Setting up libisl23:amd64 (0.25-1.1) ...
Setting up libc-dev-bin (2.36-9+deb12u8) ...
Setting up libalgorithm-diff-xs-perl:amd64 (0.04-8+b1) ...
Setting up libcc1-0:amd64 (12.2.0-14) ...
Setting up libonig5:amd64 (6.9.8-1) ...
Setting up liblsan0:amd64 (12.2.0-14) ...
Setting up libitm1:amd64 (12.2.0-14) ...
Setting up python3-cffi-backend:amd64 (1.15.1-5+b1) ...
Setting up libc-devtools (2.36-9+deb12u8) ...
Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ...
Setting up libalgorithm-merge-perl (0.08-5) ...
Setting up libctf0:amd64 (2.40-2) ...
Setting up cpp-12 (12.2.0-14) ...
Setting up gettext (0.21-12) ...
Setting up nginx (1.22.1-9) ...
Upgrading binary: nginx.
Setting up libjq1:amd64 (1.6-2.1) ...
Setting up python3-cffi (1.15.1-5) ...
Setting up libthai0:amd64 (0.1.29-1) ...
Setting up libgprofng0:amd64 (2.40-2) ...
Setting up libgcc-12-dev:amd64 (12.2.0-14) ...
Setting up libjs-sphinxdoc (5.3.0-4) ...
Setting up cpp (4:12.2.0-3) ...
Setting up jq (1.6-2.1) ...
Setting up libc6-dev:amd64 (2.36-9+deb12u8) ...
Setting up binutils-x86-64-linux-gnu (2.40-2) ...
Setting up libstdc++-12-dev:amd64 (12.2.0-14) ...
Setting up libpango-1.0-0:amd64 (1.50.12+ds-1) ...
Setting up binutils (2.40-2) ...
Setting up dpkg-dev (1.21.22) ...
Setting up libexpat1-dev:amd64 (2.5.0-1+deb12u1) ...
Setting up gcc-12 (12.2.0-14) ...
Setting up zlib1g-dev:amd64 (1:1.2.13.dfsg-1) ...
Setting up libpangoft2-1.0-0:amd64 (1.50.12+ds-1) ...
Setting up g++-12 (12.2.0-14) ...
Setting up gcc (4:12.2.0-3) ...
Setting up libpython3.11-dev:amd64 (3.11.2-6+deb12u3) ...
Setting up g++ (4:12.2.0-3) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.9) ...
Setting up libpython3-dev:amd64 (3.11.2-1+b1) ...
Setting up python3.11-dev (3.11.2-6+deb12u3) ...
Setting up inventree (0.16.5-1728322301.6e37f0cd.bullseye) ...
# POI01| Running postinstall script - start - Wed Oct 23 10:39:27 AM EDT 2024
# POI01| Importing functions
# POI01| Functions imported
# POI03| Setting base environment variables
# POI03| No config file found: /etc/inventree/config.yaml, using envs or defaults
# POI03| Collected environment variables:
# POI03|    INVENTREE_MEDIA_ROOT=/opt/inventree/data/media
# POI03|    INVENTREE_STATIC_ROOT=/opt/inventree/data/static
# POI03|    INVENTREE_BACKUP_DIR=/opt/inventree/data/backup
# POI03|    INVENTREE_PLUGINS_ENABLED=true
# POI03|    INVENTREE_PLUGIN_FILE=/etc/inventree/plugins.txt
# POI03|    INVENTREE_SECRET_KEY_FILE=/etc/inventree/secret_key.txt
# POI03|    INVENTREE_DB_ENGINE=sqlite3
# POI03|    INVENTREE_DB_NAME=/opt/inventree/data/database.sqlite3
# POI03|    INVENTREE_DB_USER=sampleuser
# POI03|    INVENTREE_DB_HOST=samplehost
# POI03|    INVENTREE_DB_PORT=123456
# POI04| Running in docker: no
# POI05| Using init command: systemctl
# POI06| Getting the IP address of the server via web service
# POI06| IP address is [REDACTED]
# POI07| No python environment found - using environment variable: python3.9
# POI07| Trying to detecting python3.9 to python3.12 - using newest version
# POI07| Checking for python3.12
# POI07| Checking for python3.11
# POI07| Found python3.11 installed - using for setup python3.11
# POI07| Using python command: python3.11
# POI08| Checking if update checks are needed
# POI08| Normal install - no need for checks
# POI09| Setting up python environment
Collecting invoke
  Downloading invoke-2.2.0-py3-none-any.whl (160 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.3/160.3 kB 365.7 kB/s eta 0:00:00
Collecting wheel
  Downloading wheel-0.44.0-py3-none-any.whl (67 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.1/67.1 kB 34.9 MB/s eta 0:00:00
Installing collected packages: wheel, invoke
Successfully installed invoke-2.2.0 wheel-0.44.0
# POI09| Unlinking default nginx config\n# POI09| Old file still in /etc/nginx/sites-available/default
# POI09| Unlinked default nginx config
# POI09| Stopping nginx
# POI09| Stopped nginx
# POI09| Setting up nginx to /etc/nginx/sites-enabled/inventree.conf
# POI09| Starting nginx
# POI09| Started nginx
# POI09| (Re)creating init scripts
Created symlink /etc/systemd/system/multi-user.target.wants/inventree.service → /etc/systemd/system/inventree.service.
Created symlink /etc/systemd/system/inventree.service.wants/inventree-web.service → /etc/systemd/system/inventree-web.service.
Scaling up...
Created symlink /etc/systemd/system/inventree-web.service.wants/inventree-web-1.service → /etc/systemd/system/inventree-web-1.service.
--> done.
Created symlink /etc/systemd/system/inventree.service.wants/inventree-worker.service → /etc/systemd/system/inventree-worker.service.
Scaling up...
Created symlink /etc/systemd/system/inventree-worker.service.wants/inventree-worker-1.service → /etc/systemd/system/inventree-worker-1.service.
--> done.
# POI09| Enabling InvenTree on boot
# POI09| Enabled InvenTree on boot
# POI10| Creating admin user data
# POI11| Stopping InvenTree
# POI11| Stopped InvenTree
# POI12| Updating InvenTree
Collecting uv
  Downloading uv-0.4.25-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.6/13.6 MB 20.9 MB/s eta 0:00:00
Requirement already satisfied: wheel in ./env/lib/python3.11/site-packages (0.44.0)
Installing collected packages: uv
Successfully installed uv-0.4.25
Using Python 3.11.2 environment at env
Resolved 137 packages in 2.03s
Prepared 137 packages in 3.49s
Uninstalled 1 package in 33ms
Installed 137 packages in 189ms
 + asgiref==3.8.1
 + async-timeout==4.0.3
 + attrs==23.2.0
 + babel==2.15.0
 + bleach==6.1.0
 + brotli==1.1.0
 + certifi==2024.7.4
 + cffi==1.16.0
 + charset-normalizer==3.3.2
 + coreapi==2.3.3
 + coreschema==0.0.4
 + cryptography==42.0.8
 + cssselect2==0.7.0
 + defusedxml==0.7.1
 + deprecated==1.2.14
 + diff-match-patch==20230430
 + dj-rest-auth==6.0.0
 + django==4.2.15
 + django-allauth==0.63.3
 + django-allauth-2fa==0.11.1
 + django-cleanup==8.1.0
 + django-cors-headers==4.4.0
 + django-crispy-forms==1.14.0
 + django-dbbackup==4.1.0
 + django-error-report-2==0.4.2
 + django-filter==24.2
 + django-flags==5.0.13
 + django-formtools==2.5.1
 + django-ical==1.9.2
 + django-import-export==3.3.9
 + django-js-asset==2.2.0
 + django-maintenance-mode==0.21.1
 + django-markdownify==0.9.5
 + django-money==3.2.0
 + django-mptt==0.16.0
 + django-otp==1.5.0
 + django-picklefield==3.2
 + django-q-sentry==0.1.6
 + django-q2==1.6.2
 + django-recurrence==1.11.1
 + django-redis==5.4.0
 + django-sesame==3.2.2
 + django-sql-utils==0.7.0
 + django-sslserver==0.22
 + django-stdimage==6.0.2
 + django-taggit==5.0.1
 + django-user-sessions==2.0.0
 + django-weasyprint==2.3.0
 + django-xforwardedfor-middleware==2.0
 + djangorestframework==3.14.0
 + djangorestframework-simplejwt==5.3.1
 + drf-spectacular==0.27.2
 + dulwich==0.22.1
 + et-xmlfile==1.1.0
 + feedparser==6.0.11
 + fonttools==4.53.0
 + googleapis-common-protos==1.63.2
 + grpcio==1.64.1
 + gunicorn==22.0.0
 + html5lib==1.1
 + icalendar==5.0.13
 + idna==3.7
 + importlib-metadata==7.1.0
 + inflection==0.5.1
 + isodate==0.6.1
 + itypes==1.2.0
 + jinja2==3.1.4
 + jsonschema==4.22.0
 + jsonschema-specifications==2023.12.1
 + lxml==5.2.2
 + markdown==3.6
 + markuppy==1.14
 + markupsafe==2.1.5
 + odfpy==1.4.1
 + openpyxl==3.1.4
 + opentelemetry-api==1.25.0
 + opentelemetry-exporter-otlp==1.25.0
 + opentelemetry-exporter-otlp-proto-common==1.25.0
 + opentelemetry-exporter-otlp-proto-grpc==1.25.0
 + opentelemetry-exporter-otlp-proto-http==1.25.0
 + opentelemetry-instrumentation==0.46b0
 + opentelemetry-instrumentation-django==0.46b0
 + opentelemetry-instrumentation-redis==0.46b0
 + opentelemetry-instrumentation-requests==0.46b0
 + opentelemetry-instrumentation-wsgi==0.46b0
 + opentelemetry-proto==1.25.0
 + opentelemetry-sdk==1.25.0
 + opentelemetry-semantic-conventions==0.46b0
 + opentelemetry-util-http==0.46b0
 + packaging==24.1
 + pdf2image==1.17.0
 + pillow==10.3.0
 + pint==0.21
 + pip-licenses==4.4.0
 + prettytable==3.10.0
 + protobuf==4.25.3
 + py-moneyed==3.0
 + pycparser==2.22
 + pydyf==0.10.0
 + pyjwt==2.8.0
 + pyphen==0.15.0
 + pypng==0.20220715.0
 + python-barcode==0.15.1
 + python-dateutil==2.9.0.post0
 + python-dotenv==1.0.1
 + python-fsutil==0.14.1
 + python3-openid==3.2.0
 + python3-saml==1.16.0
 + pytz==2024.1
 + pyyaml==6.0.1
 + qrcode==7.4.2
 + rapidfuzz==3.9.3
 + redis==5.0.7
 + referencing==0.35.1
 + regex==2024.4.28
 + requests==2.32.3
 + rpds-py==0.18.1
 + sentry-sdk==2.8.0
 - setuptools==75.2.0
 + setuptools==72.1.0
 + sgmllib3k==1.0.0
 + six==1.16.0
 + sqlparse==0.5.0
 + tablib==3.5.0
 + tinycss2==1.2.1
 + typing-extensions==4.12.2
 + uritemplate==4.1.1
 + urllib3==2.2.2
 + wcwidth==0.2.13
 + weasyprint==61.2
 + webencodings==0.5.1
 + whitenoise==6.7.0
 + wrapt==1.16.0
 + xlrd==2.0.1
 + xlwt==1.3.0
 + xmlsec==1.3.14
 + zipp==3.19.2
 + zopfli==0.2.3
Plugin configuration file does not exist - creating default file
warning: Requirements file /etc/inventree/plugins.txt does not contain any dependencies
Using Python 3.11.2 environment at env
Audited in 2ms
Traceback (most recent call last):
  File "/opt/inventree/src/backend/InvenTree/manage.py", line 24, in <module>
    main()
  File "/opt/inventree/src/backend/InvenTree/manage.py", line 20, in main
    execute_from_command_line(sys.argv)
  File "/opt/inventree/env/lib/python3.11/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/opt/inventree/env/lib/python3.11/site-packages/django/core/management/__init__.py", line 416, in execute
    django.setup()
  File "/opt/inventree/env/lib/python3.11/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/opt/inventree/env/lib/python3.11/site-packages/django/apps/registry.py", line 91, in populate
    app_config = AppConfig.create(entry)
                 ^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/inventree/env/lib/python3.11/site-packages/django/apps/config.py", line 178, in create
    mod = import_module(mod_path)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, 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 "/opt/inventree/src/backend/InvenTree/plugin/__init__.py", line 4, in <module>
    from .plugin import InvenTreePlugin
  File "/opt/inventree/src/backend/InvenTree/plugin/plugin.py", line 16, in <module>
    from InvenTree.helpers import pui_url
  File "/opt/inventree/src/backend/InvenTree/InvenTree/helpers.py", line 25, in <module>
    import regex
  File "/opt/inventree/env/lib/python3.11/site-packages/regex/__init__.py", line 1, in <module>
    from .regex import *
  File "/opt/inventree/env/lib/python3.11/site-packages/regex/regex.py", line 417, in <module>
    import regex._regex_core as _regex_core
  File "/opt/inventree/env/lib/python3.11/site-packages/regex/_regex_core.py", line 21, in <module>
    import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'
# POI12| u | Installing required python packages from 'src/backend/requirements.txt'
# POI12| u | Requirement already satisfied: uv in ./env/lib/python3.11/site-packages (0.4.25)
# POI12| u | Requirement already satisfied: setuptools in ./env/lib/python3.11/site-packages (66.1.1)
# POI12| u | Collecting setuptools
# POI12| u |   Downloading setuptools-75.2.0-py3-none-any.whl (1.2 MB)
# POI12| u |      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 5.9 MB/s eta 0:00:00
# POI12| u | Installing collected packages: setuptools
# POI12| u |   Attempting uninstall: setuptools
# POI12| u |     Found existing installation: setuptools 66.1.1
# POI12| u |     Uninstalling setuptools-66.1.1:
# POI12| u |       Successfully uninstalled setuptools-66.1.1
# POI12| u | Successfully installed setuptools-75.2.0
# POI12| u | Installing plugin packages from '/etc/inventree/plugins.txt'
# POI12| u | Requirement already satisfied: uv in ./env/lib/python3.11/site-packages (0.4.25)
# POI12| u | Python version 3.11.2 - /opt/inventree/env/bin/python3
# POI12| u | InvenTree configuration file 'config.yaml' not found - creating default file
# POI12| u | Created config file /etc/inventree/config.yaml
# POI12| Set permissions for data dir and media: /opt/inventree/data
# POI13| Setting up InvenTree config values
# POI13| Writing the settings to the config file /etc/inventree/config.yaml
# POI13| Done setting up InvenTree config values
# POI14| Setting up InvenTree site URL
# POI15| Starting InvenTree
# POI15| Started InvenTree
# POI16| Printing Final message
####################################################################################
This InvenTree install uses nginx, the settings for the webserver can be found in
/etc/nginx/sites-enabled/inventree.conf
Try opening InvenTree with either
http://localhost/ or http://[REDACTED]/

Admin user data:
   Email: [REDACTED]
   Username: [REDACTED]
   Password: [REDACTED]
####################################################################################
# POI17| Running postinstall script - done - Wed Oct 23 10:39:51 AM EDT 2024
Setting up python3-dev (3.11.2-1+b1) ...
Processing triggers for man-db (2.11.2-2) ...
Processing triggers for libc-bin (2.36-9+deb12u8) ...
### Install done!

The output contains a very similar Python traceback in manage.py.

502 Error
Output of curl -v http://localhost/:
*   Trying <IP_ADDRESS>:80...
* Connected to localhost (<IP_ADDRESS>) port 80 (#0)
> GET / HTTP/1.1
> Host: localhost
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 502 Bad Gateway
< Server: nginx/1.22.1
< Date: Wed, 23 Oct 2024 14:43:44 GMT
< Content-Type: text/html
< Content-Length: 157
< Connection: keep-alive
<
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.22.1</center>
</body>
</html>
* Connection #0 to host localhost left intact

@marley-hto your issue seems to be different, unrelated to translation files:
  File "/opt/inventree/src/backend/InvenTree/plugin/__init__.py", line 4, in <module>
    from .plugin import InvenTreePlugin
  File "/opt/inventree/src/backend/InvenTree/plugin/plugin.py", line 16, in <module>
    from InvenTree.helpers import pui_url
  File "/opt/inventree/src/backend/InvenTree/InvenTree/helpers.py", line 25, in <module>
    import regex
  File "/opt/inventree/env/lib/python3.11/site-packages/regex/__init__.py", line 1, in <module>
    from .regex import *
  File "/opt/inventree/env/lib/python3.11/site-packages/regex/regex.py", line 417, in <module>
    import regex._regex_core as _regex_core
  File "/opt/inventree/env/lib/python3.11/site-packages/regex/_regex_core.py", line 21, in <module>
    import regex._regex as _regex
ModuleNotFoundError: No module named 'regex._regex'

Just a bump for this issue, as I am still unable to update. If there's anything I can do/check please let me know.

@JustusRijke have you tried with one of the later versions? We have released 0.16.7 recently

Thanks @SchrodingersGat
I use apt update which points to the latest stable version (0.16.5, https://packager.io/gh/inventree/InvenTree/refs/stable )
What steps should I take to update to 0.16.7 ?

@JustusRijke try again, the 0.16.7 build had not been triggered correctly. Should be available now

@SchrodingersGat Got the same 502 Bad Gateway after the update to 0.16.7
sudo apt update returns:
Setting up inventree (0.16.7-1730835768.8ff4edde.focal) ...
# POI01| Running postinstall script - start - Wed 06 Nov 2024 12:14:31 PM CET
# POI01| Importing functions
# POI01| Functions imported
# POI03| Setting base environment variables
# POI03| Using existing config file: /etc/inventree/config.yaml
# POI03| Installing requirements

[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
# POI03| Installed requirements
# POI03| Collected environment variables:
# POI03|    INVENTREE_MEDIA_ROOT=/opt/inventree/data/media
# POI03|    INVENTREE_STATIC_ROOT=/opt/inventree/data/static
# POI03|    INVENTREE_BACKUP_DIR=/opt/inventree/data/backup
# POI03|    INVENTREE_PLUGINS_ENABLED=true
# POI03|    INVENTREE_PLUGIN_FILE=/etc/inventree/plugins.txt
# POI03|    INVENTREE_SECRET_KEY_FILE=/etc/inventree/secret_key.txt
# POI03|    INVENTREE_DB_ENGINE=postgresql
# POI03|    INVENTREE_DB_NAME=XXXXXX
# POI03|    INVENTREE_DB_USER=XXXXXX
# POI03|    INVENTREE_DB_HOST=localhost
# POI03|    INVENTREE_DB_PORT=5432
# POI04| Running in docker: no
# POI05| Using init command: systemctl
# POI06| Getting the IP address of the server via web service
# POI06| IP address is XXXXXXXXX
# POI07| Python environment already present
# POI07| Found earlier used version: /opt/inventree/env/bin/python
# POI07| Using python command: /opt/inventree/env/bin/python
# POI08| Checking if update checks are needed
# POI08| Running upgrade
# POI08| Old version is: 0.16.1-1724998827.4c15e5c9.focal | 16 - updating to 0.16.7-1730835768.8ff4edde.focal | 16
# POI09| Setting up python environment
Requirement already satisfied: invoke in ./env/lib/python3.9/site-packages (2.1.3)
Requirement already satisfied: wheel in ./env/lib/python3.9/site-packages (0.40.0)

[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
# POI09| Stopping nginx
# POI09| Stopped nginx
# POI09| Setting up nginx to /etc/nginx/sites-enabled/inventree.conf
# POI09| Starting nginx
# POI09| Started nginx
# POI09| (Re)creating init scripts
Nothing to do.
Nothing to do.
# POI09| Enabling InvenTree on boot
# POI09| Enabled InvenTree on boot
# POI10| Admin data already exists - skipping
# POI11| Stopping InvenTree
# POI11| Stopped InvenTree
# POI12| Updating InvenTree
Collecting uv
  Downloading uv-0.4.30-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB)
Requirement already satisfied: wheel in ./env/lib/python3.9/site-packages (0.40.0)
Downloading uv-0.4.30-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.0 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.0/14.0 MB 3.7 MB/s eta 0:00:00
Installing collected packages: uv
Successfully installed uv-0.4.30

[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: pip install --upgrade pip
Using Python 3.9.2 environment at env
Resolved 137 packages in 4.31s
Prepared 1 package in 769ms
Uninstalled 1 package in 10ms
Installed 1 package in 5ms
 - setuptools==75.3.0
 + setuptools==72.1.0
warning: Requirements file /etc/inventree/plugins.txt does not contain any dependencies
Using Python 3.9.2 environment at env
Audited in 3ms
2024-11-06 12:14:53,887 ERROR No CSRF_TRUSTED_ORIGINS specified. Please provide a list of trusted origins, or specify INVENTREE_SITE_URL
# POI12| u | Installing required python packages from 'src/backend/requirements.txt'
# POI12| u | Requirement already satisfied: uv in ./env/lib/python3.9/site-packages (0.4.30)
# POI12| u | Requirement already satisfied: setuptools in ./env/lib/python3.9/site-packages (72.1.0)
# POI12| u | Collecting setuptools
# POI12| u |   Downloading setuptools-75.3.0-py3-none-any.whl.metadata (6.9 kB)
# POI12| u | Downloading setuptools-75.3.0-py3-none-any.whl (1.3 MB)
# POI12| u |    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 2.3 MB/s eta 0:00:00
# POI12| u | Installing collected packages: setuptools
# POI12| u |   Attempting uninstall: setuptools
# POI12| u |     Found existing installation: setuptools 72.1.0
# POI12| u |     Uninstalling setuptools-72.1.0:
# POI12| u |       Successfully uninstalled setuptools-72.1.0
# POI12| u | Successfully installed setuptools-75.3.0
# POI12| u | Installing plugin packages from '/etc/inventree/plugins.txt'
# POI12| u | Requirement already satisfied: uv in ./env/lib/python3.9/site-packages (0.4.30)
# POI12| u | Python version 3.9.2 - /opt/inventree/env/bin/python3
# POI12| Set permissions for data dir and media: /opt/inventree/data
# POI14| Site URL already set - skipping
# POI15| Starting InvenTree
# POI15| Started InvenTree
# POI16| Printing Final message
####################################################################################
This InvenTree install uses nginx, the settings for the webserver can be found in
/etc/nginx/sites-enabled/inventree.conf
Try opening InvenTree with either
http://localhost/ or http://XXXXXXXXXXXXXXXXXX/

Admin user data:
   Email:
   Username:
   Password:
####################################################################################
# POI17| Running postinstall script - done - Wed 06 Nov 2024 12:14:53 PM CET

sudo inventree invoke update returns:
Installing required python packages from 'src/backend/requirements.txt'
Requirement already satisfied: pip in ./env/lib/python3.9/site-packages (24.2)
Collecting pip
  Downloading pip-24.3.1-py3-none-any.whl.metadata (3.7 kB)
Requirement already satisfied: setuptools in ./env/lib/python3.9/site-packages (72.1.0)
Collecting setuptools
  Downloading setuptools-75.3.0-py3-none-any.whl.metadata (6.9 kB)
Downloading pip-24.3.1-py3-none-any.whl (1.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 1.7 MB/s eta 0:00:00
Downloading setuptools-75.3.0-py3-none-any.whl (1.3 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 3.0 MB/s eta 0:00:00
Installing collected packages: setuptools, pip
  Attempting uninstall: setuptools
    Found existing installation: setuptools 72.1.0
    Uninstalling setuptools-72.1.0:
      Successfully uninstalled setuptools-72.1.0
  Attempting uninstall: pip
    Found existing installation: pip 24.2
    Uninstalling pip-24.2:
      Successfully uninstalled pip-24.2
Successfully installed pip-24.3.1 setuptools-75.3.0
Requirement already satisfied: asgiref==3.8.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 3)) (3.8.1)
Requirement already satisfied: async-timeout==4.0.3 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 9)) (4.0.3)
Requirement already satisfied: attrs==23.2.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 13)) (23.2.0)
Requirement already satisfied: babel==2.15.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 19)) (2.15.0)
Requirement already satisfied: bleach==6.1.0 in ./env/lib/python3.9/site-packages (from bleach[css]==6.1.0->-r src/backend/requirements.txt (line 23)) (6.1.0)
Requirement already satisfied: brotli==1.1.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 27)) (1.1.0)
Requirement already satisfied: certifi==2024.7.4 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 112)) (2024.7.4)
Requirement already satisfied: cffi==1.16.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 118)) (1.16.0)
Requirement already satisfied: charset-normalizer==3.3.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 174)) (3.3.2)
Requirement already satisfied: coreapi==2.3.3 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 266)) (2.3.3)
Requirement already satisfied: coreschema==0.0.4 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 270)) (0.0.4)
Requirement already satisfied: cryptography==42.0.8 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 274)) (42.0.8)
Requirement already satisfied: cssselect2==0.7.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 310)) (0.7.0)
Requirement already satisfied: defusedxml==0.7.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 314)) (0.7.1)
Requirement already satisfied: deprecated==1.2.14 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 320)) (1.2.14)
Requirement already satisfied: diff-match-patch==20230430 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 327)) (20230430)
Requirement already satisfied: dj-rest-auth==6.0.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 331)) (6.0.0)
Requirement already satisfied: django==4.2.15 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 334)) (4.2.15)
Requirement already satisfied: django-allauth==0.63.3 in ./env/lib/python3.9/site-packages (from django-allauth[openid,saml]==0.63.3->-r src/backend/requirements.txt (line 369)) (0.63.3)
Requirement already satisfied: django-allauth-2fa==0.11.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 374)) (0.11.1)
Requirement already satisfied: django-cleanup==8.1.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 378)) (8.1.0)
Requirement already satisfied: django-cors-headers==4.4.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 382)) (4.4.0)
Requirement already satisfied: django-crispy-forms==1.14.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 386)) (1.14.0)
Requirement already satisfied: django-dbbackup==4.1.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 390)) (4.1.0)
Requirement already satisfied: django-error-report-2==0.4.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 394)) (0.4.2)
Requirement already satisfied: django-filter==24.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 398)) (24.2)
Requirement already satisfied: django-flags==5.0.13 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 402)) (5.0.13)
Requirement already satisfied: django-formtools==2.5.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 406)) (2.5.1)
Requirement already satisfied: django-ical==1.9.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 410)) (1.9.2)
Requirement already satisfied: django-import-export==3.3.9 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 414)) (3.3.9)
Requirement already satisfied: django-js-asset==2.2.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 418)) (2.2.0)
Requirement already satisfied: django-maintenance-mode==0.21.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 422)) (0.21.1)
Requirement already satisfied: django-markdownify==0.9.5 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 426)) (0.9.5)
Requirement already satisfied: django-money==3.2.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 430)) (3.2.0)
Requirement already satisfied: django-mptt==0.16.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 434)) (0.16.0)
Requirement already satisfied: django-otp==1.5.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 438)) (1.5.0)
Requirement already satisfied: django-picklefield==3.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 442)) (3.2)
Requirement already satisfied: django-q-sentry==0.1.6 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 446)) (0.1.6)
Requirement already satisfied: django-q2==1.6.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 449)) (1.6.2)
Requirement already satisfied: django-recurrence==1.11.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 453)) (1.11.1)
Requirement already satisfied: django-redis==5.4.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 457)) (5.4.0)
Requirement already satisfied: django-sesame==3.2.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 461)) (3.2.2)
Requirement already satisfied: django-sql-utils==0.7.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 465)) (0.7.0)
Requirement already satisfied: django-sslserver==0.22 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 469)) (0.22)
Requirement already satisfied: django-stdimage==6.0.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 472)) (6.0.2)
Requirement already satisfied: django-taggit==5.0.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 476)) (5.0.1)
Requirement already satisfied: django-user-sessions==2.0.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 480)) (2.0.0)
Requirement already satisfied: django-weasyprint==2.3.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 484)) (2.3.0)
Requirement already satisfied: django-xforwardedfor-middleware==2.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 488)) (2.0)
Requirement already satisfied: djangorestframework==3.14.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 491)) (3.14.0)
Requirement already satisfied: djangorestframework-simplejwt==5.3.1 in ./env/lib/python3.9/site-packages (from djangorestframework-simplejwt[crypto]==5.3.1->-r src/backend/requirements.txt (line 499)) (5.3.1)
Requirement already satisfied: drf-spectacular==0.27.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 503)) (0.27.2)
Requirement already satisfied: dulwich==0.22.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 507)) (0.22.1)
Requirement already satisfied: et-xmlfile==1.1.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 556)) (1.1.0)
Requirement already satisfied: feedparser==6.0.11 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 560)) (6.0.11)
Requirement already satisfied: fonttools==4.53.0 in ./env/lib/python3.9/site-packages (from fonttools[woff]==4.53.0->-r src/backend/requirements.txt (line 564)) (4.53.0)
Requirement already satisfied: googleapis-common-protos==1.63.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 608)) (1.63.2)
Requirement already satisfied: grpcio==1.64.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 614)) (1.64.1)
Requirement already satisfied: gunicorn==22.0.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 664)) (22.0.0)
Requirement already satisfied: html5lib==1.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 668)) (1.1)
Requirement already satisfied: icalendar==5.0.13 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 672)) (5.0.13)
Requirement already satisfied: idna==3.7 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 676)) (3.7)
Requirement already satisfied: importlib-metadata==7.1.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 680)) (7.1.0)
Requirement already satisfied: inflection==0.5.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 687)) (0.5.1)
Requirement already satisfied: isodate==0.6.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 691)) (0.6.1)
Requirement already satisfied: itypes==1.2.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 695)) (1.2.0)
Requirement already satisfied: jinja2==3.1.4 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 699)) (3.1.4)
Requirement already satisfied: jsonschema==4.22.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 703)) (4.22.0)
Requirement already satisfied: jsonschema-specifications==2023.12.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 707)) (2023.12.1)
Requirement already satisfied: lxml==5.2.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 711)) (5.2.2)
Requirement already satisfied: markdown==3.6 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 857)) (3.6)
Requirement already satisfied: markuppy==1.14 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 861)) (1.14)
Requirement already satisfied: markupsafe==2.1.5 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 864)) (2.1.5)
Requirement already satisfied: odfpy==1.4.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 926)) (1.4.1)
Requirement already satisfied: openpyxl==3.1.4 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 929)) (3.1.4)
Requirement already satisfied: opentelemetry-api==1.25.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 933)) (1.25.0)
Requirement already satisfied: opentelemetry-exporter-otlp==1.25.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 947)) (1.25.0)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-common==1.25.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 951)) (1.25.0)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-grpc==1.25.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 957)) (1.25.0)
Requirement already satisfied: opentelemetry-exporter-otlp-proto-http==1.25.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 961)) (1.25.0)
Requirement already satisfied: opentelemetry-instrumentation==0.46b0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 965)) (0.46b0)
Requirement already satisfied: opentelemetry-instrumentation-django==0.46b0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 973)) (0.46b0)
Requirement already satisfied: opentelemetry-instrumentation-redis==0.46b0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 977)) (0.46b0)
Requirement already satisfied: opentelemetry-instrumentation-requests==0.46b0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 981)) (0.46b0)
Requirement already satisfied: opentelemetry-instrumentation-wsgi==0.46b0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 985)) (0.46b0)
Requirement already satisfied: opentelemetry-proto==1.25.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 989)) (1.25.0)
Requirement already satisfied: opentelemetry-sdk==1.25.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 996)) (1.25.0)
Requirement already satisfied: opentelemetry-semantic-conventions==0.46b0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1003)) (0.46b0)
Requirement already satisfied: opentelemetry-util-http==0.46b0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1012)) (0.46b0)
Requirement already satisfied: packaging==24.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1019)) (24.1)
Requirement already satisfied: pdf2image==1.17.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1023)) (1.17.0)
Requirement already satisfied: pillow==10.3.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1027)) (10.3.0)
Requirement already satisfied: pint==0.21 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1104)) (0.21)
Requirement already satisfied: pip-licenses==4.4.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1108)) (4.4.0)
Requirement already satisfied: prettytable==3.10.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1112)) (3.10.0)
Requirement already satisfied: protobuf==4.25.3 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1116)) (4.25.3)
Requirement already satisfied: py-moneyed==3.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1131)) (3.0)
Requirement already satisfied: pycparser==2.22 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1135)) (2.22)
Requirement already satisfied: pydyf==0.10.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1139)) (0.10.0)
Requirement already satisfied: pyjwt==2.8.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1143)) (2.8.0)
Requirement already satisfied: pyphen==0.15.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1147)) (0.15.0)
Requirement already satisfied: pypng==0.20220715.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1151)) (0.20220715.0)
Requirement already satisfied: python-barcode==0.15.1 in ./env/lib/python3.9/site-packages (from python-barcode[images]==0.15.1->-r src/backend/requirements.txt (line 1155)) (0.15.1)
Requirement already satisfied: python-dateutil==2.9.0.post0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1159)) (2.9.0.post0)
Requirement already satisfied: python-dotenv==1.0.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1165)) (1.0.1)
Requirement already satisfied: python-fsutil==0.14.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1169)) (0.14.1)
Requirement already satisfied: python3-openid==3.2.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1173)) (3.2.0)
Requirement already satisfied: python3-saml==1.16.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1177)) (1.16.0)
Requirement already satisfied: pytz==2024.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1182)) (2024.1)
Requirement already satisfied: pyyaml==6.0.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1189)) (6.0.1)
Requirement already satisfied: qrcode==7.4.2 in ./env/lib/python3.9/site-packages (from qrcode[pil]==7.4.2->-r src/backend/requirements.txt (line 1245)) (7.4.2)
Requirement already satisfied: rapidfuzz==3.9.3 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1251)) (3.9.3)
Requirement already satisfied: redis==5.0.7 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1346)) (5.0.7)
Requirement already satisfied: referencing==0.35.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1350)) (0.35.1)
Requirement already satisfied: regex==2024.4.28 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1356)) (2024.4.28)
Requirement already satisfied: requests==2.32.3 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1437)) (2.32.3)
Requirement already satisfied: rpds-py==0.18.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1443)) (0.18.1)
Requirement already satisfied: sentry-sdk==2.8.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1546)) (2.8.0)
Collecting setuptools==72.1.0 (from -r src/backend/requirements.txt (line 1552))
  Downloading setuptools-72.1.0-py3-none-any.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 772.9 kB/s eta 0:00:00
Requirement already satisfied: sgmllib3k==1.0.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1559)) (1.0.0)
Requirement already satisfied: six==1.16.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1562)) (1.16.0)
Requirement already satisfied: sqlparse==0.5.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1570)) (0.5.0)
Requirement already satisfied: tablib==3.5.0 in ./env/lib/python3.9/site-packages (from tablib[html,ods,xls,xlsx,yaml]==3.5.0->-r src/backend/requirements.txt (line 1576)) (3.5.0)
Requirement already satisfied: tinycss2==1.2.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1582)) (1.2.1)
Requirement already satisfied: typing-extensions==4.12.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1589)) (4.12.2)
Requirement already satisfied: uritemplate==4.1.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1598)) (4.1.1)
Requirement already satisfied: urllib3==2.2.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1604)) (2.2.2)
Requirement already satisfied: wcwidth==0.2.13 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1611)) (0.2.13)
Requirement already satisfied: weasyprint==61.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1615)) (61.2)
Requirement already satisfied: webencodings==0.5.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1621)) (0.5.1)
Requirement already satisfied: whitenoise==6.7.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1629)) (6.7.0)
Requirement already satisfied: wrapt==1.16.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1633)) (1.16.0)
Requirement already satisfied: xlrd==2.0.1 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1708)) (2.0.1)
Requirement already satisfied: xlwt==1.3.0 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1712)) (1.3.0)
Requirement already satisfied: xmlsec==1.3.14 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1716)) (1.3.14)
Requirement already satisfied: zipp==3.19.2 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1776)) (3.19.2)
Requirement already satisfied: zopfli==0.2.3 in ./env/lib/python3.9/site-packages (from -r src/backend/requirements.txt (line 1780)) (0.2.3)
Installing collected packages: setuptools
  Attempting uninstall: setuptools
    Found existing installation: setuptools 75.3.0
    Uninstalling setuptools-75.3.0:
      Successfully uninstalled setuptools-75.3.0
Successfully installed setuptools-72.1.0
Installing plugin packages from '/etc/inventree/plugins.txt'
Python version 3.9.2 - /opt/inventree/env/bin/python3
Traceback (most recent call last):
  File "/opt/inventree/src/backend/InvenTree/manage.py", line 24, in <module>
    main()
  File "/opt/inventree/src/backend/InvenTree/manage.py", line 20, in main
    execute_from_command_line(sys.argv)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/opt/inventree/env/lib/python3.9/site-packages/django/core/management/__init__.py", line 416, in execute
    django.setup()
  File "/opt/inventree/env/lib/python3.9/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/apps/registry.py", line 116, in populate
    app_config.import_models()
  File "/opt/inventree/env/lib/python3.9/site-packages/django/apps/config.py", line 269, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/opt/inventree/src/backend/InvenTree/build/models.py", line 9, in <module>
    from django.contrib.auth.models import User
  File "/opt/inventree/env/lib/python3.9/site-packages/django/contrib/auth/models.py", line 98, in <module>
    class Group(models.Model):
  File "/opt/inventree/env/lib/python3.9/site-packages/django/db/models/base.py", line 194, in __new__
    new_class.add_to_class(obj_name, obj)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/db/models/base.py", line 371, in add_to_class
    value.contribute_to_class(cls, name)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/db/models/fields/related.py", line 1910, in contribute_to_class
    self.remote_field.through = create_many_to_many_intermediary_model(
  File "/opt/inventree/env/lib/python3.9/site-packages/django/db/models/fields/related.py", line 1269, in create_many_to_many_intermediary_model
    "verbose_name": _("%(from)s-%(to)s relationship")
  File "/opt/inventree/env/lib/python3.9/site-packages/django/utils/functional.py", line 191, in __mod__
    return str(self) % rhs
  File "/opt/inventree/env/lib/python3.9/site-packages/django/utils/functional.py", line 155, in __text_cast
    return func(*self.__args, **self.__kw)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/utils/translation/__init__.py", line 95, in gettext
    return _trans.gettext(message)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/utils/translation/trans_real.py", line 380, in gettext
    _default = _default or translation(settings.LANGUAGE_CODE)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/utils/translation/trans_real.py", line 293, in translation
    _translations[language] = DjangoTranslation(language)
  File "/opt/inventree/env/lib/python3.9/site-packages/django/utils/translation/trans_real.py", line 179, in __init__
    raise OSError(
OSError: No translation files found for default language en-us.

@JustusRijke thanks for the update. It looks like there is an issue with the package installer for 0.16.x, and only for updates, not fresh installs. @matmair is looking into it

@JustusRijke the fix might be very complex. If you have not changed the storage paths: Uninstalling inventree with sudo apt remove inventree and reinstalling with sudo apt install inventree seems to fix it in some cases. The data is kept through this process.
If you have some time I would be very interested which folders are still in /opt/inventree after the uninstall and what files are in /opt/inventree/src or /opt/inventree/InvenTree

The fix will require some manual steps, discussing further in https://github.com/inventree/InvenTree/issues/8155


(JS-0002) Avoid using console in code that runs on browser

Description
It is considered a best practice to avoid using any of console's methods in JavaScript code that will run on the browser.
Occurrences
There is 1 occurrence of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/ComputerScientist-01/URL-Shortner/issue/JS-0002/occurrences/

#13 should fix this


feat(traverse): add generate_binding and generate_binding_current_scope APIs in context

#6806
#6805  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Dunqing and the rest of your teammates on  Graphite


Add default updates that use global random number generator?

In some cases, there are additional wrapper functions that include the Random.GLOBAL_RNG if no rng is specified. Should we do this everywhere (as in StatsBase?)
Advantage: quick random simulations
Disadvantage: user not forced to choose rng and consequently the seed

@fmikulasch : I forgot I asked myself this question and have just done this now. Should we nonetheless reconsider?
I think that educating users is in principle a good point ...

Agreed to keep it now


Should we continue to distribute rolled up dts?

Packages using tshy generally contain multiple dts files - CJS, ESM, etc.
Each directory contains dts files and the package.json points to specific flavor depending on the import type.
Prior to the migration, we shipped a single rolled-up d.ts file using API Extractor.
We still include it in the build, but it is no longer referenced in package.json.
Should we continue to ship rolled up dts? If so, should we create a rollup dts per output target?
          I don't recall what we are doing for the other packages, but is it intentional that we're not using the rolled-up d.ts from API extractor (dist/keyvault-secrets.d.ts) here? If so, maybe we don't need to ship the rolled-up version.

Originally posted by @timovv in https://github.com/Azure/azure-sdk-for-js/pull/31254#discussion_r1786858583

Since we're not using api-extractor's pruning feature to remove @beta apis and such, does the rollup offer any improvement other than perhaps some speedier parsing? Can we measure a difference?

Closed via #31720 - thank you @jeremymeng! ❤


Allow Meltano UI to available behind a reverse proxy at a relative URL root

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2144
Originally created by @DouweM on 2020-07-07 18:04:36

Instead of Meltano UI being available at https://meltano.example.com or https://example.com:5000, it should be possible to have it be available at https://example.com/meltano, behind a reverse proxy.
The Meltano UI backend and frontend will need to know that relative root so that URLs can be built correctly.

View 1 previous comment from the original issue on GitLab

Closing as no longer relevant on account of the removal of the UI for Meltano 3.0


Selection Issues When RealtimeCSG is Active

When Realtime CSG is active the view tool flickers constantly.
When using the move tool you cannot click on other objects.
Normal behavior resumes when Realtime CGS is closed.
https://i.imgur.com/fivxWmS.gif

Just found that this issue only happens when "Snap Non-CSG Objects to the grid" is disabled

Bump. Can confirm the same issue is still present for me aswell.

I'm unable to replicate this behavior. What unity version, and have you pulled the latest version?

Unity version 2022.3.5f1
No other packages installed except the standard URP packages and the built-in ones. RealtimeCSG is the latest build, downloaded directly from this github, and placed into Packages.

Hold on, I see that you merged a pull request someone created that is clearly related to the issue. Let me test to see if this fixed the issue. https://github.com/LogicalError/realtime-CSG-for-unity/pull/376

This does not seem to be happening in my project. I am using unity 2022.3.5f1


SNMessenger does work on Sideloaded Devices

Currently, the iPA doesn't work on non-jailbroken devices and cannot be sideloaded. I will try to fix it as soon as possible.

As stated in your release information.
But it does work 100% fine. We know how to made it work. If you need help, you can come to AppTesters.org or telegram: @AppleTesters
https://streamable.com/m6vkgf (Video will expire in 2 days)

@iammanpreetsingh Yes, it will work if we somehow preserve the app's identifier. If you use Sideloadly with a regular Apple account, it will use an automatic bundle ID , which causes problems.

Closed due to inactivity.

Could you kindly elaborate on what is not working? I do not use Messenger frequently, so I may have overlooked something.

Every feature that hooks functions (using %hookf) such as: "disable read receipts", "audio / video call confirmation",... doesn't work correctly on non-jailbroken devices. Another alternative for non-jailbroken is Fishhook, but it doesn't work with private functions.
And yes, I can create an iPA for a non-jailbroken device, but it will lack some features (that's why I dropped support for it until I found a way to solve that problem).


Survey: should display 'unknown' for owners/participants no longer exist

Single participant no longer exists - display Unknown
Multiple participants and they all no longer exist - display Unknown
Multiple participants and some exist - Show the ones that exist

@glorymanutd

Not easy to get the unknown participants back for a survey instance as SurveyInstanceRecipientDao.findForSurveyInstance uses an inner join to Person table.
Left join here would result all-null people which can't be constructed by the immutable builder.

Fixed for non-existing owners for now. Will create another ticket for participants as it required more changes.


Feature/action manager qicon import

Qt6 comes with its own library for icons.
This patch now allow direct import of Qt's icon with the action manager either loaded it directly as icons or through their keyword
Syntax goes as:
self.add_action(short_name='refresh',name='Clear', icon_name='ViewRefresh', tip='Clear filter', checkable=False,)
self.add_action(short_name='delete',name='Delete', icon_name=QtGui.QIcon.fromTheme( QtGui.QIcon.ThemeIcon.WindowClose), tip='Delete filter', checkable=False,)

Well I did the review, there are things to do on your side ;-)
And you can add the QIcon as potential input. Make sure to create a test to try it please!


New embed: Splitter for resizing web output

We should consider adding a moveable splitter so users can resize the area available to web output in the new embed UI. This will help in cases where the output needs more width, and it could be a handy way to play with LayoutBuilder, MediaQuery, and some other things.

@johnpryan - done?

Yeah this has been fixed in #1036