-
We've been using inventree for about two months and we're very happy with it. However, yesterday our router was replaced, and as a result the IP address of the host has changed. Since then, the webserver only shows empty pages. The host is Ubuntu Server 24.04 LTS and inventree is running in docker containers. I have read these discussions: and I understand that INVENTREE_SITE_URL has be to configured correctly. Here is a comparison of my settings with the default ones: root@inventree:~# diff .env-original /home/inventree/.env
11,14c11,14
< # InvenTree server URL - update this to match your server URL
< INVENTREE_SITE_URL="http://inventree.localhost"
< #INVENTREE_SITE_URL="http://192.168.1.2" # You can specify a local IP address here
< #INVENTREE_SITE_URL="https://inventree.my-domain.com" # Or a public domain name (which you control)
---
> # InvenTree server URL - update this to match your host
> #INVENTREE_SITE_URL="http://inventree.localhost"
> #INVENTREE_SITE_URL="http://inventree.fritz.box"
> INVENTREE_SITE_URL="http://192.168.178.47"
18c18
< INVENTREE_EXT_VOLUME=./inventree-data
---
> INVENTREE_EXT_VOLUME=/home/inventree/inventree-data
30,33c30,33
< # Un-comment (and complete) these lines to auto-create an admin account
< #INVENTREE_ADMIN_USER=
< #INVENTREE_ADMIN_PASSWORD=
< #INVENTREE_ADMIN_EMAIL=
---
> # Un-comment (and complete) these lines to auto-create an admin acount
> INVENTREE_ADMIN_USER=admin
> INVENTREE_ADMIN_PASSWORD=xxxxxxxxxxx
> INVENTREE_ADMIN_EMAIL=xxxxxxxxxxxx
45,46c45,46
< INVENTREE_DB_USER=pguser
< INVENTREE_DB_PASSWORD=pgpassword
---
> INVENTREE_DB_USER=inventreedbuser
> INVENTREE_DB_PASSWORD=xxxxxxxxxxxxx
root@inventree:~# diff Caddyfile-original /home/inventree/Caddyfile
35c35
< {$INVENTREE_SITE_URL:http://inventree.localhost} {
---
> {$INVENTREE_SITE_URL:http://192.168.178.47} { and the IP address of the host is
However, when I visit the webpage, all I get is an empty page:
I have tried several variations ( I have tried restarting the container What am I doing wrong? Perhaps it's something really simple such as forcing a reload or refresh? How do the values that are configured in .env get propagated to the individual docker images? Do I need to run the setup script again? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved! I forgot to
I'll keep this discussion here, perhaps someone else will run into the same problem. |
Beta Was this translation helpful? Give feedback.
Solved! I forgot to
I'll keep this discussion here, perhaps someone else will run into the same problem.