replication not working when port changed
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by reproducing replication from the local instance through the 5988:5984 port mapping, then inspect the _utils method used to add a replication and how the Docker image exposes its port. Compare the local database URL seen by the browser with the URL reachable inside the container. Done means replication from D to S succeeds with the changed host port.
Written by the indexing model from the issue text.
Description
Hi,
I just found a problem when changing the port number: It seems to break replikation.
The case:
Running several instances of docker hub's couchdb:latest (with podman)
-
one on the server machine S
-
one on the developer machine D
task: replicate a database D -> S
But since port 5984 on D is sometimes needed for testing and developing couchdb instances, the port of the instance running on D has been moved by telling podman to use a portmapping 5988:5984
Thus, a browser running on D will find it at http://localhost:5988/_utils
Replication local database (on D) to remote database (on S) doesn't work then.
Reason, as far as I do understand the logs: The _utils' method to add a replication (from: local) uses the given URL to find the local cadatabase, i.e. it tries to contact the local database as http://localhost:5988/ , but inside the container, it resides on 5984.
In order to make this work, a mapping of 5988:5988 would be neeed. Unfortunately, the docker image does not take a variable to change the port number.
regards
- Dominant language
- Dockerfile
- Stars
- 290
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/couchdb-docker
-
Docker Setup IssueOpen
Difficulty 4/5 3-5 days Newbie friendliness 32/100
apache/couchdb-docker#292 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
apache/couchdb-docker#288 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
apache/couchdb-docker#285 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 50/100
apache/couchdb-docker#283 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
apache/couchdb-docker#274 · 1 comment ·
All issues in apache/couchdb-docker
Similar issues
-
external-issue to-triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
paperclipai/paperclip#14982 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
litestar-org/advanced-alchemy#811 ·
Maintainers usually reply within 1 day
-
component:sight
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
agentic-os-org/ANOLISA#4103 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
blinklabs-io/dingo#4937 ·
Maintainers usually reply within 1 day