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

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

Open
ammaryasirnaich opened this issue Nov 1, 2024 · 0 comments
Labels

Comments

@ammaryasirnaich
Copy link

ammaryasirnaich commented Nov 1, 2024

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

  • minikube version: v1.34.0
  • KFP version: 1.9.1
  • KFP SDK version:2.9.0mini

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant