2020-05-08 00:18:41 UTC - Nima Mahmoudi: I have used the ansible local 
deployment of openwhisk before. Today, I installed it again, using the same 
fork of the project. But, the issue is that now, the api gateway doesn't seem 
to work. I also tried a web action, but not luck. This is what I get when I 
curl the web url:
```{
  "code": "4c92e0d8efb701bb2ec736cd920b1adc",
  "error": "There was an error processing your request."
}```
And this is what I get from api gateway:
```{"code":502, "message":"Oops. Something went wrong. Check your URI and try 
again."}```
Does anyone know how I can fix this? I also tried with the latest repo (cloned 
the project again), same issue with ansible. Is there any other way that I can 
have a stable local deployment?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588897121228300?thread_ts=1588897121.228300&cid=C3TPCAQG1
----
2020-05-08 00:22:54 UTC - Nima Mahmoudi: I also wanted to add that I can 
successfully trigger the application using `wsk`, so everything other than the 
API gateway is working properly.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588897374228600?thread_ts=1588897121.228300&cid=C3TPCAQG1
----
2020-05-08 02:28:35 UTC - Rodric Rabbah: did you look at the activation (wsk 
activation list) to see if there was an error from the action
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588904915228800?thread_ts=1588897121.228300&cid=C3TPCAQG1
----
2020-05-08 03:07:23 UTC - Rodric Rabbah: You can also grep for a system error 
using the code in the response if you suspect the action didn’t run 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588907243230000?thread_ts=1588897121.228300&cid=C3TPCAQG1
----
2020-05-08 06:21:28 UTC - Brendan Doyle: I'm having an issue running unit tests 
locally on my machine in intellij. I just assumed that it was the pr I'm 
working on, but it's doing the same thing off master and I've definitely run 
unit tests successfully before. Has anyone seen this error before for many test 
classes?
```Failure(java.lang.NullPointerException) was not a success
org.scalatest.exceptions.TestFailedException: 
Failure(java.lang.NullPointerException) was not a success
        at 
org.scalatest.MatchersHelper$.indicateFailure(MatchersHelper.scala:343)
        at org.scalatest.Matchers$ResultOfBeWordForAny.a(Matchers.scala:2022)
        at 
org.apache.openwhisk.core.entity.test.ExecHelpers.$init$(ExecHelpers.scala:36)
        at 
org.apache.openwhisk.core.controller.test.NamespacesApiTests.<init>(NamespacesApiTests.scala:46)```
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588918888232100?thread_ts=1588918888.232100&cid=C3TPCAQG1
----
2020-05-08 06:33:36 UTC - Brendan Doyle: I know that's vague but wondering if 
there's some common misconfiguration
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588919616232200?thread_ts=1588918888.232100&cid=C3TPCAQG1
----
2020-05-08 06:53:52 UTC - Ning yougang: Regarding `I also tried a web action, 
but not luck. This is what I get when I curl the web url:`
Did you use `lastest upstream codes` test? or your own codes?
I tested upsteam latest codes, worked well.
For you web action, you can use `wsk action get ${actionName} --url`  to get 
the correct url e.g.
```wsk action get hello-web --url
ok: got action hello-web
<https://XXX.XXX.XXX.XXX:443/api/v1/web/whisk.system/default/hello-web>```
then, you can access like `curl 
<https://lambda-exp.navercorp.com:443/api/v1/web/whisk.system/default/hello-web.json|https://xxx.xxx.xxx.xxx:443/api/v1/web/whisk.system/default/hello-web.json>`
  (or .text  .html .http, depend your action response)

