InvenTree: 502 Bad Gateway after update 0.12.8 -> 0.13.0
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*
After performing an update to 0.13, using sudo apt install --only-upgrade inventree , InvenTree no longer works (website returns “502 Bad Gateway”).
The upgrade seems to skip running inv update. When manually executing inv update and rebooting the system, the problem is solved.
Performed on a system running Debian 11 with InvenTree 0.12 installed using the installation script.
IPv6 is disabled in /etc/sysctl.conf.
/etc/nginx/sites-enabled/inventree.conf is unchanged (default content).
First mentioned in #4134
Steps to Reproduce
Perform update
Relevant log output
sudo apt install --only-upgrade inventree returns:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
inventree
1 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
Need to get 0 B/117 MB of archives.
After this operation, 32.5 MB of additional disk space will be used.
Reading changelogs... Done
(Reading database ... 73097 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) over (0.12.8-1698964278.a7487ff8.focal) ...
Setting up inventree (0.13.0-1702638825.301afaa9.focal) ...
# Setting base environment variables
# Using existing config file: /etc/inventree/config.yaml
[notice] A new release of pip is available: 23.3.1 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
# 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=postgresql
# INVENTREE_DB_NAME=inventree
# INVENTREE_DB_USER=inventree
# INVENTREE_DB_HOST=localhost
# INVENTREE_DB_PORT=5432
# Getting the IP address of the server via web service
IP address is xxx.xxx.xxx.xxx
# Setting up python environment
Requirement already satisfied: invoke in ./env/lib/python3.9/site-packages (2.1.3)
Requirement already satisfied: wheel in ./env/lib/python3.9/site-packages (0.40.0)
[notice] A new release of pip is available: 23.3.1 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
# 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.40.0)
[notice] A new release of pip is available: 23.3.1 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
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://xxx.xxx.xxx.xxx/
curl http://localhost returns:
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.18.0</center>
</body>
</html>
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Comments: 22 (9 by maintainers)
@JustusRijke I have moved the commants.