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.

Tensorflow example not working

See original GitHub issue

/kind bug

What steps did you take and what happened: [A clear and concise description of what the bug is.] I tried to apply the config described in https://github.com/kubeflow/kfserving/tree/master/docs/samples/tensorflow

So I tried this config:

apiVersion: "serving.kubeflow.org/v1alpha2"
kind: "InferenceService"
metadata:
  name: "flowers-sample"
spec:
  default:
    predictor:
      tensorflow:
        storageUri: "gs://kfserving-samples/models/tensorflow/flowers"

And running kubectl apply -f tensorflow.yaml

When running kubectl get inferenceservice I get:

$ kubectl get inferenceservice
NAME                   URL   READY   DEFAULT TRAFFIC   CANARY TRAFFIC   AGE
flowers-sample               False                                      61s

I’m getting this when running kubectl get all

service.serving.knative.dev/power-price-forecast-predictor-default   http://power-price-forecast-predictor-default.kubeflow.example.com   power-price-forecast-predictor-default-89gcr                 Unknown   RevisionMissing

This URL is not going to work so how can I change it to something that will?

What did you expect to happen:

Get a working endpoint to access over HTTP. When I run

MODEL_NAME=flowers-sample
INPUT_PATH=@./input.json
CLUSTER_IP=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
SERVICE_HOSTNAME=$(kubectl get inferenceservice ${MODEL_NAME} -o jsonpath='{.status.url}' | cut -d "/" -f 3)

curl -v -H "Host: ${SERVICE_HOSTNAME}" http://$CLUSTER_IP/v1/models/$MODEL_NAME:predict -d $INPUT_PATH

Both CLUSTER_IP and SERVICE_HOSTNAME are empty.

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

Environment: (How do I get these versions?)

  • Istio Version:
  • Knative Version:
  • KFServing Version:
  • Kubeflow version:
  • Minikube version:
  • Kubernetes version: (use kubectl version): Client Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.10-dispatcher", GitCommit:"f5757a1dee5a89cc5e29cd7159076648bf21a02b", GitTreeState:"clean", BuildDate:"2020-02-06T03:29:33Z", GoVersion:"go1.12.12b4", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.8-gke.33", GitCommit:"2c6d0ee462cee7609113bf9e175c107599d5213f", GitTreeState:"clean", BuildDate:"2020-01-15T17:47:46Z", GoVersion:"go1.12.11b4", Compiler:"gc", Platform:"linux/amd64"}
  • OS (e.g. from /etc/os-release): Arch Linux

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yuzisuncommented, Feb 21, 2020

@Anderssorby I noticed that you deployed the service to kubeflow namespace, that won’t work because it is system namespace and service deployed there does not call kfserving pod mutator. If you deploy to default namespace or other user namespaces that should work.

1reaction
issue-label-bot[bot]commented, Feb 20, 2020

Issue-Label Bot is automatically applying the labels:

Label Probability
bug 0.98

Please mark this comment with 👍 or 👎 to give our bot feedback! Links: app homepage, dashboard and code for this bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ModuleNotFoundError: No module named 'tensorflow.examples'
Sometimes the TensorFlow examples are not pre-downloaded, so you might need to run the below command to install the examples from Github ...
Read more >
No module named 'tensorflow.examples.tutorials' · Issue #32790
For this perticular problem of not getting ModuleNotFoundError: No module named 'tensorflow.examples.tutorials, i followed the following way ...
Read more >
Common issues | TensorFlow Hub
Here is a quick example: # Create a folder for the TF hub module. $ mkdir ...
Read more >
Build and install error messages - TensorFlow
The following list links error messages to a solution or discussion. If you find an installation or build problem that is not listed,...
Read more >
Build from source - TensorFlow
If Bazelisk is not available, you can manually install Bazel. Make sure to install a supported Bazel version: any version between _TF_MIN_BAZEL_VERSION and ......
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