-
Notifications
You must be signed in to change notification settings - Fork 0
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
Can't get move-shards or remove-node to work on Couch 3 #21
Comments
here's
|
Now, I'm confused as to how move-shards worked when renaming [email protected] to single-node [email protected]?
|
We should have support for Couch3 out of the box, added in v 1.0.2. We have e2e tests which move shards in Couch3. Can you check the logs in the migration container to see how the error looks like? |
It looks like the CouchDb 3 detection script gets confused when the Either not setting the COUCH_CLUSTER_PORT or setting it to |
I'm trying to cluster an echis (cht-core 4.9, couchdb3) project from single node to multi node.
Can you clarify how getUrl that calls preparedCouchUrl is populating and returning var couchClusterUrl in utils?
I'm suspecting that
/_node/_local/
is not getting sent to latter functions like getDbs and updateDbMetadataSpecifically, in couchdb 3.x , getDbs needs to use getUrl without the additional
/_node/_local
, such that_all_dbs
is at root endpoint (http://medic:pw@couchdb-1-host:5984/_all_dbs
). Then when updateDbMetadata calls getUrl, it needs to add/_node/_local/
before it iterates on each db that it retrieved, otherwise I believe we are running into our current error:When I ran
remove-node
, it gave further evidence that the additional/_node/_local
was missing:getNodeInfo runs into the same issue.
I'm able to remove the node by finding the rev-id and hitting
_nodes
directly.When running move-shards and getting the first error that was pasted above as output, I'm able to curl that db:
Am I missing something that forces couch-migration to prepare couch-3 urls inside the compose file I'm using for this repo?
The text was updated successfully, but these errors were encountered: