inventree / InvenTree

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

502 Bad Gateway error on fresh Debian 11 install #8494

Open mschaffner9239 opened 6 days ago

mschaffner9239 commented 6 days ago

Please verify that this bug has NOT been raised before.

Describe the bug*

After creating a fresh Debian 11 VM and installing InvenTree, everything seems to be fine. Able to login with the provided admin from the installer script. After rebooting the VM, no longer able to login, when trying to reach the server, getting a '502 Bad Gateway' error message.

Steps to Reproduce

  1. Create new Debian 11 VM
  2. Install InvenTree using the Installer script
  3. Goto the URL for your VM and get the login screen
  4. Reboot VM
  5. Goto the URL for the VM and get '502 Bad Gateway'

Expected behaviour

After reboot of the VM, that the login screen would appear.

Deployment Method

Version Information

0.16.8 based on first login.

Please verify if you can reproduce this bug on the demo site.

Relevant log output

NGINX Error Log

2024/11/15 18:28:10 [error] 504#504: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.113.132, server: , request: "GET / HTTP/1.1", upstream: "http://[::1]:6000/", host: "invtest.schaffner.online"
2024/11/15 18:28:10 [error] 504#504: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.113.132, server: , request: "GET /favicon.ico HTTP/1.1", upstream: "http://[::1]:6000/favicon.ico", host: "invtest.schaffner.online", referrer: "http://invtest.schaffner.online/"
matmair commented 3 days ago

There is not enough info to debug this here @mschaffner9239 . The log is from nginx, not the inventree server, and the described things can be a thousand things.