{"action":"created","issue":{"url":"https://api.github.com/repos/richardwilly98/elasticsearch-river-mongodb/issues/492","labels_url":"https://api.github.com/repos/richardwilly98/elasticsearch-river-mongodb/issues/492/labels{/name}","comments_url":"https://api.github.com/repos/richardwilly98/elasticsearch-river-mongodb/issues/492/comments","events_url":"https://api.github.com/repos/richardwilly98/elasticsearch-river-mongodb/issues/492/events","html_url":"https://github.com/richardwilly98/elasticsearch-river-mongodb/issues/492","id":63083235,"number":492,"title":"Not creating type from a remote Mongo instance","user":{"login":"marlonoso","id":943121,"avatar_url":"https://avatars.githubusercontent.com/u/943121?v=3","gravatar_id":"","url":"https://api.github.com/users/marlonoso","html_url":"https://github.com/marlonoso","followers_url":"https://api.github.com/users/marlonoso/followers","following_url":"https://api.github.com/users/marlonoso/following{/other_user}","gists_url":"https://api.github.com/users/marlonoso/gists{/gist_id}","starred_url":"https://api.github.com/users/marlonoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marlonoso/subscriptions","organizations_url":"https://api.github.com/users/marlonoso/orgs","repos_url":"https://api.github.com/users/marlonoso/repos","events_url":"https://api.github.com/users/marlonoso/events{/privacy}","received_events_url":"https://api.github.com/users/marlonoso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-03-19T20:20:06Z","updated_at":"2015-03-25T19:35:57Z","closed_at":null,"body":"I'm hitting this issue when trying to sync documents from a remote Mongo instance:\r\nThis is my configuration:\r\n\r\ncurl -XPUT 'http://localhost:9200/_river/mongodb/_meta' -d '{\r\n\"type\": \"mongodb\",\r\n\"mongodb\": {\r\n\"servers\":\r\n[\r\n{ \"host\": \"a.some.public.ip\", \"port\": 27017 }\r\n],\r\n\"db\": \"social_client\",\r\n\"collection\": \"social_mention_event\"\r\n},\r\n\r\n\"index\": {\r\n  \"name\": \"client\",\r\n  \"type\": \"social\"\r\n}\r\n}'\r\n\r\n* Remote Mongo server does not use authentication\r\n* I can *telnet a.some.public.ip 27017* from ES host\r\n* I'm doing a *tcpdump port 27017* on a.some.public.ip\r\n* It shows a little traffic when restarting ES after setting the afore mentioned config. Then traffic stops\r\n* Meanwhile, ES logs:\r\n\r\n[2015-03-19 14:42:30,403][INFO ][http ] [Vampire by Night] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/my_es_host_ip:9200]}\r\n[2015-03-19 14:42:30,403][INFO ][node ] [Vampire by Night] started\r\n[2015-03-19 14:42:30,922][INFO ][gateway ] [Vampire by Night] recovered [2] indices into cluster_state\r\n[2015-03-19 14:42:31,439][INFO ][org.elasticsearch.river.mongodb.MongoDBRiver] MongoDB River Plugin - version[2.0.6] - hash[3c38a8a] - time[2015-03-10T03:06:51Z]\r\n[2015-03-19 14:42:31,441][INFO ][river.mongodb.util ] setRiverStatus called with mongodb - RUNNING\r\n[2015-03-19 14:42:31,450][INFO ][org.elasticsearch.river.mongodb.MongoDBRiver] River mongodb startup pending\r\n[2015-03-19 14:42:31,455][INFO ][org.elasticsearch.river.mongodb.MongoDBRiver] Starting river mongodb\r\n**[2015-03-19 14:42:31,456][INFO ][org.elasticsearch.river.mongodb.MongoDBRiver] MongoDB options: secondaryreadpreference [false], drop_collection [false], include_collection [], throttlesize [5000], gridfs [false], filter [null], db [social_client], collection [social_mention_event], script [null], indexing to [client]/[social]**\r\n[2015-03-19 14:42:31,458][INFO ][river.mongodb ] [Vampire by Night] Creating MongoClient for [[66.45.229.186:27017]]\r\n\r\nThen\r\n*curl -XGET 'http://localhost:9200/client/_mapping'*\r\nshows nothing\r\n*{\"client\":{\"mappings\":{}}}*\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/richardwilly98/elasticsearch-river-mongodb/issues/comments/86186071","html_url":"https://github.com/richardwilly98/elasticsearch-river-mongodb/issues/492#issuecomment-86186071","issue_url":"https://api.github.com/repos/richardwilly98/elasticsearch-river-mongodb/issues/492","id":86186071,"user":{"login":"marlonoso","id":943121,"avatar_url":"https://avatars.githubusercontent.com/u/943121?v=3","gravatar_id":"","url":"https://api.github.com/users/marlonoso","html_url":"https://github.com/marlonoso","followers_url":"https://api.github.com/users/marlonoso/followers","following_url":"https://api.github.com/users/marlonoso/following{/other_user}","gists_url":"https://api.github.com/users/marlonoso/gists{/gist_id}","starred_url":"https://api.github.com/users/marlonoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marlonoso/subscriptions","organizations_url":"https://api.github.com/users/marlonoso/orgs","repos_url":"https://api.github.com/users/marlonoso/repos","events_url":"https://api.github.com/users/marlonoso/events{/privacy}","received_events_url":"https://api.github.com/users/marlonoso/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T19:35:57Z","updated_at":"2015-03-25T19:35:57Z","body":"1. There is no difference, I masked the configuration on test script\r\n2. But now that real settings are visible: https://gist.github.com/marlonoso/8163f764231966a1103c#file-es-collect-debug-info-log (under marlon user)\r\n3. I didn't. ES is installed via zip"}}