Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't use 'local' database through mongos #572

Open
kud1 opened this issue Nov 24, 2015 · 0 comments
Open

can't use 'local' database through mongos #572

kud1 opened this issue Nov 24, 2015 · 0 comments

Comments

@kud1
Copy link

kud1 commented Nov 24, 2015

I get the following output from ES when trying to add a mongodb river to an elasticsearch machine, Could someone tell me what's wrong. My ES version is 1.4.2, river version is 2.0.9, mongodb version is 3.0.4.

[2015-11-24 17:30:30,576][INFO ][cluster.metadata ] [Vibraxas] [_river] creating index, cause [auto(index api)], shards [1]/[1], mappings [datatype_river]
[2015-11-24 17:30:30,670][INFO ][cluster.metadata ] [Vibraxas] [_river] update_mapping datatype_river
[2015-11-24 17:30:30,675][TRACE][org.elasticsearch.river.mongodb.MongoDBRiver] Initializing river : [datatype_river]
[2015-11-24 17:30:30,676][TRACE][river.mongodb ] Parse river settings for datatype_river
[2015-11-24 17:30:30,676][TRACE][river.mongodb ] mongoServersSettings: [{port=30000, host=10.105.50.73}, {port=30000, host=10.148.68.159}]
[2015-11-24 17:30:30,676][TRACE][river.mongodb ] Server: 10.105.50.73 - 30000
[2015-11-24 17:30:30,676][TRACE][river.mongodb ] Server: 10.148.68.159 - 30000
[2015-11-24 17:30:30,676][TRACE][river.mongodb ] mongoOptionsSettings: {secondary_read_preference=true}
[2015-11-24 17:30:30,678][INFO ][org.elasticsearch.river.mongodb.MongoDBRiver] MongoDB River Plugin - version[2.0.9] - hash[73ddea5] - time[2015-04-06T21:16:46Z]
[2015-11-24 17:30:30,678][INFO ][river.mongodb.util ] setRiverStatus called with datatype_river - RUNNING
[2015-11-24 17:30:30,686][INFO ][cluster.metadata ] [Vibraxas] [_river] update_mapping datatype_river
[2015-11-24 17:30:30,688][INFO ][org.elasticsearch.river.mongodb.MongoDBRiver] River datatype_river startup pending
[2015-11-24 17:30:30,689][TRACE][org.elasticsearch.river.mongodb.StatusChecker] About to start river: datatype_river
[2015-11-24 17:30:30,689][INFO ][org.elasticsearch.river.mongodb.MongoDBRiver] Starting river datatype_river
[2015-11-24 17:30:30,690][INFO ][org.elasticsearch.river.mongodb.MongoDBRiver] MongoDB options: secondaryreadpreference [true], drop_collection [false], include_collection [], throttlesize [5000], gridfs [false], filter [null], db [pomdev], collection [datatype], script [null], indexing to [pomdev]/[datatype]
[2015-11-24 17:30:30,690][DEBUG][org.elasticsearch.river.mongodb.MongoDBRiver] Using MongoDB server(s): host [10.105.50.73], port [30000]
[2015-11-24 17:30:30,690][DEBUG][org.elasticsearch.river.mongodb.MongoDBRiver] Using MongoDB server(s): host [10.148.68.159], port [30000]
[2015-11-24 17:30:30,713][INFO ][cluster.metadata ] [Vibraxas] [pomdev] creating index, cause [api], shards [5]/[1], mappings []
[2015-11-24 17:30:30,826][TRACE][org.elasticsearch.river.mongodb.MongoConfigProvider] Found admin database
[2015-11-24 17:30:30,827][TRACE][org.elasticsearch.river.mongodb.MongoConfigProvider] About to execute: { "serverStatus" : 1 , "asserts" : 0 , "backgroundFlushing" : 0 , "connections" : 0 , "cursors" : 0 , "dur" : 0 , "extra_info" : 0 , "globalLock" : 0 , "indexCounters" : 0 , "locks" : 0 , "metrics" : 0 , "network" : 0 , "opcounters" : 0 , "opcountersRepl" : 0 , "recordStats" : 0 , "repl" : 0}
[2015-11-24 17:30:30,874][INFO ][cluster.metadata ] [Vibraxas] [_river] update_mapping datatype_river
[2015-11-24 17:30:31,268][WARN ][org.elasticsearch.river.mongodb.MongoDBRiver] Failed to start river datatype_river
com.mongodb.CommandFailureException: { "serverUsed" : "10.105.50.73:30000" , "$err" : "can't use 'local' database through mongos" , "code" : 13644}
at com.mongodb.CommandResult.getException(CommandResult.java:76)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:140)
at com.mongodb.DBPort$SaslAuthenticator.authenticate(DBPort.java:899)
at com.mongodb.DBPort.authenticate(DBPort.java:432)
at com.mongodb.DBPort.checkAuth(DBPort.java:443)
at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:289)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:269)
at com.mongodb.DBCollectionImpl.find(DBCollectionImpl.java:84)
at com.mongodb.DB.command(DB.java:320)
at com.mongodb.DB.command(DB.java:299)
at com.mongodb.DB.command(DB.java:388)
at org.elasticsearch.river.mongodb.MongoConfigProvider.isMongos(MongoConfigProvider.java:90)
at org.elasticsearch.river.mongodb.MongoConfigProvider.call(MongoConfigProvider.java:42)
at org.elasticsearch.river.mongodb.MongoDBRiver$1.run(MongoDBRiver.java:259)
at java.lang.Thread.run(Thread.java:745)
[2015-11-24 17:30:31,268][INFO ][river.mongodb.util ] setRiverStatus called with datatype_river - START_FAILED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant