Skip to content

Log of the full install process for Ubuntu 22.04.03, I am hoping it will help in tracing down the issues. #6177

Closed

Description

@SparkeyinVA

Deployment Method

  • Installer
  • Docker Development
  • Docker Production
  • Bare metal Development
  • Bare metal Production
  • Digital Ocean image
  • Other (please provide a link Steps to Reproduce

Describe the problem*

There are a number of bugs in the installer, making it difficult or impossible to install using the one-line installer. The issues are described individually in #6154, #6156, #6170, #6175. This is not a new report but rather a full install history with reports showing the issues, which can help in their resolution.

Steps to Reproduce

wget -qO install.sh https://get.inventree.org && bash install.sh

Relevant log output

See additional commands below.

Activity

  1. added
    question
    setup
    triage:not-checked
    on Jan 9, 2024
  2. SparkeyinVA commented on Jan 9, 2024

    @SparkeyinVA
    Author

    @JustusRijke and @eimparas thank you for being patient with me and responding to my post in #4134. As stated, I tried to update Inventree on December 27 and am still trying to get it running. While I have a bit of computer experience, I don't have a large amount of Linux or Python experience. I have mainly used CPM, DOS, and Windows systems, and programs in C and Basic. And a lot of google. :)

    To give you the best information, I started with a clean install of Ubuntu 22.02.03 (ubuntu-22.04.3-desktop-amd64) this morning.

    I updated the system sudo apt update && sudo apt upgrade and from experience, installed curl sudo apt install curl
    I checked the version of Python3, which was 3.10.12. I also created the folder /etc/inventories and copied my config.yaml file into the folder. (This is the same config file I used on V12 of Inventree) So, I went ahead with the one-line installer.

    When I ran it from the user prompt, I received the same Permission denied error as outlined in #6175. I thought this weekend that maybe of version 13 it needed root privileges that were not needed in previous versions of Inventree. So I entered the root bash, which is the "root" account in Ubuntu. sudo bash

    I tried the one-line installer again, but this time, I received a message that the requirements for Python3.9 were not met. This seems strange since the documation says Python3.9 or newer. So I installed Python 3.9 sudo apt install python3.9 python3.9-dev python3.9-venv so not python3 is python 3.10.12 and python3.9 is python 3.9.18.

    I tried the one-line installer again, and it appeared to work. below is the screen info.

    root@npaparts-server:/opt/inventree# wget -qO install.sh https://get.inventree.org && bash install.sh
    ### Installer for InvenTree - source: inventree/stable
    ### Detected distribution: Ubuntu 22.04
    ### Installing required packages for download
    ### Installing libssl1.1
    deb http://security.ubuntu.com/ubuntu focal-security main
    Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
    Get:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]     
    Get:3 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]      
    Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease            
    Hit:5 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease   
    Get:6 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
    Get:7 https://dl.packager.io/srv/deb/inventree/InvenTree/stable/ubuntu 20.04 InRelease [1,863 B]
    Get:8 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2,641 kB]
    Get:9 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [693 kB]
    Get:10 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [405 kB]
    Get:11 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [59.9 kB]
    Get:12 http://security.ubuntu.com/ubuntu focal-security/main DEP-11 48x48 Icons [18.9 kB]
    Get:13 http://security.ubuntu.com/ubuntu focal-security/main DEP-11 64x64 Icons [36.0 kB]
    Get:14 http://security.ubuntu.com/ubuntu focal-security/main DEP-11 64x64@2 Icons [29 B]
    Get:15 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [13.2 kB]
    Fetched 4,212 kB in 5s (904 kB/s)                            
    Reading package lists... Done
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    libssl1.1 is already the newest version (1.1.1f-1ubuntu2.20).
    The following packages were automatically installed and are no longer required:
      gettext jq libevent-core-2.1-7 libevent-extra-2.1-7 libffi7 libjq1 libonig5
      libpq5 python3-brotli python3-cffi python3-ply python3-pycparser
    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
    ### Getting and adding key
    ### Adding package source
    ### Updating package lists
    Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
    Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease              
    Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease            
    Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease               
    Hit:5 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease   
    Get:6 https://dl.packager.io/srv/deb/inventree/InvenTree/stable/ubuntu 20.04 InRelease [1,863 B]
    Fetched 1,863 B in 2s (854 B/s)
    Reading package lists... Done
    ### Setting installer args
    ### Installing InvenTree
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following NEW packages will be installed:
      inventree
    0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
    Need to get 0 B/117 MB of archives.
    After this operation, 331 MB of additional disk space will be used.
    Selecting previously unselected package inventree.
    (Reading database ... 206419 files and directories currently installed.)
    Preparing to unpack .../inventree_0.13.0-1702638825.301afaa9.focal_amd64.deb ...
    Unpacking inventree (0.13.0-1702638825.301afaa9.focal) ...
    Setting up inventree (0.13.0-1702638825.301afaa9.focal) ...
    # Setting base environment variables
    # Using existing config file: /etc/inventree/config.yaml
    # Collected environment variables:
    #    INVENTREE_MEDIA_ROOT=/opt/inventree/data/media
    #    INVENTREE_STATIC_ROOT=/opt/inventree/data/static
    #    INVENTREE_BACKUP_DIR=/opt/inventree/data/backup
    #    INVENTREE_PLUGINS_ENABLED=true
    #    INVENTREE_PLUGIN_FILE=/etc/inventree/plugins.txt
    #    INVENTREE_SECRET_KEY_FILE=/etc/inventree/secret_key.txt
    #    INVENTREE_DB_ENGINE=sqlite3
    #    INVENTREE_DB_NAME=/opt/inventree/data/database.sqlite3
    #    INVENTREE_DB_USER=sampleuser
    #    INVENTREE_DB_HOST=samplehost
    #    INVENTREE_DB_PORT=sampleport
    # Getting the IP address of the server via web service
    IP address is 64.4.107.154
    # Setting up python environment
    Requirement already satisfied: invoke in ./env/lib/python3.9/site-packages (2.2.0)
    Requirement already satisfied: wheel in ./env/lib/python3.9/site-packages (0.42.0)
    # Stopping nginx
    # Setting up nginx to /etc/nginx/sites-enabled/inventree.conf
    # Starting nginx
    # (Re)creating init scripts
    Nothing to do.
    Nothing to do.
    # Enabling InvenTree on boot
    # Admin data already exists - skipping
    # Stopping InvenTree
    # Updating InvenTree
    Requirement already satisfied: wheel in ./env/lib/python3.9/site-packages (0.42.0)
    No idea what '--no-frontend' is!
    # Set permissions for data dir and media: /opt/inventree/data
    # Starting InvenTree
    ####################################################################################
    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://64.4.107.154/
    
    Admin user data:
       Email: 
       Username: 
       Password: 
    ####################################################################################
    ### Install done!
    

    Now I am at the point of having a 502 error. I have lost this once so I will continue in my next post .... TBC

  3. SparkeyinVA commented on Jan 9, 2024

    @SparkeyinVA
    Author

    As shown in #4134, I checked the system status. Yes, I know I did not have to use sudo when I was working as root, but it worked.
    System status

    root@npaparts-server:/opt/inventree# sudo systemctl status inventree
    ● inventree.service
         Loaded: loaded (/etc/systemd/system/inventree.service; enabled; vendor pre>
         Active: active (running) since Mon 2024-01-08 11:16:03 EST; 1min 43s ago
       Main PID: 8022 (sleep)
          Tasks: 1 (limit: 4213)
         Memory: 168.0K
            CPU: 2ms
         CGroup: /system.slice/inventree.service
                 └─8022 /bin/sleep infinity
    
    Jan 08 11:16:03 npaparts-server systemd[1]: Started inventree.service.
    lines 1-11/11 (END)
    

    invoke update, it failed, but I thought it was because I was not in the Python env.

    root@npaparts-server:/opt/inventree# invoke update
    Traceback (most recent call last):
      File "/usr/bin/invoke", line 11, in <module>
        load_entry_point('invoke==1.4.1', 'console_scripts', 'invoke')()
      File "/usr/lib/python3/dist-packages/invoke/program.py", line 373, in run
        self.parse_collection()
      File "/usr/lib/python3/dist-packages/invoke/program.py", line 465, in parse_collection
        self.load_collection()
      File "/usr/lib/python3/dist-packages/invoke/program.py", line 696, in load_collection
        module, parent = loader.load(coll_name)
      File "/usr/lib/python3/dist-packages/invoke/loader.py", line 76, in load
        module = imp.load_module(name, fd, path, desc)
      File "/usr/lib/python3.10/imp.py", line 235, in load_module
        return load_source(name, filename, file)
      File "/usr/lib/python3.10/imp.py", line 172, in load_source
        module = _load(spec)
      File "<frozen importlib._bootstrap>", line 719, in _load
      File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/opt/inventree/tasks.py", line 352, in <module>
        def update(c, skip_backup=False, frontend: bool = False):
      File "/usr/lib/python3/dist-packages/invoke/tasks.py", line 338, in inner
        obj = klass(
      File "/usr/lib/python3/dist-packages/invoke/tasks.py", line 76, in __init__
        self.positional = self.fill_implicit_positionals(positional)
      File "/usr/lib/python3/dist-packages/invoke/tasks.py", line 167, in fill_implicit_positionals
        args, spec_dict = self.argspec(self.body)
      File "/usr/lib/python3/dist-packages/invoke/tasks.py", line 153, in argspec
        spec = inspect.getargspec(func)
      File "/usr/lib/python3.10/inspect.py", line 1237, in getargspec
        raise ValueError("Function has keyword-only parameters or annotations"
    ValueError: Function has keyword-only parameters or annotations, use inspect.signature() API which can support them
    

    inventree config

    root@npaparts-server:/opt/inventree# inventree config 
    APP_GROUP=inventree
    APP_HOME=/opt/inventree
    APP_NAME=inventree
    APP_RUNNER_CLI=systemctl
    APP_RUNNER_TYPE=systemd
    APP_SAFE_NAME=inventree
    APP_USER=inventree
    APP_WIZARDS=
    FORWARDED_ALLOW_IPS=*
    GUNICORN_CMD_ARGS=--access-logfile -
    HOME=/home/inventree
    LANG=en_US.UTF-8
    OLDPWD=/
    ORIGINAL_PWD=/opt/inventree
    PATH=/opt/inventree/.heroku/python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/sbin
    PORT=6000
    PWD=/opt/inventree
    PYTHONHASHSEED=random
    PYTHONPATH=/opt/inventree
    PYTHONUNBUFFERED=true
    ROOT_PATH=/
    SHLVL=0
    

    web and worker status

    root@npaparts-server:/opt/inventree# sudo systemctl status inventree-web
    ● inventree-web.service
         Loaded: loaded (/etc/systemd/system/inventree-web.service; enabled; vendor>
         Active: active (running) since Mon 2024-01-08 11:16:03 EST; 7min ago
       Main PID: 8023 (sleep)
          Tasks: 1 (limit: 4213)
         Memory: 172.0K
            CPU: 2ms
         CGroup: /system.slice/inventree-web.service
                 └─8023 /bin/sleep infinity
    
    Jan 08 11:16:03 npaparts-server systemd[1]: Started inventree-web.service.
    lines 1-11/11 (END)
    
    root@npaparts-server:/opt/inventree# sudo systemctl status inventree-worker
    ● inventree-worker.service
         Loaded: loaded (/etc/systemd/system/inventree-worker.service; enabled; ven>
         Active: active (running) since Mon 2024-01-08 11:16:03 EST; 8min ago
       Main PID: 8025 (sleep)
          Tasks: 1 (limit: 4213)
         Memory: 176.0K
            CPU: 3ms
         CGroup: /system.slice/inventree-worker.service
                 └─8025 /bin/sleep infinity
    
    Jan 08 11:16:03 npaparts-server systemd[1]: Started inventree-worker.service.
    
    root@npaparts-server:/opt/inventree# sudo lsof -i -P -n | grep LISTEN
    systemd-r  465 systemd-resolve   14u  IPv4  21363      0t0  TCP 127.0.0.53:53 (LISTEN)
    cupsd      700            root    6u  IPv6  25309      0t0  TCP [::1]:631 (LISTEN)
    cupsd      700            root    7u  IPv4  25310      0t0  TCP 127.0.0.1:631 (LISTEN)
    nginx     7860            root    6u  IPv4  71033      0t0  TCP *:80 (LISTEN)
    nginx     7861        www-data    6u  IPv4  71033      0t0  TCP *:80 (LISTEN)
    nginx     7862        www-data    6u  IPv4  71033      0t0  TCP *:80 (LISTEN)
    

    restart and check again

    root@npaparts-server:/opt/inventree# sudo service inventree restart
    root@npaparts-server:/opt/inventree# sudo service inventree-web-1 status
    × inventree-web-1.service
         Loaded: loaded (/etc/systemd/system/inventree-web-1.service; enabled; vend>
         Active: failed (Result: exit-code) since Mon 2024-01-08 11:27:10 EST; 12s >
        Process: 8913 ExecStart=/usr/bin/inventree run web (code=exited, status=1/F>
       Main PID: 8913 (code=exited, status=1/FAILURE)
            CPU: 873ms
    
    Jan 08 11:27:10 npaparts-server systemd[1]: inventree-web-1.service: Main proce>
    Jan 08 11:27:10 npaparts-server systemd[1]: inventree-web-1.service: Failed wit>
    Jan 08 11:27:10 npaparts-server systemd[1]: inventree-web-1.service: Scheduled >
    Jan 08 11:27:10 npaparts-server systemd[1]: Stopped inventree-web-1.service.
    Jan 08 11:27:10 npaparts-server systemd[1]: inventree-web-1.service: Start requ>
    Jan 08 11:27:10 npaparts-server systemd[1]: inventree-web-1.service: Failed wit>
    Jan 08 11:27:10 npaparts-server systemd[1]: Failed to start inventree-web-1.ser>
    lines 1-14/14 (END)
    

    I was not sure how to check if nginx had IPv6 enabled, but since @JustusRijke had confirmed that was not the case this time, I proceeded. I checked the configuration
    root@npaparts-server:/opt/inventree# nano /etc/nginx/sites-enabled/inventree.conf
    changed from http://localhost:6000 to http://127.0.0.1:6000 Then saw the comment from @matmair that it was not needed for most systems.
    restarted inventree services and confirmed they were still not working

    root@npaparts-server:/opt/inventree# sudo service inventree restart
    root@npaparts-server:/opt/inventree# systemctl | grep "inventree"
    ● inventree-web-1.service                                                                                               loaded failed failed    inventree-web-1.service
      inventree-web.service                                                                                                 loaded active running   inventree-web.service
    ● inventree-worker-1.service                                                                                            loaded failed failed    inventree-worker-1.service
      inventree-worker.service                                                                                              loaded active running   inventree-worker.service
      inventree.service                                                                                                     loaded active running   inventree.service
    
    root@npaparts-server:/opt/inventree# sudo service inventree-web-1 status
    × inventree-web-1.service
         Loaded: loaded (/etc/systemd/system/inventree-web-1.service; enabled; vendor preset: enabled)
         Active: failed (Result: exit-code) since Mon 2024-01-08 11:39:02 EST; 3min 32s ago
        Process: 10801 ExecStart=/usr/bin/inventree run web (code=exited, status=1/FAILURE)
       Main PID: 10801 (code=exited, status=1/FAILURE)
            CPU: 866ms
    
    Jan 08 11:39:02 npaparts-server systemd[1]: inventree-web-1.service: Scheduled restart job, restart >
    Jan 08 11:39:02 npaparts-server systemd[1]: Stopped inventree-web-1.service.
    Jan 08 11:39:02 npaparts-server systemd[1]: inventree-web-1.service: Start request repeated too quic>
    Jan 08 11:39:02 npaparts-server systemd[1]: inventree-web-1.service: Failed with result 'exit-code'.
    Jan 08 11:39:02 npaparts-server systemd[1]: Failed to start inventree-web-1.service.
    lines 1-12/12 (END)
    

    Then I ran into a possible problem. Continued in the next comment.

  4. SparkeyinVA commented on Jan 9, 2024

    @SparkeyinVA
    Author

    As shown in #4134, I checked the system status. Yes, I know I did not have to use sudo when I was working as root, but it worked.
    System status

    root@npaparts-server:/opt/inventree# sudo systemctl status inventree
    ● inventree.service
         Loaded: loaded (/etc/systemd/system/inventree.service; enabled; vendor pre>
         Active: active (running) since Mon 2024-01-08 11:16:03 EST; 1min 43s ago
       Main PID: 8022 (sleep)
          Tasks: 1 (limit: 4213)
         Memory: 168.0K
            CPU: 2ms
         CGroup: /system.slice/inventree.service
                 └─8022 /bin/sleep infinity
    
    Jan 08 11:16:03 npaparts-server systemd[1]: Started inventree.service.
    lines 1-11/11 (END)
    

    invoke update, it failed, but I thought it was because I was not in the Python env.

    root@npaparts-server:/opt/inventree# invoke update
    Traceback (most recent call last):
      File "/usr/bin/invoke", line 11, in <module>
        load_entry_point('invoke==1.4.1', 'console_scripts', 'invoke')()
      File "/usr/lib/python3/dist-packages/invoke/program.py", line 373, in run
        self.parse_collection()
      File "/usr/lib/python3/dist-packages/invoke/program.py", line 465, in parse_collection
        self.load_collection()
      File "/usr/lib/python3/dist-packages/invoke/program.py", line 696, in load_collection
        module, parent = loader.load(coll_name)
      File "/usr/lib/python3/dist-packages/invoke/loader.py", line 76, in load
        module = imp.load_module(name, fd, path, desc)
      File "/usr/lib/python3.10/imp.py", line 235, in load_module
        return load_source(name, filename, file)
      File "/usr/lib/python3.10/imp.py", line 172, in load_source
        module = _load(spec)
      File "<frozen importlib._bootstrap>", line 719, in _load
      File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/opt/inventree/tasks.py", line 352, in <module>
        def update(c, skip_backup=False, frontend: bool = False):
      File "/usr/lib/python3/dist-packages/invoke/tasks.py", line 338, in inner
        obj = klass(
      File "/usr/lib/python3/dist-packages/invoke/tasks.py", line 76, in __init__
        self.positional = self.fill_implicit_positionals(positional)
      File "/usr/lib/python3/dist-packages/invoke/tasks.py", line 167, in fill_implicit_positionals
        args, spec_dict = self.argspec(self.body)
      File "/usr/lib/python3/dist-packages/invoke/tasks.py", line 153, in argspec
        spec = inspect.getargspec(func)
      File "/usr/lib/python3.10/inspect.py", line 1237, in getargspec
        raise ValueError("Function has keyword-only parameters or annotations"
    ValueError: Function has keyword-only parameters or annotations, use inspect.signature() API which can support them
    

    inventree config

    root@npaparts-server:/opt/inventree# inventree config 
    APP_GROUP=inventree
    APP_HOME=/opt/inventree
    APP_NAME=inventree
    APP_RUNNER_CLI=systemctl
    APP_RUNNER_TYPE=systemd
    APP_SAFE_NAME=inventree
    APP_USER=inventree
    APP_WIZARDS=
    FORWARDED_ALLOW_IPS=*
    GUNICORN_CMD_ARGS=--access-logfile -
    HOME=/home/inventree
    LANG=en_US.UTF-8
    OLDPWD=/
    ORIGINAL_PWD=/opt/inventree
    PATH=/opt/inventree/.heroku/python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/sbin
    PORT=6000
    PWD=/opt/inventree
    PYTHONHASHSEED=random
    PYTHONPATH=/opt/inventree
    PYTHONUNBUFFERED=true
    ROOT_PATH=/
    SHLVL=0
    

    web and worker status

    root@npaparts-server:/opt/inventree# sudo systemctl status inventree-web
    ● inventree-web.service
         Loaded: loaded (/etc/systemd/system/inventree-web.service; enabled; vendor>
         Active: active (running) since Mon 2024-01-08 11:16:03 EST; 7min ago
       Main PID: 8023 (sleep)
          Tasks: 1 (limit: 4213)
         Memory: 172.0K
            CPU: 2ms
         CGroup: /system.slice/inventree-web.service
                 └─8023 /bin/sleep infinity
    
    Jan 08 11:16:03 npaparts-server systemd[1]: Started inventree-web.service.
    lines 1-11/11 (END)
    
    root@npaparts-server:/opt/inventree# sudo systemctl status inventree-worker
    ● inventree-worker.service
         Loaded: loaded (/etc/systemd/system/inventree-worker.service; enabled; ven>
         Active: active (running) since Mon 2024-01-08 11:16:03 EST; 8min ago
       Main PID: 8025 (sleep)
          Tasks: 1 (limit: 4213)
         Memory: 176.0K
            CPU: 3ms
         CGroup: /system.slice/inventree-worker.service
                 └─8025 /bin/sleep infinity
    
    Jan 08 11:16:03 npaparts-server systemd[1]: Started inventree-worker.service.
    
    root@npaparts-server:/opt/inventree# sudo lsof -i -P -n | grep LISTEN
    systemd-r  465 systemd-resolve   14u  IPv4  21363      0t0  TCP 127.0.0.53:53 (LISTEN)
    cupsd      700            root    6u  IPv6  25309      0t0  TCP [::1]:631 (LISTEN)
    cupsd      700            root    7u  IPv4  25310      0t0  TCP 127.0.0.1:631 (LISTEN)
    nginx     7860            root    6u  IPv4  71033      0t0  TCP *:80 (LISTEN)
    nginx     7861        www-data    6u  IPv4  71033      0t0  TCP *:80 (LISTEN)
    nginx     7862        www-data    6u  IPv4  71033      0t0  TCP *:80 (LISTEN)
    

    restart and check again

    root@npaparts-server:/opt/inventree# sudo service inventree restart
    root@npaparts-server:/opt/inventree# sudo service inventree-web-1 status
    × inventree-web-1.service
         Loaded: loaded (/etc/systemd/system/inventree-web-1.service; enabled; vend>
         Active: failed (Result: exit-code) since Mon 2024-01-08 11:27:10 EST; 12s >
        Process: 8913 ExecStart=/usr/bin/inventree run web (code=exited, status=1/F>
       Main PID: 8913 (code=exited, status=1/FAILURE)
            CPU: 873ms
    
    Jan 08 11:27:10 npaparts-server systemd[1]: inventree-web-1.service: Main proce>
    Jan 08 11:27:10 npaparts-server systemd[1]: inventree-web-1.service: Failed wit>
    Jan 08 11:27:10 npaparts-server systemd[1]: inventree-web-1.service: Scheduled >
    Jan 08 11:27:10 npaparts-server systemd[1]: Stopped inventree-web-1.service.
    Jan 08 11:27:10 npaparts-server systemd[1]: inventree-web-1.service: Start requ>
    Jan 08 11:27:10 npaparts-server systemd[1]: inventree-web-1.service: Failed wit>
    Jan 08 11:27:10 npaparts-server systemd[1]: Failed to start inventree-web-1.ser>
    lines 1-14/14 (END)
    

    I was not sure how to check if nginx had IPv6 enabled, but since @JustusRijke had confirmed that was not the case this time, I procided. I checked the configuration
    root@npaparts-server:/opt/inventree# nano /etc/nginx/sites-enabled/inventree.conf```
    changed from http://localhost:6000 to http://127.0.0.1:6000 Then saw the comment from @matmair that it was not needed for most systems.
    restarted inventree services and confirmed they were still not working

    root@npaparts-server:/opt/inventree# sudo service inventree restart
    root@npaparts-server:/opt/inventree# systemctl | grep "inventree"
    ● inventree-web-1.service                                                                                               loaded failed failed    inventree-web-1.service
      inventree-web.service                                                                                                 loaded active running   inventree-web.service
    ● inventree-worker-1.service                                                                                            loaded failed failed    inventree-worker-1.service
      inventree-worker.service                                                                                              loaded active running   inventree-worker.service
      inventree.service                                                                                                     loaded active running   inventree.service
    
    root@npaparts-server:/opt/inventree# sudo service inventree-web-1 status
    × inventree-web-1.service
         Loaded: loaded (/etc/systemd/system/inventree-web-1.service; enabled; vendor preset: enabled)
         Active: failed (Result: exit-code) since Mon 2024-01-08 11:39:02 EST; 3min 32s ago
        Process: 10801 ExecStart=/usr/bin/inventree run web (code=exited, status=1/FAILURE)
       Main PID: 10801 (code=exited, status=1/FAILURE)
            CPU: 866ms
    
    Jan 08 11:39:02 npaparts-server systemd[1]: inventree-web-1.service: Scheduled restart job, restart >
    Jan 08 11:39:02 npaparts-server systemd[1]: Stopped inventree-web-1.service.
    Jan 08 11:39:02 npaparts-server systemd[1]: inventree-web-1.service: Start request repeated too quic>
    Jan 08 11:39:02 npaparts-server systemd[1]: inventree-web-1.service: Failed with result 'exit-code'.
    Jan 08 11:39:02 npaparts-server systemd[1]: Failed to start inventree-web-1.service.
    lines 1-12/12 (END)
    

    Then I ran into a possible problem. Continued in the next comment.

  5. SparkeyinVA commented on Jan 9, 2024

    @SparkeyinVA
    Author

    During the inv update config.py was not reading the data from my config.yaml file. I double-checked it, and the data for static file location was there. it was.

    # STATIC_ROOT is the local filesystem location for storing static files
    static_root: '/home/inventree/data/static'
    

    the same location as in my last install. I moved and tried using /home/npa-parts/data/static but changes that with the same results. I also tried the other invoke commands, invoke update, and invoke backup, which had the same issue of not finding the folder. I then reviewed the Python code for config.py and noticed the function had provisions for a default value, so I added my directory there. It worked as it got past that section, and I received this error.

    (env) root@npaparts-server:/opt/inventree# inv update
    Installing required python packages from 'requirements.txt'
    Requirement already satisfied: pip in ./env/lib/python3.9/site-packages (23.3.2)
    Requirement already satisfied: setuptools in ./env/lib/python3.9/site-packages (69.0.3)
    Requirement already satisfied: asgiref==3.7.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 7)) (3.7.2)
    Requirement already satisfied: async-timeout==4.0.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 9)) (4.0.3)
    Requirement already satisfied: attrs==23.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 11)) (23.1.0)
    Requirement already satisfied: babel==2.13.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 15)) (2.13.1)
    Requirement already satisfied: bleach==6.1.0 in ./env/lib/python3.9/site-packages (from bleach[css]==6.1.0->-r requirements.txt (line 17)) (6.1.0)
    Requirement already satisfied: brotli==1.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 19)) (1.1.0)
    Requirement already satisfied: certifi==2023.7.22 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 21)) (2023.7.22)
    Requirement already satisfied: cffi==1.16.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 25)) (1.16.0)
    Requirement already satisfied: charset-normalizer==3.3.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 29)) (3.3.2)
    Requirement already satisfied: coreapi==2.3.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 31)) (2.3.3)
    Requirement already satisfied: coreschema==0.0.4 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 33)) (0.0.4)
    Requirement already satisfied: cryptography==41.0.6 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 35)) (41.0.6)
    Requirement already satisfied: cssselect2==0.7.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 40)) (0.7.0)
    Requirement already satisfied: defusedxml==0.7.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 42)) (0.7.1)
    Requirement already satisfied: diff-match-patch==20230430 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 46)) (20230430)
    Requirement already satisfied: dj-rest-auth==5.0.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 48)) (5.0.1)
    Requirement already satisfied: django==3.2.23 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 50)) (3.2.23)
    Requirement already satisfied: django-allauth==0.54.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 84)) (0.54.0)
    Requirement already satisfied: django-allauth-2fa==0.11.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 88)) (0.11.1)
    Requirement already satisfied: django-cleanup==8.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 90)) (8.0.0)
    Requirement already satisfied: django-cors-headers==4.3.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 92)) (4.3.0)
    Requirement already satisfied: django-crispy-forms==1.14.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 94)) (1.14.0)
    Requirement already satisfied: django-dbbackup==4.0.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 96)) (4.0.2)
    Requirement already satisfied: django-error-report-2==0.4.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 98)) (0.4.2)
    Requirement already satisfied: django-filter==23.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 100)) (23.3)
    Requirement already satisfied: django-flags==5.0.13 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 102)) (5.0.13)
    Requirement already satisfied: django-formtools==2.4.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 104)) (2.4.1)
    Requirement already satisfied: django-ical==1.9.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 106)) (1.9.2)
    Requirement already satisfied: django-import-export==3.3.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 108)) (3.3.1)
    Requirement already satisfied: django-js-asset==2.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 110)) (2.1.0)
    Requirement already satisfied: django-maintenance-mode==0.21.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 112)) (0.21.0)
    Requirement already satisfied: django-markdownify==0.9.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 114)) (0.9.3)
    Requirement already satisfied: django-money==3.2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 116)) (3.2.0)
    Requirement already satisfied: django-mptt==0.11.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 118)) (0.11.0)
    Requirement already satisfied: django-otp==1.2.4 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 120)) (1.2.4)
    Requirement already satisfied: django-picklefield==3.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 122)) (3.1)
    Requirement already satisfied: django-q-sentry==0.1.6 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 124)) (0.1.6)
    Requirement already satisfied: django-q2==1.6.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 126)) (1.6.1)
    Requirement already satisfied: django-recurrence==1.11.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 128)) (1.11.1)
    Requirement already satisfied: django-redis==5.4.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 130)) (5.4.0)
    Requirement already satisfied: django-sesame==3.2.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 132)) (3.2.1)
    Requirement already satisfied: django-sql-utils==0.7.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 134)) (0.7.0)
    Requirement already satisfied: django-sslserver==0.22 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 136)) (0.22)
    Requirement already satisfied: django-stdimage==6.0.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 138)) (6.0.2)
    Requirement already satisfied: django-taggit==4.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 140)) (4.0.0)
    Requirement already satisfied: django-user-sessions==2.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 142)) (2.0.0)
    Requirement already satisfied: django-weasyprint==2.2.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 144)) (2.2.1)
    Requirement already satisfied: django-xforwardedfor-middleware==2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 146)) (2.0)
    Requirement already satisfied: djangorestframework==3.14.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 148)) (3.14.0)
    Requirement already satisfied: djangorestframework-simplejwt==5.3.0 in ./env/lib/python3.9/site-packages (from djangorestframework-simplejwt[crypto]==5.3.0->-r requirements.txt (line 154)) (5.3.0)
    Requirement already satisfied: drf-spectacular==0.26.5 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 156)) (0.26.5)
    Requirement already satisfied: dulwich==0.21.6 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 158)) (0.21.6)
    Requirement already satisfied: et-xmlfile==1.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 160)) (1.1.0)
    Requirement already satisfied: feedparser==6.0.10 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 162)) (6.0.10)
    Requirement already satisfied: fonttools==4.44.0 in ./env/lib/python3.9/site-packages (from fonttools[woff]==4.44.0->-r requirements.txt (line 164)) (4.44.0)
    Requirement already satisfied: gunicorn==21.2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 166)) (21.2.0)
    Requirement already satisfied: html5lib==1.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 168)) (1.1)
    Requirement already satisfied: icalendar==5.0.11 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 170)) (5.0.11)
    Requirement already satisfied: idna==3.4 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 172)) (3.4)
    Requirement already satisfied: importlib-metadata==6.8.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 174)) (6.8.0)
    Requirement already satisfied: inflection==0.5.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 178)) (0.5.1)
    Requirement already satisfied: itypes==1.2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 180)) (1.2.0)
    Requirement already satisfied: jinja2==3.1.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 182)) (3.1.2)
    Requirement already satisfied: jsonschema==4.19.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 184)) (4.19.2)
    Requirement already satisfied: jsonschema-specifications==2023.7.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 186)) (2023.7.1)
    Requirement already satisfied: markdown==3.5.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 188)) (3.5.1)
    Requirement already satisfied: markuppy==1.14 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 190)) (1.14)
    Requirement already satisfied: markupsafe==2.1.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 192)) (2.1.3)
    Requirement already satisfied: oauthlib==3.2.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 194)) (3.2.2)
    Requirement already satisfied: odfpy==1.4.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 196)) (1.4.1)
    Requirement already satisfied: openpyxl==3.1.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 198)) (3.1.2)
    Requirement already satisfied: packaging==23.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 200)) (23.2)
    Requirement already satisfied: pdf2image==1.16.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 202)) (1.16.3)
    Requirement already satisfied: pillow==10.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 204)) (10.1.0)
    Requirement already satisfied: pint==0.21 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 212)) (0.21)
    Requirement already satisfied: py-moneyed==3.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 214)) (3.0)
    Requirement already satisfied: pycparser==2.21 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 216)) (2.21)
    Requirement already satisfied: pydyf==0.8.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 218)) (0.8.0)
    Requirement already satisfied: pyjwt==2.8.0 in ./env/lib/python3.9/site-packages (from pyjwt[crypto]==2.8.0->-r requirements.txt (line 220)) (2.8.0)
    Requirement already satisfied: pyphen==0.14.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 224)) (0.14.0)
    Requirement already satisfied: pypng==0.20220715.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 226)) (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 requirements.txt (line 228)) (0.15.1)
    Requirement already satisfied: python-dateutil==2.8.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 230)) (2.8.2)
    Requirement already satisfied: python-dotenv==1.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 234)) (1.0.0)
    Requirement already satisfied: python-fsutil==0.12.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 236)) (0.12.0)
    Requirement already satisfied: python3-openid==3.2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 238)) (3.2.0)
    Requirement already satisfied: pytz==2023.3.post1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 240)) (2023.3.post1)
    Requirement already satisfied: pyyaml==6.0.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 246)) (6.0.1)
    Requirement already satisfied: qrcode==7.4.2 in ./env/lib/python3.9/site-packages (from qrcode[pil]==7.4.2->-r requirements.txt (line 251)) (7.4.2)
    Requirement already satisfied: rapidfuzz==0.7.6 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 255)) (0.7.6)
    Requirement already satisfied: redis==5.0.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 257)) (5.0.1)
    Requirement already satisfied: referencing==0.30.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 259)) (0.30.2)
    Requirement already satisfied: regex==2023.10.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 263)) (2023.10.3)
    Requirement already satisfied: requests==2.31.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 265)) (2.31.0)
    Requirement already satisfied: requests-oauthlib==1.3.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 270)) (1.3.1)
    Requirement already satisfied: rpds-py==0.12.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 272)) (0.12.0)
    Requirement already satisfied: sentry-sdk==1.34.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 276)) (1.34.0)
    Requirement already satisfied: sgmllib3k==1.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 280)) (1.0.0)
    Requirement already satisfied: six==1.16.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 282)) (1.16.0)
    Requirement already satisfied: sqlparse==0.4.4 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 287)) (0.4.4)
    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 requirements.txt (line 291)) (3.5.0)
    Requirement already satisfied: tinycss2==1.2.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 295)) (1.2.1)
    Requirement already satisfied: typing-extensions==4.8.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 300)) (4.8.0)
    Requirement already satisfied: uritemplate==4.1.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 305)) (4.1.1)
    Requirement already satisfied: urllib3==2.0.7 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 309)) (2.0.7)
    Requirement already satisfied: weasyprint==60.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 314)) (60.1)
    Requirement already satisfied: webencodings==0.5.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 318)) (0.5.1)
    Requirement already satisfied: xlrd==2.0.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 324)) (2.0.1)
    Requirement already satisfied: xlwt==1.3.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 326)) (1.3.0)
    Requirement already satisfied: zipp==3.16.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 328)) (3.16.0)
    Requirement already satisfied: zopfli==0.2.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 330)) (0.2.3)
    Requirement already satisfied: setuptools in ./env/lib/python3.9/site-packages (from django-money==3.2.0->-r requirements.txt (line 116)) (69.0.3)
    Backing up InvenTree database...
    2024-01-08 12:38:17,065 ERROR Missing required database configuration value ENGINE
    Python version 3.9.18 - /opt/inventree/env/bin/python3
    load version from file
    Error: Missing required database configuration value ENGINE
    (env) root@npaparts-server:/opt/inventree# 
    

    With this error I am now totally lost. If you can supply any suggestions where to go from here it would be great.

  6. SparkeyinVA commented on Jan 9, 2024

    @SparkeyinVA
    Author

    Next, I went with the inv update that @JustusRijke noticed was missing. I am assuming that he meant to type cd and not ls:

    source ./env/bin/activate
    inv update
    reboot now
    

    But I did both :) here are the results.

    root@npaparts-server:/opt/inventree# ls /opt/inventree
    backportrc.json  data                env           package-lock.json     requirements.in   vendor
    branches.json    deploy              images        Procfile              requirements.txt  VERSION
    ci               docker              install.sh    README.md             runtime.txt       yarn.lock
    commit.json      docker-compose.yml  InvenTree     readthedocs.yml       SECURITY.md
    contrib          docker.dev.env      LICENSE       RELEASE.md            setup.cfg
    CONTRIBUTING.md  Dockerfile          log           requirements-dev.in   src
    crowdin.yml      docs                package.json  requirements-dev.txt  tasks.py
    root@npaparts-server:/opt/inventree# source ./env/bin/activate
    (env) root@npaparts-server:/opt/inventree# inv update
    Installing required python packages from 'requirements.txt'
    Requirement already satisfied: pip in ./env/lib/python3.9/site-packages (23.3.2)
    Requirement already satisfied: setuptools in ./env/lib/python3.9/site-packages (69.0.3)
    Requirement already satisfied: asgiref==3.7.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 7)) (3.7.2)
    Requirement already satisfied: async-timeout==4.0.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 9)) (4.0.3)
    Requirement already satisfied: attrs==23.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 11)) (23.1.0)
    Requirement already satisfied: babel==2.13.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 15)) (2.13.1)
    Requirement already satisfied: bleach==6.1.0 in ./env/lib/python3.9/site-packages (from bleach[css]==6.1.0->-r requirements.txt (line 17)) (6.1.0)
    Requirement already satisfied: brotli==1.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 19)) (1.1.0)
    Requirement already satisfied: certifi==2023.7.22 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 21)) (2023.7.22)
    Requirement already satisfied: cffi==1.16.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 25)) (1.16.0)
    Requirement already satisfied: charset-normalizer==3.3.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 29)) (3.3.2)
    Requirement already satisfied: coreapi==2.3.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 31)) (2.3.3)
    Requirement already satisfied: coreschema==0.0.4 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 33)) (0.0.4)
    Requirement already satisfied: cryptography==41.0.6 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 35)) (41.0.6)
    Requirement already satisfied: cssselect2==0.7.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 40)) (0.7.0)
    Requirement already satisfied: defusedxml==0.7.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 42)) (0.7.1)
    Requirement already satisfied: diff-match-patch==20230430 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 46)) (20230430)
    Requirement already satisfied: dj-rest-auth==5.0.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 48)) (5.0.1)
    Requirement already satisfied: django==3.2.23 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 50)) (3.2.23)
    Requirement already satisfied: django-allauth==0.54.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 84)) (0.54.0)
    Requirement already satisfied: django-allauth-2fa==0.11.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 88)) (0.11.1)
    Requirement already satisfied: django-cleanup==8.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 90)) (8.0.0)
    Requirement already satisfied: django-cors-headers==4.3.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 92)) (4.3.0)
    Requirement already satisfied: django-crispy-forms==1.14.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 94)) (1.14.0)
    Requirement already satisfied: django-dbbackup==4.0.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 96)) (4.0.2)
    Requirement already satisfied: django-error-report-2==0.4.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 98)) (0.4.2)
    Requirement already satisfied: django-filter==23.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 100)) (23.3)
    Requirement already satisfied: django-flags==5.0.13 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 102)) (5.0.13)
    Requirement already satisfied: django-formtools==2.4.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 104)) (2.4.1)
    Requirement already satisfied: django-ical==1.9.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 106)) (1.9.2)
    Requirement already satisfied: django-import-export==3.3.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 108)) (3.3.1)
    Requirement already satisfied: django-js-asset==2.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 110)) (2.1.0)
    Requirement already satisfied: django-maintenance-mode==0.21.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 112)) (0.21.0)
    Requirement already satisfied: django-markdownify==0.9.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 114)) (0.9.3)
    Requirement already satisfied: django-money==3.2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 116)) (3.2.0)
    Requirement already satisfied: django-mptt==0.11.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 118)) (0.11.0)
    Requirement already satisfied: django-otp==1.2.4 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 120)) (1.2.4)
    Requirement already satisfied: django-picklefield==3.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 122)) (3.1)
    Requirement already satisfied: django-q-sentry==0.1.6 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 124)) (0.1.6)
    Requirement already satisfied: django-q2==1.6.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 126)) (1.6.1)
    Requirement already satisfied: django-recurrence==1.11.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 128)) (1.11.1)
    Requirement already satisfied: django-redis==5.4.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 130)) (5.4.0)
    Requirement already satisfied: django-sesame==3.2.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 132)) (3.2.1)
    Requirement already satisfied: django-sql-utils==0.7.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 134)) (0.7.0)
    Requirement already satisfied: django-sslserver==0.22 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 136)) (0.22)
    Requirement already satisfied: django-stdimage==6.0.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 138)) (6.0.2)
    Requirement already satisfied: django-taggit==4.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 140)) (4.0.0)
    Requirement already satisfied: django-user-sessions==2.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 142)) (2.0.0)
    Requirement already satisfied: django-weasyprint==2.2.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 144)) (2.2.1)
    Requirement already satisfied: django-xforwardedfor-middleware==2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 146)) (2.0)
    Requirement already satisfied: djangorestframework==3.14.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 148)) (3.14.0)
    Requirement already satisfied: djangorestframework-simplejwt==5.3.0 in ./env/lib/python3.9/site-packages (from djangorestframework-simplejwt[crypto]==5.3.0->-r requirements.txt (line 154)) (5.3.0)
    Requirement already satisfied: drf-spectacular==0.26.5 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 156)) (0.26.5)
    Requirement already satisfied: dulwich==0.21.6 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 158)) (0.21.6)
    Requirement already satisfied: et-xmlfile==1.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 160)) (1.1.0)
    Requirement already satisfied: feedparser==6.0.10 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 162)) (6.0.10)
    Requirement already satisfied: fonttools==4.44.0 in ./env/lib/python3.9/site-packages (from fonttools[woff]==4.44.0->-r requirements.txt (line 164)) (4.44.0)
    Requirement already satisfied: gunicorn==21.2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 166)) (21.2.0)
    Requirement already satisfied: html5lib==1.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 168)) (1.1)
    Requirement already satisfied: icalendar==5.0.11 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 170)) (5.0.11)
    Requirement already satisfied: idna==3.4 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 172)) (3.4)
    Requirement already satisfied: importlib-metadata==6.8.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 174)) (6.8.0)
    Requirement already satisfied: inflection==0.5.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 178)) (0.5.1)
    Requirement already satisfied: itypes==1.2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 180)) (1.2.0)
    Requirement already satisfied: jinja2==3.1.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 182)) (3.1.2)
    Requirement already satisfied: jsonschema==4.19.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 184)) (4.19.2)
    Requirement already satisfied: jsonschema-specifications==2023.7.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 186)) (2023.7.1)
    Requirement already satisfied: markdown==3.5.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 188)) (3.5.1)
    Requirement already satisfied: markuppy==1.14 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 190)) (1.14)
    Requirement already satisfied: markupsafe==2.1.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 192)) (2.1.3)
    Requirement already satisfied: oauthlib==3.2.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 194)) (3.2.2)
    Requirement already satisfied: odfpy==1.4.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 196)) (1.4.1)
    Requirement already satisfied: openpyxl==3.1.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 198)) (3.1.2)
    Requirement already satisfied: packaging==23.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 200)) (23.2)
    Requirement already satisfied: pdf2image==1.16.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 202)) (1.16.3)
    Requirement already satisfied: pillow==10.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 204)) (10.1.0)
    Requirement already satisfied: pint==0.21 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 212)) (0.21)
    Requirement already satisfied: py-moneyed==3.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 214)) (3.0)
    Requirement already satisfied: pycparser==2.21 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 216)) (2.21)
    Requirement already satisfied: pydyf==0.8.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 218)) (0.8.0)
    Requirement already satisfied: pyjwt==2.8.0 in ./env/lib/python3.9/site-packages (from pyjwt[crypto]==2.8.0->-r requirements.txt (line 220)) (2.8.0)
    Requirement already satisfied: pyphen==0.14.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 224)) (0.14.0)
    Requirement already satisfied: pypng==0.20220715.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 226)) (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 requirements.txt (line 228)) (0.15.1)
    Requirement already satisfied: python-dateutil==2.8.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 230)) (2.8.2)
    Requirement already satisfied: python-dotenv==1.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 234)) (1.0.0)
    Requirement already satisfied: python-fsutil==0.12.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 236)) (0.12.0)
    Requirement already satisfied: python3-openid==3.2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 238)) (3.2.0)
    Requirement already satisfied: pytz==2023.3.post1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 240)) (2023.3.post1)
    Requirement already satisfied: pyyaml==6.0.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 246)) (6.0.1)
    Requirement already satisfied: qrcode==7.4.2 in ./env/lib/python3.9/site-packages (from qrcode[pil]==7.4.2->-r requirements.txt (line 251)) (7.4.2)
    Requirement already satisfied: rapidfuzz==0.7.6 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 255)) (0.7.6)
    Requirement already satisfied: redis==5.0.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 257)) (5.0.1)
    Requirement already satisfied: referencing==0.30.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 259)) (0.30.2)
    Requirement already satisfied: regex==2023.10.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 263)) (2023.10.3)
    Requirement already satisfied: requests==2.31.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 265)) (2.31.0)
    Requirement already satisfied: requests-oauthlib==1.3.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 270)) (1.3.1)
    Requirement already satisfied: rpds-py==0.12.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 272)) (0.12.0)
    Requirement already satisfied: sentry-sdk==1.34.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 276)) (1.34.0)
    Requirement already satisfied: sgmllib3k==1.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 280)) (1.0.0)
    Requirement already satisfied: six==1.16.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 282)) (1.16.0)
    Requirement already satisfied: sqlparse==0.4.4 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 287)) (0.4.4)
    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 requirements.txt (line 291)) (3.5.0)
    Requirement already satisfied: tinycss2==1.2.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 295)) (1.2.1)
    Requirement already satisfied: typing-extensions==4.8.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 300)) (4.8.0)
    Requirement already satisfied: uritemplate==4.1.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 305)) (4.1.1)
    Requirement already satisfied: urllib3==2.0.7 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 309)) (2.0.7)
    Requirement already satisfied: weasyprint==60.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 314)) (60.1)
    Requirement already satisfied: webencodings==0.5.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 318)) (0.5.1)
    Requirement already satisfied: xlrd==2.0.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 324)) (2.0.1)
    Requirement already satisfied: xlwt==1.3.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 326)) (1.3.0)
    Requirement already satisfied: zipp==3.16.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 328)) (3.16.0)
    Requirement already satisfied: zopfli==0.2.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 330)) (0.2.3)
    Requirement already satisfied: setuptools in ./env/lib/python3.9/site-packages (from django-money==3.2.0->-r requirements.txt (line 116)) (69.0.3)
    Backing up InvenTree database...
    Traceback (most recent call last):
      File "/opt/inventree/InvenTree/manage.py", line 23, in <module>
    Python version 3.9.18 - /opt/inventree/env/bin/python3
    load version from file
        execute_from_command_line(sys.argv)
      File "/opt/inventree/env/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
        utility.execute()
      File "/opt/inventree/env/lib/python3.9/site-packages/django/core/management/__init__.py", line 363, in execute
        settings.INSTALLED_APPS
      File "/opt/inventree/env/lib/python3.9/site-packages/django/conf/__init__.py", line 82, in __getattr__
        self._setup(name)
      File "/opt/inventree/env/lib/python3.9/site-packages/django/conf/__init__.py", line 69, in _setup
        self._wrapped = Settings(settings_module)
      File "/opt/inventree/env/lib/python3.9/site-packages/django/conf/__init__.py", line 170, in __init__
        mod = importlib.import_module(self.SETTINGS_MODULE)
      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 850, in exec_module
      File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
      File "/opt/inventree/InvenTree/InvenTree/settings.py", line 129, in <module>
        STATIC_ROOT = config.get_static_dir()
      File "/opt/inventree/InvenTree/InvenTree/config.py", line 237, in get_static_dir
        raise FileNotFoundError('INVENTREE_STATIC_ROOT not specified')
    FileNotFoundError: INVENTREE_STATIC_ROOT not specified
    

    Yes, during the inv update config.py was not reading the data from my config.yaml file. I double checked it and the data for static file location was there. it was.

    # STATIC_ROOT is the local filesystem location for storing static files
    static_root: '/home/inventree/data/static'
    

    the same location as in my last install. I moved and tried using /home/npa-parts/data/static but changes that with the same results. I also tried the other invoke commands, invoke update and invoke backup which had the same issue of not finding the folder. I then reviewed the Python code for config.py and noticed the function had provisions for a default value, so I added my directory there. It worked as it got past that section, and I received this error.

    (env) root@npaparts-server:/opt/inventree# inv update
    Installing required python packages from 'requirements.txt'
    Requirement already satisfied: pip in ./env/lib/python3.9/site-packages (23.3.2)
    Requirement already satisfied: setuptools in ./env/lib/python3.9/site-packages (69.0.3)
    Requirement already satisfied: asgiref==3.7.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 7)) (3.7.2)
    Requirement already satisfied: async-timeout==4.0.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 9)) (4.0.3)
    Requirement already satisfied: attrs==23.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 11)) (23.1.0)
    Requirement already satisfied: babel==2.13.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 15)) (2.13.1)
    Requirement already satisfied: bleach==6.1.0 in ./env/lib/python3.9/site-packages (from bleach[css]==6.1.0->-r requirements.txt (line 17)) (6.1.0)
    Requirement already satisfied: brotli==1.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 19)) (1.1.0)
    Requirement already satisfied: certifi==2023.7.22 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 21)) (2023.7.22)
    Requirement already satisfied: cffi==1.16.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 25)) (1.16.0)
    Requirement already satisfied: charset-normalizer==3.3.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 29)) (3.3.2)
    Requirement already satisfied: coreapi==2.3.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 31)) (2.3.3)
    Requirement already satisfied: coreschema==0.0.4 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 33)) (0.0.4)
    Requirement already satisfied: cryptography==41.0.6 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 35)) (41.0.6)
    Requirement already satisfied: cssselect2==0.7.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 40)) (0.7.0)
    Requirement already satisfied: defusedxml==0.7.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 42)) (0.7.1)
    Requirement already satisfied: diff-match-patch==20230430 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 46)) (20230430)
    Requirement already satisfied: dj-rest-auth==5.0.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 48)) (5.0.1)
    Requirement already satisfied: django==3.2.23 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 50)) (3.2.23)
    Requirement already satisfied: django-allauth==0.54.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 84)) (0.54.0)
    Requirement already satisfied: django-allauth-2fa==0.11.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 88)) (0.11.1)
    Requirement already satisfied: django-cleanup==8.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 90)) (8.0.0)
    Requirement already satisfied: django-cors-headers==4.3.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 92)) (4.3.0)
    Requirement already satisfied: django-crispy-forms==1.14.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 94)) (1.14.0)
    Requirement already satisfied: django-dbbackup==4.0.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 96)) (4.0.2)
    Requirement already satisfied: django-error-report-2==0.4.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 98)) (0.4.2)
    Requirement already satisfied: django-filter==23.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 100)) (23.3)
    Requirement already satisfied: django-flags==5.0.13 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 102)) (5.0.13)
    Requirement already satisfied: django-formtools==2.4.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 104)) (2.4.1)
    Requirement already satisfied: django-ical==1.9.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 106)) (1.9.2)
    Requirement already satisfied: django-import-export==3.3.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 108)) (3.3.1)
    Requirement already satisfied: django-js-asset==2.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 110)) (2.1.0)
    Requirement already satisfied: django-maintenance-mode==0.21.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 112)) (0.21.0)
    Requirement already satisfied: django-markdownify==0.9.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 114)) (0.9.3)
    Requirement already satisfied: django-money==3.2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 116)) (3.2.0)
    Requirement already satisfied: django-mptt==0.11.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 118)) (0.11.0)
    Requirement already satisfied: django-otp==1.2.4 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 120)) (1.2.4)
    Requirement already satisfied: django-picklefield==3.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 122)) (3.1)
    Requirement already satisfied: django-q-sentry==0.1.6 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 124)) (0.1.6)
    Requirement already satisfied: django-q2==1.6.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 126)) (1.6.1)
    Requirement already satisfied: django-recurrence==1.11.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 128)) (1.11.1)
    Requirement already satisfied: django-redis==5.4.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 130)) (5.4.0)
    Requirement already satisfied: django-sesame==3.2.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 132)) (3.2.1)
    Requirement already satisfied: django-sql-utils==0.7.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 134)) (0.7.0)
    Requirement already satisfied: django-sslserver==0.22 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 136)) (0.22)
    Requirement already satisfied: django-stdimage==6.0.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 138)) (6.0.2)
    Requirement already satisfied: django-taggit==4.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 140)) (4.0.0)
    Requirement already satisfied: django-user-sessions==2.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 142)) (2.0.0)
    Requirement already satisfied: django-weasyprint==2.2.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 144)) (2.2.1)
    Requirement already satisfied: django-xforwardedfor-middleware==2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 146)) (2.0)
    Requirement already satisfied: djangorestframework==3.14.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 148)) (3.14.0)
    Requirement already satisfied: djangorestframework-simplejwt==5.3.0 in ./env/lib/python3.9/site-packages (from djangorestframework-simplejwt[crypto]==5.3.0->-r requirements.txt (line 154)) (5.3.0)
    Requirement already satisfied: drf-spectacular==0.26.5 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 156)) (0.26.5)
    Requirement already satisfied: dulwich==0.21.6 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 158)) (0.21.6)
    Requirement already satisfied: et-xmlfile==1.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 160)) (1.1.0)
    Requirement already satisfied: feedparser==6.0.10 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 162)) (6.0.10)
    Requirement already satisfied: fonttools==4.44.0 in ./env/lib/python3.9/site-packages (from fonttools[woff]==4.44.0->-r requirements.txt (line 164)) (4.44.0)
    Requirement already satisfied: gunicorn==21.2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 166)) (21.2.0)
    Requirement already satisfied: html5lib==1.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 168)) (1.1)
    Requirement already satisfied: icalendar==5.0.11 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 170)) (5.0.11)
    Requirement already satisfied: idna==3.4 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 172)) (3.4)
    Requirement already satisfied: importlib-metadata==6.8.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 174)) (6.8.0)
    Requirement already satisfied: inflection==0.5.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 178)) (0.5.1)
    Requirement already satisfied: itypes==1.2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 180)) (1.2.0)
    Requirement already satisfied: jinja2==3.1.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 182)) (3.1.2)
    Requirement already satisfied: jsonschema==4.19.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 184)) (4.19.2)
    Requirement already satisfied: jsonschema-specifications==2023.7.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 186)) (2023.7.1)
    Requirement already satisfied: markdown==3.5.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 188)) (3.5.1)
    Requirement already satisfied: markuppy==1.14 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 190)) (1.14)
    Requirement already satisfied: markupsafe==2.1.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 192)) (2.1.3)
    Requirement already satisfied: oauthlib==3.2.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 194)) (3.2.2)
    Requirement already satisfied: odfpy==1.4.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 196)) (1.4.1)
    Requirement already satisfied: openpyxl==3.1.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 198)) (3.1.2)
    Requirement already satisfied: packaging==23.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 200)) (23.2)
    Requirement already satisfied: pdf2image==1.16.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 202)) (1.16.3)
    Requirement already satisfied: pillow==10.1.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 204)) (10.1.0)
    Requirement already satisfied: pint==0.21 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 212)) (0.21)
    Requirement already satisfied: py-moneyed==3.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 214)) (3.0)
    Requirement already satisfied: pycparser==2.21 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 216)) (2.21)
    Requirement already satisfied: pydyf==0.8.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 218)) (0.8.0)
    Requirement already satisfied: pyjwt==2.8.0 in ./env/lib/python3.9/site-packages (from pyjwt[crypto]==2.8.0->-r requirements.txt (line 220)) (2.8.0)
    Requirement already satisfied: pyphen==0.14.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 224)) (0.14.0)
    Requirement already satisfied: pypng==0.20220715.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 226)) (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 requirements.txt (line 228)) (0.15.1)
    Requirement already satisfied: python-dateutil==2.8.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 230)) (2.8.2)
    Requirement already satisfied: python-dotenv==1.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 234)) (1.0.0)
    Requirement already satisfied: python-fsutil==0.12.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 236)) (0.12.0)
    Requirement already satisfied: python3-openid==3.2.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 238)) (3.2.0)
    Requirement already satisfied: pytz==2023.3.post1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 240)) (2023.3.post1)
    Requirement already satisfied: pyyaml==6.0.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 246)) (6.0.1)
    Requirement already satisfied: qrcode==7.4.2 in ./env/lib/python3.9/site-packages (from qrcode[pil]==7.4.2->-r requirements.txt (line 251)) (7.4.2)
    Requirement already satisfied: rapidfuzz==0.7.6 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 255)) (0.7.6)
    Requirement already satisfied: redis==5.0.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 257)) (5.0.1)
    Requirement already satisfied: referencing==0.30.2 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 259)) (0.30.2)
    Requirement already satisfied: regex==2023.10.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 263)) (2023.10.3)
    Requirement already satisfied: requests==2.31.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 265)) (2.31.0)
    Requirement already satisfied: requests-oauthlib==1.3.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 270)) (1.3.1)
    Requirement already satisfied: rpds-py==0.12.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 272)) (0.12.0)
    Requirement already satisfied: sentry-sdk==1.34.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 276)) (1.34.0)
    Requirement already satisfied: sgmllib3k==1.0.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 280)) (1.0.0)
    Requirement already satisfied: six==1.16.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 282)) (1.16.0)
    Requirement already satisfied: sqlparse==0.4.4 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 287)) (0.4.4)
    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 requirements.txt (line 291)) (3.5.0)
    Requirement already satisfied: tinycss2==1.2.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 295)) (1.2.1)
    Requirement already satisfied: typing-extensions==4.8.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 300)) (4.8.0)
    Requirement already satisfied: uritemplate==4.1.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 305)) (4.1.1)
    Requirement already satisfied: urllib3==2.0.7 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 309)) (2.0.7)
    Requirement already satisfied: weasyprint==60.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 314)) (60.1)
    Requirement already satisfied: webencodings==0.5.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 318)) (0.5.1)
    Requirement already satisfied: xlrd==2.0.1 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 324)) (2.0.1)
    Requirement already satisfied: xlwt==1.3.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 326)) (1.3.0)
    Requirement already satisfied: zipp==3.16.0 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 328)) (3.16.0)
    Requirement already satisfied: zopfli==0.2.3 in ./env/lib/python3.9/site-packages (from -r requirements.txt (line 330)) (0.2.3)
    Requirement already satisfied: setuptools in ./env/lib/python3.9/site-packages (from django-money==3.2.0->-r requirements.txt (line 116)) (69.0.3)
    Backing up InvenTree database...
    2024-01-08 12:38:17,065 ERROR Missing required database configuration value ENGINE
    Python version 3.9.18 - /opt/inventree/env/bin/python3
    load version from file
    Error: Missing required database configuration value ENGINE
    (env) root@npaparts-server:/opt/inventree# 
    

    With this error I am now totally lost. If you can supply any suggestions where to go from here it would be great.

  7. removed
    triage:not-checked
    on Jan 10, 2024
  8. SchrodingersGat commented on Jan 10, 2024

    @SchrodingersGat
    Member

    @SparkeyinVA thank you for collating all this information here. I have just got back from extended holidays so I am still getting up to speed. Reading through the issues listed above, there are three separate things which jump out:

    Issue 1

    No idea what --no-frontend is!
    

    As noted in #6156 - the installer is calling invoke update --no-frontend which throws an error. We will have to look into this!

    Issue 2

    As noted in #6170 - this might be related to the version of invoke you have installed... Can you provide version information here?

    Issue 3

    Please note that you cannot actually run invoke directly from the /opt/inventree/ directory in this manner - as none of the environment variables are set correctly in your shell.

    As per the docs you will need to use the inventree run invoke command. This ensures that the command is executed from the correct venv and with the correct environment variables

  9. SparkeyinVA commented on Jan 10, 2024

    @SparkeyinVA
    Author

    Thank you @SchrodingersGat.

    1. This install was with a clean system. Total wipe of the hard drive and then install V22.04.03.
    2. I created the folder /etc/inventree, then copied the config.yaml there. I also made the folder /home/npa-parts/inventree/data/ with the subfolders media, static, backup, and plugin. I copied the said folders from my system backup before the failure. In the data folder, I placed the "secret_key.txt", "admin_password.txt", "plugins.txt" and the database "database.sqlite3". I updated the "config.yaml" with the complete folder information for each part.
    • The comment below will be the entire install run, from clean to the end.

    • The results. I am still getting the 504 error, but

    • The major issue is not finding the config.yaml file**. And as such, it crashed at the point in the inv update where it started setting up inventree, namely INVENTREE_STATIC_ROOT. Also, a little later in the inv update logs # Set permissions for data dir and media: /opt/inventree/data chown: cannot access '/opt/inventree/data': No such file or directory so not /home/npa-parts/inventree/data/ as setup in the config.yaml file.

    I was following the code to find where it would get the config.yaml file, but I could not find it. In functions.sh I found the line export INVENTREE_CONFIG_FILE=${INVENTREE_CONFIG_FILE:-${CONF_DIR}/config.yaml} but I am not familiar with python or the inventree code to understand what is happening before this call.

    If including the config.yaml is helpful, I will happily add it. Any suggestions

  10. SparkeyinVA commented on Jan 10, 2024

    @SparkeyinVA
    Author

    I added a blank line before each command I entered to help with readability. All other blank lines were from the system.

    npa-parts@npaparts-VM40B:~$ sudo apt install wget apt-transport-https
    [sudo] password for npa-parts: 
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    wget is already the newest version (1.21.2-2ubuntu1).
    wget set to manually installed.
    The following packages were automatically installed and are no longer required:
      chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi i965-va-driver
      intel-media-va-driver libaacs0 libaom3 libass9 libavcodec58 libavformat58
      libavutil56 libbdplus0 libblas3 libbluray2 libbs2b0 libchromaprint1
      libcodec2-1.0 libdav1d5 libflashrom1 libflite1 libftdi1-2 libgme0 libgsm1
      libgstreamer-plugins-bad1.0-0 libigdgmm12 liblilv-0-0 libllvm13 libmfx1
      libmysofa1 libnorm1 libopenmpt0 libpgm-5.3-0 libpostproc55 librabbitmq4
      librubberband2 libserd-0-0 libshine3 libsnappy1v5 libsord-0-0 libsratom-0-0
      libsrt1.4-gnutls libssh-gcrypt-4 libswresample3 libswscale5 libudfread0
      libva-drm2 libva-wayland2 libva-x11-2 libva2 libvdpau1 libvidstab1.1
      libx265-199 libxvidcore4 libzimg2 libzmq5 libzvbi-common libzvbi0
      mesa-va-drivers mesa-vdpau-drivers ocl-icd-libopencl1 pocketsphinx-en-us
      va-driver-all vdpau-driver-all
    Use 'sudo apt autoremove' to remove them.
    The following NEW packages will be installed:
      apt-transport-https
    0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
    Need to get 1,510 B of archives.
    After this operation, 170 kB of additional disk space will be used.
    Do you want to continue? [Y/n] Y
    Get:1 http://us.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 apt-transport-https all 2.4.11 [1,510 B]
    Fetched 1,510 B in 0s (3,175 B/s)               
    Selecting previously unselected package apt-transport-https.
    (Reading database ... 185218 files and directories currently installed.)
    Preparing to unpack .../apt-transport-https_2.4.11_all.deb ...
    Unpacking apt-transport-https (2.4.11) ...
    Setting up apt-transport-https (2.4.11) ...
    
    npa-parts@npaparts-VM40B:~$ wget -qO- https://dl.packager.io/srv/inventree/InvenTree/key | sudo apt-key add -
    sudo wget -O /etc/apt/sources.list.d/inventree.list \
      https://dl.packager.io/srv/inventree/InvenTree/0.12.x/installer/ubuntu/20.04.repo
    sudo apt-get update
    sudo apt-get install inventree
    Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
    OK
    --2024-01-09 18:22:29--  https://dl.packager.io/srv/inventree/InvenTree/0.12.x/installer/ubuntu/20.04.repo
    Resolving dl.packager.io (dl.packager.io)... 178.63.71.248
    Connecting to dl.packager.io (dl.packager.io)|178.63.71.248|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 125 [text/plain]
    Saving to: ‘/etc/apt/sources.list.d/inventree.list’
    
    /etc/apt/sources.li 100%[===================>]     125  --.-KB/s    in 0s      
    
    2024-01-09 18:22:29 (15.9 MB/s) - ‘/etc/apt/sources.list.d/inventree.list’ saved [125/125]
    
    Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
    Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease              
    Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease            
    Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease               
    Get:5 https://dl.packager.io/srv/deb/inventree/InvenTree/0.12.x/ubuntu 20.04 InRelease [1,863 B]
    Get:6 https://dl.packager.io/srv/deb/inventree/InvenTree/0.12.x/ubuntu 20.04/main amd64 Packages [9,690 B]
    Fetched 11.6 kB in 2s (5,952 B/s)     
    Reading package lists... Done
    W: https://dl.packager.io/srv/deb/inventree/InvenTree/0.12.x/ubuntu/dists/20.04/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     inventree : Depends: libssl1.1 but it is not installable
    E: Unable to correct problems, you have held broken packages.
    
    npa-parts@npaparts-VM40B:~$ echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
    sudo apt-get update
    sudo apt-get install libssl1.1
    deb http://security.ubuntu.com/ubuntu focal-security main
    Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease                    
    Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]    
    Hit:3 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease                                       
    Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease                                     
    Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                               
    Get:6 https://dl.packager.io/srv/deb/inventree/InvenTree/0.12.x/ubuntu 20.04 InRelease [1,863 B]
    Get:7 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [693 kB]
    Get:8 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2,643 kB]
    Get:9 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [406 kB]
    Get:10 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [59.9 kB]
    Get:11 http://security.ubuntu.com/ubuntu focal-security/main DEP-11 48x48 Icons [18.9 kB]
    Get:12 http://security.ubuntu.com/ubuntu focal-security/main DEP-11 64x64 Icons [36.0 kB]
    Get:13 http://security.ubuntu.com/ubuntu focal-security/main DEP-11 64x64@2 Icons [29 B]
    Get:14 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [13.2 kB]
    Fetched 4,096 kB in 5s (815 kB/s)                            
    Reading package lists... Done
    W: https://dl.packager.io/srv/deb/inventree/InvenTree/0.12.x/ubuntu/dists/20.04/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi i965-va-driver intel-media-va-driver libaacs0 libaom3 libass9 libavcodec58 libavformat58
      libavutil56 libbdplus0 libblas3 libbluray2 libbs2b0 libchromaprint1 libcodec2-1.0 libdav1d5 libflashrom1 libflite1 libftdi1-2 libgme0 libgsm1
      libgstreamer-plugins-bad1.0-0 libigdgmm12 liblilv-0-0 libllvm13 libmfx1 libmysofa1 libnorm1 libopenmpt0 libpgm-5.3-0 libpostproc55
      librabbitmq4 librubberband2 libserd-0-0 libshine3 libsnappy1v5 libsord-0-0 libsratom-0-0 libsrt1.4-gnutls libssh-gcrypt-4 libswresample3
      libswscale5 libudfread0 libva-drm2 libva-wayland2 libva-x11-2 libva2 libvdpau1 libvidstab1.1 libx265-199 libxvidcore4 libzimg2 libzmq5
      libzvbi-common libzvbi0 mesa-va-drivers mesa-vdpau-drivers ocl-icd-libopencl1 pocketsphinx-en-us va-driver-all vdpau-driver-all
    Use 'sudo apt autoremove' to remove them.
    The following NEW packages will be installed:
      libssl1.1
    0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
    Need to get 1,321 kB of archives.
    After this operation, 4,126 kB of additional disk space will be used.
    Get:1 http://security.ubuntu.com/ubuntu focal-security/main amd64 libssl1.1 amd64 1.1.1f-1ubuntu2.20 [1,321 kB]
    Fetched 1,321 kB in 2s (859 kB/s)    
    Preconfiguring packages ...
    Selecting previously unselected package libssl1.1:amd64.
    (Reading database ... 185222 files and directories currently installed.)
    Preparing to unpack .../libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb ...
    Unpacking libssl1.1:amd64 (1.1.1f-1ubuntu2.20) ...
    Setting up libssl1.1:amd64 (1.1.1f-1ubuntu2.20) ...
    Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
    
    npa-parts@npaparts-VM40B:~$ wget -qO- https://dl.packager.io/srv/inventree/InvenTree/key | sudo apt-key add -
    sudo wget -O /etc/apt/sources.list.d/inventree.list \
      https://dl.packager.io/srv/inventree/InvenTree/0.12.x/installer/ubuntu/20.04.repo
    sudo apt-get update
    sudo apt-get install inventree
    Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
    OK
    --2024-01-09 18:26:07--  https://dl.packager.io/srv/inventree/InvenTree/0.12.x/installer/ubuntu/20.04.repo
    Resolving dl.packager.io (dl.packager.io)... 178.63.71.248
    Connecting to dl.packager.io (dl.packager.io)|178.63.71.248|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 125 [text/plain]
    Saving to: ‘/etc/apt/sources.list.d/inventree.list’
    
    /etc/apt/sources.list.d/inventree.li 100%[====================================================================>]     125  --.-KB/s    in 0s      
    
    2024-01-09 18:26:08 (24.7 MB/s) - ‘/etc/apt/sources.list.d/inventree.list’ saved [125/125]
    
    Hit:1 http://us.archive.ubuntu.com/ubuntu jammy InRelease
    Hit:2 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease     
    Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease                            
    Hit:4 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease                         
    Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease      
    Get:6 https://dl.packager.io/srv/deb/inventree/InvenTree/0.12.x/ubuntu 20.04 InRelease [1,863 B]
    Fetched 1,863 B in 2s (1,011 B/s)
    Reading package lists... Done
    W: https://dl.packager.io/srv/deb/inventree/InvenTree/0.12.x/ubuntu/dists/20.04/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi i965-va-driver intel-media-va-driver libaacs0 libaom3 libass9 libavcodec58 libavformat58
      libavutil56 libbdplus0 libblas3 libbluray2 libbs2b0 libchromaprint1 libcodec2-1.0 libdav1d5 libflashrom1 libflite1 libftdi1-2 libgme0 libgsm1
      libgstreamer-plugins-bad1.0-0 libigdgmm12 liblilv-0-0 libllvm13 libmfx1 libmysofa1 libnorm1 libopenmpt0 libpgm-5.3-0 libpostproc55
      librabbitmq4 librubberband2 libserd-0-0 libshine3 libsnappy1v5 libsord-0-0 libsratom-0-0 libsrt1.4-gnutls libssh-gcrypt-4 libswresample3
      libswscale5 libudfread0 libva-drm2 libva-wayland2 libva-x11-2 libva2 libvdpau1 libvidstab1.1 libx265-199 libxvidcore4 libzimg2 libzmq5
      libzvbi-common libzvbi0 mesa-va-drivers mesa-vdpau-drivers ocl-icd-libopencl1 pocketsphinx-en-us va-driver-all vdpau-driver-all
    Use 'sudo apt autoremove' to remove them.
    The following additional packages will be installed:
      jq libevent-2.1-7 libevent-core-2.1-7 libevent-extra-2.1-7 libffi7 libjq1 libnginx-mod-http-geoip2 libnginx-mod-http-image-filter
      libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libnginx-mod-stream-geoip2 libonig5 libpq5 nginx nginx-common nginx-core
    Suggested packages:
      fcgiwrap nginx-doc
    The following NEW packages will be installed:
      inventree jq libevent-2.1-7 libevent-core-2.1-7 libevent-extra-2.1-7 libffi7 libjq1 libnginx-mod-http-geoip2 libnginx-mod-http-image-filter
      libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libnginx-mod-stream-geoip2 libonig5 libpq5 nginx nginx-common nginx-core
    0 upgraded, 18 newly installed, 0 to remove and 5 not upgraded.
    Need to get 111 MB of archives.
    After this operation, 304 MB of additional disk space will be used.
    Do you want to continue? [Y/n] Y
    Get:1 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpq5 amd64 14.10-0ubuntu0.22.04.1 [143 kB]
    Get:2 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libevent-2.1-7 amd64 2.1.12-stable-1build3 [148 kB]
    Get:3 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libevent-core-2.1-7 amd64 2.1.12-stable-1build3 [93.9 kB]
    Get:4 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libevent-extra-2.1-7 amd64 2.1.12-stable-1build3 [65.4 kB]
    Get:5 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 nginx-common all 1.18.0-6ubuntu14.4 [40.0 kB]
    Get:6 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libnginx-mod-http-image-filter amd64 1.18.0-6ubuntu14.4 [15.4 kB]
    Get:7 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libnginx-mod-http-xslt-filter amd64 1.18.0-6ubuntu14.4 [13.7 kB]
    Get:8 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libnginx-mod-http-geoip2 amd64 1.18.0-6ubuntu14.4 [11.9 kB]
    Get:9 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libnginx-mod-mail amd64 1.18.0-6ubuntu14.4 [45.7 kB]
    Get:10 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libnginx-mod-stream amd64 1.18.0-6ubuntu14.4 [72.9 kB]
    Get:11 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libnginx-mod-stream-geoip2 amd64 1.18.0-6ubuntu14.4 [10.1 kB]
    Get:13 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 nginx-core amd64 1.18.0-6ubuntu14.4 [484 kB]
    Get:12 https://dl.packager.io/srv/deb/inventree/InvenTree/0.12.x/ubuntu 20.04/main amd64 inventree amd64 0.12.10-1700575450.cc29f392.focal [109 MB]
    Get:14 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 nginx amd64 1.18.0-6ubuntu14.4 [3,872 B]
    Get:15 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libonig5 amd64 6.9.7.1-2build1 [172 kB]
    Get:16 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 libjq1 amd64 1.6-2.1ubuntu3 [133 kB]
    Get:17 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 jq amd64 1.6-2.1ubuntu3 [52.5 kB]
    Get:18 http://us.archive.ubuntu.com/ubuntu jammy/universe amd64 libffi7 amd64 3.3-5ubuntu1 [19.9 kB]
    Fetched 111 MB in 3min 24s (541 kB/s)                                                                                                            
    Preconfiguring packages ...
    Selecting previously unselected package libpq5:amd64.
    (Reading database ... 185232 files and directories currently installed.)
    Preparing to unpack .../00-libpq5_14.10-0ubuntu0.22.04.1_amd64.deb ...
    Unpacking libpq5:amd64 (14.10-0ubuntu0.22.04.1) ...
    Selecting previously unselected package libevent-2.1-7:amd64.
    Preparing to unpack .../01-libevent-2.1-7_2.1.12-stable-1build3_amd64.deb ...
    Unpacking libevent-2.1-7:amd64 (2.1.12-stable-1build3) ...
    Selecting previously unselected package libevent-core-2.1-7:amd64.
    Preparing to unpack .../02-libevent-core-2.1-7_2.1.12-stable-1build3_amd64.deb ...
    Unpacking libevent-core-2.1-7:amd64 (2.1.12-stable-1build3) ...
    Selecting previously unselected package libevent-extra-2.1-7:amd64.
    Preparing to unpack .../03-libevent-extra-2.1-7_2.1.12-stable-1build3_amd64.deb ...
    Unpacking libevent-extra-2.1-7:amd64 (2.1.12-stable-1build3) ...
    Selecting previously unselected package nginx-common.
    Preparing to unpack .../04-nginx-common_1.18.0-6ubuntu14.4_all.deb ...
    Unpacking nginx-common (1.18.0-6ubuntu14.4) ...
    Selecting previously unselected package libnginx-mod-http-image-filter.
    Preparing to unpack .../05-libnginx-mod-http-image-filter_1.18.0-6ubuntu14.4_amd64.deb ...
    Unpacking libnginx-mod-http-image-filter (1.18.0-6ubuntu14.4) ...
    Selecting previously unselected package libnginx-mod-http-xslt-filter.
    Preparing to unpack .../06-libnginx-mod-http-xslt-filter_1.18.0-6ubuntu14.4_amd64.deb ...
    Unpacking libnginx-mod-http-xslt-filter (1.18.0-6ubuntu14.4) ...
    Selecting previously unselected package libnginx-mod-http-geoip2.
    Preparing to unpack .../07-libnginx-mod-http-geoip2_1.18.0-6ubuntu14.4_amd64.deb ...
    Unpacking libnginx-mod-http-geoip2 (1.18.0-6ubuntu14.4) ...
    Selecting previously unselected package libnginx-mod-mail.
    Preparing to unpack .../08-libnginx-mod-mail_1.18.0-6ubuntu14.4_amd64.deb ...
    Unpacking libnginx-mod-mail (1.18.0-6ubuntu14.4) ...
    Selecting previously unselected package libnginx-mod-stream.
    Preparing to unpack .../09-libnginx-mod-stream_1.18.0-6ubuntu14.4_amd64.deb ...
    Unpacking libnginx-mod-stream (1.18.0-6ubuntu14.4) ...
    Selecting previously unselected package libnginx-mod-stream-geoip2.
    Preparing to unpack .../10-libnginx-mod-stream-geoip2_1.18.0-6ubuntu14.4_amd64.deb ...
    Unpacking libnginx-mod-stream-geoip2 (1.18.0-6ubuntu14.4) ...
    Selecting previously unselected package nginx-core.
    Preparing to unpack .../11-nginx-core_1.18.0-6ubuntu14.4_amd64.deb ...
    Unpacking nginx-core (1.18.0-6ubuntu14.4) ...
    Selecting previously unselected package nginx.
    Preparing to unpack .../12-nginx_1.18.0-6ubuntu14.4_amd64.deb ...
    Unpacking nginx (1.18.0-6ubuntu14.4) ...
    Selecting previously unselected package libonig5:amd64.
    Preparing to unpack .../13-libonig5_6.9.7.1-2build1_amd64.deb ...
    Unpacking libonig5:amd64 (6.9.7.1-2build1) ...
    Selecting previously unselected package libjq1:amd64.
    Preparing to unpack .../14-libjq1_1.6-2.1ubuntu3_amd64.deb ...
    Unpacking libjq1:amd64 (1.6-2.1ubuntu3) ...
    Selecting previously unselected package jq.
    Preparing to unpack .../15-jq_1.6-2.1ubuntu3_amd64.deb ...
    Unpacking jq (1.6-2.1ubuntu3) ...
    Selecting previously unselected package libffi7:amd64.
    Preparing to unpack .../16-libffi7_3.3-5ubuntu1_amd64.deb ...
    Unpacking libffi7:amd64 (3.3-5ubuntu1) ...
    Selecting previously unselected package inventree.
    Preparing to unpack .../17-inventree_0.12.10-1700575450.cc29f392.focal_amd64.deb ...
    Unpacking inventree (0.12.10-1700575450.cc29f392.focal) ...
    Setting up libffi7:amd64 (3.3-5ubuntu1) ...
    Setting up libpq5:amd64 (14.10-0ubuntu0.22.04.1) ...
    Setting up nginx-common (1.18.0-6ubuntu14.4) ...
    Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /lib/systemd/system/nginx.service.
    Setting up libnginx-mod-http-xslt-filter (1.18.0-6ubuntu14.4) ...
    Setting up libevent-core-2.1-7:amd64 (2.1.12-stable-1build3) ...
    Setting up libevent-2.1-7:amd64 (2.1.12-stable-1build3) ...
    Setting up libnginx-mod-http-geoip2 (1.18.0-6ubuntu14.4) ...
    Setting up libonig5:amd64 (6.9.7.1-2build1) ...
    Setting up libnginx-mod-mail (1.18.0-6ubuntu14.4) ...
    Setting up libevent-extra-2.1-7:amd64 (2.1.12-stable-1build3) ...
    Setting up libjq1:amd64 (1.6-2.1ubuntu3) ...
    Setting up libnginx-mod-http-image-filter (1.18.0-6ubuntu14.4) ...
    Setting up libnginx-mod-stream (1.18.0-6ubuntu14.4) ...
    Setting up jq (1.6-2.1ubuntu3) ...
    Setting up libnginx-mod-stream-geoip2 (1.18.0-6ubuntu14.4) ...
    Setting up nginx-core (1.18.0-6ubuntu14.4) ...
     * Upgrading binary nginx                                                                                                                  [ OK ] 
    Setting up nginx (1.18.0-6ubuntu14.4) ...
    Setting up inventree (0.12.10-1700575450.cc29f392.focal) ...
    # Setting base environment variables
    # Using existing config file: /etc/inventree/config.yaml
      WARNING: The script pygmentize is installed in '/usr/local/bin' which is not on PATH.
      Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
      WARNING: The script jc is installed in '/usr/local/bin' which is not on PATH.
      Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
    WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
    /opt/inventree/contrib/packager.io/functions.sh: line 96: jc: command not found
    # Collected environment variables:
    #    INVENTREE_MEDIA_ROOT=
    #    INVENTREE_STATIC_ROOT=
    #    INVENTREE_BACKUP_DIR=
    #    INVENTREE_PLUGINS_ENABLED=
    #    INVENTREE_PLUGIN_FILE=
    #    INVENTREE_SECRET_KEY_FILE=
    #    INVENTREE_DB_ENGINE=
    #    INVENTREE_DB_NAME=
    #    INVENTREE_DB_USER=
    #    INVENTREE_DB_HOST=
    #    INVENTREE_DB_PORT=
    # Getting the IP address of the server via web service
    IP address is 129.222.252.138
    # Setting up python environment
    Collecting invoke
      Downloading invoke-2.2.0-py3-none-any.whl (160 kB)
         ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.3/160.3 KB 670.6 kB/s eta 0:00:00
    Collecting wheel
      Downloading wheel-0.42.0-py3-none-any.whl (65 kB)
         ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.4/65.4 KB 2.8 MB/s eta 0:00:00
    Installing collected packages: wheel, invoke
    Successfully installed invoke-2.2.0 wheel-0.42.0
    # Unlinking default nginx config\n# Old file still in /etc/nginx/sites-available/default
    # Stopping nginx
    # Setting up nginx to /etc/nginx/sites-enabled/inventree.conf
    # Starting nginx
    # (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.
    # Enabling InvenTree on boot
    # Creating admin user data
    # Stopping InvenTree
    # Updating InvenTree
    # inv update| Installing required python packages from 'requirements.txt'
    # inv update| Requirement already satisfied: pip in ./env/lib/python3.10/site-packages (22.0.2)
    # inv update| Collecting pip
    # inv update|   Downloading pip-23.3.2-py3-none-any.whl (2.1 MB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 964.9 kB/s eta 0:00:00
    # inv update| Installing collected packages: pip
    # inv update|   Attempting uninstall: pip
    # inv update|     Found existing installation: pip 22.0.2
    # inv update|     Uninstalling pip-22.0.2:
    # inv update|       Successfully uninstalled pip-22.0.2
    # inv update| Successfully installed pip-23.3.2
    # inv update| Requirement already satisfied: setuptools in ./env/lib/python3.10/site-packages (59.6.0)
    # inv update| Collecting setuptools
    # inv update|   Downloading setuptools-69.0.3-py3-none-any.whl.metadata (6.3 kB)
    # inv update| Downloading setuptools-69.0.3-py3-none-any.whl (819 kB)
    # inv update|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 819.5/819.5 kB 1.2 MB/s eta 0:00:00
    # inv update| Installing collected packages: setuptools
    # inv update|   Attempting uninstall: setuptools
    # inv update|     Found existing installation: setuptools 59.6.0
    # inv update|     Uninstalling setuptools-59.6.0:
    # inv update|       Successfully uninstalled setuptools-59.6.0
    # inv update| Successfully installed setuptools-69.0.3
    # inv update| Collecting arrow==1.2.3 (from -r requirements.txt (line 7))
    # inv update|   Downloading arrow-1.2.3-py3-none-any.whl (66 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.4/66.4 kB 527.2 kB/s eta 0:00:00
    # inv update| Collecting asgiref==3.7.2 (from -r requirements.txt (line 9))
    # inv update|   Downloading asgiref-3.7.2-py3-none-any.whl.metadata (9.2 kB)
    # inv update| Collecting attrs==23.1.0 (from -r requirements.txt (line 11))
    # inv update|   Downloading attrs-23.1.0-py3-none-any.whl (61 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 1.2 MB/s eta 0:00:00
    # inv update| Collecting babel==2.12.1 (from -r requirements.txt (line 13))
    # inv update|   Downloading Babel-2.12.1-py3-none-any.whl (10.1 MB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.1/10.1 MB 1.7 MB/s eta 0:00:00
    # inv update| Collecting bleach==6.0.0 (from bleach[css]==6.0.0->-r requirements.txt (line 15))
    # inv update|   Downloading bleach-6.0.0-py3-none-any.whl (162 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.5/162.5 kB 2.4 MB/s eta 0:00:00
    # inv update| Collecting blessed==1.20.0 (from -r requirements.txt (line 17))
    # inv update|   Downloading blessed-1.20.0-py2.py3-none-any.whl (58 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.4/58.4 kB 39.1 MB/s eta 0:00:00
    # inv update| Collecting brotli==1.0.9 (from -r requirements.txt (line 19))
    # inv update|   Downloading Brotli-1.0.9-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.7 MB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.7/2.7 MB 295.4 kB/s eta 0:00:00
    # inv update| Collecting certifi==2023.5.7 (from -r requirements.txt (line 21))
    # inv update|   Downloading certifi-2023.5.7-py3-none-any.whl (156 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.0/157.0 kB 71.3 kB/s eta 0:00:00
    # inv update| Collecting cffi==1.15.1 (from -r requirements.txt (line 25))
    # inv update|   Downloading cffi-1.15.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (441 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 441.8/441.8 kB 259.9 kB/s eta 0:00:00
    # inv update| Collecting charset-normalizer==3.1.0 (from -r requirements.txt (line 29))
    # inv update|   Downloading charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.3/199.3 kB 252.4 kB/s eta 0:00:00
    # inv update| Collecting coreapi==2.3.3 (from -r requirements.txt (line 31))
    # inv update|   Downloading coreapi-2.3.3-py2.py3-none-any.whl (25 kB)
    # inv update| Collecting coreschema==0.0.4 (from -r requirements.txt (line 33))
    # inv update|   Downloading coreschema-0.0.4.tar.gz (10 kB)
    # inv update|   Preparing metadata (setup.py): started
    # inv update|   Preparing metadata (setup.py): finished with status 'done'
    # inv update| Collecting cryptography==41.0.1 (from -r requirements.txt (line 35))
    # inv update|   Downloading cryptography-41.0.1-cp37-abi3-manylinux_2_28_x86_64.whl.metadata (5.2 kB)
    # inv update| Collecting cssselect2==0.7.0 (from -r requirements.txt (line 40))
    # inv update|   Downloading cssselect2-0.7.0-py3-none-any.whl (15 kB)
    # inv update| Collecting defusedxml==0.7.1 (from -r requirements.txt (line 42))
    # inv update|   Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)
    # inv update| Collecting diff-match-patch==20230430 (from -r requirements.txt (line 46))
    # inv update|   Downloading diff_match_patch-20230430-py3-none-any.whl (42 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.8/42.8 kB 271.4 kB/s eta 0:00:00
    # inv update| Collecting dj-rest-auth==4.0.1 (from -r requirements.txt (line 48))
    # inv update|   Downloading dj-rest-auth-4.0.1.tar.gz (155 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.6/155.6 kB 307.3 kB/s eta 0:00:00
    # inv update|   Preparing metadata (setup.py): started
    # inv update|   Preparing metadata (setup.py): finished with status 'done'
    # inv update| Collecting django==3.2.19 (from -r requirements.txt (line 50))
    # inv update|   Downloading Django-3.2.19-py3-none-any.whl (7.9 MB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.9/7.9 MB 478.0 kB/s eta 0:00:00
    # inv update| Collecting django-allauth==0.54.0 (from -r requirements.txt (line 83))
    # inv update|   Downloading django-allauth-0.54.0.tar.gz (737 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 737.1/737.1 kB 549.9 kB/s eta 0:00:00
    # inv update|   Preparing metadata (setup.py): started
    # inv update|   Preparing metadata (setup.py): finished with status 'done'
    # inv update| Collecting django-allauth-2fa==0.10.0 (from -r requirements.txt (line 87))
    # inv update|   Downloading django_allauth_2fa-0.10.0-py3-none-any.whl (13 kB)
    # inv update| Collecting django-cleanup==7.0.0 (from -r requirements.txt (line 89))
    # inv update|   Downloading django_cleanup-7.0.0-py2.py3-none-any.whl (10 kB)
    # inv update| Collecting django-cors-headers==4.0.0 (from -r requirements.txt (line 91))
    # inv update|   Downloading django_cors_headers-4.0.0-py3-none-any.whl.metadata (16 kB)
    # inv update| Collecting django-crispy-forms==1.14.0 (from -r requirements.txt (line 93))
    # inv update|   Downloading django_crispy_forms-1.14.0-py3-none-any.whl (133 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.3/133.3 kB 451.7 kB/s eta 0:00:00
    # inv update| Collecting django-dbbackup==4.0.2 (from -r requirements.txt (line 95))
    # inv update|   Downloading django_dbbackup-4.0.2-py3-none-any.whl (56 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.2/56.2 kB 421.2 kB/s eta 0:00:00
    # inv update| Collecting django-error-report==0.2.0 (from -r requirements.txt (line 97))
    # inv update|   Downloading django-error-report-0.2.0.tar.gz (5.1 kB)
    # inv update|   Preparing metadata (setup.py): started
    # inv update|   Preparing metadata (setup.py): finished with status 'done'
    # inv update| Collecting django-filter==23.2 (from -r requirements.txt (line 99))
    # inv update|   Downloading django_filter-23.2-py3-none-any.whl (91 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 91.9/91.9 kB 788.3 kB/s eta 0:00:00
    # inv update| Collecting django-flags==5.0.12 (from -r requirements.txt (line 101))
    # inv update|   Downloading django_flags-5.0.12-py2.py3-none-any.whl (42 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.5/42.5 kB 187.8 kB/s eta 0:00:00
    # inv update| Collecting django-formtools==2.4.1 (from -r requirements.txt (line 103))
    # inv update|   Downloading django_formtools-2.4.1-py3-none-any.whl.metadata (3.9 kB)
    # inv update| Collecting django-ical==1.9.1 (from -r requirements.txt (line 105))
    # inv update|   Downloading django_ical-1.9.1-py3-none-any.whl (15 kB)
    # inv update| Collecting django-import-export==2.5.0 (from -r requirements.txt (line 107))
    # inv update|   Downloading django_import_export-2.5.0-py3-none-any.whl (94 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 94.7/94.7 kB 135.2 kB/s eta 0:00:00
    # inv update| Collecting django-js-asset==2.0.0 (from -r requirements.txt (line 109))
    # inv update|   Downloading django_js_asset-2.0.0-py3-none-any.whl (4.9 kB)
    # inv update| Collecting django-maintenance-mode==0.18.0 (from -r requirements.txt (line 111))
    # inv update|   Downloading django_maintenance_mode-0.18.0-py3-none-any.whl (15 kB)
    # inv update| Collecting django-markdownify==0.9.3 (from -r requirements.txt (line 113))
    # inv update|   Downloading django_markdownify-0.9.3-py3-none-any.whl (10 kB)
    # inv update| Collecting django-money==2.1.1 (from -r requirements.txt (line 115))
    # inv update|   Downloading django_money-2.1.1-py3-none-any.whl (34 kB)
    # inv update| Collecting django-mptt==0.11.0 (from -r requirements.txt (line 117))
    # inv update|   Downloading django_mptt-0.11.0-py2.py3-none-any.whl (109 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 109.8/109.8 kB 53.7 kB/s eta 0:00:00
    # inv update| Collecting django-otp==1.2.1 (from -r requirements.txt (line 119))
    # inv update|   Downloading django_otp-1.2.1-py3-none-any.whl.metadata (7.5 kB)
    # inv update| Collecting django-picklefield==3.1 (from -r requirements.txt (line 121))
    # inv update|   Downloading django_picklefield-3.1-py3-none-any.whl (9.5 kB)
    # inv update| Collecting django-q==1.3.9 (from -r requirements.txt (line 123))
    # inv update|   Downloading django_q-1.3.9-py3-none-any.whl (89 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.0/90.0 kB 85.3 kB/s eta 0:00:00
    # inv update| Collecting django-q-sentry==0.1.6 (from -r requirements.txt (line 125))
    # inv update|   Downloading django_q_sentry-0.1.6-py3-none-any.whl (3.8 kB)
    # inv update| Collecting django-recurrence==1.11.1 (from -r requirements.txt (line 127))
    # inv update|   Downloading django_recurrence-1.11.1-py3-none-any.whl (127 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 127.3/127.3 kB 120.1 kB/s eta 0:00:00
    # inv update| Collecting django-redis==5.2.0 (from -r requirements.txt (line 129))
    # inv update|   Downloading django_redis-5.2.0-py3-none-any.whl (30 kB)
    # inv update| Collecting django-sql-utils==0.6.1 (from -r requirements.txt (line 131))
    # inv update|   Downloading django_sql_utils-0.6.1-py3-none-any.whl (14 kB)
    # inv update| Collecting django-sslserver==0.22 (from -r requirements.txt (line 133))
    # inv update|   Downloading django_sslserver-0.22-py3-none-any.whl (10 kB)
    # inv update| Collecting django-stdimage==5.3.0 (from -r requirements.txt (line 135))
    # inv update|   Downloading django_stdimage-5.3.0-py2.py3-none-any.whl (17 kB)
    # inv update| Collecting django-taggit==4.0.0 (from -r requirements.txt (line 137))
    # inv update|   Downloading django_taggit-4.0.0-py3-none-any.whl (60 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.3/60.3 kB 165.4 kB/s eta 0:00:00
    # inv update| Collecting django-user-sessions==2.0.0 (from -r requirements.txt (line 139))
    # inv update|   Downloading django_user_sessions-2.0.0-py3-none-any.whl (38 kB)
    # inv update| Collecting django-weasyprint==2.2.0 (from -r requirements.txt (line 141))
    # inv update|   Downloading django_weasyprint-2.2.0-py3-none-any.whl (9.7 kB)
    # inv update| Collecting django-xforwardedfor-middleware==2.0 (from -r requirements.txt (line 143))
    # inv update|   Downloading django-xforwardedfor-middleware-2.0.tar.gz (1.6 kB)
    # inv update|   Preparing metadata (setup.py): started
    # inv update|   Preparing metadata (setup.py): finished with status 'done'
    # inv update| Collecting djangorestframework==3.14.0 (from -r requirements.txt (line 145))
    # inv update|   Downloading djangorestframework-3.14.0-py3-none-any.whl (1.1 MB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 357.0 kB/s eta 0:00:00
    # inv update| Collecting djangorestframework-simplejwt==5.2.2 (from djangorestframework-simplejwt[crypto]==5.2.2->-r requirements.txt (line 151))
    # inv update|   Downloading djangorestframework_simplejwt-5.2.2-py3-none-any.whl (85 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.4/85.4 kB 987.9 kB/s eta 0:00:00
    # inv update| Collecting drf-spectacular==0.26.2 (from -r requirements.txt (line 153))
    # inv update|   Downloading drf_spectacular-0.26.2-py3-none-any.whl (92 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 92.9/92.9 kB 838.9 kB/s eta 0:00:00
    # inv update| Collecting dulwich==0.21.5 (from -r requirements.txt (line 155))
    # inv update|   Downloading dulwich-0.21.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (510 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 510.1/510.1 kB 558.4 kB/s eta 0:00:00
    # inv update| Collecting et-xmlfile==1.1.0 (from -r requirements.txt (line 157))
    # inv update|   Downloading et_xmlfile-1.1.0-py3-none-any.whl (4.7 kB)
    # inv update| Collecting feedparser==6.0.10 (from -r requirements.txt (line 159))
    # inv update|   Downloading feedparser-6.0.10-py3-none-any.whl (81 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.1/81.1 kB 613.8 kB/s eta 0:00:00
    # inv update| Collecting fonttools==4.39.4 (from fonttools[woff]==4.39.4->-r requirements.txt (line 161))
    # inv update|   Downloading fonttools-4.39.4-py3-none-any.whl (1.0 MB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 983.6 kB/s eta 0:00:00
    # inv update| Collecting gunicorn==20.1.0 (from -r requirements.txt (line 163))
    # inv update|   Downloading gunicorn-20.1.0-py3-none-any.whl (79 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.5/79.5 kB 616.1 kB/s eta 0:00:00
    # inv update| Collecting html5lib==1.1 (from -r requirements.txt (line 165))
    # inv update|   Downloading html5lib-1.1-py2.py3-none-any.whl (112 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 112.2/112.2 kB 1.2 MB/s eta 0:00:00
    # inv update| Collecting icalendar==5.0.7 (from -r requirements.txt (line 167))
    # inv update|   Downloading icalendar-5.0.7-py3-none-any.whl.metadata (28 kB)
    # inv update| Collecting idna==3.4 (from -r requirements.txt (line 169))
    # inv update|   Downloading idna-3.4-py3-none-any.whl (61 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 3.7 MB/s eta 0:00:00
    # inv update| Collecting importlib-metadata==6.6.0 (from -r requirements.txt (line 171))
    # inv update|   Downloading importlib_metadata-6.6.0-py3-none-any.whl (22 kB)
    # inv update| Collecting inflection==0.5.1 (from -r requirements.txt (line 173))
    # inv update|   Downloading inflection-0.5.1-py2.py3-none-any.whl (9.5 kB)
    # inv update| Collecting itypes==1.2.0 (from -r requirements.txt (line 175))
    # inv update|   Downloading itypes-1.2.0-py2.py3-none-any.whl (4.8 kB)
    # inv update| Collecting jinja2==3.1.2 (from -r requirements.txt (line 177))
    # inv update|   Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 847.0 kB/s eta 0:00:00
    # inv update| Collecting jsonschema==4.17.3 (from -r requirements.txt (line 179))
    # inv update|   Downloading jsonschema-4.17.3-py3-none-any.whl (90 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.4/90.4 kB 5.5 MB/s eta 0:00:00
    # inv update| Collecting markdown==3.4.3 (from -r requirements.txt (line 181))
    # inv update|   Downloading Markdown-3.4.3-py3-none-any.whl (93 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 93.9/93.9 kB 1.2 MB/s eta 0:00:00
    # inv update| Collecting markuppy==1.14 (from -r requirements.txt (line 183))
    # inv update|   Downloading MarkupPy-1.14.tar.gz (6.8 kB)
    # inv update|   Preparing metadata (setup.py): started
    # inv update|   Preparing metadata (setup.py): finished with status 'done'
    # inv update| Collecting markupsafe==2.1.3 (from -r requirements.txt (line 185))
    # inv update|   Downloading MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.0 kB)
    # inv update| Collecting oauthlib==3.2.2 (from -r requirements.txt (line 187))
    # inv update|   Downloading oauthlib-3.2.2-py3-none-any.whl (151 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 151.7/151.7 kB 1.7 MB/s eta 0:00:00
    # inv update| Collecting odfpy==1.4.1 (from -r requirements.txt (line 189))
    # inv update|   Downloading odfpy-1.4.1.tar.gz (717 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 717.0/717.0 kB 2.3 MB/s eta 0:00:00
    # inv update|   Preparing metadata (setup.py): started
    # inv update|   Preparing metadata (setup.py): finished with status 'done'
    # inv update| Collecting openpyxl==3.1.2 (from -r requirements.txt (line 191))
    # inv update|   Downloading openpyxl-3.1.2-py2.py3-none-any.whl (249 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 250.0/250.0 kB 3.3 MB/s eta 0:00:00
    # inv update| Collecting pdf2image==1.16.3 (from -r requirements.txt (line 193))
    # inv update|   Downloading pdf2image-1.16.3-py3-none-any.whl (11 kB)
    # inv update| Collecting pillow==9.5.0 (from -r requirements.txt (line 195))
    # inv update|   Downloading Pillow-9.5.0-cp310-cp310-manylinux_2_28_x86_64.whl (3.4 MB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 1.7 MB/s eta 0:00:00
    # inv update| Collecting pint==0.21 (from -r requirements.txt (line 203))
    # inv update|   Downloading Pint-0.21-py3-none-any.whl (286 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 286.2/286.2 kB 1.3 MB/s eta 0:00:00
    # inv update| Collecting py-moneyed==1.2 (from -r requirements.txt (line 205))
    # inv update|   Downloading py_moneyed-1.2-py2.py3-none-any.whl (17 kB)
    # inv update| Collecting pycparser==2.21 (from -r requirements.txt (line 209))
    # inv update|   Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.7/118.7 kB 1.9 MB/s eta 0:00:00
    # inv update| Collecting pydyf==0.6.0 (from -r requirements.txt (line 211))
    # inv update|   Downloading pydyf-0.6.0-py3-none-any.whl (7.5 kB)
    # inv update| Collecting pyjwt==2.7.0 (from pyjwt[crypto]==2.7.0->-r requirements.txt (line 213))
    # inv update|   Downloading PyJWT-2.7.0-py3-none-any.whl (22 kB)
    # inv update| Collecting pyphen==0.14.0 (from -r requirements.txt (line 217))
    # inv update|   Downloading pyphen-0.14.0-py3-none-any.whl (2.0 MB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 1.2 MB/s eta 0:00:00
    # inv update| Collecting pypng==0.20220715.0 (from -r requirements.txt (line 219))
    # inv update|   Downloading pypng-0.20220715.0-py3-none-any.whl (58 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.1/58.1 kB 620.7 kB/s eta 0:00:00
    # inv update| Collecting pyrsistent==0.19.3 (from -r requirements.txt (line 221))
    # inv update|   Downloading pyrsistent-0.19.3-py3-none-any.whl (57 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.5/57.5 kB 254.4 kB/s eta 0:00:00
    # inv update| Collecting python-barcode==0.14.0 (from python-barcode[images]==0.14.0->-r requirements.txt (line 223))
    # inv update|   Downloading python_barcode-0.14.0-py3-none-any.whl (212 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 212.9/212.9 kB 1.1 MB/s eta 0:00:00
    # inv update| Collecting python-dateutil==2.8.2 (from -r requirements.txt (line 225))
    # inv update|   Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 847.1 kB/s eta 0:00:00
    # inv update| Collecting python-dotenv==1.0.0 (from -r requirements.txt (line 230))
    # inv update|   Downloading python_dotenv-1.0.0-py3-none-any.whl (19 kB)
    # inv update| Collecting python-fsutil==0.10.0 (from -r requirements.txt (line 232))
    # inv update|   Downloading python_fsutil-0.10.0-py3-none-any.whl (13 kB)
    # inv update| Collecting python3-openid==3.2.0 (from -r requirements.txt (line 234))
    # inv update|   Downloading python3_openid-3.2.0-py3-none-any.whl (133 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.7/133.7 kB 1.4 MB/s eta 0:00:00
    # inv update| Collecting pytz==2023.3 (from -r requirements.txt (line 236))
    # inv update|   Downloading pytz-2023.3-py2.py3-none-any.whl (502 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.3/502.3 kB 1.3 MB/s eta 0:00:00
    # inv update| Collecting pyyaml==6.0.1 (from -r requirements.txt (line 242))
    # inv update|   Downloading PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
    # inv update| Collecting qrcode==7.4.2 (from qrcode[pil]==7.4.2->-r requirements.txt (line 247))
    # inv update|   Downloading qrcode-7.4.2-py3-none-any.whl (46 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.2/46.2 kB 3.2 MB/s eta 0:00:00
    # inv update| Collecting rapidfuzz==0.7.6 (from -r requirements.txt (line 251))
    # inv update|   Downloading rapidfuzz-0.7.6.tar.gz (227 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 227.5/227.5 kB 1.6 MB/s eta 0:00:00
    # inv update|   Preparing metadata (setup.py): started
    # inv update|   Preparing metadata (setup.py): finished with status 'done'
    # inv update| Collecting redis==3.5.3 (from -r requirements.txt (line 253))
    # inv update|   Downloading redis-3.5.3-py2.py3-none-any.whl (72 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.1/72.1 kB 621.7 kB/s eta 0:00:00
    # inv update| Collecting regex==2023.5.5 (from -r requirements.txt (line 257))
    # inv update|   Downloading regex-2023.5.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (769 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 769.7/769.7 kB 882.7 kB/s eta 0:00:00
    # inv update| Collecting requests==2.31.0 (from -r requirements.txt (line 259))
    # inv update|   Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
    # inv update| Collecting requests-oauthlib==1.3.1 (from -r requirements.txt (line 264))
    # inv update|   Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
    # inv update| Collecting sentry-sdk==1.25.0 (from -r requirements.txt (line 266))
    # inv update|   Downloading sentry_sdk-1.25.0-py2.py3-none-any.whl.metadata (8.8 kB)
    # inv update| Collecting sgmllib3k==1.0.0 (from -r requirements.txt (line 270))
    # inv update|   Downloading sgmllib3k-1.0.0.tar.gz (5.8 kB)
    # inv update|   Preparing metadata (setup.py): started
    # inv update|   Preparing metadata (setup.py): finished with status 'done'
    # inv update| Collecting six==1.16.0 (from -r requirements.txt (line 272))
    # inv update|   Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
    # inv update| Collecting sqlparse==0.4.4 (from -r requirements.txt (line 278))
    # inv update|   Downloading sqlparse-0.4.4-py3-none-any.whl (41 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.2/41.2 kB 40.8 MB/s eta 0:00:00
    # inv update| Collecting tablib==3.4.0 (from tablib[html,ods,xls,xlsx,yaml]==3.4.0->-r requirements.txt (line 282))
    # inv update|   Downloading tablib-3.4.0-py3-none-any.whl (45 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.5/45.5 kB 25.5 MB/s eta 0:00:00
    # inv update| Collecting tinycss2==1.1.1 (from -r requirements.txt (line 286))
    # inv update|   Downloading tinycss2-1.1.1-py3-none-any.whl (21 kB)
    # inv update| Collecting typing-extensions==4.6.3 (from -r requirements.txt (line 291))
    # inv update|   Downloading typing_extensions-4.6.3-py3-none-any.whl.metadata (2.8 kB)
    # inv update| Collecting uritemplate==4.1.1 (from -r requirements.txt (line 295))
    # inv update|   Downloading uritemplate-4.1.1-py2.py3-none-any.whl (10 kB)
    # inv update| Collecting urllib3==2.0.2 (from -r requirements.txt (line 299))
    # inv update|   Downloading urllib3-2.0.2-py3-none-any.whl (123 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.2/123.2 kB 1.4 MB/s eta 0:00:00
    # inv update| Collecting wcwidth==0.2.6 (from -r requirements.txt (line 304))
    # inv update|   Downloading wcwidth-0.2.6-py2.py3-none-any.whl (29 kB)
    # inv update| Collecting weasyprint==54.3 (from -r requirements.txt (line 306))
    # inv update|   Downloading weasyprint-54.3-py3-none-any.whl (247 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.9/247.9 kB 216.9 kB/s eta 0:00:00
    # inv update| Collecting webencodings==0.5.1 (from -r requirements.txt (line 310))
    # inv update|   Downloading webencodings-0.5.1-py2.py3-none-any.whl (11 kB)
    # inv update| Collecting xlrd==2.0.1 (from -r requirements.txt (line 316))
    # inv update|   Downloading xlrd-2.0.1-py2.py3-none-any.whl (96 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.5/96.5 kB 359.3 kB/s eta 0:00:00
    # inv update| Collecting xlwt==1.3.0 (from -r requirements.txt (line 318))
    # inv update|   Downloading xlwt-1.3.0-py2.py3-none-any.whl (99 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.0/100.0 kB 277.2 kB/s eta 0:00:00
    # inv update| Collecting zipp==3.15.0 (from -r requirements.txt (line 320))
    # inv update|   Downloading zipp-3.15.0-py3-none-any.whl (6.8 kB)
    # inv update| Collecting zopfli==0.2.2 (from -r requirements.txt (line 322))
    # inv update|   Downloading zopfli-0.2.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (848 kB)
    # inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 848.9/848.9 kB 118.4 kB/s eta 0:00:00
    # inv update| Requirement already satisfied: setuptools in ./env/lib/python3.10/site-packages (from django-money==2.1.1->-r requirements.txt (line 115)) (69.0.3)
    # inv update| Downloading asgiref-3.7.2-py3-none-any.whl (24 kB)
    # inv update| Downloading cryptography-41.0.1-cp37-abi3-manylinux_2_28_x86_64.whl (4.3 MB)
    # inv update|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 643.2 kB/s eta 0:00:00
    # inv update| Downloading django_cors_headers-4.0.0-py3-none-any.whl (12 kB)
    # inv update| Downloading django_formtools-2.4.1-py3-none-any.whl (154 kB)
    # inv update|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 154.5/154.5 kB 2.5 MB/s eta 0:00:00
    # inv update| Downloading django_otp-1.2.1-py3-none-any.whl (71 kB)
    # inv update|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 71.1/71.1 kB 3.3 MB/s eta 0:00:00
    # inv update| Downloading icalendar-5.0.7-py3-none-any.whl (99 kB)
    # inv update|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.8/99.8 kB 2.9 MB/s eta 0:00:00
    # inv update| Downloading MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
    # inv update| Downloading PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (705 kB)
    # inv update|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 705.5/705.5 kB 1.4 MB/s eta 0:00:00
    # inv update| Downloading requests-2.31.0-py3-none-any.whl (62 kB)
    # inv update|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 kB 32.7 MB/s eta 0:00:00
    # inv update| Downloading sentry_sdk-1.25.0-py2.py3-none-any.whl (206 kB)
    # inv update|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 206.5/206.5 kB 1.5 MB/s eta 0:00:00
    # inv update| Downloading typing_extensions-4.6.3-py3-none-any.whl (31 kB)
    # inv update| Building wheels for collected packages: coreschema, dj-rest-auth, django-allauth, django-error-report, django-xforwardedfor-middleware, markuppy, odfpy, rapidfuzz, sgmllib3k
    # inv update|   Building wheel for coreschema (setup.py): started
    # inv update|   Building wheel for coreschema (setup.py): finished with status 'done'
    # inv update|   Created wheel for coreschema: filename=coreschema-0.0.4-py3-none-any.whl size=15015 sha256=4e6368538809f359f109b733dc7b745c8496a369931bb69701b9ae2a86d708a3
    # inv update|   Stored in directory: /tmp/pip-ephem-wheel-cache-t0dziqfv/wheels/97/f0/a1/ee57c9b2aaaac2e8867798bbde65749450ddae129085e1393d
    # inv update|   Building wheel for dj-rest-auth (setup.py): started
    # inv update|   Building wheel for dj-rest-auth (setup.py): finished with status 'done'
    # inv update|   Created wheel for dj-rest-auth: filename=dj_rest_auth-4.0.1-py2.py3-none-any.whl size=158399 sha256=b2e870ba4ab2f45b65de57fe307773b2f40ca72bf683d0fb453f677183d506df
    # inv update|   Stored in directory: /tmp/pip-ephem-wheel-cache-t0dziqfv/wheels/8d/a6/88/3a8c83f36abea7024dcbb43cf0eca4abbd744a717765c74ff1
    # inv update|   Building wheel for django-allauth (setup.py): started
    # inv update|   Building wheel for django-allauth (setup.py): finished with status 'done'
    # inv update|   Created wheel for django-allauth: filename=django_allauth-0.54.0-py3-none-any.whl size=1068966 sha256=e417debd889d47b9623d0dc85774879b0e76fdfa64971e8fe368098a23d28a61
    # inv update|   Stored in directory: /tmp/pip-ephem-wheel-cache-t0dziqfv/wheels/c1/0e/93/3c8d7272a68b90d9ac2dafaac48e6bb1153b98451330f879f7
    # inv update|   Building wheel for django-error-report (setup.py): started
    # inv update|   Building wheel for django-error-report (setup.py): finished with status 'done'
    # inv update|   Created wheel for django-error-report: filename=django_error_report-0.2.0-py3-none-any.whl size=7159 sha256=712f2fb745af94bd481fe6e756108add46fab3aa2b919b60d4b5dd3747f7eeb1
    # inv update|   Stored in directory: /tmp/pip-ephem-wheel-cache-t0dziqfv/wheels/31/36/32/c32ca67fefc0f2af0f1a924663e13601d3040a4722f872d59f
    # inv update|   Building wheel for django-xforwardedfor-middleware (setup.py): started
    # inv update|   Building wheel for django-xforwardedfor-middleware (setup.py): finished with status 'done'
    # inv update|   Created wheel for django-xforwardedfor-middleware: filename=django_xforwardedfor_middleware-2.0-py3-none-any.whl size=1925 sha256=0e42af19565c36b26ccc5b2b3ce3f749fd91e7354c272ae00b439b39f89b587a
    # inv update|   Stored in directory: /tmp/pip-ephem-wheel-cache-t0dziqfv/wheels/0e/be/bb/5269c1234749bf118e805b4a1dbf5880a038667d05a0a0b6ac
    # inv update|   Building wheel for markuppy (setup.py): started
    # inv update|   Building wheel for markuppy (setup.py): finished with status 'done'
    # inv update|   Created wheel for markuppy: filename=MarkupPy-1.14-py3-none-any.whl size=7397 sha256=ee9cbde9864870c6aeb0bd3bf6fe01282392ea26a5af650a5b813b3b5fee9470
    # inv update|   Stored in directory: /tmp/pip-ephem-wheel-cache-t0dziqfv/wheels/4c/46/f1/3def5a93f234f30cbcca7cc91c647675f58f674e146c02024a
    # inv update|   Building wheel for odfpy (setup.py): started
    # inv update|   Building wheel for odfpy (setup.py): finished with status 'done'
    # inv update|   Created wheel for odfpy: filename=odfpy-1.4.1-py2.py3-none-any.whl size=160673 sha256=1b1165ad26b25fb83d4d14d049f08df1b85324352a618e80dcc9d25f7fd1aa7d
    # inv update|   Stored in directory: /tmp/pip-ephem-wheel-cache-t0dziqfv/wheels/c8/2e/95/90d94fe33903786937f3b8c33dd88807f792359c6424b40469
    # inv update|   Building wheel for rapidfuzz (setup.py): started
    # inv update|   Building wheel for rapidfuzz (setup.py): finished with status 'done'
    # inv update|   Created wheel for rapidfuzz: filename=rapidfuzz-0.7.6-cp310-cp310-linux_x86_64.whl size=586971 sha256=476189f506dee94a0eff35e86a2db907cb3c3fc62583cc7023fe25c0058e6757
    # inv update|   Stored in directory: /tmp/pip-ephem-wheel-cache-t0dziqfv/wheels/01/55/94/75f82194d35bcad1edfc84eaeef8b890534ca56efa21dda61b
    # inv update|   Building wheel for sgmllib3k (setup.py): started
    # inv update|   Building wheel for sgmllib3k (setup.py): finished with status 'done'
    # inv update|   Created wheel for sgmllib3k: filename=sgmllib3k-1.0.0-py3-none-any.whl size=6048 sha256=c2af5775d091f41837ca7f7ae310ac91dec0dece697065bb92081cc84f9e2586
    # inv update|   Stored in directory: /tmp/pip-ephem-wheel-cache-t0dziqfv/wheels/f0/69/93/a47e9d621be168e9e33c7ce605Traceback (most recent call last):
      File "/opt/inventree/InvenTree/manage.py", line 23, in <module>
        execute_from_command_line(sys.argv)
      File "/opt/inventree/env/lib/python3.10/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
        utility.execute()
      File "/opt/inventree/env/lib/python3.10/site-packages/django/core/management/__init__.py", line 363, in execute
        settings.INSTALLED_APPS
      File "/opt/inventree/env/lib/python3.10/site-packages/django/conf/__init__.py", line 82, in __getattr__
        self._setup(name)
      File "/opt/inventree/env/lib/python3.10/site-packages/django/conf/__init__.py", line 69, in _setup
        self._wrapped = Settings(settings_module)
      File "/opt/inventree/env/lib/python3.10/site-packages/django/conf/__init__.py", line 170, in __init__
        mod = importlib.import_module(self.SETTINGS_MODULE)
      File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
      File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "/opt/inventree/InvenTree/InvenTree/settings.py", line 116, in <module>
        STATIC_ROOT = config.get_static_dir()
      File "/opt/inventree/InvenTree/InvenTree/config.py", line 230, in get_static_dir
        raise FileNotFoundError('INVENTREE_STATIC_ROOT not specified')
    FileNotFoundError: INVENTREE_STATIC_ROOT not specified
    24393c0b92ae83cf6c6e89c5
    # inv update| Successfully built coreschema dj-rest-auth django-allauth django-error-report django-xforwardedfor-middleware markuppy odfpy rapidfuzz sgmllib3k
    # inv update| Installing collected packages: xlwt, webencodings, wcwidth, sgmllib3k, pytz, python-fsutil, python-barcode, pypng, markuppy, itypes, django-cleanup, brotli, zopfli, zipp, xlrd, urllib3, uritemplate, typing-extensions, tinycss2, tablib, sqlparse, six, regex, redis, rapidfuzz, pyyaml, python-dotenv, pyrsistent, pyphen, pyjwt, pydyf, pycparser, pint, pillow, oauthlib, markupsafe, markdown, inflection, idna, gunicorn, fonttools, feedparser, et-xmlfile, django-maintenance-mode, django-crispy-forms, diff-match-patch, defusedxml, charset-normalizer, certifi, babel, attrs, sentry-sdk, requests, qrcode, python3-openid, python-dateutil, py-moneyed, pdf2image, openpyxl, odfpy, jsonschema, jinja2, importlib-metadata, html5lib, dulwich, cssselect2, cffi, blessed, bleach, asgiref, weasyprint, requests-oauthlib, icalendar, django-q-sentry, django, cryptography, coreschema, arrow, djangorestframework, django-xforwardedfor-middleware, django-weasyprint, django-user-sessions, django-taggit, django-stdimage, django-sslserver, django-sql-utils, django-redis, django-recurrence, django-picklefield, django-otp, django-money, django-markdownify, django-js-asset, django-import-export, django-formtools, django-flags, django-filter, django-error-report, django-dbbackup, django-cors-headers, coreapi, drf-spectacular, djangorestframework-simplejwt, django-q, django-mptt, django-ical, django-allauth, dj-rest-auth, django-allauth-2fa
    # inv update| Successfully installed arrow-1.2.3 asgiref-3.7.2 attrs-23.1.0 babel-2.12.1 bleach-6.0.0 blessed-1.20.0 brotli-1.0.9 certifi-2023.5.7 cffi-1.15.1 charset-normalizer-3.1.0 coreapi-2.3.3 coreschema-0.0.4 cryptography-41.0.1 cssselect2-0.7.0 defusedxml-0.7.1 diff-match-patch-20230430 dj-rest-auth-4.0.1 django-3.2.19 django-allauth-0.54.0 django-allauth-2fa-0.10.0 django-cleanup-7.0.0 django-cors-headers-4.0.0 django-crispy-forms-1.14.0 django-dbbackup-4.0.2 django-error-report-0.2.0 django-filter-23.2 django-flags-5.0.12 django-formtools-2.4.1 django-ical-1.9.1 django-import-export-2.5.0 django-js-asset-2.0.0 django-maintenance-mode-0.18.0 django-markdownify-0.9.3 django-money-2.1.1 django-mptt-0.11.0 django-otp-1.2.1 django-picklefield-3.1 django-q-1.3.9 django-q-sentry-0.1.6 django-recurrence-1.11.1 django-redis-5.2.0 django-sql-utils-0.6.1 django-sslserver-0.22 django-stdimage-5.3.0 django-taggit-4.0.0 django-user-sessions-2.0.0 django-weasyprint-2.2.0 django-xforwardedfor-middleware-2.0 djangorestframework-3.14.0 djangorestframework-simplejwt-5.2.2 drf-spectacular-0.26.2 dulwich-0.21.5 et-xmlfile-1.1.0 feedparser-6.0.10 fonttools-4.39.4 gunicorn-20.1.0 html5lib-1.1 icalendar-5.0.7 idna-3.4 importlib-metadata-6.6.0 inflection-0.5.1 itypes-1.2.0 jinja2-3.1.2 jsonschema-4.17.3 markdown-3.4.3 markuppy-1.14 markupsafe-2.1.3 oauthlib-3.2.2 odfpy-1.4.1 openpyxl-3.1.2 pdf2image-1.16.3 pillow-9.5.0 pint-0.21 py-moneyed-1.2 pycparser-2.21 pydyf-0.6.0 pyjwt-2.7.0 pyphen-0.14.0 pypng-0.20220715.0 pyrsistent-0.19.3 python-barcode-0.14.0 python-dateutil-2.8.2 python-dotenv-1.0.0 python-fsutil-0.10.0 python3-openid-3.2.0 pytz-2023.3 pyyaml-6.0.1 qrcode-7.4.2 rapidfuzz-0.7.6 redis-3.5.3 regex-2023.5.5 requests-2.31.0 requests-oauthlib-1.3.1 sentry-sdk-1.25.0 sgmllib3k-1.0.0 six-1.16.0 sqlparse-0.4.4 tablib-3.4.0 tinycss2-1.1.1 typing-extensions-4.6.3 uritemplate-4.1.1 urllib3-2.0.2 wcwidth-0.2.6 weasyprint-54.3 webencodings-0.5.1 xlrd-2.0.1 xlwt-1.3.0 zipp-3.15.0 zopfli-0.2.2
    # inv update| Backing up InvenTree database...
    # inv update| load version from file
    # Set permissions for data dir and media: /opt/inventree/data
    chown: cannot access '/opt/inventree/data': No such file or directory
    # Starting InvenTree
    ####################################################################################
    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://129.222.252.138/
    
    Admin user data:
       Email: [email protected]
       Username: admin
       Password: xHUYj2RHtbzN4eRWp7a/FWba2m/h2x9jtSbJE83V5tU=
    ####################################################################################
    Processing triggers for libc-bin (2.35-0ubuntu3.5) ...
    Processing triggers for ufw (0.36.1-4ubuntu0.1) ...
    Processing triggers for man-db (2.10.2-1) ...```
    
  11. SchrodingersGat commented on Jan 11, 2024

    @SchrodingersGat
    Member

    From the logs, this section looks suspicious:

    # Collected environment variables:
    #    INVENTREE_MEDIA_ROOT=
    #    INVENTREE_STATIC_ROOT=
    #    INVENTREE_BACKUP_DIR=
    #    INVENTREE_PLUGINS_ENABLED=
    #    INVENTREE_PLUGIN_FILE=
    #    INVENTREE_SECRET_KEY_FILE=
    #    INVENTREE_DB_ENGINE=
    #    INVENTREE_DB_NAME=
    #    INVENTREE_DB_USER=
    #    INVENTREE_DB_HOST=
    #    INVENTREE_DB_PORT=
    

    Each of these environment variables should have an associated value (not empty / blank). So, for some reason the installer is not filling them correctly.

  12. SparkeyinVA commented on Jan 11, 2024

    @SparkeyinVA
    Author

    @SchrodingersGat and @mattbnz, First, thank you for all your help. Last night, I was able to get the latest version of Inventree (0.13.0) installed and running. I would like to review the steps that were required in the hope that it will help you find the issues and that we can all have an easier installation system. I had an existing system, so I was basically trying to install the new version and integrate my existing data.

    Step1

    I started with a clean install of Ubuntu 22.04.03 LTS. The option was minimum install, as I did not want all the extra software. I ran all the updates. The user was "inventree" and was set up in the sudo group. Then, the system was rebooted.

    Step 2

    Update config file. After checking, I noticed the sample "config.yaml" file for 0.13.0 had quite a few changes from the one I used since 0.10.0. I updated the config file to match the current example.
    Set up directories and copy files. I created the directories, and added the files:
    /etc/inventree/
    admin_password.txt
    config.yaml
    plugins.txt
    secret_key.txt

    /opt/inventree/data/
    folders backup, media, static
    database.sqlite3

    Step 3

    Run wget -qO install.sh https://get.inventree.org && bash install.sh install failed as described at #6175. Changing the installer to wget -qO install.sh https://get.inventree.org && sudo bash install.sh allowed the installer to run.

    Step 4

    The next error was described in #6154 , I had to install python3.9, python3.9-dev, python3.9-venv, PIP, and then invoke.
    after restart ran wget -qO install.sh https://get.inventree.org && sudo bash install.sh

    Step 5

    The installer ran as expected but ended up with a 504 error, as described in #6156 . Please note the No idea what --no-frontend is! showed up with this install. The inv update failed to execute, so I ran the following steps as suggested by @JustusRijke

    source ./env/bin/activate
    inv update
    reboot now
    

    Step 6

    the inv update also ended with an error, as I described above, where "INVENTREE_STATIC_ROOT" was not found. But I noticed a note in the log which stated that config.yaml was not found, so one was created at /opt/inventree/InvenTree/config.yaml
    I then copied the config.yaml from /etc/inventree/ to /opt/inventree/InvenTree/. I then ran inv update again, and it found the config file and updated and backed up the database as expected.

    Step 7

    Inventree started working. Yah!!!

    I have noticed a longer delay between the computer coming on and Inventree starting. There are a few minutes when the site will return a 504 error; Then it will show Inventree after the delay.
    I really hope this helps anyone still having this issue and helps locate the issues.

  13. SparkeyinVA commented on Jan 11, 2024

    @SparkeyinVA
    Author

    @SchrodingersGat @mattbnz This issue can be closed when you have the information you need from it. Thank you again

  14. SchrodingersGat commented on Jan 11, 2024

    @SchrodingersGat
    Member

    @SparkeyinVA thanks for providing this information - and I am glad that you got it working!

    We will be using this information to fix a few bugs in the installer, so thanks for helping us improve :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionsetup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions