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

Reindex fails - socket hang up on initial search #26

Open
jimpaintertnf opened this issue Aug 11, 2016 · 4 comments
Open

Reindex fails - socket hang up on initial search #26

jimpaintertnf opened this issue Aug 11, 2016 · 4 comments

Comments

@jimpaintertnf
Copy link

Node v5.7.1
Elasticsearch-reindex v1.1.14

Attempting to reindex from one index into another, using the following:

elasticsearch-reindex -f https://hostname.es.amazonaws.com/originalindex/log-type -t https://hostname.es.amazonaws.com/newindex/ index-script.js

Results in the following error:

Elasticsearch ERROR: 2016-08-11T15:37:35Z
Error: Request error, retrying
POST https://hostname.es.amazonaws.com/originalindex/NCSA-common-log-format/_search?search_type=scan&scroll=1m&size=100 => socket hang up
at Log.error (/temp/.nvm/versions/node/v5.7.1/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/log.js:225:56)
at checkRespForFailure (/temp/.nvm/versions/node/v5.7.1/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/transport.js:240:18)
at HttpConnector. (/temp/.nvm/versions/node/v5.7.1/lib/node_modules/elasticsearch-reindex/node_modules/elasticsearch/src/lib/connectors/http.js:162:7)
at ClientRequest.wrapper (/temp/.nvm/versions/node/v5.7.1/lib/node_modules/elasticsearch-reindex/node_modules/lodash/index.js:3095:19)
at emitOne (events.js:90:13)
at ClientRequest.emit (events.js:182:7)
at TLSSocket.socketCloseListener (_http_client.js:271:9)
at emitOne (events.js:95:20)
at TLSSocket.emit (events.js:182:7)
at TCP._onclose (net.js:475:12)

The same result if the last argument (the custom index script) is omitted.

Note the the URL being POSTed to in the log above is accessible via curl and returns

{
"_scroll_id": "somestuff==",
"took": 17,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 176434,
"max_score": 0,
"hits": []
}
}

@vlaskinvlad
Copy link

+1

@danpaz
Copy link
Contributor

danpaz commented Oct 30, 2016

I have experienced the same and I think it may be an underlying elasticsearch.js issue. Possibly it's related to elastic/elasticsearch-js#433. FWIW when I set --sniff_cluster false I don't see these request errors anymore, so you may want to give that a try.

@OriHoch
Copy link

OriHoch commented Dec 1, 2016

I'm experiencing the same, --sniff_cluster false as suggested above by @danpaz worked for me as well 👍

@scotttam
Copy link

👍 I'm also experiencing the same problem and setting --sniff_cluster false worked for me too.

Repository owner deleted a comment from Przemocny Feb 19, 2024
Repository owner deleted a comment from mepcovenkat97 Feb 23, 2024
Repository owner deleted a comment from oninn Mar 13, 2024
Repository owner deleted a comment from oninn Mar 13, 2024
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

5 participants