Fail with my own invoker docker image
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"
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"
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.
So, how did you resolve this problem? Did you ensure all images have the same tag?
Were you able to resolve the issue?
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.