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

Can't connect to server #2

Open
kavemun opened this issue Sep 4, 2018 · 4 comments
Open

Can't connect to server #2

kavemun opened this issue Sep 4, 2018 · 4 comments

Comments

@kavemun
Copy link

kavemun commented Sep 4, 2018

Hi,

I am trying to run the example on the ReadMe. After updating the yaml to my image file, and sending a request from the client, I got the following error
$ python resnet_client.py --server localhost --port 9000 cat_sample.jpg Traceback (most recent call last): File "resnet_client.py", line 155, in <module> main() File "resnet_client.py", line 94, in main args.server, args.port, args.model, jpeg_batch) File "resnet_client.py", line 149, in predict_and_profile result = stub.Predict(request, 60.0) # 60 second timeout File "/Users/kahmun/tf-serving-k8s-tutorial/client/client/lib/python2.7/site-packages/grpc/beta/_client_adaptations.py", line 310, in __call__ self._request_serializer, self._response_deserializer) File "/Users/kahmun/tf-serving-k8s-tutorial/client/client/lib/python2.7/site-packages/grpc/beta/_client_adaptations.py", line 196, in _blocking_unary_unary raise _abortion_error(rpc_error_call) grpc.framework.interfaces.face.face.AbortionError: AbortionError(code=StatusCode.UNAVAILABLE, details="Connect Failed")

The external-IP for the LoadBalancer is

$ kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 1h resnet-service LoadBalancer 10.101.188.76 <pending> 9000:31072/TCP 1h

I read that when running in minikube, i should use NodePort instead, but switching to NodePort returns the same error. Is there anything that I am still doing wrong?

Also I was using the Dockerfile which was deleted in a previous commit, I don't think that is the issue could it?

@bkungfoo
Copy link
Contributor

bkungfoo commented Sep 5, 2018 via email

@kavemun
Copy link
Author

kavemun commented Sep 5, 2018

Hi Brian,

Thanks for the reply, but I am working on the upgrade-to-tf-1.8 branch if that is the march-2018 branch that you are referring to. It still returns me the same error. Is the new tutorial going to be updated soon?

@bkungfoo
Copy link
Contributor

bkungfoo commented Sep 5, 2018 via email

@kavemun
Copy link
Author

kavemun commented Sep 10, 2018

Hi Brian,

I have tested both on MacOS and Ubuntu 18.04. Both have the same results.
Thanks for the help.

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

No branches or pull requests

2 participants