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

Query endpoint api/services returns 500 if elasticsearch storage is empty #464

Closed
pavolloffay opened this issue Oct 10, 2017 · 3 comments
Closed
Assignees
Labels

Comments

@pavolloffay
Copy link
Member

http://localhost:16686/api/services returns

{"data":null,"total":0,"limit":0,"offset":0,"errors":[{"code":500,"msg":"Could not find aggregation of distinct_services"}]}

screenshot of jaeger ui

Steps to reproduce:

docker run -it --rm -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e "xpack.security.enabled=false"  docker.elastic.co/elasticsearch/elasticsearch:5.6.1 
go run cmd/query/main.go  --query.static-files=jaeger-ui-build/build/ --span-storage.type=elasticsearch
@black-adder
Copy link
Contributor

@mh-park look at the mess you've created

@pavolloffay
Copy link
Member Author

pavolloffay commented Nov 14, 2017

Basically, any endpoint returns 500 with a fresh ES without any data.

Edit:
curl -ivX GET localhost:16686/api/dependencies?endTs=1 works but /traces and /services do not work.

@yurishkuro
Copy link
Member

is it because the indices are not created and the ES queries actually fail rather than returning empty results? There was a suggestion on another ticket to init the indices on ESStorage start-up instead of on the first write.

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

No branches or pull requests

3 participants