At the same time, you can check controller logs firstly
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588920832236500?thread_ts=1588920832.236500&cid=C3TPCAQG1
----
2020-05-08 08:01:45 UTC - Brendan Doyle: nvm think it's not having run
```ansible-playbook -i ansible/environments/local ansible/properties.yml```
but when trying to run I'm getting
```[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that 
the implicit localhost does not match 'all'```
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588924905236800?thread_ts=1588918888.232100&cid=C3TPCAQG1
----
2020-05-08 10:53:07 UTC - Rodric Rabbah: Did you run setup first 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588935187237300?thread_ts=1588918888.232100&cid=C3TPCAQG1
----
2020-05-08 14:11:26 UTC - Nima Mahmoudi: @Rodric Rabbah Thanks for you 
response. The issue is that there has been no activation when I try to check 
for errors. It seems like the upstream is not set correctly.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588947086237500?thread_ts=1588897121.228300&cid=C3TPCAQG1
----
2020-05-08 14:13:59 UTC - Nima Mahmoudi: Hi @Ning yougang, thanks for your 
response. I also tried the latest upstream, I thought switching to my old fork 
would work but still no luck. I used `wsk action get ${actionName} --url` to 
get the correct url, but when I invoke it using curl, I get the aforementioned 
error. Also, when I list out activations, it says there has been no activation. 
It seems like the request is not routed to the controller. I have no idea why.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588947239237700?thread_ts=1588920832.236500&cid=C3TPCAQG1
----
2020-05-08 15:23:14 UTC - Nima Mahmoudi: @Rodric Rabbah I tore down everything 
and redeployed on the latest upstream code. The web action is working now, but 
still no luck with api gateway. I used the hello function from webactions 
readme.
```wsk api create /hello /hello get /guest/demo/hello --response-type html
ok: created API /hello/hello GET for action /guest/demo/hello
<http://172.17.0.1:9001/api/23bc46b1-71f6-4ed5-8c54-816aa4f8c502/hello/hello>```
Then:
```curl 
<http://172.17.0.1:9001/api/23bc46b1-71f6-4ed5-8c54-816aa4f8c502/hello/hello>
{"code":502, "message":"Oops. Something went wrong. Check your URI and try 
again."}```
And I also checked activations. This doesn't end up creating an activation. As 
if the request was never routed to the system from api gateway.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588951394237900?thread_ts=1588897121.228300&cid=C3TPCAQG1
----
2020-05-08 15:25:58 UTC - Nima Mahmoudi: I tore down my installation and 
reinstalled using the latest code. The web action part seems to be fine, but 
the api gateway doesn't work (and doesn't even make any activations that I 
could use to debug).
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588951558238300?thread_ts=1588920832.236500&cid=C3TPCAQG1
----
2020-05-08 15:26:35 UTC - Nima Mahmoudi: I used the hello function from 
webactions readme.
```wsk api create /hello /hello get /guest/demo/hello --response-type html
ok: created API /hello/hello GET for action /guest/demo/hello
<http://172.17.0.1:9001/api/23bc46b1-71f6-4ed5-8c54-816aa4f8c502/hello/hello>```
Then:
```curl 
<http://172.17.0.1:9001/api/23bc46b1-71f6-4ed5-8c54-816aa4f8c502/hello/hello>
{"code":502, "message":"Oops. Something went wrong. Check your URI and try 
again."}```
And I also checked activations. This doesn't end up creating an activation. As 
if the request was never routed to the system from api gateway.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588951595238500?thread_ts=1588920832.236500&cid=C3TPCAQG1
----
2020-05-08 16:36:17 UTC - Nima Mahmoudi: Does anyone know if there is there any 
way to use local ansible installation with propper SSL certificate provided to 
the system?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588955777239700?thread_ts=1588955777.239700&cid=C3TPCAQG1
----
2020-05-08 16:44:32 UTC - Rodric Rabbah: yes it can be done
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588956272239900
----
2020-05-08 16:44:44 UTC - Rodric Rabbah: i use that for the openwhisk image 
hosted on digital ocean
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588956284240300
----
2020-05-08 16:46:36 UTC - Rodric Rabbah: if you deploy with `wskdev` 
(bin/wskdev) which is just a wrapper around ansible, you can pass
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588956396240400?thread_ts=1588955777.239700&cid=C3TPCAQG1
----
2020-05-08 16:46:54 UTC - Rodric Rabbah: 
```-e"nginx_ssl_server_cert=nl-fullchain.pem" 
-e"nginx_ssl_server_key=nl-server-key.pem" 
-e"whisk_api_localhost_name=<http://your-name.com|your-name.com>"```

https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588956414240600?thread_ts=1588955777.239700&cid=C3TPCAQG1
----
2020-05-08 16:47:38 UTC - Rodric Rabbah: or
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588956458240800?thread_ts=1588955777.239700&cid=C3TPCAQG1
----
2020-05-08 16:47:47 UTC - Rodric Rabbah: ```ansible-playbook -i 
environments/local edge.yml -e 'nginx_ssl_path=' -e 
'nginx_ssl_server_cert=nl-fullchain.pem' -e 
'nginx_ssl_server_key=nl-server-key.pem' -e 
'whisk_api_localhost_name=<http://yourhost.com|yourhost.com>'```

https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588956467241000?thread_ts=1588955777.239700&cid=C3TPCAQG1
----
2020-05-08 16:47:54 UTC - Nima Mahmoudi: Great, thanks!
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588956474241200?thread_ts=1588955777.239700&cid=C3TPCAQG1
----
2020-05-08 17:52:22 UTC - Brendan Doyle: got it thanks, hopefully should have 
this pr in today
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588960342241400?thread_ts=1588918888.232100&cid=C3TPCAQG1
----
2020-05-08 17:54:02 UTC - Rodric Rabbah: cool
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588960442241600?thread_ts=1588918888.232100&cid=C3TPCAQG1
----
2020-05-08 19:35:08 UTC - Brendan Doyle: I just submitted a PR that adds a get 
api to retrieve limits set for a namespace
/namespaces/_/limits
appreciate any feedback this is my first PR that's not just changing a couple 
lines
tada : Rodric Rabbah
clap : Rodric Rabbah
+1 : Dominic Kim
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1588966508242600?thread_ts=1588966508.242600&cid=C3TPCAQG1
----

Reply via email to