openwhisk icon indicating copy to clipboard operation
openwhisk copied to clipboard

Fail with my own invoker docker image

Open ZinuoCai opened this issue 5 years ago • 5 comments

I deploy OpenWhisk following the instructions with Kubernetes. Everythings goes well. Then I build the docker image with the 1.0.0 version code. But when I try to replace the invoker with my self-build invoker docker image, I get the error below.

error: Unable to invoke action 'helloPY': The server is currently unavailable (because it is overloaded or down for maintenance). (code JOJ9vkAlKJ5vHLxrxyI7j4ZoKY3TDrB6)
Run 'wsk --help' for usage.

The log of the invoker like below.

[2021-01-20T13:45:01.492Z] [ERROR] [#tid_sid_unknown] [InvokerReactive] terminal failure while processing message: spray.json.DeserializationException: Object is missing required member 'lockedArgs'
[2021-01-20T13:45:06.687Z] [INFO] [#tid_sid_invokerWarmup] [KubernetesClient]  [marker:invoker_kubeapi.create_finish:11406:5225]
[2021-01-20T13:45:07.728Z] [INFO] [#tid_sid_invokerWarmup] [KubernetesClient]  [marker:invoker_kubeapi.create_finish:12447:6265]
[2021-01-20T13:46:01.200Z] [ERROR] [#tid_sid_unknown] [InvokerReactive] terminal failure while processing message: spray.json.DeserializationException: Object is missing required member 'lockedArgs'
[2021-01-20T13:47:01.194Z] [ERROR] [#tid_sid_unknown] [InvokerReactive] terminal failure while processing message: spray.json.DeserializationException: Object is missing required member 'lockedArgs'
[2021-01-20T13:48:01.194Z] [ERROR] [#tid_sid_unknown] [InvokerReactive] terminal failure while processing message: spray.json.DeserializationException: Object is missing required member 'lockedArgs'

My docker image is zinuo/invoker:v1, and here is mycluster.yaml.

whisk:
  ingress:
    type: NodePort
    apiHostName: 192.168.0.101
    apiHostPort: 31001
nginx:
  httpsNodePort: 31001
invoker:
  imageName: "zinuo/invoker" 
  imageTag: "v1"

ZinuoCai avatar Jan 20 '21 13:01 ZinuoCai

I also try the official invoker image openwhisk/invoker:1.0.0 and get the same problem.

whisk:
  ingress:
    type: NodePort
    apiHostName: 192.168.0.101
    apiHostPort: 31001
nginx:
  httpsNodePort: 31001
invoker:
  imageName: "openwhisk/invoker" 
  imageTag: "1.0.0"

ZinuoCai avatar Jan 20 '21 14:01 ZinuoCai

I find it is a problem with the version number. The invoker's version number shoulb be the same with other components in the values.yaml.

ZinuoCai avatar Jan 20 '21 14:01 ZinuoCai

So, how did you resolve this problem? Did you ensure all images have the same tag?

Scusemua avatar Jan 31 '22 22:01 Scusemua

Were you able to resolve the issue?

areejfatimah7 avatar Feb 22 '23 13:02 areejfatimah7

Were you able to resolve the issue?

Yeah!

I deployed the OpenWhisk in Kubernetes. I used the openwhisk-deploy-kube with the 1.0.0 version but I built the Invoker image with the newest version. The apis may not be consistent. When I keep the version the same, the problem does not appear.

ZinuoCai avatar Feb 23 '23 04:02 ZinuoCai