Guoyoyo opened a new issue #4554: openwhisk Hello World error!! wsk api list error !! URL: https://github.com/apache/incubator-openwhisk/issues/4554 <!-- We use the issue tracker for bugs and feature requests. For general questions and discussion please use http://slack.openwhisk.org/ or https://openwhisk.apache.org/contact.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/incubator-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: * Ubuntu 16.04.6 * openjdk version "1.8.0_212" * docker-compose version 1.21.2 ## Question description about Openwhisk: Hello everyone, please give me a big hand....I'm beat... I am going to install the apache openwhisk. I choose the Quick Start (Docker-Compose) [https://github.com/apache/incubator-openwhisk#quick-start](https://github.com/apache/incubator-openwhisk#quick-start) It needs many port to install others service e.g. CouchDB, Kafka... in my computer, 80 and 9000 port is already used. so i revise the docker-compose.yml to assign the other port to replace them. (`80 => 9004 , 9000=> 9005`) After that, I run `make quick-start `, most service are work which show ok , i guess they were successfully installed. In the end, it should output the hello-world, but it didn't and show the error. > error: Unable to create API: API creation failure: Unable to obtain API(s) from the API Gateway (status code 404): {"status":404,"message":"Not Found"} ## Question description about OpenwhiskCLI: I also tried to install openwhiskCLI reference by [https://github.com/apache/incubator-openwhisk-cli](https://github.com/apache/incubator-openwhisk-cli) the following instructions are what I inputted: > git clone https://github.com/apache/incubator-openwhisk-cli.git > ./gradlew compile –PnativeCompile > ./gradlew compile -PbuildPlatforms=linux-amd64 > #add to the environment variable > sudo mv wsk /usr/local/bin It seems no problem so far. i can input `wsk`. So, i stated to try an example like Hello-world. reference: [here](https://github.com/apache/incubator-openwhisk/blob/master/docs/samples.md) The first step: Create a JavaScript code example. ``` /** * Hello world as an OpenWhisk action. */ function main(params) { var name = params.name || 'World'; return {payload: 'Hello, ' + name + '!'}; } ``` When i inputted: `wsk action create hello hello.js`, errors are just happened... > error: Unable to create action 'hello': The connection failed, or timed out. (HTTP status code 400) I surveyed google many times and tried to set a lot @*$(%), but it still not work ... omg like: `wsk property set --apihost http://172.17.0.1 namespace guest –auth 23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP ` > ok: whisk API host set to http://172.17.0.1 `wsk action create hello hello.js` > error: Unable to create action 'hello': The connection failed, or timed out. (HTTP status code 405) `wsk api list` > error: Unable to obtain the API list: The connection failed, or timed out. (HTTP status code 404) `wsk property get` > whisk API host http://172.17.0.1 whisk auth 23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP whisk namespace _ client cert Client key whisk API version v1 whisk CLI version 2019-07-11T14:05:29.661+0800 whisk API build Unknown whisk API build number Unknown error: Unable to obtain API build information: The connection failed, or timed out. (HTTP status code 404) I am not sure whether the error is happened due to wsk property set or not ? if it is, what should i set for apihost(port needed?) namespace? Please guys, if you have experience for openwhisk, help me omg
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services