Repository navigation
Description
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*
I have been trying to upgrade, and install a fresh version) of v1.0.0 and just can't get it to run. Every attempt is met with 502 Bad Gateway error. I have attempted via Proxmox VE Helper-Scripts (yes I know this isn't supported but v0.17 installed just fine and it what I'm still using). I have attempted to do a fresh install on Ubuntu v.20.04 also. Don't the one step install and also the manual install with no success. Have tried this numerous times. I have not done Docker yet as I'm just not familiar with Docker yet to attempt this. Unless someone has a step by step (like I am a 4 year old) on how to install via Docker.
I was finally able to get something on my screen to show me that there is in fact a problem. It's in the log output even though not really log files but still. I thought I read somewhere that we can set the INVENTREE_CONFIG_FILE variable but I can't find it now.
Just to be clear, I have attempted upgrading versions which is how this all got started because no matter what way I try to upgrade I get the same results as if I was trying to do a fresh install.
When I check on each service, via systemctl status, everything is running and not showing any errors.
Unsure what other information you may want to help diagnose this but let me know and I'll get it in here.
Steps to Reproduce
Followed the one step install along with the manual step by step install.
Have not installed via Docker yet as I am not comfortable with it yet.
Relevant log output
Debian GNU/Linux 12 inventree tty1
inventree login: root
Password:
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
InvenTree LXC Container
🌐 Provided by: community-scripts ORG | GitHub: https://github.com/community-scripts/ProxmoxVE
🖥️ OS: Debian GNU/Linux - Version: 12
🏠 Hostname: inventree
💡 IP Address: 192.168.0.216
root@inventree:~# inventree run invoke version
Unknown environment, not checking used invoke command
INVE-W3: Could not detect git information.
INVE-W10 - Config for 'INVENTREE_CONFIG_FILE' not in recommended directory '/opt/inventree/config'.
INVE-W10 - Config for 'INVENTREE_CONFIG_FILE' not in recommended directory '/opt/inventree/config'.
INVE-W10 - Config for 'INVENTREE_PLUGIN_FILE' not in recommended directory '/opt/inventree/config'.
INVE-W10 - Config for 'INVENTREE_CONFIG_FILE' not in recommended directory '/opt/inventree/config'.
INVE-W10 - Config for 'INVENTREE_CONFIG_FILE' not in recommended directory '/opt/inventree/config'.
INVE-W10 - Config for 'INVENTREE_CONFIG_FILE' not in recommended directory '/opt/inventree/config'.
InvenTree - inventree.org
The Open-Source Inventory Management System
Python paths:
Executable /opt/inventree/env/bin/python3.11
Environment /opt/inventree/env
Invoke Tool /opt/inventree/env/lib/python3.11/site-packages/invoke/__init__.py
Installation paths:
Base /opt/inventree
Config /etc/inventree/config.yaml
Plugin File /etc/inventree/plugins.txt
Media /opt/inventree/data/media
Static /opt/inventree/data/static
Backup /opt/inventree/data/backup
Versions:
Python 3.11.2
Django 4.2.24
InvenTree 1.0.0
API 391
Node N/A
Yarn N/A
Environment:
Platform NOT SPECIFIED
Debug False
Commit hash: None
Commit date: None
You are probably running the package installer / single-line installer. Please mention this in any bug reports!
Use '--list' for a list of available commands
Use '--help' for help on a specific command
root@inventree:~#
root@inventree:~#
root@inventree:~#
root@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
INVENTREE_CONFIG_FILE=/etc/inventree/config.yaml
INVENTREE_SITE_URL=http://38.145.185.73
LANG=en_US.UTF-8
OLDPWD=/
ORIGINAL_PWD=/root
PATH=/opt/inventree/.heroku/python/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.:/usr/sbin
PORT=6000
PWD=/opt/inventree
PYTHONHASHSEED=random
PYTHONPATH=/opt/inventree
PYTHONUNBUFFERED=true
ROOT_PATH=/
SHLVL=0
Activity
SchrodingersGat commentedon Sep 20, 2025
You will need to provide the log output for the running server
deanathpc commentedon Sep 21, 2025
O.K. No problem. Which directory and which log output is it you need?
deanathpc commentedon Sep 21, 2025
Here is the nginx error.log
2025/09/20 16:24:44 [notice] 14174#14174: using inherited sockets from "5;6;" 2025/09/20 16:35:40 [error] 15722#15722: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.207, server: , request: "GET / HTTP/1.1", upstream: "http://[::1]:6000/", host: "192.168.0.216" 2025/09/20 16:35:40 [error] 15722#15722: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.207, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:6000/", host: "192.168.0.216" 2025/09/20 16:35:40 [error] 15722#15722: *1 no live upstreams while connecting to upstream, client: 192.168.0.207, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://localhost/favicon.ico", host: "192.168.0.216", referrer: "http://192.168.0.216/" 2025/09/21 07:29:12 [error] 249#249: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.207, server: , request: "GET / HTTP/1.1", upstream: "http://[::1]:6000/", host: "192.168.0.216" 2025/09/21 07:29:12 [error] 249#249: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.0.207, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:6000/", host: "192.168.0.216"StormTrooper commentedon Sep 21, 2025
Run
inventree logsto view the inventree logs. (Run as the inventree user)matmair commentedon Sep 21, 2025
You are right, Proxmox VE Helper scripts are not officially supported, please raise the issue in their issue tracker. They know the setup they ship better.
It seems like the
INVENTREE_SITE_URLmight be set up wrong; SettingFORWARDED_ALLOW_IPSto any is also not super secure.deanathpc commentedon Sep 21, 2025
O.K. Thank you. I'll look at this closer and see. But I also have this installed on a fresh Ubuntu 20.04 and couldn't get it working either. Must be something I'm doing wrong.
deanathpc commentedon Sep 21, 2025
O.K. So here is your log. This is from another VM on Proxmox. This is via Ubuntu v20.04 and was a fresh install. Doing the same thing. I am seeing a lot more issues in this log than in others. This was done using the quick script:
sudo wget -qO install.sh https://get.inventree.org && sudo bash install.sh
SchrodingersGat commentedon Sep 22, 2025
INVE-W8: Database Migrations requiredYou need to run
invoke updatefirst.@matmair is there a way that we could make these error messages more obvious?
deanathpc commentedon Sep 22, 2025
O.K. Well I had to do a 'find' on that because I looked at those logs a few times and never say that. So, my apologies.
But.. This is a fresh install so why would I need to do this? Seems odd.
Now in regard once invoke was installed I did run it. Both clean installs came back with:
"Can't find any collection named 'tasks'!"
SchrodingersGat commentedon Sep 22, 2025
https://docs.inventree.org/en/stable/start/install/#initialize-database
https://docs.inventree.org/en/stable/faq/#cant-find-any-collection-named-tasks
matmair commentedon Sep 22, 2025
Not sure how, we could add something catchy like ERROR
deanathpc commentedon Sep 22, 2025
So frustrating. I have run sudo inventree invoke update. Had to run it at least twice. then had to set: inventree config:set INVENTREE_SITE_URL=http://192.168.0.180
After some time finally to the web page log in page. Nothing works to log in though. using /etc/inventree/admin_password.txt info to log in and still wrong log in info.
StormTrooper commentedon Sep 22, 2025
There is something very broken with the installer. I've run a few tests. Built a new Ubuntu 20.04 server and run the installer script.
Everything installed successfully but after the install (Tried a reboot) I get the same issue as the reported .
502 Bad GatewayThen tried some settings as listed in another issue:
Rebooted, still didnt fix the issue.
Then ran
inventree run invoke updateHad to run it twice. First time I ran it after about 2 mins it crashed with database locked.
Ran again after that and it ran successfully.
I could then access the GUI but unable to logon with the password provided.
deanathpc commentedon Sep 23, 2025
Thank you for confirming my suspicions! I appreciate you chiming in. If I could log in I'd probably be all set. I'll just keep using v0.17.13 until something more comes from the above.