Closed craftsman2020 closed 2 years ago
Can you test against controller without nginx firstly? at the same check controller logs.
how to test against controller without nginx?
The request path is, user request -> nginx-> controller(create a activationMessage) -> scheduler(create memoryQueue) -> invoker(pull the activationMessage from scheduler's memoryQueue)
I feel the problem is in nginx pod side(e.g. certificate maybe), can you check the error logs for nginx? For my previous test, i can test against for controller without nginx directly. e.g.
wsk property set \
--apihost 'http://controllerIp:controllerPort' \
--auth 'XXXXX:XXXXXXXXXXXXXX'
After executed above command, then. execute below command
wsk action create hello ./sample/hello.js
Hi
The controllerIp:controllerPort is internet IP or internal IP?
The wsk property have been setted,When I run the command “wsk action create hello ./sample/hello.js”
The nginx have no errlog.
发件人: @. @.> 代表 ningyougang 发送时间: 2022年4月29日 8:10 收件人: apache/openwhisk @.> 抄送: craftsman2020 @.>; Author @.***> 主题: Re: [apache/openwhisk] openwhisk demo erro (Issue #5227)
The request path is, user request -> nginx-> controller(create a activationMessage) -> scheduler(create memoryQueue) -> invoker(pull the activationMessage from scheduler's memoryQueue)
I feel the problem is in nginx pod side(e.g. certificate maybe), can you check the error logs for nginx? For my previous test, i can test against for controller without nginx directly. e.g.
wsk property set \ --apihost 'http://controllerIp:controllerPort' \ --auth 'XXXXX:XXXXXXXXXXXXXX'
After executed above command, then. execute below command
wsk action create hello ./sample/hello.js
— Reply to this email directly, view it on GitHub https://github.com/apache/openwhisk/issues/5227#issuecomment-1112765473 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWGCUWWQG3HJM2SQ64DJ4JLVHMSG3ANCNFSM5UPKHHYQ . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AWGCUWSLMXCEJXOMWS4ISJTVHMSG3A5CNFSM5UPKHHY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIJJXIII.gif Message ID: @. @.> >
@craftsman2020 Does it work now? or not.
Have you tried adding -i
option to the wsk
cli?
it means? wsk property set --apihost .....
i have done it._
You should add -i
option for all commands.
This is to ignore a self-signed certificate.
wsk action list -i
So, after apply -i
, the issue solved?
hi, the openwhisk demo in the kubernate env,use the command to create action. wsk action create hello ./sample/hello.js but the reuslt is "Unable to create action 'hello': Put "https://47.108.*.*:31001/api/v1/namespaces/_/actions/hello?overwrite=false": x509: cannot validate certificate for 47.108..:31001 because it doesn't contain any IP SANs". why,can u help troubleshoot it?thanks a lot.