Yelp / elastalert

Easy & Flexible Alerting With ElasticSearch
https://elastalert.readthedocs.org
Apache License 2.0
7.99k stars 1.73k forks source link

Problems installing on ubuntu 1804 #3194

Open rful011 opened 3 years ago

rful011 commented 3 years ago

trying to install on a VM that use a proxy to get web access to the 'Net.

rful011@secmgrtst01:~$ python3 -m pip install elastalert
Defaulting to user installation because normal site-packages is not writeable
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:852)'),)': /simple/elastalert/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:852)'),)': /simple/elastalert/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:852)'),)': /simple/elastalert/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:852)'),)': /simple/elastalert/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:852)'),)': /simple/elastalert/
Could not fetch URL https://pypi.org/simple/elastalert/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/elastalert/ (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:852)'),)) - skipping
ERROR: Could not find a version that satisfies the requirement elastalert (from versions: none)
ERROR: No matching distribution found for elastalert
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:852)'),)) - skipping

I have seen this sort of thing before and it is usually caused by issues with the way requests are made to the proxy (squid). I have the following env vars:

rful011@secmgrtst01:~$ env | grep proxy
https_proxy=https://squid.auckland.ac.nz:3128/
http_proxy=http://squid.auckland.ac.nz:3128/
no_proxy=auckland.ac.nz

Any suggestion to work around this. I am no python expert!

nsano-rururu commented 3 years ago

https://qiita.com/noguhiro2002/items/bbc8f4aecebc1e16e1ed

nsano-rururu commented 3 years ago

https://github.com/Yelp/elastalert/issues/3178

rful011 commented 3 years ago

thanks for the pointer to elastalert2 I will try that