Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

Reindex process not found error #17

Open
wuhao000 opened this issue Jan 30, 2016 · 9 comments
Open

Reindex process not found error #17

wuhao000 opened this issue Jan 30, 2016 · 9 comments

Comments

@wuhao000
Copy link

when I send a post request like 'http://localhost:9200/law_cloud_v3/cases/_reindex/law_cloud_v5/cases',
I got the following response
{"error":{"root_cause":[{"type":"reindexing_exception","reason":"Reindexing process 40d3df50-5c73-4bcb-9a51-0d6240d18141 is not found."}],"type":"reindexing_exception","reason":"Reindexing process 40d3df50-5c73-4bcb-9a51-0d6240d18141 is not found."},"status":500}
Why?

@marevol
Copy link
Contributor

marevol commented Jan 30, 2016

See elasticsearch's log file.

@wuhao000
Copy link
Author

I got nothing userfull from the log file

@marevol
Copy link
Contributor

marevol commented Jan 30, 2016

Could you please provide steps to reproduce it?

@wuhao000
Copy link
Author

I have 3 nodes for my elasticsearch cluster and I installed the plugin for every node
use the command 'bin/plugin install org.codelibs/elasticsearch-reindexing/2.1.1'
then I restart the cluster and found plugin info as this:
{
"name": "reindexing",
"version": "2.1.1",
"description": "This plugin copies a new index by reindexing.",
"jvm": true,
"classname": "org.codelibs.elasticsearch.reindex.ReindexingPlugin",
"isolated": true,
"site": false
}
for every node.
then I use the chrome browser send the request
'http://221.231.138.25:9200/law_cloud_v3/_reindex/law_cloud_v4'
I thought should I send the request use the post method?
then I use the java httpclient send a post request with the same url

String url = "http://221.231.138.38:9200/law_cloud_v3/_reindex/law_cloud_v4"; HttpUtil httpUtil = new HttpUtil(); System.out.println(httpUtil.doPost(url));

so I got the reindex process not found error like this

{"error":{"root_cause":[{"type":"reindexing_exception","reason":"Reindexing process 11a9f994-11d1-46c6-9599-a4da5d8764ca is not found."}],"type":"reindexing_exception","reason":"Reindexing process 11a9f994-11d1-46c6-9599-a4da5d8764ca is not found."},"status":500}

@wuhao000
Copy link
Author

I added type for the url like "http://221.231.138.38:9200/law_cloud_v3/cases/_reindex/law_cloud_v4/cases"
and send request use browser and java, the response is the same as above

@wuhao000
Copy link
Author

I use the shield plugin for safed and it seem works correctly with the reindex plugin,
Is it possible to have a relationship with this?

@wuhao000
Copy link
Author

my elasticsearch version is the newest 2.1.1

@marevol
Copy link
Contributor

marevol commented Jan 30, 2016

Ummm..., I think Shield plugin might restrict something..
At the moment, CodeLibs plugins do not support Shield plugin.
(Because we do not use it...)

@wuhao000
Copy link
Author

thank you for your reply.
I think I can try to remove the shield plugin temporary and reindex again.
and I hope you may consider to add support for shield plugin in the future

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

No branches or pull requests

2 participants