-
-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker install blank webpage #6972
Comments
If you use a custom port you will need to include that in the site_url |
Including the port in the site url results in being unable to resolve that url. I no longer get a status 200 response. INVENTREE_SITE_URL="http://inventree.homepi.local:8089" |
Do not set |
I have removed the web port customisation from the .evn file, and all that remains is: But I still get no response from that URL and the server seems to keep restarting in it's docker container. |
Ok, so what does the server container logs tell you? If it is restarting it should have an error message |
EDIT: I updated the information in this post. It turned out to be slightly different from what I first thought. I was just about to open a new issue, and then I found this, so I post my findings here.
I just updated to version 0.15.1. After the update my inventree-server and inventree-worker containers could not be started anymore. The "invoke update" command would also fail. I got the following error message:
I then specified a
However, now I got a new error message. It does seems that InvenTree does not like the format of the "INVENTREE_SITE_URL".
I played around with a dozen different settings, all gave the same problem. But when I reverted back to the example in the documentation it turned out to work fine.
After playing around a bit more I figured out the problem seems to be in the validation of the URL. It does seems that you need a TLD in the URL. I have set up my domain via /etc/hosts and do not use a TLD, so it fails. |
@chille to clarify:
Can you please share the full error log when you launch the server with the URL as above? |
@chille @minorDeveloper could you respond to the latest message so we might resolve or close this? |
@matmair the error was related to a very niche docker networking issue caused by another container. Running inventree in isolation had no issues. This can be closed. I will continue to explore why this happened and if I figure it out I will reply here to assist with anyone with the same issue in the future. |
Deployment Method
Steps to Reproduce
Describe the problem*
When I navigate to the web url described in my .env file I get an "unable to resolve error", and when I visit the port set for the webpage I get a blank page with no content.
Steps to Reproduce
I've installed inventree using the docker install on a raspberry pi as described in the install instructions.
I run various services on this raspberry pi and separate access via port, and so I have made two changes to my .env file:
INVENTREE_SITE_URL="http://inventree.homepi.local"
INVENTREE_WEB_PORT=8089
I am unable to resolve inventree.homepi.local, however when I go to homepi.local:8089 I do get a 200 code response, but it is a completely blank webpage with no content. This is generated by inventree as when I stop the containers I go back to being unable to resolve.
When I use curl I get the following:
< HTTP/1.1 200 OK
< Server: Caddy
< Date: Sun, 07 Apr 2024 14:12:53 GMT
< Content-Length: 0
<
Relevant log output
No response
The text was updated successfully, but these errors were encountered: