-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
AttributeError: '_thread._local' object has no attribute 'alerts_sent' #2634
Comments
Seeing the same issue running |
+1, seeing the same issue for elastalert-test-rule Elastalert 0.2.1 |
This fix discussed in #2556 works for me.
https://github.com/Yelp/elastalert/blob/master/elastalert/elastalert.py#L162-L163 Thanks!! @gcnote |
This is still a issue in the latest release. Can we get a proper fix instead of manually adding in the variable? |
Still seeing this with latest elastalert.
Whats the reason for this? |
Is there a problem that this fix hasn't solved yet? |
@nsano-rururu |
I will try it on the weekend. Thank you. |
We apologize for the delay in reporting. confirmed. The problem has been resolved. It will be included as a patch in the next release of ElastAlertServer. Thank you very much. |
run elastalert-test-rule with python 3.6.0 and python 3.6.9 have same problem,
which version of python should use?
ERROR:root:Traceback (most recent call last):
File "/opt/pyenv/versions/elastalert_360/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/elastalert.py", line 1451, in alert
return self.send_alert(matches, rule, alert_time=alert_time, retried=retried)
File "/opt/pyenv/versions/elastalert_360/lib/python3.6/site-packages/elastalert-0.2.1-py3.6.egg/elastalert/elastalert.py", line 1550, in send_alert
self.thread_data.alerts_sent += 1
AttributeError: '_thread._local' object has no attribute 'alerts_sent'
Elastalert version : 0.2.1
The text was updated successfully, but these errors were encountered: