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

sentry:24.2.0 SSLError: sslv3 alert handshake failure #3006

Open
goodosoft opened this issue Apr 30, 2024 · 3 comments
Open

sentry:24.2.0 SSLError: sslv3 alert handshake failure #3006

goodosoft opened this issue Apr 30, 2024 · 3 comments

Comments

@goodosoft
Copy link

Self-Hosted Version

24.2.0

CPU Architecture

x86_64

Docker Version

20.10.16

Docker Compose Version

2.6.0

Steps to Reproduce

error in sentry-web:
Traceback (most recent call last): │
│ File "/usr/local/lib/python3.11/site-packages/sentry/../urllib3/connectionpool.py", line 468, in _make_request │
│ self._validate_conn(conn) │
│ File "/usr/local/lib/python3.11/site-packages/sentry/../urllib3/connectionpool.py", line 1097, in _validate_conn │
│ conn.connect() │
│ File "/usr/local/lib/python3.11/site-packages/sentry/../urllib3/connection.py", line 642, in connect │
│ sock_and_verified = _ssl_wrap_socket_and_match_hostname( │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │
│ File "/usr/local/lib/python3.11/site-packages/sentry/../urllib3/connection.py", line 783, in ssl_wrap_socket_and_match_hostname │
│ ssl_sock = ssl_wrap_socket( │
│ ^^^^^^^^^^^^^^^^ │
│ File "/usr/local/lib/python3.11/site-packages/sentry/../urllib3/util/ssl
.py", line 471, in ssl_wrap_socket │
│ ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname) │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │
│ File "/usr/local/lib/python3.11/site-packages/sentry/../urllib3/util/ssl
.py", line 515, in _ssl_wrap_socket_impl │
│ return ssl_context.wrap_socket(sock, server_hostname=server_hostname) │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │
│ File "/usr/local/lib/python3.11/ssl.py", line 517, in wrap_socket │
│ return self.sslsocket_class._create( │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │
│ File "/usr/local/lib/python3.11/ssl.py", line 1108, in _create │
│ self.do_handshake() │
│ File "/usr/local/lib/python3.11/ssl.py", line 1379, in do_handshake │
│ self._sslobj.do_handshake() │
│ ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1006) │
│ │
│ During handling of the above exception, another exception occurred:

Expected Result

no errors.

Actual Result

Traceback (most recent call last): │
│ File "/usr/local/lib/python3.11/site-packages/sentry/../urllib3/connectionpool.py", line 468, in _make_request │
│ self._validate_conn(conn) │
│ File "/usr/local/lib/python3.11/site-packages/sentry/../urllib3/connectionpool.py", line 1097, in _validate_conn │
│ conn.connect() │
│ File "/usr/local/lib/python3.11/site-packages/sentry/../urllib3/connection.py", line 642, in connect │
│ sock_and_verified = _ssl_wrap_socket_and_match_hostname( │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │
│ File "/usr/local/lib/python3.11/site-packages/sentry/../urllib3/connection.py", line 783, in ssl_wrap_socket_and_match_hostname │
│ ssl_sock = ssl_wrap_socket( │
│ ^^^^^^^^^^^^^^^^ │
│ File "/usr/local/lib/python3.11/site-packages/sentry/../urllib3/util/ssl
.py", line 471, in ssl_wrap_socket │
│ ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname) │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │
│ File "/usr/local/lib/python3.11/site-packages/sentry/../urllib3/util/ssl
.py", line 515, in _ssl_wrap_socket_impl │
│ return ssl_context.wrap_socket(sock, server_hostname=server_hostname) │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │
│ File "/usr/local/lib/python3.11/ssl.py", line 517, in wrap_socket │
│ return self.sslsocket_class._create( │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │
│ File "/usr/local/lib/python3.11/ssl.py", line 1108, in _create │
│ self.do_handshake() │
│ File "/usr/local/lib/python3.11/ssl.py", line 1379, in do_handshake │
│ self._sslobj.do_handshake() │
│ ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1006) │
│ │
│ During handling of the above exception, another exception occurred:

Event ID

No response

@hubertdeng123
Copy link
Member

Are there any firewall settings on your machine that might be causing this connection error? Is this happening on a clean install?

@goodosoft
Copy link
Author

Are there any firewall settings on your machine that might be causing this connection error? Is this happening on a clean install?

no firewall.
but also not a clean install, upgrade from version 23.

@hubertdeng123
Copy link
Member

Are you able to provide reproduction steps here from a clean install? It is difficult to investigate this without knowing when/how this error is being produced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Product Owner
Status: Waiting for: Community
Status: No status
Development

No branches or pull requests

2 participants