2020-02-19 01:48:26 UTC - Tom Barber: okay I've been working on this all day and I'm doing something wrong cause this used to work https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582076906074200 ---- 2020-02-19 01:48:29 UTC - Tom Barber: but I can't figure out what https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582076909074500 ---- 2020-02-19 01:48:51 UTC - Tom Barber: In sls I've got a docker based axction defined https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582076931074800 ---- 2020-02-19 01:49:09 UTC - Tom Barber: ``` quantJobTrigger: handler: <image> runtime: docker annotations: web-export: true require-whisk-auth: false events: - http: path: /sessions/docker method: get``` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582076949075300 ---- 2020-02-19 01:49:30 UTC - Tom Barber: I then try and call it https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582076970075600 ---- 2020-02-19 01:50:08 UTC - Tom Barber: ```curl -XPOST -vvvv http://<>/api/v1/web/guest/default/<>-serverless-dev-quantJobTrigger?blocking=false``` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077008076100 ---- 2020-02-19 01:50:13 UTC - Tom Barber: it it runs the container https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077013076300 ---- 2020-02-19 01:50:22 UTC - Tom Barber: but returns a https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077022076600 ---- 2020-02-19 01:50:25 UTC - Tom Barber: ```< HTTP/1.1 204 No Content``` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077025077000 ---- 2020-02-19 01:50:33 UTC - Tom Barber: and no activation ID or anything https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077033077300 ---- 2020-02-19 01:57:44 UTC - Tom Barber: all the container exec command does is https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077464077600 ---- 2020-02-19 01:58:01 UTC - Tom Barber: ```#!/bin/bash echo '{"msg":"Container run"}'``` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077481077900 ---- 2020-02-19 01:58:13 UTC - Tom Barber: and if I run the container locally and and /run https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077493078200 ---- 2020-02-19 01:58:23 UTC - Tom Barber: the container returns a 200 and that message https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077503078700 ---- 2020-02-19 02:01:17 UTC - Rodric Rabbah: Try s/msg/body https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077677079200 ---- 2020-02-19 02:01:38 UTC - Rodric Rabbah: Or use .json in the curl after the action name. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077698079600 ---- 2020-02-19 02:02:04 UTC - Tom Barber: omfg :sob: https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077724079900 ---- 2020-02-19 02:02:14 UTC - Tom Barber: lol https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077734080400 ---- 2020-02-19 02:02:20 UTC - Rodric Rabbah: (No activation id is odd though there should be one in the headers) https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077740080700 ---- 2020-02-19 02:02:42 UTC - Tom Barber: literally 6 hours i've been trying to get a response out of that endpoint https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077762081500 ---- 2020-02-19 02:02:50 UTC - Tom Barber: and adding .json and it returns something https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077770082100 ---- 2020-02-19 02:03:18 UTC - Rodric Rabbah: _sorry_ (web actions require a conforming response to project the body, status code and headers) https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077798082900 ---- 2020-02-19 02:03:53 UTC - Tom Barber: i saw something about that like 5 minutes ago. Weird though because I could have sworn this random box of weirdness ran a couple of weeks ago https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077833083500 ---- 2020-02-19 02:04:19 UTC - Tom Barber: well, it may or may not have run, but it certainly returned a response than didn't cause the parent action to explode https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077859084200 ---- 2020-02-19 02:04:58 UTC - Tom Barber: clearly something got changed it didn't like at some point https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582077898084600 ---- 2020-02-19 09:53:01 UTC - Anuradha Natarajan: Hi, i have created a webaction that is supposed to use paramiko to connect to the remote machine, install docker and liberty profile, however when running the action thro' curl, i am getting the following response, <https://10.0.2.15/api/v1/web/guest/default/remoteUC.json> --> < x-openwhisk-activation-id: 46d8db5620e144b198db5620e144b13f x-openwhisk-activation-id: 46d8db5620e144b198db5620e144b13f
< { "code": "vsNL0mKwgvL4bgAb1vVDYJ9mvPB8frDp", "error": "Response not yet ready." * Connection #0 to host 10.0.2.15 left intact } what is meant by a 'response not yet ready' message? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582105981086300?thread_ts=1582105981.086300&cid=C3TPCAQG1 ---- 2020-02-19 09:58:48 UTC - Nikhil Achaya: It probably means the action is still executing so it returns the activation id of you action. You can use the activation id after some time to fetch the response. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582106328086500?thread_ts=1582105981.086300&cid=C3TPCAQG1 ---- 2020-02-19 10:12:01 UTC - Joao Carreira: Sometimes I get the following error. Any ideas how to go about fixing this? ```ubuntu@ip-10-1-129-59:~$ kubectl logs owdev-invoker-0 -n openwhisk (.......) [2020-02-19T10:06:41.937Z] [INFO] Pool shutting down because akka.http.host-connection-pool.idle-timeout triggered after 30 seconds. [2020-02-19T10:06:41.937Z] [INFO] Pool is now shutting down as requested. [2020-02-19T10:06:41.937Z] [ERROR] Outgoing request stream error (.......)``` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582107121087400?thread_ts=1582107121.087400&cid=C3TPCAQG1 ---- 2020-02-19 11:34:27 UTC - Anuradha Natarajan: tried fetching the activation id and seeing the following timeout error in openwhisk "result": { "error": "The action exceeded its time limits of 60000 milliseconds during initialization." } any help? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582112067087500?thread_ts=1582105981.086300&cid=C3TPCAQG1 ---- 2020-02-19 11:35:41 UTC - Nikhil Achaya: Probably means your code/action executed more than the allowed time limit of 60 seconds. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582112141087700?thread_ts=1582105981.086300&cid=C3TPCAQG1 ---- 2020-02-19 11:38:53 UTC - Anuradha Natarajan: can i control the timeout in openwhisk https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582112333087900?thread_ts=1582105981.086300&cid=C3TPCAQG1 ---- 2020-02-19 11:43:44 UTC - Nikhil Achaya: You can. It depends on how you've deployed OW. <https://github.com/apache/openwhisk/blob/master/docs/reference.md#system-limits> https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582112624088100?thread_ts=1582105981.086300&cid=C3TPCAQG1 ---- 2020-02-19 12:45:45 UTC - Rodric Rabbah: you can change the limit on an action with wsk action update <name> -t N Where N can range from 100 (ms) to 300000 (5min) for the default settings. Note that you can do a blocking request/response for longer than 60s (by default) after which a long running action is demoted to a non blocking request where you fetch the result using an activation id as you did above. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582116345092100?thread_ts=1582105981.086300&cid=C3TPCAQG1 ---- 2020-02-19 16:17:50 UTC - Anuradha Natarajan: i actually created it as a web action. is it possible to invoke it using 'wsk action invoke <action-name> --blocking'? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582129070092300?thread_ts=1582105981.086300&cid=C3TPCAQG1 ---- 2020-02-19 16:41:19 UTC - Rodric Rabbah: always https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582130479092500?thread_ts=1582105981.086300&cid=C3TPCAQG1 ---- 2020-02-19 23:21:16 UTC - Tom Barber: hello folks https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582154476092800 ---- 2020-02-19 23:21:41 UTC - Tom Barber: environment variables, sls and k8s, how does one set them for an action? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582154501093500?thread_ts=1582154501.093500&cid=C3TPCAQG1 ---- 2020-02-19 23:21:43 UTC - Tom Barber: or don't they? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582154503093700 ---- 2020-02-19 23:31:24 UTC - Rodric Rabbah: per action? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582155084093800?thread_ts=1582154501.093500&cid=C3TPCAQG1 ---- 2020-02-19 23:31:37 UTC - Rodric Rabbah: you can now set environment variables on an action https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582155097094000?thread_ts=1582154501.093500&cid=C3TPCAQG1 ---- 2020-02-19 23:31:47 UTC - Rodric Rabbah: they are provided at “init” time https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582155107094200?thread_ts=1582154501.093500&cid=C3TPCAQG1 ---- 2020-02-19 23:32:30 UTC - Rodric Rabbah: sls won’t support this as this is a recent feature and i dont know that anyone updated sls, wsk or wskdeploy yet to use these https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582155150094400?thread_ts=1582154501.093500&cid=C3TPCAQG1 ---- 2020-02-19 23:33:18 UTC - Rodric Rabbah: if you dont use env variables, you pass parameters as arguments to the action `wsk action update -p MY_ENV MY_VAL` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582155198095000?thread_ts=1582154501.093500&cid=C3TPCAQG1 ---- 2020-02-19 23:34:32 UTC - Kostis Kaffes: Sorry to re-iterate but what is the canonical way to set action resource limits per invoker? For example, limit the memory used by all actions managed by invoker0 to 512MB. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582155272096600 ---- 2020-02-19 23:35:47 UTC - Rodric Rabbah: sorry Kostis forgot to get back to you - looking (I’m not sure if this is possible, maybe i misunderstood the question yesterday) thankyou : Kostis Kaffes https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582155347097500?thread_ts=1582155347.097500&cid=C3TPCAQG1 ---- 2020-02-19 23:40:35 UTC - Rodric Rabbah: <https://github.com/akka/akka-http/issues/2728#issuecomment-534514355> https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582155635097700?thread_ts=1582107121.087400&cid=C3TPCAQG1 ---- 2020-02-19 23:44:33 UTC - Rodric Rabbah: the default value for `idle-timeout` is 30s, you could increase that https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582155873098000?thread_ts=1582107121.087400&cid=C3TPCAQG1 ---- 2020-02-19 23:44:37 UTC - Rodric Rabbah: :confused: https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582155877098200?thread_ts=1582107121.087400&cid=C3TPCAQG1 ---- 2020-02-19 23:45:29 UTC - Rodric Rabbah: are you seeing the connection pool is not restarting automatically? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1582155929098500?thread_ts=1582107121.087400&cid=C3TPCAQG1 ----