Sheshadri-1992 opened a new issue, #5354: URL: https://github.com/apache/openwhisk/issues/5354
<!-- We use the issue tracker for bugs and feature requests. For general questions and discussion please use https://openwhisk.apache.org/slack.html or https://openwhisk.apache.org/community.html instead. Do NOT share passwords, credentials or other confidential information. Before creating a new issue, please check if there is one already open that fits the defect you are reporting. If you open an issue and realize later it is a duplicate of a pre-existing open issue, please close yours and add a comment to the other. Issues can be created for either defects or enhancement requests. If you are a committer than please add the labels "bug" or "feature". If you are not a committer please make clear in the comments which one it is, so that committers can add these labels later. If you are reporting a defect, please edit the issue description to include the information shown below. If you are reporting an enhancement request, please include information on what you are trying to achieve and why that enhancement would help you. For more information about reporting issues, see https://github.com/apache/openwhisk/blob/master/CONTRIBUTING.md#raising-issues Use the commands below to provide key information from your environment: You do not have to include this information if this is a feature request. --> ## Environment details: * Native Ubuntu * version of docker Client: Docker Engine - Community Version: 20.10.12 API version: 1.41 Go version: go1.16.12 Git commit: e91ed57 Built: Mon Dec 13 11:45:27 2021 OS/Arch: linux/amd64 * Ubuntu NAME="Ubuntu" VERSION="18.04.6 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.6 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic ## Steps to reproduce the issue: 1. Installed Openwhisk with the [https://github.com/apache/openwhisk/blob/master/tools/ubuntu-setup/README.md]. I could create actions, and execute them by issuing wsk cli commands. 2. Restarted my machine, set the environment variable to ENVIRONMENT=local 3. When i start issuing action requests, I get the error error: Unable to obtain the list of actions for namespace 'default': The connection failed, or timed out. (HTTP status code 404) ## Provide the expected results and outputs: ``` (base) swamiji@28-Nov-2022:bin$ ./wsk action list --insecure List of actions that I had created in the default namespace ``` ## Provide the actual results and outputs: ``` error: Unable to obtain the list of actions for namespace 'default': The connection failed, or timed out. (HTTP status code 404) ``` ## Additional information you deem important: * This problem was getting resolved if I restarted the computer and tried it again. But this is unreliable, it used to work before. Now it consistently shows the HTTP 404 error for any request to the 'default' namespace. Openwhisk config file (whisk.properties)  Openwhisk (whisk.conf)  All the services of the openwhisk are up:  **Attaching the debug logs for the command** (base) swamiji@28-Nov-2022:bin$ ./wsk action list --insecure --debug [-go/whisk.addRouteOptions]:051:[Inf] Adding options &{Limit:30 Skip:0 Docs:false} to route 'actions' [-go/whisk.addRouteOptions]:076:[Inf] Returning route options 'actions?limit=30&skip=0' from input struct &{Limit:30 Skip:0 Docs:false} [isk.(*ActionService).List]:189:[Err] Action list route with options: actions [k.(*Client).NewRequestUrl]:825:[Inf] basepath: https://172.17.0.1/api, version/namespace path: v1/namespaces/_, resource path: actions?limit=30&skip=0 [k.(*Client).addAuthHeader]:335:[Inf] Adding basic auth header; using authkey REQUEST: [GET] https://172.17.0.1/api/v1/namespaces/_/actions?limit=30&skip=0 Req Headers { "Authorization": [ "Basic MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A=" ], "User-Agent": [ "OpenWhisk-CLI/1.0 (2021-03-26T01:02:38.401+0000) linux amd64" ] } RESPONSE:Got response with code 404 Resp Headers { "Content-Length": [ "19" ], "Content-Type": [ "text/plain; charset=utf-8" ], "Date": [ "Mon, 28 Nov 2022 14:57:47 GMT" ], "X-Content-Type-Options": [ "nosniff" ] } Response body size is 19 bytes Response body received: 404 page not found [o/whisk.PrintResponseInfo]:536:[Inf] Response body received (ASCII quoted string): "404 page not found\n" [/whisk.parseErrorResponse]:551:[Inf] HTTP failure 404 + body [/whisk.parseErrorResponse]:573:[Err] HTTP response with unexpected body failed due to contents parsing error: 'json: cannot unmarshal number into Go value of type whisk.ErrorResponse' [isk.(*ActionService).List]:203:[Err] s.client.Do() error - HTTP req https://172.17.0.1/api/v1/namespaces/_/actions?limit=30&skip=0; error 'The connection failed, or timed out. (HTTP status code 404)' [/commands.actionListError]:1062:[Err] Client.Actions.List(, &whisk.ActionListOptions{Limit:30, Skip:0, Docs:false}) error: The connection failed, or timed out. (HTTP status code 404) [-cli/commands.ExitOnError]:1193:[Inf] err object type: *whisk.WskError [-cli/commands.ExitOnError]:1204:[Err] Got a *whisk.WskError error: &whisk.WskError{RootErr:(*errors.errorString)(0xc00009cea0), ExitCode:148, DisplayMsg:true, MsgDisplayed:false, DisplayUsage:true, DisplayPrefix:true, ApplicationError:false, TimedOut:false} error: Unable to obtain the list of actions for namespace 'default': The connection failed, or timed out. (HTTP status code 404) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
