Go actions not working using source and image
csantanapr opened this issue ยท 4 comments
csantanapr commented
I can't get go source action to run
Steps to replicate:
Build image
./gradle distDocker
Then use invoke.py from main repo
~/dev/whisk/git/apache/incubator-openwhisk/actionRuntimes/actionProxy (master)
๐ $ ./invoke.py init /Users/csantana23/dev/whisk/git/apache/incubator-openwhisk-runtime-go/test/src/hello_message.go
{"error":"cannot start action: command exited"}
Try to use docker image on already deploy openwhisk and got same problem
~/dev/whisk/git/apache/incubator-openwhisk-runtime-go (pr-8)
๐ป $ bx wsk action update goaction test/src/hello_message.go --docker csantanapr/actionloop-golang-v1.9
ok: updated action goaction
~/dev/whisk/git/apache/incubator-openwhisk-runtime-go (pr-8)
๐ป $ bx wsk action invoke goaction -b
ok: invoked /_/goaction with id 9277763eb33a4992b7763eb33a5992cf
{
"activationId": "9277763eb33a4992b7763eb33a5992cf",
"response": {
"result": {
"error": "cannot start action: command exited"
},
"status": "action developer error",
"success": false
},
}
csantanapr commented
I got same problem inside vagrant, and using init.sh
vagrant@ubuntu-xenial:~/git/incubator-openwhisk-runtime-go/test/bin$ ./init.sh ../src/hello_message.go
{"error":"cannot start action: command exited"}
400
sciabarra commented
As we discussed images work but the hello_message.go is using an action in a separate file so you should push a zip with two images. A single file action is in etc/hello.go and it works.
sciabarra commented
I think you can close this
csantanapr commented
I was using the wrong file, now using tests/src/hello/hello.go
works