InvenTree server starts successfully but UI is not accessible on localhost:8080
Body of the issue
After setting up InvenTree using Docker, all containers (inventree-server, inventree-worker, inventree-db, inventree-proxy, inventree-cache) are running without errors. However, I am unable to access the InvenTree UI via http://localhost:8080/ or http://:8080. The browser returns a timeout or connection refused error.
š Steps to Reproduce: Cloned the InvenTree repo and navigated to the root.
Ran sudo docker-compose up -d.
Confirmed all containers are running using sudo docker-compose ps -a.
Tried accessing http://localhost:8080/ in the browser.
logss
makxenia@makxeniaserver:/home/InvenTree$ docker-compose up -d [+] Building 0.0s (0/0) [+] Running 5/0 ā Container inventree-cache Running 0.0s ā Container inventree-db Running 0.0s ā Container inventree-server Running 0.0s ā Container inventree-worker Running 0.0s ā Container inventree-proxy Running 0.0s makxenia@makxeniaserver:/home/InvenTree$ sudo docker-compose logs -f inventree-cache | 1:C 01 May 2025 05:46:36.952 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo inventree-cache | 1:C 01 May 2025 05:46:36.952 # Redis version=7.0.15, bits=64, commit=00000000, modified=0, pid=1, just started inventree-cache | 1:C 01 May 2025 05:46:36.952 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf inventree-cache | 1:M 01 May 2025 05:46:36.953 * monotonic clock: POSIX clock_gettime inventree-cache | 1:M 01 May 2025 05:46:36.953 * Running mode=standalone, port=6379. inventree-cache | 1:M 01 May 2025 05:46:36.953 # Server initialized inventree-cache | 1:M 01 May 2025 05:46:36.954 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. inventree-cache | 1:M 01 May 2025 05:46:36.954 * Ready to accept connections inventree-db | inventree-db | PostgreSQL Database directory appears to contain a database; Skipping initialization inventree-db | inventree-db | 2025-05-01 05:46:36.965 UTC [1] LOG: starting PostgreSQL 13.20 (Debian 13.20-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit inventree-db | 2025-05-01 05:46:37.010 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 inventree-db | 2025-05-01 05:46:37.010 UTC [1] LOG: listening on IPv6 address "::", port 5432 inventree-db | 2025-05-01 05:46:37.022 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" inventree-db | 2025-05-01 05:46:37.039 UTC [27] LOG: database system was shut down at 2025-05-01 05:46:30 UTC inventree-worker | Loading config file : /home/inventree/data/config.yaml inventree-worker | Waiting for database connection... inventree-proxy | {"level":"info","ts":1746078397.8709025,"msg":"using config from file","file":"/etc/caddy/Caddyfile"} inventree-proxy | {"level":"info","ts":1746078397.8726285,"msg":"adapted config to JSON","adapter":"caddyfile"} inventree-proxy | {"level":"info","ts":1746078397.8739343,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]} inventree-proxy | {"level":"warn","ts":1746078397.8740423,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv0","http_port":80} inventree-proxy | {"level":"info","ts":1746078397.8741887,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc000663000"} inventree-proxy | {"level":"warn","ts":1746078397.8743188,"logger":"http","msg":"HTTP/2 skipped because it requires TLS","network":"tcp","addr":":80"} inventree-worker | Python version 3.11.9 - /usr/local/bin/python3 inventree-db | 2025-05-01 05:46:37.044 UTC [1] LOG: database system is ready to accept connections inventree-worker | /root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions inventree-worker | warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions") inventree-worker | Waiting for database... inventree-worker | Database connection successful! inventree-worker | Python version 3.11.9 - /usr/local/bin/python3 inventree-server | Loading config file : /home/inventree/data/config.yaml inventree-server | Python version 3.11.9 - /usr/local/bin/python inventree-server | /root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions inventree-proxy | {"level":"warn","ts":1746078397.8743315,"logger":"http","msg":"HTTP/3 skipped because it requires TLS","network":"tcp","addr":":80"} inventree-server | warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions") inventree-proxy | {"level":"info","ts":1746078397.8743372,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]} inventree-proxy | {"level":"info","ts":1746078397.8744886,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"} inventree-proxy | {"level":"info","ts":1746078397.8744984,"msg":"serving initial configuration"} inventree-proxy | {"level":"info","ts":1746078397.8781207,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/data/caddy","instance":"3a134c5b-f1a4-43b2-9815-3654909c58e6","try_again":1746164797.8781192,"try_again_in":86399.99999928} inventree-proxy | {"level":"info","ts":1746078397.878215,"logger":"tls","msg":"finished cleaning storage units"} inventree-worker | /root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions inventree-worker | warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions") ^Ccanceled makxenia@makxeniaserver:/home/InvenTree$ sudo docker-compose ps -a NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS inventree-cache redis:7.0 "docker-entrypoint.sā¦" inventree-cache 2 minutes ago Up 2 minutes 6379/tcp inventree-db postgres:13 "docker-entrypoint.sā¦" inventree-db 2 minutes ago Up 2 minutes 5432/tcp inventree-proxy caddy:alpine "caddy run --config ā¦" inventree-proxy 2 minutes ago Up 2 minutes 443/udp, 2019/tcp, 0.0.0.0:8080->80/tcp, :::8080->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp inventree-server inventree/inventree:stable "/bin/ash ./init.sh ā¦" inventree-server 2 minutes ago Up 2 minutes 8000/tcp inventree-worker inventree/inventree:stable "/bin/ash ./init.sh ā¦" inventree-worker 2 minutes ago Up 2 minutes 8000/tcp makxenia@makxeniaserver:/home/InvenTree$ vim .env makxenia@makxeniaserver:/home/InvenTree$ sudo docker-compose logs -f inventree-server inventree-server | Loading config file : /home/inventree/data/config.yaml inventree-server | Python version 3.11.9 - /usr/local/bin/python inventree-server | /root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions inventree-server | warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions") ^Ccanceled makxenia@makxeniaserver:/home/InvenTree$ sudo docker-compose logs --tail=100 -f inventree-server inventree-server | Loading config file : /home/inventree/data/config.yaml inventree-server | Python version 3.11.9 - /usr/local/bin/python inventree-server | /root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions inventree-server | warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions") ^Ccanceled makxenia@makxeniaserver:/home/InvenTree$ sudo docker-compose logs -f inventree-db | inventree-proxy | {"level":"info","ts":1746078397.8709025,"msg":"using config from file","file":"/etc/caddy/Caddyfile"} inventree-proxy | {"level":"info","ts":1746078397.8726285,"msg":"adapted config to JSON","adapter":"caddyfile"} inventree-db | PostgreSQL Database directory appears to contain a database; Skipping initialization inventree-db | inventree-db | 2025-05-01 05:46:36.965 UTC [1] LOG: starting PostgreSQL 13.20 (Debian 13.20-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit inventree-db | 2025-05-01 05:46:37.010 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 inventree-proxy | {"level":"info","ts":1746078397.8739343,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//localhost:2019","//[::1]:2019","//127.0.0.1:2019"]} inventree-proxy | {"level":"warn","ts":1746078397.8740423,"logger":"http.auto_https","msg":"server is listening only on the HTTP port, so no automatic HTTPS will be applied to this server","server_name":"srv0","http_port":80} inventree-proxy | {"level":"info","ts":1746078397.8741887,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc000663000"} inventree-proxy | {"level":"warn","ts":1746078397.8743188,"logger":"http","msg":"HTTP/2 skipped because it requires TLS","network":"tcp","addr":":80"} inventree-proxy | {"level":"warn","ts":1746078397.8743315,"logger":"http","msg":"HTTP/3 skipped because it requires TLS","network":"tcp","addr":":80"} inventree-proxy | {"level":"info","ts":1746078397.8743372,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]} inventree-proxy | {"level":"info","ts":1746078397.8744886,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"} inventree-proxy | {"level":"info","ts":1746078397.8744984,"msg":"serving initial configuration"} inventree-worker | Loading config file : /home/inventree/data/config.yaml inventree-worker | Waiting for database connection... inventree-worker | Python version 3.11.9 - /usr/local/bin/python3 inventree-worker | /root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions inventree-worker | warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions") inventree-worker | Waiting for database... inventree-server | Loading config file : /home/inventree/data/config.yaml inventree-worker | Database connection successful! inventree-cache | 1:C 01 May 2025 05:46:36.952 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo inventree-server | Python version 3.11.9 - /usr/local/bin/python inventree-server | /root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions inventree-server | warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions") inventree-worker | Python version 3.11.9 - /usr/local/bin/python3 inventree-worker | /root/.local/lib/python3.11/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions inventree-proxy | {"level":"info","ts":1746078397.8781207,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/data/caddy","instance":"3a134c5b-f1a4-43b2-9815-3654909c58e6","try_again":1746164797.8781192,"try_again_in":86399.99999928} inventree-proxy | {"level":"info","ts":1746078397.878215,"logger":"tls","msg":"finished cleaning storage units"} inventree-db | 2025-05-01 05:46:37.010 UTC [1] LOG: listening on IPv6 address "::", port 5432 inventree-db | 2025-05-01 05:46:37.022 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" inventree-db | 2025-05-01 05:46:37.039 UTC [27] LOG: database system was shut down at 2025-05-01 05:46:30 UTC inventree-db | 2025-05-01 05:46:37.044 UTC [1] LOG: database system is ready to accept connections inventree-worker | warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions") inventree-cache | 1:C 01 May 2025 05:46:36.952 # Redis version=7.0.15, bits=64, commit=00000000, modified=0, pid=1, just started inventree-cache | 1:C 01 May 2025 05:46:36.952 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf inventree-cache | 1:M 01 May 2025 05:46:36.953 * monotonic clock: POSIX clock_gettime inventree-cache | 1:M 01 May 2025 05:46:36.953 * Running mode=standalone, port=6379. inventree-cache | 1:M 01 May 2025 05:46:36.953 # Server initialized inventree-cache | 1:M 01 May 2025 05:46:36.954 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. inventree-cache | 1:M 01 May 2025 05:46:36.954 * Ready to accept connections inventree-cache | 1:M 01 May 2025 05:51:37.022 * 100 changes in 300 seconds. Saving... inventree-cache | 1:M 01 May 2025 05:51:37.023 * Background saving started by pid 20 inventree-cache | 20:C 01 May 2025 05:51:37.056 * DB saved on disk inventree-cache | 20:C 01 May 2025 05:51:37.057 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB inventree-cache | 1:M 01 May 2025 05:51:37.124 * Background saving terminated with success inventree-cache | 1:M 01 May 2025 05:56:38.096 * 100 changes in 300 seconds. Saving... inventree-cache | 1:M 01 May 2025 05:56:38.097 * Background saving started by pid 21 inventree-cache | 21:C 01 May 2025 05:56:38.121 * DB saved on disk inventree-cache | 21:C 01 May 2025 05:56:38.122 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB inventree-cache | 1:M 01 May 2025 05:56:38.197 * Background saving terminated with success inventree-cache | 1:M 01 May 2025 06:01:39.045 * 100 changes in 300 seconds. Saving... inventree-cache | 1:M 01 May 2025 06:01:39.046 * Background saving started by pid 22 inventree-cache | 22:C 01 May 2025 06:01:39.094 * DB saved on disk inventree-cache | 22:C 01 May 2025 06:01:39.095 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB inventree-cache | 1:M 01 May 2025 06:01:39.146 * Background saving terminated with success inventree-cache | 1:M 01 May 2025 06:06:40.088 * 100 changes in 300 seconds. Saving... inventree-cache | 1:M 01 May 2025 06:06:40.089 * Background saving started by pid 23 inventree-cache | 23:C 01 May 2025 06:06:40.117 * DB saved on disk inventree-cache | 23:C 01 May 2025 06:06:40.117 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB inventree-cache | 1:M 01 May 2025 06:06:40.189 * Background saving terminated with success inventree-cache | 1:M 01 May 2025 06:11:41.015 * 100 changes in 300 seconds. Saving... inventree-cache | 1:M 01 May 2025 06:11:41.016 * Background saving started by pid 24 inventree-cache | 24:C 01 May 2025 06:11:41.048 * DB saved on disk inventree-cache | 24:C 01 May 2025 06:11:41.049 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB inventree-cache | 1:M 01 May 2025 06:11:41.116 * Background saving terminated with success inventree-cache | 1:M 01 May 2025 06:16:42.075 * 100 changes in 300 seconds. Saving... inventree-cache | 1:M 01 May 2025 06:16:42.076 * Background saving started by pid 25 inventree-cache | 25:C 01 May 2025 06:16:42.090 * DB saved on disk inventree-cache | 25:C 01 May 2025 06:16:42.090 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB inventree-cache | 1:M 01 May 2025 06:16:42.177 * Background saving terminated with success ^Ccanceled
see https://github.com/inventree/InvenTree/issues/9615#issuecomment-2846572078
Try following the steps in: https://github.com/inventree/InvenTree/discussions/9558#discussioncomment-12966776
That is not an official guide, please follow the official instructions on the docs site: https://docs.inventree.org/en/stable/start/intro/
@SHIWANI-DHURAD12 have you tried any of the suggested steps? What was the result?
This issue seems stale. Please react to show this is still important.