-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
3.x Docker Helper - Cannot access Fauxton via /_utils #7504
Comments
@kennsippell - thanks for filing this! Awesome to see more users of this script and we want to improve it as best we can. Can you confirm a few things for me please?
Once we can confirm these points, we can know if this is a CHT Docker Helper bug or a CHT/medic-os redirect bug. To do a little prep for this I tested against:
I suspect that because Docker is doing the port mapping, |
@kennsippell - lemme know if you have a sec to weigh on my questions above! |
This is what it looks like. But TBH, I didn't know that docker helper provided a link to the /_utils URL. It wasn't where I got the URL which I used for this bug - my expectation was for the docker env to work like a dev instance. The presence/absense of a slash in the docker-compose UI wouldn't have changed my experience - I would never have thought to look there. I'm running Windows 11 with WSL2 |
Thanks for the info! tl;drThe full docker setup makes it hard to do The Right Thing. If the redirect feature is important enough, we could use the internal IP of the container where CouchDB is running, which will natively handle the redirect correctly. However, you would still be dependent on the Helper script to show you the Fauxton URL as the IP is obfuscated. If you think this would be A Good Thing, I'll whip up a branch that does this! it would look like this (note last line's URL):
BackgroundThe wrap on that URL is really unfortunate for WSL2 :( It's pushing the Digging into it, I think you're used to working directly against couch servers. Let's see if the redirect correctly works directly against the couch server in a CHT Docker Helper scenario! First, we find the IP of the docker instance as it's internally exposed on port
And if we call
Aha, yes! What about if we try going through the
Aha - so here is where the port is dropped. This is because
So it redirects correctly, but this isn't helpful because exactly one CHT instance on your dev machine would work correctly (the one on port I would also be curious if such a short URL wouldn't wrap in WSL2! I know that it would solve macOS's fixed problem too, as it would be very short! |
Oh yeah! I think core starter is always running a bare-metal version of CouchDB always on the same port, right? Coming from this setup, it's totally understandable and reasonable you'd expect it to work the same way in the CHT Docker Helper! Let's try and make this happen 🚀 |
This has been fixed in the 4.x docker helper. Would it be OK to change the issue title to reflect that this only affects 3.x docker helper? |
Sounds fine. Not sure who you're asking - but: Permission Granted :P |
You.
thanks ! |
As 3.x is dropping out of support, I'm going to close this as ancient. Please reopen if you disagree! |
Describe the bug
Can't access Fauxton
To Reproduce
Expected: Fauxton
Observed: ERR_CONNECTION_REFUSED
Additional context
Can workaround by navigating to https://172-27-100-70.my.local-ip.co:9444/_utils/ (includes trailing slash)
The text was updated successfully, but these errors were encountered: