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

"Malformed scrollId" exception #67

Closed
p-run opened this issue Jan 29, 2015 · 4 comments
Closed

"Malformed scrollId" exception #67

p-run opened this issue Jan 29, 2015 · 4 comments

Comments

@p-run
Copy link

p-run commented Jan 29, 2015

Originally reported in elastic/elasticsearch#9469, they told me to report the issue here, so here goes:

One elasticdump invocation yields the following:

% elasticdump --input=http://localhost:9200/ --output=\$ 
Wed, 28 Jan 2015 18:07:28 GMT | {"error":"ElasticsearchIllegalArgumentException[Malformed scrollId []]","status":400}
[
]

What is a scrollId and why is it malformed? Google is of no help in understanding this error message.

This exception seems like a low-level one. It should be caught by higher level code and converted to a more meaningful error message, like, say, "index was not specified".

Update: this issue seems to happen only when I am trying to dump an elasticsearch instance which has no data. It further looks like elasticdump is sending an empty scrollid to elasticsearch in this case.

@evantahler
Copy link
Collaborator

I was able to reproduce this: It only happens when you request a dump of the whole cluster (no index specified), and there is no data (which must be the case with no indexes created)

@evantahler
Copy link
Collaborator

We'll have some better error messaging here #69

> ./bin/elasticdump --input http://localhost:9200/ --output ~/Desktop/out.json --all
Tue, 17 Feb 2015 06:43:58 GMT | starting dump
Tue, 17 Feb 2015 06:43:58 GMT | Unable to obtain scrollId; This tends to indicate an error with your index(es)
Tue, 17 Feb 2015 06:43:58 GMT | got 0 objects from source elasticsearch (offset: 0)
Tue, 17 Feb 2015 06:43:58 GMT | dump ended with error (get phase) => Error: Unable to obtain scrollId; This tends to indicate an error with your index(es)

@p-run
Copy link
Author

p-run commented Feb 21, 2015

So how am I meant to figure out what "an error with my index(es)" actually is from that message?

@evantahler
Copy link
Collaborator

See above, this only happens when you have no indexes.

@elasticsearch-dump elasticsearch-dump locked and limited conversation to collaborators Feb 21, 2015
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