-
Notifications
You must be signed in to change notification settings - Fork 216
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
Server error: ConnectTimeout: HTTPConnectionPool #177
Comments
It is a sample Elasticsearch 7.8.0
docker-compose.yml
kibana/config/kibana.yml
es/config/elasticsearch.yml
Dockerfiles/Dockerfile-elastalert
elastalert/bin/elastic_search_status.sh
elastalert/bin/elastalert-start.sh
elastalert/config/config.json
elastalert/config/elastalert-test.yml
elastalert/config/elastalert.yml
|
Ok, thank you for your timely reply. I deployed the official Docker, and there was no problem at the beginning (the alarm was normal). Within a week or a few days, the above error would appear, and then no alarm would be sent |
@nsano-rururu The elastalert now is only support the python 3. |
・Which Docker image are you using?
・Cloud (AWS1, Azure, etc.), physical server? ・What are the server specifications? (CPU, number of CPU cores, memory, etc.) ・Are you using Kibana without problems when an error occurs? ・Is Elasticsearch running on docker ps? ・Did you check docker logs to see if there are any errors in the Elasticsearch container? ・How much memory is available by executing the "free -h" command when an error occurs? |
Yeah, right, |
The mirror is bitsensor/elastalert: 3.0.0 - beta. 1 |
I've never run ElastAlert on an Elasticsearch Cluster, so my current knowledge may not tell... |
I'm aware that Elasticsearch, Kibana and ElastAlert are running on the same server. |
Is that server up and running with anything besides Elasticsearch, Kibana and ElatAlert installed? |
Since the error message is connection timeout, the size of the index to be searched may be very large, but I can not clearly say that it is only the information provided so far. |
I found a setting in the ElastAlert documentation to change the timeout period.
|
Thank you for your timely reply. I will try today. My server is running in K8S, do you need to check YAML |
I set it up in config.yaml |
I'm very sorry, there is still an error, timeout time is 50, the reason for the problem is again, when timeout occurs, the alarm will not be triggered again, can you configure the retry mechanism?, I delete index again and restart the program, and everything is fine again, 16:01:30.692Z ERROR elastalert-server:
|
I need to see if I have the same issue with a Docker image that uses a newer version of ElastAlert servercentral/elastalert・・・ElastAlert 0.2.1 |
Hello, I noticed that the official server mirror is Bitsensor /elastalert |
The following error occurs when using the johnsusek/elastalert-server:latest startup: 08:56:06.576Z INFO elastalert-server: ProcessController: Creating index 08:56:08.915Z INFO elastalert-server: ProcessController: Index create exited with code 0 08:56:11.535Z ERROR elastalert-server: 08:56:11.538Z ERROR elastalert-server: 08:56:11.538Z ERROR elastalert-server: 08:56:11.540Z ERROR elastalert-server: 08:56:11.541Z ERROR elastalert-server: 08:56:11.604Z ERROR elastalert-server: ProcessController: ElastAlert exited with code 1 |
Bitsensor/elastalert will no longer be updated |
It is difficult to answer without information about what you did. Because it’s not Esper |
|
“ |
I can not do it. I have no time to bite. I'm sorry. goodbye. |
The file is in the first answer. |
16:34:46.561Z ERROR elastalert-server:
ProcessController: ERROR:root:Traceback (most recent call last):
File "/opt/elastalert/elastalert/elastalert.py", line 1173, in run_all_rules
num_matches = self.run_rule(rule, endtime, self.starttime)
File "/opt/elastalert/elastalert/elastalert.py", line 870, in run_rule
if not self.run_query(rule, rule['starttime'], endtime):
File "/opt/elastalert/elastalert/elastalert.py", line 602, in run_query
data = self.get_hits(rule, start, end, index, scroll)
File "/opt/elastalert/elastalert/elastalert.py", line 331, in get_hits
if self.current_es.is_atleastsixsix():
File "elastalert/init.py", line 69, in is_atleastsixsix
major, minor = map(int, self.es_version.split(".")[:2])
File "elastalert/init.py", line 43, in es_version
self._es_version = self.info()['version']['number']
File "/usr/lib/python2.7/site-packages/elasticsearch-7.0.2-py2.7.egg/elasticsearch/client/utils.py", line 84, in _wrapped
return func(*args, params=params, **kwargs)
File "/usr/lib/python2.7/site-packages/elasticsearch-7.0.2-py2.7.egg/elasticsearch/client/init.py", line 259, in info
return self.transport.perform_request("GET", "/", params=params)
File "/usr/lib/python2.7/site-packages/elasticsearch-7.0.2-py2.7.egg/elasticsearch/transport.py", line 353, in perform_request
timeout=timeout,
File "/usr/lib/python2.7/site-packages/elasticsearch-7.0.2-py2.7.egg/elasticsearch/connection/http_requests.py", line 138, in perform_request
raise ConnectionTimeout("TIMEOUT", str(e), e)
ConnectionTimeout: ConnectionTimeout caused by - ConnectTimeout(HTTPConnectionPool(host='xxx.xxx.xxx.xxx', port=9200): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7efc1794ced0>, 'Connection to xxx.xxx.xxx.xxx timed out. (connect timeout=20)')))
If this error occurs on my server, the alarm will not be issued again, and only by restarting the server can the alarm be triggered again
However, 9200 is normal. May I ask why?
The text was updated successfully, but these errors were encountered: