{"action":"created","issue":{"url":"https://api.github.com/repos/ozlerhakan/mongolastic/issues/13","repository_url":"https://api.github.com/repos/ozlerhakan/mongolastic","labels_url":"https://api.github.com/repos/ozlerhakan/mongolastic/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/ozlerhakan/mongolastic/issues/13/comments","events_url":"https://api.github.com/repos/ozlerhakan/mongolastic/issues/13/events","html_url":"https://github.com/ozlerhakan/mongolastic/issues/13","id":162909404,"number":13,"title":"Error with getting info from mongo","user":{"login":"nerotix","id":6172483,"avatar_url":"https://avatars.githubusercontent.com/u/6172483?v=3","gravatar_id":"","url":"https://api.github.com/users/nerotix","html_url":"https://github.com/nerotix","followers_url":"https://api.github.com/users/nerotix/followers","following_url":"https://api.github.com/users/nerotix/following{/other_user}","gists_url":"https://api.github.com/users/nerotix/gists{/gist_id}","starred_url":"https://api.github.com/users/nerotix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerotix/subscriptions","organizations_url":"https://api.github.com/users/nerotix/orgs","repos_url":"https://api.github.com/users/nerotix/repos","events_url":"https://api.github.com/users/nerotix/events{/privacy}","received_events_url":"https://api.github.com/users/nerotix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-29T12:10:09Z","updated_at":"2016-06-29T12:53:57Z","closed_at":null,"body":"```\r\n0 [main] INFO com.kodcu.config.FileConfiguration  - \r\nConfig Output:\r\n{elastic=Elastic{host='localhost', port=9300, dateFormat=null, longToString=false}, misc=Misc{batch=200, direction='me', dindex=Namespace{as='yapdns', name='yapdns'}, ctype=Namespace{as='dnsinfo', name='dnsinfo'}, dropDataset=true}, mongo=Mongo{host='localhost', port=27017, query='{}', auth=com.kodcu.config.yml.Auth@5577140b}}\r\n\r\n165 [main] INFO org.elasticsearch.plugins  - [Iron Man 2020] modules [], plugins [], sites []\r\n176 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [force_merge], type [fixed], size [1], queue_size [null]\r\n182 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [percolate], type [fixed], size [2], queue_size [1k]\r\n192 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [fetch_shard_started], type [scaling], min [1], size [4], keep_alive [5m]\r\n192 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [listener], type [fixed], size [1], queue_size [null]\r\n192 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [index], type [fixed], size [2], queue_size [200]\r\n193 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [refresh], type [scaling], min [1], size [1], keep_alive [5m]\r\n193 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [suggest], type [fixed], size [2], queue_size [1k]\r\n193 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [generic], type [cached], keep_alive [30s]\r\n194 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [warmer], type [scaling], min [1], size [1], keep_alive [5m]\r\n194 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [search], type [fixed], size [4], queue_size [1k]\r\n194 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [flush], type [scaling], min [1], size [1], keep_alive [5m]\r\n194 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [fetch_shard_store], type [scaling], min [1], size [4], keep_alive [5m]\r\n194 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [management], type [scaling], min [1], size [5], keep_alive [5m]\r\n194 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [get], type [fixed], size [2], queue_size [1k]\r\n194 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [bulk], type [fixed], size [2], queue_size [50]\r\n195 [main] DEBUG org.elasticsearch.threadpool  - [Iron Man 2020] creating thread_pool [snapshot], type [scaling], min [1], size [1], keep_alive [5m]\r\n525 [main] DEBUG org.elasticsearch.common.network  - configuration:\r\n\r\nlo\r\n        inet 127.0.0.1 netmask:255.0.0.0 scope:host\r\n        inet6 ::1 prefixlen:128 scope:host\r\n        UP LOOPBACK mtu:65536 index:1\r\n\r\nens33\r\n        inet 192.168.79.136 netmask:255.255.255.0 broadcast:192.168.79.255 scope:site\r\n        inet6 fe80::44ac:303c:270a:57cb prefixlen:64 scope:link\r\n        hardware 00:0C:29:31:1C:6E\r\n        UP MULTICAST mtu:1500 index:2\r\n\r\n545 [main] DEBUG org.elasticsearch.common.netty  - using gathering [true]\r\n577 [main] DEBUG org.elasticsearch.client.transport  - [Iron Man 2020] node_sampler_interval[5s]\r\n595 [main] DEBUG org.elasticsearch.netty.channel.socket.nio.SelectorUtil  - Using select timeout of 500\r\n595 [main] DEBUG org.elasticsearch.netty.channel.socket.nio.SelectorUtil  - Epoll-bug workaround enabled = false\r\n616 [main] DEBUG org.elasticsearch.client.transport  - [Iron Man 2020] adding address [{#transport#-1}{127.0.0.1}{localhost/127.0.0.1:9300}]\r\n646 [main] DEBUG org.elasticsearch.transport.netty  - [Iron Man 2020] connected to node [{#transport#-1}{127.0.0.1}{localhost/127.0.0.1:9300}]\r\n675 [main] DEBUG org.elasticsearch.transport.netty  - [Iron Man 2020] connected to node [{Main Elastic}{OWIZkFPKRa-BpIu4pAjV8w}{127.0.0.1}{localhost/127.0.0.1:9300}{master=true}]\r\n721 [main] INFO org.mongodb.driver.cluster  - Cluster created with settings {hosts=[localhost:27017], mode=MULTIPLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='5000 ms', maxWaitQueueSize=500}\r\n722 [main] INFO org.mongodb.driver.cluster  - Adding discovered server localhost:27017 to client view of cluster\r\n767 [main] DEBUG org.mongodb.driver.cluster  - Updating cluster description to  {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING}]\r\n789 [main] INFO org.mongodb.driver.cluster  - No server chosen by ReadPreferenceServerSelector{readPreference=primaryPreferred} from cluster description ClusterDescription{type=UNKNOWN, connectionMode=MULTIPLE, all=[ServerDescription{address=localhost:27017, type=UNKNOWN, state=CONNECTING}]}. Waiting for 5000 ms before timing out\r\n884 [cluster-ClusterId{value='5772bbf5a886531ce72d0726', description='null'}-localhost:27017] DEBUG org.mongodb.driver.connection  - Closing connection connectionId{localValue:1}\r\n885 [cluster-ClusterId{value='5772bbf5a886531ce72d0726', description='null'}-localhost:27017] INFO org.mongodb.driver.cluster  - Exception in monitor thread while connecting to server localhost:27017\r\ncom.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=PLAIN, userName='admin', source='yapdns', password=<hidden>, mechanismProperties={}}\r\n    at com.mongodb.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:61)\r\n    at com.mongodb.connection.InternalStreamConnectionInitializer.authenticateAll(InternalStreamConnectionInitializer.java:99)\r\n    at com.mongodb.connection.InternalStreamConnectionInitializer.initialize(InternalStreamConnectionInitializer.java:44)\r\n    at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115)\r\n    at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:128)\r\n    at java.lang.Thread.run(Thread.java:745)\r\nCaused by: com.mongodb.MongoCommandException: Command failed with error 59: 'no such cmd: saslStart' on server localhost:27017. The full response is { \"ok\" : 0.0, \"errmsg\" : \"no such cmd: saslStart\", \"code\" : 59, \"bad cmd\" : { \"saslStart\" : 1, \"mechanism\" : \"PLAIN\", \"payload\" : { \"$binary\" : \"YWRtaW4AYWRtaW4AYWRtaW4xMjM=\", \"$type\" : \"0\" } } }\r\n    at com.mongodb.connection.CommandHelper.createCommandFailureException(CommandHelper.java:170)\r\n    at com.mongodb.connection.CommandHelper.receiveCommandResult(CommandHelper.java:123)\r\n    at com.mongodb.connection.CommandHelper.executeCommand(CommandHelper.java:32)\r\n    at com.mongodb.connection.SaslAuthenticator.sendSaslStart(SaslAuthenticator.java:95)\r\n    at com.mongodb.connection.SaslAuthenticator.authenticate(SaslAuthenticator.java:45)\r\n    ... 5 more\r\n891 [cluster-ClusterId{value='5772bbf5a886531ce72d0726', description='null'}-localhost:27017] DEBUG org.mongodb.driver.cluster  - Updating cluster description to  {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=PLAIN, userName='admin', source='yapdns', password=<hidden>, mechanismProperties={}}}, caused by {com.mongodb.MongoCommandException: Command failed with error 59: 'no such cmd: saslStart' on server localhost:27017. The full response is { \"ok\" : 0.0, \"errmsg\" : \"no such cmd: saslStart\", \"code\" : 59, \"bad cmd\" : { \"saslStart\" : 1, \"mechanism\" : \"PLAIN\", \"payload\" : { \"$binary\" : \"YWRtaW4AYWRtaW4AYWRtaW4xMjM=\", \"$type\" : \"0\" } } }}}]\r\n1396 [cluster-ClusterId{value='5772bbf5a886531ce72d0726', description='null'}-localhost:27017] DEBUG org.mongodb.driver.connection  - Closing connection connectionId{localValue:2}\r\n1901 [cluster-ClusterId{value='5772bbf5a886531ce72d0726', description='null'}-localhost:27017] DEBUG org.mongodb.driver.connection  - Closing connection connectionId{localValue:3}\r\n2406 [cluster-ClusterId{value='5772bbf5a886531ce72d0726', description='null'}-localhost:27017] DEBUG org.mongodb.driver.connection  - Closing connection connectionId{localValue:4}\r\n2910 [cluster-ClusterId{value='5772bbf5a886531ce72d0726', description='null'}-localhost:27017] DEBUG org.mongodb.driver.connection  - Closing connection connectionId{localValue:5}\r\n3418 [cluster-ClusterId{value='5772bbf5a886531ce72d0726', description='null'}-localhost:27017] DEBUG org.mongodb.driver.connection  - Closing connection connectionId{localValue:6}\r\n3922 [cluster-ClusterId{value='5772bbf5a886531ce72d0726', description='null'}-localhost:27017] DEBUG org.mongodb.driver.connection  - Closing connection connectionId{localValue:7}\r\n4427 [cluster-ClusterId{value='5772bbf5a886531ce72d0726', description='null'}-localhost:27017] DEBUG org.mongodb.driver.connection  - Closing connection connectionId{localValue:8}\r\n4931 [cluster-ClusterId{value='5772bbf5a886531ce72d0726', description='null'}-localhost:27017] DEBUG org.mongodb.driver.connection  - Closing connection connectionId{localValue:9}\r\n5435 [cluster-ClusterId{value='5772bbf5a886531ce72d0726', description='null'}-localhost:27017] DEBUG org.mongodb.driver.connection  - Closing connection connectionId{localValue:10}\r\n5791 [main] INFO com.kodcu.main.Mongolastic  - Load duration: 5790ms\r\nException in thread \"main\" com.mongodb.MongoTimeoutException: Timed out after 5000 ms while waiting for a server that matches ReadPreferenceServerSelector{readPreference=primaryPreferred}. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSecurityException: Exception authenticating MongoCredential{mechanism=PLAIN, userName='admin', source='yapdns', password=<hidden>, mechanismProperties={}}}, caused by {com.mongodb.MongoCommandException: Command failed with error 59: 'no such cmd: saslStart' on server localhost:27017. The full response is { \"ok\" : 0.0, \"errmsg\" : \"no such cmd: saslStart\", \"code\" : 59, \"bad cmd\" : { \"saslStart\" : 1, \"mechanism\" : \"PLAIN\", \"payload\" : { \"$binary\" : \"YWRtaW4AYWRtaW4AYWRtaW4xMjM=\", \"$type\" : \"0\" } } }}}]\r\n    at com.mongodb.connection.BaseCluster.createTimeoutException(BaseCluster.java:369)\r\n    at com.mongodb.connection.BaseCluster.selectServer(BaseCluster.java:101)\r\n    at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.<init>(ClusterBinding.java:75)\r\n    at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.<init>(ClusterBinding.java:71)\r\n    at com.mongodb.binding.ClusterBinding.getReadConnectionSource(ClusterBinding.java:63)\r\n    at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:201)\r\n    at com.mongodb.operation.CountOperation.execute(CountOperation.java:206)\r\n    at com.mongodb.operation.CountOperation.execute(CountOperation.java:53)\r\n    at com.mongodb.Mongo.execute(Mongo.java:772)\r\n    at com.mongodb.Mongo$2.execute(Mongo.java:759)\r\n    at com.mongodb.MongoCollectionImpl.count(MongoCollectionImpl.java:185)\r\n    at com.mongodb.MongoCollectionImpl.count(MongoCollectionImpl.java:170)\r\n    at com.kodcu.provider.MongoToElasticProvider.getCount(MongoToElasticProvider.java:33)\r\n    at com.kodcu.provider.Provider.transfer(Provider.java:17)\r\n    at com.kodcu.main.Mongolastic.proceedService(Mongolastic.java:61)\r\n    at java.util.Optional.ifPresent(Optional.java:159)\r\n    at com.kodcu.main.Mongolastic.start(Mongolastic.java:50)\r\n    at com.kodcu.main.Mongolastic.main(Mongolastic.java:38)\r\n```\r\n\r\nKeep stumbling across this error, this is what my yaml file looks like: \r\n\r\n```\r\nmisc:\r\n    dindex:\r\n        name: yapdns\r\n        as: yapdns\r\n    ctype:\r\n        name: dnsinfo\r\n        as: dnsinfo\r\n    direction: me\r\nmongo:\r\n    host: localhost\r\n    port: 27017\r\n    auth:\r\n        user: admin\r\n        pwd: \"xxxxxx\"\r\n        source: yapdns\r\n        mechanism: plain\r\nelastic:\r\n    host: localhost\r\nport: 9300\r\n```\r\n\r\nAnd I think the settings are correct. Could it be a compatibility issue?"},"comment":{"url":"https://api.github.com/repos/ozlerhakan/mongolastic/issues/comments/229346752","html_url":"https://github.com/ozlerhakan/mongolastic/issues/13#issuecomment-229346752","issue_url":"https://api.github.com/repos/ozlerhakan/mongolastic/issues/13","id":229346752,"user":{"login":"ozlerhakan","id":1964927,"avatar_url":"https://avatars.githubusercontent.com/u/1964927?v=3","gravatar_id":"","url":"https://api.github.com/users/ozlerhakan","html_url":"https://github.com/ozlerhakan","followers_url":"https://api.github.com/users/ozlerhakan/followers","following_url":"https://api.github.com/users/ozlerhakan/following{/other_user}","gists_url":"https://api.github.com/users/ozlerhakan/gists{/gist_id}","starred_url":"https://api.github.com/users/ozlerhakan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozlerhakan/subscriptions","organizations_url":"https://api.github.com/users/ozlerhakan/orgs","repos_url":"https://api.github.com/users/ozlerhakan/repos","events_url":"https://api.github.com/users/ozlerhakan/events{/privacy}","received_events_url":"https://api.github.com/users/ozlerhakan/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T12:53:57Z","updated_at":"2016-06-29T12:53:57Z","body":"Hi @nerotix ,\r\n\r\nThank you for letting this issue out. Could I have your mongo configuration?\r\n\r\nThis is not related about the issue but the indention of the elastic part is also not correct, I think, It should be:\r\n\r\n ```\r\n....\r\nelastic:\r\n    host: localhost\r\n    port: 9300\r\n```"}}
{"actor":{"display_login":"ozlerhakan"}}