ElasticHQ / elasticsearch-HQ

Monitoring and Management Web Application for ElasticSearch instances and clusters.
http://www.elastichq.org
Other
4.96k stars 528 forks source link

ElasticHQ connection failing after running few days #529

Open prasadrashika opened 3 years ago

prasadrashika commented 3 years ago

General information

Issue Description

I am using docker elastic HQ, could connect to elasticsearch clusters( connected with 2 clusters) , I can see indcies ,metrics etc , every thing works fine . but after few days( 2 to 3 days ) , not working, not showing any data. As per the logs elasticHQ not able to connect to elasticsearch cluster. Elastic clusters working fine but not connecting. docker restart also not fixed this issue.

Source Code / Logs

application.log 2020-11-06 04:50:33,383 ERROR elastichq exceptions._request_wrapper:33 There is no connection with alias 'loganalytics1_es'. Traceback (most recent call last): File "/src/elastichq/vendor/elasticsearch/connections.py", line 88, in get_connection return self.create_connection(alias, **self._kwargs[alias]) KeyError: 'loganalytics1_es'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/src/elastichq/service/ConnectionService.py", line 208, in get_connection return CONNECTIONS.get_connection(cluster_name) File "/src/elastichq/vendor/elasticsearch/connections.py", line 91, in get_connection raise ConnectionNotFoundException('There is no connection with alias %r.' % alias)

Large logs and files should be attached. Try to provide a reproducible test case or steps that are the bare minimum necessary to generate the problem.

Be Patient

I have a day job. ;-)