You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwhisk.apache.org by OpenWhisk Team Slack <ra...@apache.org> on 2019/07/13 08:23:24 UTC

[slack-digest] [2019-07-12] #general

2019-07-12 01:08:10 UTC - chris: Good morning everyone, is there anyone here now ? i have a big trouble with install the openwhisk.................help :sob:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562893690376300
----
2019-07-12 01:10:26 UTC - chris: Someone who can help me please take a look for my question....omg <https://github.com/apache/incubator-openwhisk/issues/4554>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562893826377300
----
2019-07-12 02:00:11 UTC - Dominic Kim: @chris Hi Chris. If you just want to take a look around, a standalone openwhisk would be a good option.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562896811379000
----
2019-07-12 02:00:28 UTC - Dominic Kim: Is there any specific reason to use docker-compose?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562896828379600
----
2019-07-12 02:05:33 UTC - chris: @Dominic Kim Hello , thanks for your reply.  I also tried to install openwhisk by the following instructions:
git clone <https://github.com/apache/incubator-openwhisk.git> openwhisk
cd tools/ubuntu-setup
sudo ./all.sh
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562897133380700
----
2019-07-12 02:07:19 UTC - chris: But it failed again... the error message showed that :
Failed to fetch <http://mirror.yandex.ru/mirrors/launchpad/ubuntu-toolchain-r/dists/xenial/main/i18n/Translation-en> 404  Not Found


the url is not a valid path so that it can't successfully install ..
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562897239382300
----
2019-07-12 02:08:18 UTC - chris: please help! it already spent me two day..... however it still not work omg :sob::sob::sob:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562897298383900
----
2019-07-12 02:08:45 UTC - Dragos Dascalita Haut: @chris I'm sorry that ports `80` and `9000` are busy on your machine. if you can't temporarily make them available, I think the other option for you is to run the standalone JAR version of openwhisk.
<https://github.com/apache/incubator-openwhisk/tree/master/core/standalone>


```$ wget <https://github.com/chetanmeh/incubator-openwhisk/releases/download/v0.10/openwhisk-standalone.jar>
$ java -jar openwhisk-standalone.jar
$ wsk property set --apihost '<http://localhost:3233>' --auth
'23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP'```
+1 : Dominic Kim
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562897325384400
----
2019-07-12 02:12:18 UTC - chris: @Dragos Dascalita Haut thank you for replying me!! can i ask how do you know the apihost  .... aftter i install the wsk and i tried "wsk api list" , it tells me that error: An API host must be provided.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562897538386700?thread_ts=1562897538.386700&cid=C3TPCAQG1
----
2019-07-12 02:13:11 UTC - Dragos Dascalita Haut: `wsk api ...` commands won't work with this standalone JAR version
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562897591387200
----
2019-07-12 02:13:30 UTC - Dragos Dascalita Haut: the reason is that the openwhisk gateway does not run
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562897610387600
----
2019-07-12 02:15:20 UTC - chris: so for now, the first thing is delete all the openwhisk what i installed (docker-compose and WSKCLI )  and the next thing is to install by your recommend instructions right ?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562897720389100
----
2019-07-12 02:15:46 UTC - Dragos Dascalita Haut: no need to delete anything. you can simply run the 3 commands I pasted above
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562897746389400
----
2019-07-12 02:16:26 UTC - chris: OK wait me 5 mins &gt;&lt; thanks a lot i am going to try it now
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562897786390500
----
2019-07-12 02:16:33 UTC - Dragos Dascalita Haut: I need to run now, but I'll check back in a few hours.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562897793390700
----
2019-07-12 02:17:44 UTC - chris: OK no matter it is work or not, thank you so much for your reply  :heart:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562897864391400
----
2019-07-12 02:31:59 UTC - chris: @Dragos Dascalita Haut When I install run java -jar openwhisk-standalone.jar
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562898719392300
----
2019-07-12 02:34:55 UTC - chris: It stuck for a long time until ctrl + C
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562898895392500
----
2019-07-12 02:36:06 UTC - chris: After i tried to run an example :
wsk action create hello hello2.js
it showed:
error: Unable to create action 'hello': Put <http://localhost:3233/api/v1/namespaces/_/actions/hello?overwrite=false>: dial tcp 127.0.0.1:3233: getsockopt: connection refused Run 'wsk --help' for usage.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562898966393500
----
2019-07-12 03:31:56 UTC - chris: Maybe.....I think i should delete all of them and someone can step by step to tell me the instruction...... so tried...my heart..
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562902316394900?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 03:42:41 UTC - Dragos Dascalita Haut: @chris did you also run `wsk property set .....` as instructed above ?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562902961396000
----
2019-07-12 04:05:11 UTC - chetanm: @chris can you share the followup log showed on the console. It looks like server was not able to bind to 3233 socket for some reason
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562904311396100?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:05:29 UTC - chetanm: Also output of wsk command with `-v` flag
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562904329396300?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:27:27 UTC - chris: @Dragos Dascalita Haut yes i did. the error message shows ...."<http://localhost:3233>"........... i did paste in the above
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562905647397300
----
2019-07-12 04:29:04 UTC - chetanm: @chris pinged you on a thread …
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562905744397700
----
2019-07-12 04:34:53 UTC - chris: @chetanm can you tell clearly what i should inputt to the command line ?? i am so confuse which instruction i should run ..... &gt;&lt; Sorry OMG
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906093397800?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:35:26 UTC - chetanm: `wsk action create hello hello2.js -v`
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906126398000?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:38:24 UTC - chris: I am a super newbie. :sob:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906304398200?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:39:53 UTC - chetanm: That indicates that server was not able to bound to the port
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906393398600?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:40:31 UTC - chetanm: Now lets check what the logs from `java -jar openwhisk-standalone.jar` says. Can you just copy the text from output of that command …say initial 100 lines
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906431398800?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:45:07 UTC - chris: the first time Mr. dragos taught me run it shoed the error like this:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906707399000?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:45:25 UTC - chris: But now i don't know why it shows in the following:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906725399400?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:45:41 UTC - chris: 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906741399600?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:46:22 UTC - chetanm: Those are further progress logs
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906782400000?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:46:33 UTC - chetanm: From that it appears that server is coming up file
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906793400200?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:46:34 UTC - chris: and it stuck now.... do i need to CTRL + C to stop it ?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906794400400?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:47:02 UTC - chetanm: Its not stuck … its a server process. So it would log whatever it does.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906822400800?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:47:12 UTC - chetanm: Right now its not doing anything so no update in logs
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906832401000?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:47:32 UTC - chetanm: Now lets try `wsk action create hello hello2.js -v` again once more
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906852401200?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:48:17 UTC - chetanm: Just keep the server running while doing this from a separate command prompt
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906897401400?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:49:24 UTC - chris: So now, I keep this window here not to touch
And open another putty to connect to the server and run  wsk action create hello hello2.js -v ?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906964402100?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:49:44 UTC - chetanm: yes
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906984402900?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:49:53 UTC - Rodric Rabbah: I did manage to run api gateway with standalone controller fwiw FYI @Dragos Dascalita Haut 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562906993403200?thread_ts=1562897538.386700&cid=C3TPCAQG1
----
2019-07-12 04:50:03 UTC - chetanm: You are running server on a remote machine and connecting via ssh?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907003403400?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:50:14 UTC - chris: yes
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907014403600?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:50:17 UTC - chris: oh my god!!!
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907017403800?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:50:23 UTC - chris: it work @@
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907023404000?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:51:05 UTC - chris: 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907065404200?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:51:24 UTC - Rodric Rabbah: :+1: and welcome to openwhisk 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907084405000?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:57:24 UTC - chris: thanks @chetanm

