pipelines icon indicating copy to clipboard operation
pipelines copied to clipboard

[sdk] ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number

Open pablofiumara opened this issue 3 years ago • 4 comments

Environment

  • KFP version: 1.8.1
  • KFP SDK version: 1.6.2
  • All dependencies version: kfp 1.6.2 kfp-pipeline-spec 0.1.16 kfp-server-api 1.8.5

Steps to reproduce

It happens on GCP, on a Kubeflow 1.5 cluster

To reproduce you should execute the following code:

from kfp import Client
kfp_client = Client(
    host="",
    client_id="",
    other_client_id="",
    other_client_secret="",
    namespace="aNamespace"
)

kfp_client.set_user_namespace(namespace="aNamespace")
pipeline_id = kfp_client.get_pipeline_id(name="aPipelineName")
print(pipeline_id)

Expected result

I should get a pipeline id

Instead I get

Traceback (most recent call last): File "/Users/user/.pyenv/versions/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "/Users/user/.pyenv/versions/lib/python3.9/site-packages/urllib3/connectionpool.py", line 386, in _make_request self._validate_conn(conn) File "/Users/user/.pyenv/versions/lib/python3.9/site-packages/urllib3/connectionpool.py", line 1040, in validate_conn conn.connect() File "/Users/user/.pyenv/versions/lib/python3.9/site-packages/urllib3/connection.py", line 416, in connect self.sock = ssl_wrap_socket( File "/Users/user/.pyenv/versions/lib/python3.9/site-packages/urllib3/util/ssl.py", line 449, in ssl_wrap_socket ssl_sock = ssl_wrap_socket_impl( File "/Users/user/.pyenv/versions/lib/python3.9/site-packages/urllib3/util/ssl.py", line 493, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock, server_hostname=server_hostname) File "/Users/user/.pyenv/versions/3.9.9/lib/python3.9/ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "/Users/user/.pyenv/versions/3.9.9/lib/python3.9/ssl.py", line 1040, in _create self.do_handshake() File "/Users/user/.pyenv/versions/3.9.9/lib/python3.9/ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)


Impacted by this bug? Give it a 👍.

pablofiumara avatar Sep 15 '22 00:09 pablofiumara

Feels like something is wrong with your kubernetes/kubeflow setup. Can you see the pipelines UI or does it also show this error?

BroderPeters avatar Sep 15 '22 06:09 BroderPeters

@BroderPeters Thank you very much for your answer. I can see pipelines UI.

It's a weird error. The error does not happen to me. It happens to my work colleague sometimes. Sometimes they are able to publish pipelines from their local environments, sometimes they are not.

pablofiumara avatar Sep 15 '22 17:09 pablofiumara

This sounds like it may be an issue related to a specific network setup. It will be hard to help without some more information about what the variance is attributed to.

Can you see if you are able to reproduce the issue with the KFP v2 SDK kfp==1.8.13? If this does not help, consider upgrading the urllib3 library manually.

connor-mccarthy avatar Sep 15 '22 23:09 connor-mccarthy

@connor-mccarthy Thank you very much for your answer. I will try that

pablofiumara avatar Sep 15 '22 23:09 pablofiumara

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 28 '24 07:02 github-actions[bot]

Closing this issue. No activity for more than a year.

/close

rimolive avatar Apr 03 '24 16:04 rimolive

@rimolive: Closing this issue.

In response to this:

Closing this issue. No activity for more than a year.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

google-oss-prow[bot] avatar Apr 03 '24 16:04 google-oss-prow[bot]