elasticsearch-river-mongodb icon indicating copy to clipboard operation
elasticsearch-river-mongodb copied to clipboard

Cannot start river mongodb. Current status is IMPORT_FAILED

Open Repox opened this issue 10 years ago • 2 comments

After importing 12,754 documents I've suddenly recieved a load of these messages and importing stops:

[134]: index [members], type [member], id [526f9808edf2886a0a8b463a], message [MapperParsingException[object mapping for [member] tried to parse as object, but got EOF, has a concrete value been provided to it?]]
[135]: index [members], type [member], id [526f9808edf2886a0a8b463b], message [MapperParsingException[object mapping for [member] tried to parse as object, but got EOF, has a concrete value been provided to it?]]
[136]: index [members], type [member], id [526f9808edf2886a0a8b463c], message [MapperParsingException[object mapping for [member] tried to parse as object, but got EOF, has a concrete value been provided to it?]]
[137]: index [members], type [member], id [526f9808edf2886a0a8b463d], message [MapperParsingException[object mapping for [member] tried to parse as object, but got EOF, has a concrete value been provided to it?]]

Thinking that a restart of ES might work, I get this in the log:

[ERROR][org.elasticsearch.river.mongodb.MongoDBRiver] Cannot start river mongodb. Current status is IMPORT_FAILED

How can I fix this?

Repox avatar Mar 11 '14 14:03 Repox

You can delete the status.

 curl -XDELETE 'http://localhost:9200/_river/mongodb/_riverstatus'

In my case I went the "brute farce" way in deleting the status, the meta and the index I rivered into.

 curl -XDELETE 'http://localhost:9200/_river/mongodb/_meta'
 curl -XDELETE 'http://localhost:9200/<index>/<type>'

curl -XPUT 'http://localhost:9200/_river/mongodb/_meta' -d '{
.....
}'

And restart elastic.

Nomeasmo avatar Mar 25 '14 15:03 Nomeasmo

I am having the issue where the INITIAL_IMPORT_FAILED. Below is a portion of my log. I have deleted the meta and reinstated after stopping and starting Elasticsearch.

[2015-09-02 11:13:07,177][INFO ][node ] [Maynard Tiboldt] version[1.4.4], pid[10064], build[c88f77f/2015-02-19T13:05:36Z] [2015-09-02 11:13:07,178][INFO ][node ] [Maynard Tiboldt] initializing ... [2015-09-02 11:13:07,214][INFO ][plugins ] [Maynard Tiboldt] loaded [mapper-attachments, mongodb-river], sites [river-mongodb] [2015-09-02 11:13:08,352][INFO ][node ] [Shang-Chi] version[1.4.4], pid[10107], build[c88f77f/2015-02-19T13:05:36Z] [2015-09-02 11:13:08,352][INFO ][node ] [Shang-Chi] initializing ... [2015-09-02 11:13:08,395][INFO ][plugins ] [Shang-Chi] loaded [mapper-attachments, mongodb-river], sites [river-mongodb] [2015-09-02 11:13:10,783][TRACE][rest.action.mongodb ] [Shang-Chi] RestMongoDBRiverAction - baseUrl: /_river/mongodb [2015-09-02 11:13:10,877][INFO ][node ] [Shang-Chi] initialized [2015-09-02 11:13:10,877][INFO ][node ] [Shang-Chi] starting ... [2015-09-02 11:13:10,941][INFO ][transport ] [Shang-Chi] bound_address {inet[/127.0.0.1:9300]}, publish_address {inet[localhost/127.0.0.1:9300]} [2015-09-02 11:13:11,009][INFO ][discovery ] [Shang-Chi] elasticsearch/Lu5vRh9nR5S_vX6fMGoB7g [2015-09-02 11:13:14,780][INFO ][cluster.service ] [Shang-Chi] new_master [Shang-Chi][Lu5vRh9nR5S_vX6fMGoB7g][testserverforriver][inet[localhost/127.0.0.1:9300]], reason: zen-disco-join (elected_as_master) [2015-09-02 11:13:14,811][INFO ][http ] [Shang-Chi] bound_address {inet[/127.0.0.1:9200]}, publish_address {inet[localhost/127.0.0.1:9200]} [2015-09-02 11:13:14,811][INFO ][node ] [Shang-Chi] started [2015-09-02 11:13:15,374][INFO ][gateway ] [Shang-Chi] recovered [3] indices into cluster_state [2015-09-02 11:13:15,766][TRACE][org.elasticsearch.river.mongodb.MongoDBRiver] Initializing river : [river-mongodb] [2015-09-02 11:13:15,768][TRACE][river.mongodb ] Parse river settings for river-mongodb [2015-09-02 11:13:15,771][TRACE][river.mongodb ] mongoServersSettings: [{port=27017, host=server1}, {port=27017, host=server2}, {port=27017, host=server3}] [2015-09-02 11:13:15,771][TRACE][river.mongodb ] Server: server1 - 27017 [2015-09-02 11:13:15,772][TRACE][river.mongodb ] Server: server2 - 27017 [2015-09-02 11:13:15,772][TRACE][river.mongodb ] Server: server3 - 27017 [2015-09-02 11:13:15,784][TRACE][river.mongodb ] mongoOptionsSettings: {include_collection=Automation, skip_initial_import=true, secondary_read_preference=true} [2015-09-02 11:13:15,789][INFO ][org.elasticsearch.river.mongodb.MongoDBRiver] MongoDB River Plugin - version[2.0.9] - hash[73ddea5] - time[2015-04-06T21:16:46Z] [2015-09-02 11:13:15,791][ERROR][org.elasticsearch.river.mongodb.MongoDBRiver] Cannot start river river-mongodb. Current status is INITIAL_IMPORT_FAILED

Here is the -XPUT that I am using.

curl -XPUT "localhost:9200/_river/river-mongodb/_meta" -d '{ "type": "mongodb", "mongodb": { "servers": [ { "host": "server1", "port": "27017" }, { "host": "_server2", "port": "27017" }, { "host": "_server3*", "port": "27017" } ], "options": { "secondary_read_preference" : true, "include_collection": "Automation", "skip_initial_import" : "true" }, "credentials": [ { "db": "admin", "user": "admin", "password": "pswd" } ], "db": "Check", "collection": "Automation", "gridfs": false }, "index": { "name": "datacheck_index", "type": "Document" } }'

abauer1979 avatar Sep 02 '15 18:09 abauer1979