{"action":"created","issue":{"url":"https://api.github.com/repos/richardwilly98/elasticsearch-river-mongodb/issues/453","labels_url":"https://api.github.com/repos/richardwilly98/elasticsearch-river-mongodb/issues/453/labels{/name}","comments_url":"https://api.github.com/repos/richardwilly98/elasticsearch-river-mongodb/issues/453/comments","events_url":"https://api.github.com/repos/richardwilly98/elasticsearch-river-mongodb/issues/453/events","html_url":"https://github.com/richardwilly98/elasticsearch-river-mongodb/issues/453","id":54943955,"number":453,"title":"no data imported at all","user":{"login":"israelidanny","id":1970424,"avatar_url":"https://avatars.githubusercontent.com/u/1970424?v=3","gravatar_id":"","url":"https://api.github.com/users/israelidanny","html_url":"https://github.com/israelidanny","followers_url":"https://api.github.com/users/israelidanny/followers","following_url":"https://api.github.com/users/israelidanny/following{/other_user}","gists_url":"https://api.github.com/users/israelidanny/gists{/gist_id}","starred_url":"https://api.github.com/users/israelidanny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/israelidanny/subscriptions","organizations_url":"https://api.github.com/users/israelidanny/orgs","repos_url":"https://api.github.com/users/israelidanny/repos","events_url":"https://api.github.com/users/israelidanny/events{/privacy}","received_events_url":"https://api.github.com/users/israelidanny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-20T21:40:30Z","updated_at":"2015-01-28T14:55:33Z","closed_at":null,"body":"It *seems* that everything is just fine, but I can't get it to import anything. The server credentials work if I connect using the mongo command. The database has entries.\r\n\r\nI'm trying to run this with elasticsearch version 1.3.7, and elasticsearch-river-mongodb 2.0.2 \r\n- EDIT: I also tried elasticsearch v.1.3.5 with river-mongodb v.2.0.2. Same results.\r\n- EDIT: Exact same results with elasticsearch v.1.4.2 and river-mongodb v.2.0.5\r\n\r\nI set up the replica set:\r\n```\r\ncurl -XPUT 'http://localhost:9200/_river/orthodox/_meta' -d '{ \r\n  \"index\": {\r\n    \"name\": \"orthodox\",\r\n    \"type\": \"page\"\r\n  },\r\n  \"mongodb\": {\r\n    \"db\": \"orthodox\",\r\n    \"servers\": [\r\n      {\r\n        \"port\": \"27017\",\r\n        \"host\": \"10.131.190.177\"\r\n      }\r\n    ],\r\n    \"collection\": \"aposPages\"\r\n  },\r\n  \"type\": \"mongodb\"\r\n}'\r\n```\r\n\r\nI also tried this alternative syntax (since I don't really have multiple servers, just one mongodb instance):\r\n```\r\ncurl -XPUT 'http://localhost:9200/_river/orthodox/_meta' -d '{ \r\n  \"index\": {\r\n    \"name\": \"orthodox\",\r\n    \"type\": \"page\"\r\n  },\r\n  \"mongodb\": {\r\n    \"db\": \"orthodox\",\r\n    \"gridfs\": \"false\",\r\n    \"host\": \"10.131.190.177\",\r\n    \"port\": \"27017\",\r\n    \"collection\": \"aposPages\"\r\n  },\r\n  \"type\": \"mongodb\"\r\n}'```\r\n\r\nThis is what I see in the log:\r\n```\r\n[2015-01-20 16:46:24,851][INFO ][node                     ] [Supernalia] version[1.3.7], pid[10554], build[3042293/2014-12-16T13:59:32Z]\r\n[2015-01-20 16:46:24,852][INFO ][node                     ] [Supernalia] initializing ...\r\n[2015-01-20 16:46:24,947][INFO ][plugins                  ] [Supernalia] loaded [mongodb-river, mapper-attachments, elasticsearch-analysis-hebrew], sites [head, river-mongodb]\r\n[2015-01-20 16:46:28,825][INFO ][node                     ] [Supernalia] initialized\r\n[2015-01-20 16:46:28,826][INFO ][node                     ] [Supernalia] starting ...\r\n[2015-01-20 16:46:28,915][INFO ][transport                ] [Supernalia] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/178.62.75.32:9300]}\r\n[2015-01-20 16:46:28,942][INFO ][discovery                ] [Supernalia] elasticsearch/W0sNdYZDQ9yn1KvdOE2aNQ\r\n[2015-01-20 16:46:32,012][INFO ][cluster.service          ] [Supernalia] new_master [Supernalia][W0sNdYZDQ9yn1KvdOE2aNQ][es.haredisociety.org][inet[/178.62.75.32:9300]], reason: zen-disco-join (elected_as_master)\r\n[2015-01-20 16:46:32,054][INFO ][gateway                  ] [Supernalia] recovered [0] indices into cluster_state\r\n[2015-01-20 16:46:32,055][INFO ][http                     ] [Supernalia] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/178.62.75.32:9200]}\r\n[2015-01-20 16:46:32,056][INFO ][node                     ] [Supernalia] started\r\n[2015-01-20 16:46:41,169][INFO ][cluster.metadata         ] [Supernalia] [_river] creating index, cause [auto(index api)], shards [1]/[1], mappings []\r\n[2015-01-20 16:46:41,780][INFO ][cluster.metadata         ] [Supernalia] [_river] update_mapping [orthodox] (dynamic)\r\n[2015-01-20 16:46:42,852][INFO ][org.elasticsearch.river.mongodb.MongoDBRiver] Starting river orthodox\r\n[2015-01-20 16:46:42,857][INFO ][river.mongodb.util       ] setRiverStatus called with orthodox - RUNNING\r\n[2015-01-20 16:46:42,864][INFO ][cluster.metadata         ] [Supernalia] [_river] update_mapping [orthodox] (dynamic)\r\n[2015-01-20 16:46:42,871][INFO ][org.elasticsearch.river.mongodb.MongoDBRiver] MongoDB River Plugin - version[2.0.2] - hash[6934ba1] - time[2014-11-08T11:44:40Z]\r\n[2015-01-20 16:46:42,871][INFO ][org.elasticsearch.river.mongodb.MongoDBRiver] starting mongodb stream. options: secondaryreadpreference [false], drop_collection [false], include_collection [], throttlesize [5000], gridfs [false], filter [null], db [orthodox], collection [aposPages], script [null], indexing to [orthodox]/[page]\r\n[2015-01-20 16:46:42,933][INFO ][cluster.metadata         ] [Supernalia] [orthodox] creating index, cause [api], shards [5]/[1], mappings []\r\n[2015-01-20 16:46:43,296][INFO ][river.mongodb            ] [Supernalia] Creating MongoClient for [[10.131.190.177:27017]]\r\n```\r\n\r\nFurther investigation shows this in `mongo.log`:\r\n```\r\n2015-01-20T18:28:15.150-0500 [initandlisten] connection accepted from 10.131.190.180:44164 #6 (6 connections now open)\r\n2015-01-20T18:28:15.184-0500 [conn6] command admin.$cmd command: isMaster { ismaster: 1 } keyUpdates:0 numYields:0  reslen:316 0ms\r\n2015-01-20T18:28:15.194-0500 [conn6] command admin.$cmd command: buildInfo { buildinfo: 1 } keyUpdates:0 numYields:0  reslen:699 0ms\r\n2015-01-20T18:28:15.199-0500 [conn6] end connection 10.131.190.180:44164 (5 connections now open)```\r\n\r\nIt seems that elasticsearch is connecting, but immediately disconnecting after less than a second, without any apparent error."},"comment":{"url":"https://api.github.com/repos/richardwilly98/elasticsearch-river-mongodb/issues/comments/71847170","html_url":"https://github.com/richardwilly98/elasticsearch-river-mongodb/issues/453#issuecomment-71847170","issue_url":"https://api.github.com/repos/richardwilly98/elasticsearch-river-mongodb/issues/453","id":71847170,"user":{"login":"berndbaechle","id":467239,"avatar_url":"https://avatars.githubusercontent.com/u/467239?v=3","gravatar_id":"","url":"https://api.github.com/users/berndbaechle","html_url":"https://github.com/berndbaechle","followers_url":"https://api.github.com/users/berndbaechle/followers","following_url":"https://api.github.com/users/berndbaechle/following{/other_user}","gists_url":"https://api.github.com/users/berndbaechle/gists{/gist_id}","starred_url":"https://api.github.com/users/berndbaechle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berndbaechle/subscriptions","organizations_url":"https://api.github.com/users/berndbaechle/orgs","repos_url":"https://api.github.com/users/berndbaechle/repos","events_url":"https://api.github.com/users/berndbaechle/events{/privacy}","received_events_url":"https://api.github.com/users/berndbaechle/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T14:55:33Z","updated_at":"2015-01-28T14:55:33Z","body":"I have exactly the same problem. My setup works with mongodb-river 2.0.0 and es 1.1.2. Since I updated to river version 2.0.2 and es 1.3.5 I run into the same problem."}}