But can i ask some question ?
 i just can run openwhisk by this method ?
when i restart my pc tommorrow, first thing i have to run java -jar openwhisk-standalone.jar and keep this window here and open another window to coding and run openwhisk ?????

Is it possible for me to write the code (action) somthing functions in the Jupyterhub and run it on the IDE before everything i already setting ?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907444405200?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:58:35 UTC - chris: i do not know whether can know what i mean...
in short, is it possible to integrate the openwhisk to jupyter ?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907515405400?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:59:08 UTC - Dragos Dascalita Haut: yes
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907548405600?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:59:19 UTC - chetanm: @Dragos Dascalita Haut I think looked into that aspect … I have not tried that approach so  far
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907559405800?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:59:23 UTC - chetanm: Aah here he is!
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907563406000?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 04:59:51 UTC - Dragos Dascalita Haut: see this example: <https://github.com/apache/incubator-openwhisk-runtime-python/blob/master/core/python3AiAction/samples/smart-body-crop/crop.ipynb>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907591406200?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 05:00:12 UTC - chetanm: May be we can comeup with a simple jupyter container which can be launched and connected to standalone for simple trial work
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907612406400?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 05:02:30 UTC - Dragos Dascalita Haut: this is what the example above tries to do. a caveat is `OPENWHISK_APIHOST` which should route to the correct local address. `localhost` won't do it as the jupyter notebook from the example runs in a container
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907750406600?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 05:05:28 UTC - chetanm: okie there ve can use `<http://host.docker.internal:3233>`
+1 : Dragos Dascalita Haut
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562907928406800?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 05:19:01 UTC - chris: @Dragos Dascalita Haut @chetanm  thank you so much for giving me a big hand so far......... :sob::sob:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562908741407100?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 05:20:27 UTC - chris: I already install the jupyter in the container too. i will take a look for that example.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562908827407300?thread_ts=1562902316.394900&cid=C3TPCAQG1
----
2019-07-12 09:38:07 UTC - Michael Schmidt: Any documentation on how to host the documentation for openwhisk in an offline environment?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562924287408600?thread_ts=1562924287.408600&cid=C3TPCAQG1
----
2019-07-12 09:39:13 UTC - Michael Schmidt: It would be really cool if it could be done via a function, but that is just a bonus...
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562924353409200
----
2019-07-12 10:53:05 UTC - Roberto Diaz: what do you need?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562928785409400?thread_ts=1562924287.408600&cid=C3TPCAQG1
----
2019-07-12 10:54:17 UTC - Roberto Diaz: have you tried the developer tools, you can create your own env locally?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562928857409600?thread_ts=1562924287.408600&cid=C3TPCAQG1
----
2019-07-12 10:54:18 UTC - Roberto Diaz: <https://github.com/apache/incubator-openwhisk-devtools/tree/master/docker-compose>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562928858409800?thread_ts=1562924287.408600&cid=C3TPCAQG1
----
2019-07-12 11:34:49 UTC - Michael Schmidt: No I just looking to host the docs in my closed env so my users can see them. Some dont get internet access.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562931289410200?thread_ts=1562924287.408600&cid=C3TPCAQG1
----
2019-07-12 11:53:58 UTC - Michael Schmidt: @Dave Grove thanks for telling me where the init scripts were and how they worked. I was able to throw them in a quick bucket and edit the scripts to curl the scripts down rather than curl.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562932438411100
----
2019-07-12 11:54:47 UTC - Michael Schmidt: Last thing is ingress and I have my working system :partyparrot: Right now it works via the -i flag. but that is causing issues for the kafka produce stuff because that go code is making https posts
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562932487412000
----
2019-07-12 12:02:20 UTC - didier amyot: It's the first time I hear about Kata or Firecracker.  It will all depend on the permission I have on the clusters
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562932940412100?thread_ts=1562887046.375000&cid=C3TPCAQG1
----
2019-07-12 12:02:33 UTC - didier amyot: many thanks for your help
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562932953412300?thread_ts=1562887046.375000&cid=C3TPCAQG1
----
2019-07-12 12:30:26 UTC - mmarth: ICYMI: vote on OpenWhisk incubation passed. Congratulations! :partyparrot: :tada: :whisking: :openwhisk:
<https://lists.apache.org/thread.html/56228752762e9a2624b6efa5eba9846c18ce956497f335bc3fb8d924@%3Cgeneral.incubator.apache.org%3E>
openwhisk : James Thomas, Michael Schmidt, Dave Grove
upvotepartyparrot : Roberto Santiago, chetanm, Michael Schmidt
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562934626413700
----
2019-07-12 13:22:16 UTC - Rodric Rabbah: thanks to all the community members who’ve helped grow this community over the years and the committers who continue to be passionate about the project!
partyparrot : Michael Schmidt
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562937736414800
----
2019-07-12 13:30:47 UTC - Rodric Rabbah: to all the new comers if you’d like to get some openwhisk swag, dm me… you can see what’s available on <https://www.redbubble.com/shop/openwhisk?iaCode=u-accessories&amp;ref=search_box&amp;sortOrder=relevant>

