[ 
https://issues.apache.org/jira/browse/COUCHDB-3035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15322552#comment-15322552
 ] 

Robert Newson commented on COUCHDB-3035:
----------------------------------------

Appears to work as expected;

➜  ~ curl foo:bar@localhost:15984/_replicator -Hcontent-type:application/json 
-d 
'{"source":"http://foo:bar@localhost:5984/db1","target":"http://foo:bar@localhost:5984/db2","create_target":true}'
{"ok":true,"id":"7f2837d1a6e5ac5a08d84d4d16000c57","rev":"1-4b04a1bae50d7c129386e4567c1828bc"}
➜  ~  curl foo:bar@localhost:15984/_replicator/7f2837d1a6e5ac5a08d84d4d16000c57
{"_id":"7f2837d1a6e5ac5a08d84d4d16000c57","_rev":"3-dcc898b10c5d4c6724aac4883a2bfe92","source":"http://foo:bar@localhost:5984/db1","target":"http://foo:bar@localhost:5984/db2","create_target":true,"owner":"foo","_replication_state":"completed","_replication_state_time":"2016-06-09T14:59:22+01:00","_replication_id":"2450a5caf2d74da1edfd83ce776ae3e6","_replication_stats":{"revisions_checked":2,"missing_revisions_found":2,"docs_read":2,"docs_written":2,"changes_pending":null,"doc_write_failures":0,"checkpointed_source_seq":"2-g1AAAAGXeJzLYWBg4MhgTmHgz8tPSTV2MDQy1zMAQsMcoARTIkOS_P___7MSGXAqSVIAkkn2hFQ5gFTFg1RlMCcy5AJ57GmJRuYpKQYpDJyleSmpaZl5qSm49SeA9NcTsCWPBUgyNAApoML5CJtMEpMTk01NibIJYsYCiBn7Cdt2AKLyPsg2JrBtBkbJaUZpppi6CJj0AGISyIdZAPLca-o"}}
➜  ~

> _replicator will crash when POST is used instead of PUT
> -------------------------------------------------------
>
>                 Key: COUCHDB-3035
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-3035
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Replication
>            Reporter: Robert Kowalski
>            Priority: Blocker
>
> to replicate (pun intended) the bug, do a POST to _replicator, e.g. with 
> something like this doc:
> {{code}}
> {
> "_id": "my_rep2",
> "source": "https://blergotron.cloudant.com/animaldb/";,
> "target": "http://localhost:5984/letmecrash";,
> "continuous": false,
> "create_target": true,
> "user_ctx":
> { "name": "YOU", "roles": [ "_admin" ] }
> }
> {{code}}
> {{code}}
> (15:44:27) [robert@tequila-work] ~/apache/couchdb (master) $ cat 
> dev/logs/node1.log
> 2016-06-09 15:41:44.731 [info] Undefined <0.7.0> Application lager started on 
> node '[email protected]'
> 2016-06-09 15:41:44.731 [info] Undefined <0.7.0> Application couch_log_lager 
> started on node '[email protected]'
> 2016-06-09 15:41:44.732 [info] Undefined <0.7.0> Application bear started on 
> node '[email protected]'
> 2016-06-09 15:41:44.733 [info] Undefined <0.7.0> Application global_changes 
> started on node '[email protected]'
> 2016-06-09 15:41:44.733 [info] Undefined <0.7.0> Application couch_plugins 
> started on node '[email protected]'
> 2016-06-09 15:41:44.740 [info] Undefined <0.7.0> Application runtime_tools 
> started on node '[email protected]'
> 2016-06-09 15:41:44.741 [info] Undefined <0.7.0> Application ddoc_cache 
> started on node '[email protected]'
> 2016-06-09 15:41:44.741 [info] Undefined <0.7.0> Application couch_index 
> started on node '[email protected]'
> 2016-06-09 15:41:44.741 [info] Undefined <0.7.0> Application couch_mrview 
> started on node '[email protected]'
> 2016-06-09 15:41:44.741 [info] Undefined <0.7.0> Application snappy started 
> on node '[email protected]'
> 2016-06-09 15:41:44.741 [info] Undefined <0.7.0> Application jiffy started on 
> node '[email protected]'
> 2016-06-09 15:41:44.742 [info] Undefined <0.7.0> Application mango started on 
> node '[email protected]'
> 2016-06-09 15:41:44.759 [notice] [email protected] <0.332.0> Maybe starting 
> 'my_rep3333' as I'm the owner
> 2016-06-09 15:41:44.759 [notice] [email protected] <0.332.0> Maybe starting 
> 'a34f9831f789d29e12d5485be2008f6e' as I'm the owner
> 2016-06-09 15:41:44.774 [notice] [email protected] <0.332.0> Maybe starting 
> 'a34f9831f789d29e12d5485be2009ae8' as I'm the owner
> 2016-06-09 15:41:44.774 [notice] [email protected] <0.332.0> Attempting to 
> start replication `8300eaa40782f58cac3e2456f94f2003+create_target` (document 
> `a34f9831f789d29e12d5485be2009ae8`).
> 2016-06-09 15:41:44.776 [notice] [email protected] <0.332.0> Delaying 
> replication `8300eaa40782f58cac3e2456f94f2003+create_target` start by 1 
> seconds.
> 2016-06-09 15:41:44.776 [notice] [email protected] <0.332.0> Maybe starting 
> 'my_rep2' as I'm the owner
> 2016-06-09 15:41:44.776 [notice] [email protected] <0.332.0> Maybe starting 
> 'my_rep300' as I'm the owner
> 2016-06-09 15:41:44.797 [notice] [email protected] <0.332.0> Maybe starting 
> 'my_rep3' as I'm the owner
> 2016-06-09 15:41:44.894 [notice] [email protected] <0.298.0> 37f4744987 
> 127.0.0.1 127.0.0.1:15984 undefined GET / 200 ok 1
> 2016-06-09 15:41:45.780 [notice] [email protected] <0.492.0> starting new 
> replication `8300eaa40782f58cac3e2456f94f2003+create_target` at <0.525.0> 
> (`https://rockoartischocko.cloudant.com/animaldb/` -> 
> `http://localhost:5984/testPOST/`)
> 2016-06-09 15:41:45.902 [notice] [email protected] <0.299.0> 2c884c444d 
> 127.0.0.1 127.0.0.1:15984 undefined GET / 200 ok 0
> 2016-06-09 15:41:45.906 [notice] [email protected] <0.223.0> 127.0.0.1 - - PUT 
> /_nodes/[email protected] 409
> 2016-06-09 15:41:45.906 [error] [email protected] <0.223.0> httpd 409 error 
> response:
>  {"error":"conflict","reason":"Document update conflict."}
> 2016-06-09 15:41:45.908 [notice] [email protected] <0.300.0> 6956c24114 
> 127.0.0.1 127.0.0.1:15984 undefined HEAD /_users 200 ok 1
> 2016-06-09 15:41:45.910 [notice] [email protected] <0.301.0> fb768090c4 
> 127.0.0.1 127.0.0.1:15984 undefined HEAD /_replicator 200 ok 1
> 2016-06-09 15:41:45.943 [notice] [email protected] <0.302.0> cb5ab0e398 
> 127.0.0.1 127.0.0.1:15984 undefined HEAD /_global_changes 200 ok 32
> 2016-06-09 15:41:46.018 [notice] [email protected] <0.525.0> Retrying PUT 
> request to http://localhost:5984/testPOST/ in 0.25 seconds due to error 
> {conn_failed,{error,econnrefused}}
> 2016-06-09 15:41:46.273 [notice] [email protected] <0.525.0> Retrying PUT 
> request to http://localhost:5984/testPOST/ in 0.5 seconds due to error 
> {conn_failed,{error,econnrefused}}
> 2016-06-09 15:41:46.777 [notice] [email protected] <0.525.0> Retrying PUT 
> request to http://localhost:5984/testPOST/ in 1.0 seconds due to error 
> {conn_failed,{error,econnrefused}}
> 2016-06-09 15:41:47.782 [notice] [email protected] <0.525.0> Retrying PUT 
> request to http://localhost:5984/testPOST/ in 2.0 seconds due to error 
> {conn_failed,{error,econnrefused}}
> 2016-06-09 15:41:49.785 [notice] [email protected] <0.525.0> Retrying PUT 
> request to http://localhost:5984/testPOST/ in 4.0 seconds due to error 
> {conn_failed,{error,econnrefused}}
> 2016-06-09 15:41:53.787 [notice] [email protected] <0.525.0> Retrying PUT 
> request to http://localhost:5984/testPOST/ in 8.0 seconds due to error 
> {conn_failed,{error,econnrefused}}
> 2016-06-09 15:42:01.792 [notice] [email protected] <0.525.0> Retrying PUT 
> request to http://localhost:5984/testPOST/ in 16.0 seconds due to error 
> {conn_failed,{error,econnrefused}}
> 2016-06-09 15:42:17.795 [notice] [email protected] <0.525.0> Retrying PUT 
> request to http://localhost:5984/testPOST/ in 32.0 seconds due to error 
> {conn_failed,{error,econnrefused}}
> 2016-06-09 15:42:49.799 [notice] [email protected] <0.525.0> Retrying PUT 
> request to http://localhost:5984/testPOST/ in 64.0 seconds due to error 
> {conn_failed,{error,econnrefused}}
> 2016-06-09 15:43:06.454 [notice] [email protected] <0.1964.0> 215af648ce 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:43:08.968 [warning] [email protected] <0.2010.0> no record of 
> user tester
> 2016-06-09 15:43:08.968 [notice] [email protected] <0.2010.0> e26591c4f0 
> 127.0.0.1 127.0.0.1:5984 undefined GET /_session 200 ok 1
> 2016-06-09 15:43:09.383 [warning] [email protected] <0.2013.0> no record of 
> user tester
> 2016-06-09 15:43:09.383 [notice] [email protected] <0.2013.0> 56c902dc56 
> 127.0.0.1 127.0.0.1:5984 undefined GET /_session 200 ok 1
> 2016-06-09 15:43:09.666 [warning] [email protected] <0.2014.0> no record of 
> user tester
> 2016-06-09 15:43:09.666 [notice] [email protected] <0.2014.0> 2e9898d75e 
> 127.0.0.1 127.0.0.1:5984 undefined GET /_session 200 ok 0
> 2016-06-09 15:43:09.765 [warning] [email protected] <0.2015.0> no record of 
> user tester
> 2016-06-09 15:43:09.768 [notice] [email protected] <0.2015.0> d33d25432e 
> 127.0.0.1 127.0.0.1:5984 undefined GET /_all_dbs?_=1465479789244 200 ok 3
> 2016-06-09 15:43:09.827 [warning] [email protected] <0.2017.0> no record of 
> user tester
> 2016-06-09 15:43:09.827 [warning] [email protected] <0.2016.0> no record of 
> user tester
> 2016-06-09 15:43:09.828 [notice] [email protected] <0.2016.0> a467eee59e 
> 127.0.0.1 127.0.0.1:5984 undefined GET /_global_changes 200 ok 1
> 2016-06-09 15:43:09.860 [notice] [email protected] <0.2017.0> 9d14625fb7 
> 127.0.0.1 127.0.0.1:5984 undefined GET /_metadata 200 ok 33
> 2016-06-09 15:43:09.870 [warning] [email protected] <0.2034.0> no record of 
> user tester
> 2016-06-09 15:43:09.870 [warning] [email protected] <0.2033.0> no record of 
> user tester
> 2016-06-09 15:43:09.870 [warning] [email protected] <0.2035.0> no record of 
> user tester
> 2016-06-09 15:43:09.870 [warning] [email protected] <0.2036.0> no record of 
> user tester
> 2016-06-09 15:43:09.871 [notice] [email protected] <0.2033.0> 785db5642c 
> 127.0.0.1 127.0.0.1:5984 undefined GET /_users 200 ok 2
> 2016-06-09 15:43:09.872 [notice] [email protected] <0.2036.0> c88de471b1 
> 127.0.0.1 127.0.0.1:5984 undefined GET /_replicator 200 ok 2
> 2016-06-09 15:43:09.876 [warning] [email protected] <0.2037.0> no record of 
> user tester
> 2016-06-09 15:43:09.877 [warning] [email protected] <0.2038.0> no record of 
> user tester
> 2016-06-09 15:43:09.879 [warning] [email protected] <0.2039.0> no record of 
> user tester
> 2016-06-09 15:43:09.879 [warning] [email protected] <0.2040.0> no record of 
> user tester
> 2016-06-09 15:43:09.941 [notice] [email protected] <0.2034.0> 18c553e029 
> 127.0.0.1 127.0.0.1:5984 undefined GET /animaldb 200 ok 71
> 2016-06-09 15:43:09.953 [notice] [email protected] <0.2037.0> 94b4d0f309 
> 127.0.0.1 127.0.0.1:5984 undefined GET /blerg 200 ok 77
> 2016-06-09 15:43:09.956 [notice] [email protected] <0.2035.0> 073c5a9af1 
> 127.0.0.1 127.0.0.1:5984 undefined GET /animaldbremotefromcloudantwithaddress 
> 200 ok 86
> 2016-06-09 15:43:09.973 [warning] [email protected] <0.2041.0> no record of 
> user tester
> 2016-06-09 15:43:09.973 [warning] [email protected] <0.2042.0> no record of 
> user tester
> 2016-06-09 15:43:09.973 [warning] [email protected] <0.2044.0> no record of 
> user tester
> 2016-06-09 15:43:09.982 [notice] [email protected] <0.2038.0> 8f67c438b8 
> 127.0.0.1 127.0.0.1:5984 undefined GET /fauxton-selenium-tests 200 ok 106
> 2016-06-09 15:43:09.988 [warning] [email protected] <0.2047.0> no record of 
> user tester
> 2016-06-09 15:43:10.015 [notice] [email protected] <0.2039.0> f3b8f353bc 
> 127.0.0.1 127.0.0.1:5984 undefined GET /repli 200 ok 136
> 2016-06-09 15:43:10.056 [notice] [email protected] <0.2040.0> fc7c29d9cd 
> 127.0.0.1 127.0.0.1:5984 undefined GET /rocko1 200 ok 177
> 2016-06-09 15:43:10.117 [notice] [email protected] <0.2042.0> 9277f5f4a2 
> 127.0.0.1 127.0.0.1:5984 undefined GET /test 200 ok 145
> 2016-06-09 15:43:10.117 [notice] [email protected] <0.2041.0> 322de56a9c 
> 127.0.0.1 127.0.0.1:5984 undefined GET /rocko2 200 ok 145
> 2016-06-09 15:43:10.131 [notice] [email protected] <0.2044.0> bc0e1cba9f 
> 127.0.0.1 127.0.0.1:5984 undefined GET /testremotefromcloudant1 200 ok 158
> 2016-06-09 15:43:10.134 [notice] [email protected] <0.2047.0> 4773a774e6 
> 127.0.0.1 127.0.0.1:5984 undefined GET /testremotefromcloudant12 200 ok 146
> 2016-06-09 15:43:11.518 [notice] [email protected] <0.2050.0> d4515a80ed 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:43:13.661 [warning] [email protected] <0.2563.0> no record of 
> user tester
> 2016-06-09 15:43:13.662 [warning] [email protected] <0.2564.0> no record of 
> user tester
> 2016-06-09 15:43:13.662 [warning] [email protected] <0.2565.0> no record of 
> user tester
> 2016-06-09 15:43:13.663 [notice] [email protected] <0.2563.0> 1e67e241c3 
> 127.0.0.1 127.0.0.1:5984 undefined GET 
> /_replicator/_all_docs?startkey=%22_design%2F%22&endkey=%22_design0%22&include_docs=true&limit=501
>  200 ok 2
> 2016-06-09 15:43:13.663 [notice] [email protected] <0.2565.0> e67ddc21e2 
> 127.0.0.1 127.0.0.1:5984 undefined GET /_all_dbs 304 ok 1
> 2016-06-09 15:43:13.664 [notice] [email protected] <0.2564.0> 68a9f4f2ef 
> 127.0.0.1 127.0.0.1:5984 undefined GET 
> /_replicator/_all_docs?limit=6&include_docs=true 200 ok 3
> 2016-06-09 15:43:13.667 [warning] [email protected] <0.2566.0> no record of 
> user tester
> 2016-06-09 15:43:13.669 [notice] [email protected] <0.2566.0> cbef17baab 
> 127.0.0.1 127.0.0.1:5984 undefined GET 
> /_replicator/_all_docs?startkey=%22_design%2F%22&endkey=%22_design0%22&include_docs=true&limit=501
>  200 ok 2
> 2016-06-09 15:43:16.684 [notice] [email protected] <0.2673.0> 1f754b3d10 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:43:21.887 [notice] [email protected] <0.2746.0> 11226a72cc 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:43:27.081 [notice] [email protected] <0.2844.0> afd3f8b66d 
> 127.0.0.1 undefined undefined GET /_up 200 ok 1
> 2016-06-09 15:43:32.034 [notice] [email protected] <0.2929.0> e539f64ccc 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:43:36.803 [notice] [email protected] <0.3013.0> 059e708409 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:43:41.473 [warning] [email protected] <0.3083.0> no record of 
> user tester
> 2016-06-09 15:43:41.473 [notice] [email protected] <0.3083.0> 12aeb912af 
> 127.0.0.1 127.0.0.1:5984 undefined GET /_uuids?count=1 200 ok 1
> 2016-06-09 15:43:41.577 [warning] [email protected] <0.3084.0> no record of 
> user tester
> 2016-06-09 15:43:41.577 [notice] [email protected] <0.3084.0> 0397294780 
> 127.0.0.1 127.0.0.1:5984 undefined GET /_uuids?count=1 200 ok 1
> 2016-06-09 15:43:41.646 [notice] [email protected] <0.3085.0> f81916717d 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:43:46.628 [notice] [email protected] <0.3175.0> 18da7da9d1 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:43:51.573 [notice] [email protected] <0.3261.0> 96b2918f1f 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:43:53.804 [notice] [email protected] <0.3297.0> ef1aca9411 
> 127.0.0.1 localhost:5984 undefined PUT /testPOST/ 400 ok 0
> 2016-06-09 15:43:53.806 [notice] [email protected] <0.3298.0> cf6ac7fa15 
> 127.0.0.1 localhost:5984 undefined GET /testPOST/ 404 ok 1
> 2016-06-09 15:43:53.807 [error] [email protected] <0.525.0> 
> throw:{db_not_found,<<"http://localhost:5984/testPOST/";>>}: Replication 
> failed to start for args 
> {rep,{"8300eaa40782f58cac3e2456f94f2003","+create_target"},{httpdb,"https://rockoartischocko.cloudant.com/animaldb/",nil,[{"Accept","application/json"},{"User-Agent","CouchDB-Replicator/be1dedb"}],30000,[{is_ssl,true},{socket_options,[{keepalive,true},{nodelay,false}]},{ssl_options,[{depth,3},{verify,0}]}],10,250,nil,20},{httpdb,"http://localhost:5984/testPOST/",nil,[{"Accept","application/json"},{"User-Agent","CouchDB-Replicator/be1dedb"}],30000,[{socket_options,[{keepalive,true},{nodelay,false}]}],10,250,nil,20},[{checkpoint_interval,30000},{connection_timeout,30000},{continuous,false},{create_target,true},{http_connections,20},{retries,10},{socket_options,[{keepalive,true},{nodelay,false}]},{use_checkpoints,true},{worker_batch_size,500},{worker_processes,4}],{user_ctx,<<"YOU">>,[<<"_admin">>],undefined},db,nil,<<"a34f9831f789d29e12d5485be2009ae8">>,<<"shards/60000000-7fffffff/_replicator.1464768936">>}:
>  
> [{couch_replicator_api_wrap,db_open,3,[{file,"src/couch_replicator_api_wrap.erl"},{line,108}]},{couch_replicator,init_state,1,[{file,"src/couch_replicator.erl"},{line,649}]},{couch_replicator,do_init,1,[{file,"src/couch_replicator.erl"},{line,270}]},{couch_replicator,handle_info,2,[{file,"src/couch_replicator.erl"},{line,430}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,681}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]
> 2016-06-09 15:43:53.982 [error] [email protected] <0.332.0> Error in 
> replication `8300eaa40782f58cac3e2456f94f2003+create_target` (triggered by 
> document `a34f9831f789d29e12d5485be2009ae8`): {db_not_found,<<"could not open 
> http://localhost:5984/testPOST/";>>}
> Restarting replication in 5 seconds.
> 2016-06-09 15:43:56.365 [notice] [email protected] <0.3347.0> 7c9e4f9965 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:43:58.985 [notice] [email protected] <0.3339.0> starting new 
> replication `8300eaa40782f58cac3e2456f94f2003+create_target` at <0.3447.0> 
> (`https://rockoartischocko.cloudant.com/animaldb/` -> 
> `http://localhost:5984/testPOST/`)
> 2016-06-09 15:43:59.202 [notice] [email protected] <0.3414.0> 52926338e4 
> 127.0.0.1 localhost:5984 undefined PUT /testPOST/ 400 ok 0
> 2016-06-09 15:43:59.203 [notice] [email protected] <0.3415.0> 9f486f310d 
> 127.0.0.1 localhost:5984 undefined GET /testPOST/ 404 ok 0
> 2016-06-09 15:43:59.204 [error] [email protected] <0.3447.0> 
> throw:{db_not_found,<<"http://localhost:5984/testPOST/";>>}: Replication 
> failed to start for args 
> {rep,{"8300eaa40782f58cac3e2456f94f2003","+create_target"},{httpdb,"https://rockoartischocko.cloudant.com/animaldb/",nil,[{"Accept","application/json"},{"User-Agent","CouchDB-Replicator/be1dedb"}],30000,[{is_ssl,true},{socket_options,[{keepalive,true},{nodelay,false}]},{ssl_options,[{depth,3},{verify,0}]}],10,250,nil,20},{httpdb,"http://localhost:5984/testPOST/",nil,[{"Accept","application/json"},{"User-Agent","CouchDB-Replicator/be1dedb"}],30000,[{socket_options,[{keepalive,true},{nodelay,false}]}],10,250,nil,20},[{checkpoint_interval,30000},{connection_timeout,30000},{continuous,false},{create_target,true},{http_connections,20},{retries,10},{socket_options,[{keepalive,true},{nodelay,false}]},{use_checkpoints,true},{worker_batch_size,500},{worker_processes,4}],{user_ctx,<<"YOU">>,[<<"_admin">>],undefined},db,nil,<<"a34f9831f789d29e12d5485be2009ae8">>,<<"shards/60000000-7fffffff/_replicator.1464768936">>}:
>  
> [{couch_replicator_api_wrap,db_open,3,[{file,"src/couch_replicator_api_wrap.erl"},{line,108}]},{couch_replicator,init_state,1,[{file,"src/couch_replicator.erl"},{line,649}]},{couch_replicator,do_init,1,[{file,"src/couch_replicator.erl"},{line,270}]},{couch_replicator,handle_info,2,[{file,"src/couch_replicator.erl"},{line,430}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,681}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]
> 2016-06-09 15:43:59.351 [error] [email protected] <0.332.0> Error in 
> replication `8300eaa40782f58cac3e2456f94f2003+create_target` (triggered by 
> document `a34f9831f789d29e12d5485be2009ae8`): {db_not_found,<<"could not open 
> http://localhost:5984/testPOST/";>>}
> Restarting replication in 10 seconds.
> 2016-06-09 15:44:01.191 [notice] [email protected] <0.3453.0> d8c38bf782 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:44:06.252 [notice] [email protected] <0.3539.0> 6ece94a8d5 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:44:09.352 [notice] [email protected] <0.3455.0> starting new 
> replication `8300eaa40782f58cac3e2456f94f2003+create_target` at <0.3626.0> 
> (`https://rockoartischocko.cloudant.com/animaldb/` -> 
> `http://localhost:5984/testPOST/`)
> 2016-06-09 15:44:09.530 [notice] [email protected] <0.3593.0> 4352a22fc2 
> 127.0.0.1 localhost:5984 undefined PUT /testPOST/ 400 ok 0
> 2016-06-09 15:44:09.532 [notice] [email protected] <0.3594.0> 994cc8a31e 
> 127.0.0.1 localhost:5984 undefined GET /testPOST/ 404 ok 1
> 2016-06-09 15:44:09.532 [error] [email protected] <0.3626.0> 
> throw:{db_not_found,<<"http://localhost:5984/testPOST/";>>}: Replication 
> failed to start for args 
> {rep,{"8300eaa40782f58cac3e2456f94f2003","+create_target"},{httpdb,"https://rockoartischocko.cloudant.com/animaldb/",nil,[{"Accept","application/json"},{"User-Agent","CouchDB-Replicator/be1dedb"}],30000,[{is_ssl,true},{socket_options,[{keepalive,true},{nodelay,false}]},{ssl_options,[{depth,3},{verify,0}]}],10,250,nil,20},{httpdb,"http://localhost:5984/testPOST/",nil,[{"Accept","application/json"},{"User-Agent","CouchDB-Replicator/be1dedb"}],30000,[{socket_options,[{keepalive,true},{nodelay,false}]}],10,250,nil,20},[{checkpoint_interval,30000},{connection_timeout,30000},{continuous,false},{create_target,true},{http_connections,20},{retries,10},{socket_options,[{keepalive,true},{nodelay,false}]},{use_checkpoints,true},{worker_batch_size,500},{worker_processes,4}],{user_ctx,<<"YOU">>,[<<"_admin">>],undefined},db,nil,<<"a34f9831f789d29e12d5485be2009ae8">>,<<"shards/60000000-7fffffff/_replicator.1464768936">>}:
>  
> [{couch_replicator_api_wrap,db_open,3,[{file,"src/couch_replicator_api_wrap.erl"},{line,108}]},{couch_replicator,init_state,1,[{file,"src/couch_replicator.erl"},{line,649}]},{couch_replicator,do_init,1,[{file,"src/couch_replicator.erl"},{line,270}]},{couch_replicator,handle_info,2,[{file,"src/couch_replicator.erl"},{line,430}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,681}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]
> 2016-06-09 15:44:09.688 [error] [email protected] <0.332.0> Error in 
> replication `8300eaa40782f58cac3e2456f94f2003+create_target` (triggered by 
> document `a34f9831f789d29e12d5485be2009ae8`): {db_not_found,<<"could not open 
> http://localhost:5984/testPOST/";>>}
> Restarting replication in 20 seconds.
> 2016-06-09 15:44:11.466 [notice] [email protected] <0.3633.0> cbf896456d 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:44:16.225 [notice] [email protected] <0.3716.0> 5b457f47f0 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:44:20.368 [warning] [email protected] <0.3801.0> no record of 
> user tester
> 2016-06-09 15:44:20.426 [notice] [email protected] <0.3801.0> e88d4e9533 
> 127.0.0.1 127.0.0.1:5984 undefined POST /_replicator/ 202 ok 58
> 2016-06-09 15:44:20.426 [notice] [email protected] <0.332.0> Maybe starting 
> 'my_rep2' as I'm the owner
> 2016-06-09 15:44:20.426 [notice] [email protected] <0.332.0> Maybe starting 
> 'my_rep300' as I'm the owner
> 2016-06-09 15:44:20.427 [notice] [email protected] <0.332.0> Maybe starting 
> '5441851dd9cddfedf039b3c6c9002193' as I'm the owner
> 2016-06-09 15:44:20.427 [notice] [email protected] <0.332.0> Attempting to 
> start replication `c0afe6be49dc68a51814029f34dc8b7a+create_target` (document 
> `5441851dd9cddfedf039b3c6c9002193`).
> 2016-06-09 15:44:20.427 [notice] [email protected] <0.332.0> Delaying 
> replication `c0afe6be49dc68a51814029f34dc8b7a+create_target` start by 1 
> seconds.
> 2016-06-09 15:44:20.577 [warning] [email protected] <0.3802.0> no record of 
> user tester
> 2016-06-09 15:44:20.578 [warning] [email protected] <0.3803.0> no record of 
> user tester
> 2016-06-09 15:44:20.578 [warning] [email protected] <0.3804.0> no record of 
> user tester
> 2016-06-09 15:44:20.579 [notice] [email protected] <0.3804.0> b82816f3d0 
> 127.0.0.1 127.0.0.1:5984 undefined GET /_all_dbs 304 ok 1
> 2016-06-09 15:44:20.579 [notice] [email protected] <0.3802.0> 3162623bec 
> 127.0.0.1 127.0.0.1:5984 undefined GET 
> /_replicator/_all_docs?startkey=%22_design%2F%22&endkey=%22_design0%22&include_docs=true&limit=501
>  200 ok 2
> 2016-06-09 15:44:20.580 [notice] [email protected] <0.3803.0> abc695cf90 
> 127.0.0.1 127.0.0.1:5984 undefined GET 
> /_replicator/_all_docs?limit=6&include_docs=true 200 ok 3
> 2016-06-09 15:44:20.589 [warning] [email protected] <0.3806.0> no record of 
> user tester
> 2016-06-09 15:44:20.591 [notice] [email protected] <0.3806.0> cac3b9f2a1 
> 127.0.0.1 127.0.0.1:5984 undefined GET 
> /_replicator/_all_docs?startkey=%22_design%2F%22&endkey=%22_design0%22&include_docs=true&limit=501
>  200 ok 2
> 2016-06-09 15:44:21.240 [notice] [email protected] <0.3807.0> e416bfd33d 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:44:21.429 [notice] [email protected] <0.3844.0> starting new 
> replication `c0afe6be49dc68a51814029f34dc8b7a+create_target` at <0.3923.0> 
> (`https://rockoartischocko.cloudant.com/animaldb/` -> 
> `http://localhost:5984/letscrash/`)
> 2016-06-09 15:44:21.652 [notice] [email protected] <0.3808.0> eb6eef026d 
> 127.0.0.1 localhost:5984 undefined PUT /letscrash/ 500 ok 42
> 2016-06-09 15:44:21.652 [notice] [email protected] <0.3923.0> Retrying PUT 
> request to http://localhost:5984/letscrash/ in 0.25 seconds due to error 
> {code,500}
> 2016-06-09 15:44:21.904 [notice] [email protected] <0.3809.0> e224cf0258 
> 127.0.0.1 localhost:5984 undefined PUT /letscrash/ 412 ok 0
> 2016-06-09 15:44:21.906 [notice] [email protected] <0.3810.0> 3434b3c177 
> 127.0.0.1 localhost:5984 undefined GET /letscrash/ 200 ok 1
> 2016-06-09 15:44:21.952 [notice] [email protected] <0.3811.0> da5073d1c1 
> 127.0.0.1 localhost:5984 undefined GET /letscrash/ 200 ok 2
> 2016-06-09 15:44:22.081 [notice] [email protected] <0.3816.0> e0477c3835 
> 127.0.0.1 localhost:5984 undefined GET 
> /letscrash/_local/c0afe6be49dc68a51814029f34dc8b7a 404 ok 1
> 2016-06-09 15:44:22.082 [notice] [email protected] <0.3818.0> 36a1ddba58 
> 127.0.0.1 localhost:5984 undefined GET 
> /letscrash/_local/43d127ce50b3d3b04ed495067993317b 404 ok 1
> 2016-06-09 15:44:22.084 [notice] [email protected] <0.3819.0> e8d52c982b 
> 127.0.0.1 localhost:5984 undefined GET 
> /letscrash/_local/c457d2cab6bcb5a9179ae3bfa98f5b58 404 ok 1
> 2016-06-09 15:44:22.130 [notice] [email protected] <0.3859.0> 2fcfb04204 
> 127.0.0.1 localhost:5984 undefined POST /letscrash/_revs_diff 200 ok 2
> 2016-06-09 15:44:22.131 [notice] [email protected] <0.3874.0> f16e39ab7e 
> 127.0.0.1 localhost:5984 undefined POST /letscrash/_revs_diff 200 ok 1
> 2016-06-09 15:44:22.131 [notice] [email protected] <0.3873.0> 45d7737704 
> 127.0.0.1 localhost:5984 undefined POST /letscrash/_revs_diff 200 ok 1
> 2016-06-09 15:44:22.131 [notice] [email protected] <0.3892.0> cf665f68b2 
> 127.0.0.1 localhost:5984 undefined POST /letscrash/_revs_diff 200 ok 1
> 2016-06-09 15:44:22.179 [notice] [email protected] <0.3922.0> 0e74a57558 
> 127.0.0.1 localhost:5984 undefined POST /letscrash/_bulk_docs 201 ok 3
> 2016-06-09 15:44:22.268 [notice] [email protected] <0.3923.0> Replication 
> `"c0afe6be49dc68a51814029f34dc8b7a+create_target"` is using:
>       4 worker processes
>       a worker batch size of 500
>       20 HTTP connections
>       a connection timeout of 30000 milliseconds
>       10 retries per request
>       socket options are: [{keepalive,true},{nodelay,false}]
> 2016-06-09 15:44:22.282 [notice] [email protected] <0.3923.0> Document 
> `5441851dd9cddfedf039b3c6c9002193` triggered replication 
> `c0afe6be49dc68a51814029f34dc8b7a+create_target`
> 2016-06-09 15:44:22.283 [notice] [email protected] <0.332.0> Maybe starting 
> 'my_rep2' as I'm the owner
> 2016-06-09 15:44:22.284 [notice] [email protected] <0.332.0> Maybe starting 
> 'my_rep300' as I'm the owner
> 2016-06-09 15:44:22.284 [notice] [email protected] <0.332.0> Maybe starting 
> '5441851dd9cddfedf039b3c6c9002193' as I'm the owner
> 2016-06-09 15:44:22.285 [notice] [email protected] <0.3929.0> a2819d895c 
> 127.0.0.1 localhost:5984 undefined POST /letscrash/_revs_diff 200 ok 1
> 2016-06-09 15:44:22.339 [notice] [email protected] <0.4000.0> 9b9591ff2e 
> 127.0.0.1 localhost:5984 undefined POST /letscrash/_bulk_docs 201 ok 2
> 2016-06-09 15:44:22.340 [notice] [email protected] <0.4001.0> cfa8f370dc 
> 127.0.0.1 localhost:5984 undefined POST /letscrash/_bulk_docs 201 ok 2
> 2016-06-09 15:44:22.340 [notice] [email protected] <0.4015.0> ec4dd4d33b 
> 127.0.0.1 localhost:5984 undefined POST /letscrash/_bulk_docs 201 ok 2
> 2016-06-09 15:44:22.543 [notice] [email protected] <0.4029.0> 1e9bf14774 
> 127.0.0.1 localhost:5984 undefined POST /letscrash/_bulk_docs 201 ok 3
> 2016-06-09 15:44:22.544 [notice] [email protected] <0.4030.0> dfcbc9c2d9 
> 127.0.0.1 localhost:5984 undefined POST /letscrash/_ensure_full_commit 201 ok > 0
> 2016-06-09 15:44:22.585 [notice] [email protected] <0.3923.0> recording a 
> checkpoint for `https://rockoartischocko.cloudant.com/animaldb/` -> 
> `http://localhost:5984/letscrash/` at source update_seq 
> <<"18-g1AAAAGjeJzLYWBgYMlgTmGQT0lKzi9KdUhJMtPLSs1LLUst0kvOyS9NScwr0ctLLckBKmRKZEiy____f1YGcyJ3LlCAPck4zdggKY2wdlQrLHBbkeQAJJPqobYwQWyxNE02STQgbAKqLaa4bcljAZIMDUAKaNF-JJtMU0zMkywIm4Jqkwkhmw5AbAL7iRlsk7GlqUWakRFhU7IA9kaINw">>
> 2016-06-09 15:44:22.649 [notice] [email protected] <0.4031.0> aa05595ec5 
> 127.0.0.1 localhost:5984 undefined PUT 
> /letscrash/_local/c0afe6be49dc68a51814029f34dc8b7a 202 ok 2
> 2016-06-09 15:44:23.010 [notice] [email protected] <0.3923.0> Replication 
> `c0afe6be49dc68a51814029f34dc8b7a+create_target` finished (triggered by 
> document `5441851dd9cddfedf039b3c6c9002193`)
> 2016-06-09 15:44:23.011 [notice] [email protected] <0.332.0> Maybe starting 
> 'my_rep2' as I'm the owner
> 2016-06-09 15:44:23.011 [notice] [email protected] <0.332.0> Maybe starting 
> 'my_rep300' as I'm the owner
> 2016-06-09 15:44:23.011 [notice] [email protected] <0.332.0> Maybe starting 
> '5441851dd9cddfedf039b3c6c9002193' as I'm the owner
> 2016-06-09 15:44:26.401 [notice] [email protected] <0.4346.0> 25031852f5 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> 2016-06-09 15:44:29.690 [notice] [email protected] <0.3635.0> starting new 
> replication `8300eaa40782f58cac3e2456f94f2003+create_target` at <0.4433.0> 
> (`https://rockoartischocko.cloudant.com/animaldb/` -> 
> `http://localhost:5984/testPOST/`)
> 2016-06-09 15:44:29.948 [notice] [email protected] <0.4400.0> 0fddf1384a 
> 127.0.0.1 localhost:5984 undefined PUT /testPOST/ 400 ok 0
> 2016-06-09 15:44:29.949 [notice] [email protected] <0.4401.0> 81d776f121 
> 127.0.0.1 localhost:5984 undefined GET /testPOST/ 404 ok 0
> 2016-06-09 15:44:29.950 [error] [email protected] <0.4433.0> 
> throw:{db_not_found,<<"http://localhost:5984/testPOST/";>>}: Replication 
> failed to start for args 
> {rep,{"8300eaa40782f58cac3e2456f94f2003","+create_target"},{httpdb,"https://rockoartischocko.cloudant.com/animaldb/",nil,[{"Accept","application/json"},{"User-Agent","CouchDB-Replicator/be1dedb"}],30000,[{is_ssl,true},{socket_options,[{keepalive,true},{nodelay,false}]},{ssl_options,[{depth,3},{verify,0}]}],10,250,nil,20},{httpdb,"http://localhost:5984/testPOST/",nil,[{"Accept","application/json"},{"User-Agent","CouchDB-Replicator/be1dedb"}],30000,[{socket_options,[{keepalive,true},{nodelay,false}]}],10,250,nil,20},[{checkpoint_interval,30000},{connection_timeout,30000},{continuous,false},{create_target,true},{http_connections,20},{retries,10},{socket_options,[{keepalive,true},{nodelay,false}]},{use_checkpoints,true},{worker_batch_size,500},{worker_processes,4}],{user_ctx,<<"YOU">>,[<<"_admin">>],undefined},db,nil,<<"a34f9831f789d29e12d5485be2009ae8">>,<<"shards/60000000-7fffffff/_replicator.1464768936">>}:
>  
> [{couch_replicator_api_wrap,db_open,3,[{file,"src/couch_replicator_api_wrap.erl"},{line,108}]},{couch_replicator,init_state,1,[{file,"src/couch_replicator.erl"},{line,649}]},{couch_replicator,do_init,1,[{file,"src/couch_replicator.erl"},{line,270}]},{couch_replicator,handle_info,2,[{file,"src/couch_replicator.erl"},{line,430}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,615}]},{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,681}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]
> 2016-06-09 15:44:30.030 [error] [email protected] <0.332.0> Error in 
> replication `8300eaa40782f58cac3e2456f94f2003+create_target` (triggered by 
> document `a34f9831f789d29e12d5485be2009ae8`): {db_not_found,<<"could not open 
> http://localhost:5984/testPOST/";>>}
> Restarting replication in 40 seconds.
> 2016-06-09 15:44:31.290 [notice] [email protected] <0.4440.0> d6bd35b6d9 
> 127.0.0.1 undefined undefined GET /_up 200 ok 0
> (15:44:35) [robert@tequila-work] ~/apache/couchdb (master) $
> {{code}}
> a PUT with id works, it crashes on POSTs without ids



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to