question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No experiment gets created by kfp.Client()

See original GitHub issue

Hi, I’ve deployed Kubeflow onto an AWS EKS cluster. I tried to create and run Kubeflow pipeline using notebook UI inside Kubeflow cluster. However, no experiment gets created. I followed the example in https://www.kubeflow.org/docs/components/pipelines/sdk/build-pipeline/ to build the pipeline. Furthermore, I followed the instructions in https://www.kubeflow.org/docs/distributions/aws/pipeline/ to authenticate Kubeflow Pipeline using SDK inside cluster. Below, you can find how I did the authentication:

authservice_session='<cookie I've obtained from notebook url which is http://localhost:8080/_/jupyter/>' ALB_ADDRESS='<Value of Address field obtained by executing command "kubectl get ingress -n istio-system">' HOST=ALB_ADDRESS+'/pipeline' client = kfp.Client(host=HOST, cookies=authservice_session)

When I executed the following command, I got an error. client.create_run_from_pipeline_package( pipeline_file='pipeline.yaml', arguments={ 'url': 'https://storage.googleapis.com/ml-pipeline-playground/iris-csv-files.tar.gz' })

The error is:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-22-56afc4f05e24> in <module>
      2     pipeline_file='pipeline.yaml',
      3     arguments={
----> 4         'url': 'https://storage.googleapis.com/ml-pipeline-playground/iris-csv-files.tar.gz'
      5     })

/usr/local/lib/python3.6/dist-packages/kfp/_client.py in create_run_from_pipeline_package(self, pipeline_file, arguments, run_name, experiment_name, namespace)
    739                                 '%Y-%m-%d %H-%M-%S'))
    740     experiment = self.create_experiment(name=experiment_name, namespace=namespace)
--> 741     run_info = self.run_pipeline(experiment.id, run_name, pipeline_file, arguments)
    742     return RunPipelineResult(self, run_info)
    743 

/usr/local/lib/python3.6/dist-packages/kfp/_client.py in run_pipeline(self, experiment_id, job_name, pipeline_package_path, params, pipeline_id, version_id)
    548       import IPython
    549       html = ('<a href="%s/#/runs/details/%s" target="_blank" >Run details</a>.'
--> 550               % (self._get_url_prefix(), response.run.id))
    551       IPython.display.display(IPython.display.HTML(html))
    552     return response.run

AttributeError: 'NoneType' object has no attribute 'id'

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
farshadsmcommented, May 14, 2021

I think I need to follow the instructions in this url, https://www.kubeflow.org/docs/distributions/aws/authentication/authentication/, to provide TLS authentication for kubeflow. I’ll try it and will let you know the outcome.

0reactions
jimbudarzcommented, Oct 6, 2022

I think I need to follow the instructions in this url, https://www.kubeflow.org/docs/distributions/aws/authentication/authentication/, to provide TLS authentication for kubeflow. I’ll try it and will let you know the outcome.

It looks like that page is no longer maintained. Did you figure out how to enable TLS authentication on Kubeflow?

Read more comments on GitHub >

github_iconTop Results From Across the Web

kfp.Client class — Kubeflow Pipelines documentation
Raises: kfp_server_api.ApiException – If experiment is not found. create_experiment (name: str, description ...
Read more >
client.list_experiments() not working as well as creating runs ...
I can't connect from the notebook to pipelines (to create runs and see experiments ) import kfp kfp_endpoint=None client.list_experiments().
Read more >
How to use the kfp.Client function in kfp - Snyk
Compiler().compile(auto_generated_pipeline, pipeline_filename) # Get or create an experiment and submit a pipeline run client = kfp.
Read more >
Kubeflow error while creating a pipeline on on-premise server
I am running the following code: I have specified the host inside the client instance creation. client = kfp.Client(host='http://10.152.183.8.
Read more >
Multi-user Isolation - Kubeflow Pipelines
Refer to Getting Started with Multi-user isolation for the common ... for kfp.Client() can be found in the Kubeflow Pipelines SDK Reference.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found