Open razcakappa opened 4 years ago
@razcakappa it looks like the container is trying to connect to the container's 5960 port on localhost. Make sure that it can can reach that port and connect to it.
@nickva Thanks for pointing out my silly mistake. I just edited the raw replication document and added localhost:5984 and it started to work.
However I assume on Fauxton, it still gets the browser's port when recording replication data about local DBs. Isn't this supposed to be a bug or am I missing something again as usual?
Glad it worked.
And agree it does seem like a bug. I don't know much about how Fauxton builds the local UR. It might grab whatever it sees from the browser's location perhaps? But I can see in general how running from a container with port forwarding there might not even be a way to determine a proper "local" version for the endpoints.
I just checked the Fauxton code and it simply grabs the URL from the window object it seems.
Helpers.getRootUrl = ({origin, pathname} = window.location) => {
return url.resolve(origin + pathname, app.host);
};
If CouchDB provides a way to get server URL with ports then this can be fixed from the Fauxton end.
Description
From fauxton, when adding a replication request for simply replicate two local dbs, it fails. Couchdb server dumps following
Steps to Reproduce
Expected Behaviour
Two DBs should be properly replicated.
Your Environment
Docker-compose environment with following yaml.
Additional Context