Reindex from remote error

Hello everybody.
I need to upgrade Elasticsearch version from 0.90.13 to 5.2.2.
I've created new index on another server to satisfy Elastic requirements.
When I trying to run reindex from remote, I getting the following error:
{
"error": {
"root_cause": [
{
"type": "status_exception",
"reason": "body={"error":"SearchPhaseExecutionException[Failed to execute phase [init_scan], all shards failed; shardFailures {[6n88qtDXQ-qnLGd4v14qMQ][cheaper_858][4]: SearchParseException[[cheaper_858][4]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"match_all\":{\"boost\":1.0}},\"_source\":true}]]]; nested: SearchParseException[[cheaper_858][4]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [No parser for element [_source]]]; }{[6n88qtDXQ-qnLGd4v14qMQ][cheaper_858][3]: SearchParseException[[cheaper_858][3]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"match_all\":{\"boost\":1.0}},\"_source\":true}]]]; nested: SearchParseException[[cheaper_858][3]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [No parser for element [_source]]]; }{[6n88qtDXQ-qnLGd4v14qMQ][cheaper_858][2]: SearchParseException[[cheaper_858][2]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"match_all\":{\"boost\":1.0}},\"_source\":true}]]]; nested: SearchParseException[[cheaper_858][2]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [No parser for element [_source]]]; }{[6n88qtDXQ-qnLGd4v14qMQ][cheaper_858][1]: SearchParseException[[cheaper_858][1]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"match_all\":{\"boost\":1.0}},\"_source\":true}]]]; nested: SearchParseException[[cheaper_858][1]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [No parser for element [_source]]]; }{[6n88qtDXQ-qnLGd4v14qMQ][cheaper_858][0]: SearchParseException[[cheaper_858][0]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"match_all\":{\"boost\":1.0}},\"_source\":true}]]]; nested: SearchParseException[[cheaper_858][0]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [No parser for element [_source]]]; }]","status":400}"
}
],
"type": "status_exception",
"reason": "/* same message here /",
"caused_by": {
"type": "response_exception",
"reason": "POST http://x.x.x.x:9200/cheaper_858/_search?size=1000&scroll=5m&fields=_parent%2C_routing%2C_ttl&search_type=scan: HTTP/1.1 400 Bad Request\n{"error":"SearchPhaseExecutionException[Failed to execute phase [init_scan], all shards failed; shardFailures {[6n88qtDXQ-qnLGd4v14qMQ][cheaper_858][4]: SearchParseException[[cheaper_858][4]: query[ConstantScore(
:)],from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"match_all\":{\"boost\":1.0}},\"_source\":true}]]]; nested: SearchParseException[[cheaper_858][4]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [No parser for element [_source]]]; }{[6n88qtDXQ-qnLGd4v14qMQ][cheaper_858][3]: SearchParseException[[cheaper_858][3]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"match_all\":{\"boost\":1.0}},\"_source\":true}]]]; nested: SearchParseException[[cheaper_858][3]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [No parser for element [_source]]]; }{[6n88qtDXQ-qnLGd4v14qMQ][cheaper_858][2]: SearchParseException[[cheaper_858][2]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"match_all\":{\"boost\":1.0}},\"_source\":true}]]]; nested: SearchParseException[[cheaper_858][2]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [No parser for element [_source]]]; }{[6n88qtDXQ-qnLGd4v14qMQ][cheaper_858][1]: SearchParseException[[cheaper_858][1]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"match_all\":{\"boost\":1.0}},\"_source\":true}]]]; nested: SearchParseException[[cheaper_858][1]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [No parser for element [_source]]]; }{[6n88qtDXQ-qnLGd4v14qMQ][cheaper_858][0]: SearchParseException[[cheaper_858][0]: query[ConstantScore(:)],from[-1],size[-1]: Parse Failure [Failed to parse source [{\"query\":{\"match_all\":{\"boost\":1.0}},\"_source\":true}]]]; nested: SearchParseException[[cheaper_858][0]: query[ConstantScore(:*)],from[-1],size[-1]: Parse Failure [No parser for element [_source]]]; }]","status":400}"
}
},
"status": 400
}

My POST request is http://localhost:9200/_reindex
and body:
{
"source": {
"remote": {
"host": "http://x.x.x.x:9200"
},
"index": "cheaper_858"
},
"dest": {
"index": "cheaper"
}
}

Can anybody suggest me what I doing wrong?

Not sure if this is supposed to work with a version that has been stopped 2 years ago.

You may be should try to build your own reindexer script?

I forgot to say one important thing - when I've tried to make same process on local machine with index backup - everything were fine, reindex were succeeded. The problem only occurs when trying to reindex from live server.

@nik9000 Do you have an idea?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.