Skip to content
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

failed to connect to 'http://172.18.0.4:8000/' a local Docker InvenTree #57

Open
MikeLemo1 opened this issue Aug 18, 2024 · 4 comments
Open
Assignees
Labels
invalid This doesn't seem right question Further information is requested

Comments

@MikeLemo1
Copy link

I'm just starting to play with and looking into InvenTree and Docker and I'm running the plugin config wizard interactively but am unable to connect to my docker hosted inventree instance which I'm able to connect to the browser with
http://172.18.0.4:8000/
OR
http://inventree.localhost/
But the wizard accept erroring:

error: failed to connect to 'http://172.18.0.4:8000/' with 'Could not connect to InvenTree server'

the ip was fetched with
docker ps -q | xargs -n 1 docker inspect --format '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}} {{ .Name }}' | sed 's/ \// /'

if it's relevant.

What am I doing wrong

@30350n
Copy link
Owner

30350n commented Aug 22, 2024

Hm not sure tbh, the error comes directly from the inventree-python module, so I could only imagine that it's some kind of version mismatch between your InvenTree version and it's version.

@30350n 30350n self-assigned this Aug 22, 2024
@30350n 30350n added the question Further information is requested label Aug 22, 2024
@MikeLemo1
Copy link
Author

I actually managed to connect to that address after all maybe the last digit was 5 but the interface behaved a bit differently than in http://inventree.localhost/ where the ip variant was a little buggier
And I still didn't figure out what is the address to connect to the postsql database from a db manager i.e. nvim-dbee.

@30350n
Copy link
Owner

30350n commented Aug 25, 2024

I actually managed to connect to that address after all maybe the last digit was 5 but the interface behaved a bit differently than in http://inventree.localhost/ where the ip variant was a little buggier
And I still didn't figure out what is the address to connect to the postsql database from a db manager i.e. nvim-dbee.

Are you talking about the InvenTree web interface or inventree-part-import here?

@MikeLemo1
Copy link
Author

The web interface with the ip numbers vs of the wildcard addres but I want to connect to the main database of postgresql inventree with an external db manager to search and adjust parameters. so I want to know what http url scheme to use and how to construct it.
what he has there https://www.youtube.com/watch?v=MDlYsGbKJyQ&t=166s in 2:45

@30350n 30350n added the invalid This doesn't seem right label Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants