You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/07/23 04:23:23 UTC

[GitHub] [couchdb] krainboltgreene opened a new issue #2080: Replication connection issue changes replication to a bad document

krainboltgreene opened a new issue #2080: Replication connection issue changes replication to a bad document
URL: https://github.com/apache/couchdb/issues/2080
 
 
   I created a replication to a bad host and after failing it changed the replication entry to something that is malformed.
   
   ## Description
   
   I created a replication from local database (`test`) to remote new database (`http://docker.for.mac.local:9292/test`). I gave it a hostname that was bad. After erroring out, the replication record changed to `localhost:5864/test` and now the edit page things I'm replicating locally but wont let me save any changes because it thinks I'm replicating to itself (invalid).
   
   
   ## Steps to Reproduce
   
   1. Create a database with one record
   2. Replicate to a bad hostname
   3. Refresh the replication page
   
   ## Expected Behaviour
   
   Failed replication that retries
   
   ## Your Environment
   
   [TIP]:  # ( Include as many relevant details about your environment as possible. )
   [TIP]:  # ( You can paste the output of curl http://YOUR-COUCHDB:5984/ here. )
   
   * CouchDB Version used: latest docker
   * Browser name and version: chrome latest
   * Operating System and version: macos latest, otherwise docker latest
   
   ## Additional context
   
   ```
   pouchdb_1   | [notice] 2019-07-23T04:17:33.305945Z nonode@nohost <0.1071.0> 435d4a6f97 localhost:5984 172.18.0.1 admin GET /_replicator/cf0cd4e6dd92cb3646d642115a002182 200 ok 10
   pouchdb_1   | [notice] 2019-07-23T04:17:40.934630Z nonode@nohost <0.567.0> e1f2c8f2b4 0.0.0.0:5984 172.18.0.1 undefined GET /_active_tasks 401 ok 1
   pouchdb_1   | [notice] 2019-07-23T04:17:50.155310Z nonode@nohost <0.1071.0> 2d74918a43 localhost:5984 172.18.0.1 admin GET /_utils/ 304 ok 3
   pouchdb_1   | [notice] 2019-07-23T04:17:50.176553Z nonode@nohost <0.1071.0> 7fb61f43a3 localhost:5984 172.18.0.1 admin GET /_utils/dashboard.assets/css/styles.89dbadd64e69e0df7653.css 304 ok 4
   pouchdb_1   | [notice] 2019-07-23T04:17:50.409778Z nonode@nohost <0.1071.0> a2acb86a0f localhost:5984 172.18.0.1 admin GET / 200 ok 1
   pouchdb_1   | [notice] 2019-07-23T04:17:50.419012Z nonode@nohost <0.1071.0> 54ae075633 localhost:5984 172.18.0.1 admin GET / 200 ok 1
   pouchdb_1   | [notice] 2019-07-23T04:17:50.421124Z nonode@nohost <0.1089.0> dfdf4d3978 localhost:5984 172.18.0.1 admin GET /_session 200 ok 1
   pouchdb_1   | [notice] 2019-07-23T04:17:50.452824Z nonode@nohost <0.1089.0> cd8f437b03 localhost:5984 172.18.0.1 admin GET /_utils/dashboard.assets/img/couchdb-logo.png 304 ok 3
   pouchdb_1   | [notice] 2019-07-23T04:17:50.631995Z nonode@nohost <0.1089.0> 1746fb6c92 localhost:5984 172.18.0.1 admin GET /_scheduler/jobs 200 ok 2
   pouchdb_1   | [notice] 2019-07-23T04:17:50.642843Z nonode@nohost <0.1089.0> 92b92f6930 localhost:5984 172.18.0.1 admin GET /_all_dbs 200 ok 3
   pouchdb_1   | [notice] 2019-07-23T04:17:50.706904Z nonode@nohost <0.1089.0> b74213fa41 localhost:5984 172.18.0.1 admin GET /_replicator/_all_docs?include_docs=true&limit=100 200 ok 6
   pouchdb_1   | [notice] 2019-07-23T04:17:50.710850Z nonode@nohost <0.1071.0> c9e84c3cd4 localhost:5984 172.18.0.1 admin GET /_scheduler/docs?include_docs=true 200 ok 4
   pouchdb_1   | [notice] 2019-07-23T04:17:50.729521Z nonode@nohost <0.1071.0> 1614d2270b localhost:5984 172.18.0.1 admin GET /_scheduler/jobs 200 ok 1
   pouchdb_1   | [notice] 2019-07-23T04:17:50.812717Z nonode@nohost <0.1071.0> 3a6ffc9639 localhost:5984 172.18.0.1 admin GET /_utils/dashboard.assets/img/couchdb-logo.png 200 ok 8
   pouchdb_1   | [notice] 2019-07-23T04:17:56.668162Z nonode@nohost <0.567.0> 7f83ecd0e9 0.0.0.0:5984 172.18.0.1 undefined GET /_active_tasks 401 ok 1
   pouchdb_1   | [notice] 2019-07-23T04:18:13.465605Z nonode@nohost <0.567.0> 6b0773696a 0.0.0.0:5984 172.18.0.1 undefined GET /_active_tasks 401 ok 1
   pouchdb_1   | [notice] 2019-07-23T04:18:19.895356Z nonode@nohost <0.370.0> -------- couch_replicator_scheduler: Job {"2813286e386a8db17c3aa9c7ac7222ad","+continuous"} started as <0.14881.0>
   pouchdb_1   | [notice] 2019-07-23T04:18:24.532628Z nonode@nohost <0.14944.0> b91c094563 localhost:5984 127.0.0.1 undefined POST /_session 200 ok 1
   pouchdb_1   | [notice] 2019-07-23T04:18:24.553092Z nonode@nohost <0.14944.0> 51a8b8cba1 localhost:5984 127.0.0.1 admin GET /test/ 200 ok 19
   pouchdb_1   | [error] 2019-07-23T04:18:24.564399Z nonode@nohost <0.14881.0> -------- throw:{db_not_found,<<"could not open http://docker.for.mac.localhost:9292/test/">>}: Replication 2813286e386a8db17c3aa9c7ac7222ad+continuous failed to start "http://localhost:5984/test/" -> "http://docker.for.mac.localhost:9292/test/" doc <<"shards/a0000000-bfffffff/_replicator.1563854786">>:<<"cf0cd4e6dd92cb3646d642115a002182">> stack:[{couch_replicator_api_wrap,db_open,4,[{file,"src/couch_replicator_api_wrap.erl"},{line,114}]},{couch_replicator_scheduler_job,init_state,1,[{file,"src/couch_replicator_scheduler_job.erl"},{line,584}]}]
   pouchdb_1   | [notice] 2019-07-23T04:18:26.306657Z nonode@nohost <0.567.0> cd1605cdb4 0.0.0.0:5984 172.18.0.1 undefined GET /_active_tasks 401 ok 1
   pouchdb_1   | [notice] 2019-07-23T04:18:41.721737Z nonode@nohost <0.567.0> 20a548f7c3 0.0.0.0:5984 172.18.0.1 undefined GET /_active_tasks 401 ok 1
   pouchdb_1   | [notice] 2019-07-23T04:18:56.980503Z nonode@nohost <0.567.0> bfbffda5d9 0.0.0.0:5984 172.18.0.1 undefined GET /_active_tasks 401 ok 1
   pouchdb_1   | [notice] 2019-07-23T04:19:11.987051Z nonode@nohost <0.567.0> 78d94ce5f7 0.0.0.0:5984 172.18.0.1 undefined GET /_active_tasks 401 ok 1
   
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services