the search is very flaky but if you find and open one of the items you’ll see 45+ more products available including shirts, mugs, laptop sleeves, and more
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562938247416600?thread_ts=1562938247.416600&cid=C3TPCAQG1
----
2019-07-12 13:36:58 UTC - Roberto Santiago: That's great!  I have been the evangelist in my company for OW.  I think with the graduation to top project I need to buy everyone a coffee mug.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562938618416800?thread_ts=1562938247.416600&cid=C3TPCAQG1
----
2019-07-12 13:42:13 UTC - Roberto Diaz: ohh ok!!
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562938933417000?thread_ts=1562924287.408600&cid=C3TPCAQG1
----
2019-07-12 16:32:15 UTC - Michael Schmidt: Maybe there is a gap in my understanding, but I filled out the openwhisk helm file (will include the tls section for the NodePort). This SHOULD work right? but it looks like when i try to hit via tls i get an error saying the certificate is for *.localhost, not my cert domain... I went into the chart and the nginx secret doesn't look like it actually accepts a dynamic certificate? but again this could be my lack of understanding? (check bottom of file)
<https://github.com/apache/incubator-openwhisk-deploy-kube/blob/master/helm/openwhisk/templates/nginx-secret.yaml>

```
    tls:
      enabled: true
      secretenabled: true
      createsecret: false
      secretname: "my-openwhisk"
      secrettype: "tls"
#      crt: "crt"
#      key: "key"
```
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562949135422900
----
2019-07-12 16:34:48 UTC - Michael Schmidt: doing a connection with -i flag does work. So I am not really sure what I am doing incorrectly for the TLS?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562949288423900
----
2019-07-12 16:36:53 UTC - Michael Schmidt: I am in fact setting a secret type tls ahead of time that is named "my-openwhisk".

`Unable to obtain API information: Get https://&lt;my domain&gt;:31001/api/v1: x509: certificate is valid for *.localhost, not &lt;my domain&gt;`
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562949413425800
----
2019-07-12 16:37:23 UTC - Michael Schmidt: while the `wsk property get -i` returns with everyhting including the build number
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562949443426300
----
2019-07-12 16:44:13 UTC - Michael Schmidt: I believe that tls is the reason for my kafka trigger whoas, but now having issues with the tls itself :disappointed:
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1562949853427000
----