kubeflow / pipelines

Machine Learning Pipelines for Kubeflow
https://www.kubeflow.org/docs/components/pipelines/
Apache License 2.0
3.62k stars 1.63k forks source link

[bug] <client.create_run_from_pipeline_package> MaxRetryError: HTTPConnectionPool(host='localhost', port=8080) #11350

Open ammaryasirnaich opened 2 weeks ago

ammaryasirnaich commented 2 weeks ago

I tried running the sample code as provided below after creating a local setup. I am getting an error while submitting to create the pipeline (also with client.list_experiments() ) MaxRetryError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /apis/v2beta1/experiments? i have tried to follow steps in #827 #6120 but no use.

Environment

Example code

from kfp import dsl, compiler
from kfp.client import Client

@dsl.component
def say_hello(name: str) -> str:
    hello_text = f'Hello, {name}!'
    print(hello_text)
    return hello_text

@dsl.pipeline
def hello_pipeline(recipient: str) -> str:
    hello_task = say_hello(name=recipient)
    return hello_task.output

compiler.Compiler().compile(hello_pipeline, 'pipeline.yaml')

from kfp.client import Client
client = Client(host='http://localhost:8080')
# client = Client(host='http://127.0.0.1:8080')
#client = Client(host='http://127.0.0.1:3000')
run = client.create_run_from_pipeline_package(
    'pipeline.yaml',
    arguments={
        'recipient': 'World',
    },
)

WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7452459e2390>: Failed to establish a new connection: [Errno 111] Connection refused')': /apis/v2beta1/experiments?filter=%7B%22predicates%22%3A+%5B%7B%22operation%22%3A+1%2C+%22key%22%3A+%22display_name%22%2C+%22stringValue%22%3A+%22Default%22%7D%5D%7D&namespace=kubeflow-user-example-com WARNING:urllib3.connectionpool:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7452459e32d0>: Failed to establish a new connection: [Errno 111] Connection refused')': /apis/v2beta1/experiments?filter=%7B%22predicates%22%3A+%5B%7B%22operation%22%3A+1%2C+%22key%22%3A+%22display_name%22%2C+%22stringValue%22%3A+%22Default%22%7D%5D%7D&namespace=kubeflow-user-example-com WARNING:urllib3.connectionpool:Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7452459e1850>: Failed to establish a new connection: [Errno 111] Connection refused')': /apis/v2beta1/experiments?filter=%7B%22predicates%22%3A+%5B%7B%22operation%22%3A+1%2C+%22key%22%3A+%22display_name%22%2C+%22stringValue%22%3A+%22Default%22%7D%5D%7D&namespace=kubeflow-user-example-com

MaxRetryError: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /apis/v2beta1/experiments?filter=%7B%22predicates%22%3A+%5B%7B%22operation%22%3A+1%2C+%22key%22%3A+%22display_name%22%2C+%22stringValue%22%3A+%22Default%22%7D%5D%7D&namespace=kubeflow-user-example-com (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7452459ab490>: Failed to establish a new connection: [Errno 111] Connection refused'))

Would appreacite any help