upgle opened a new issue #4953: URL: https://github.com/apache/openwhisk/issues/4953
<!-- 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/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. --> ## Description I got an Action could not be fetched." error when updating an action while running a sequence action. ``` 2020-08-27 17:29:04 c5851... unknown warm 0s internal error guest/B:0.0.9 2020-08-27 17:28:09 8f8d5... nodejs:10 cold 55.215s success guest/A:0.0.5 2020-08-27 17:28:09 42b73... sequence warm 55.495s internal error guest/seq:0.0.4 2020-08-27 17:27:54 da27a... unknown warm 0s internal error guest/B:0.0.4 2020-08-27 17:26:59 16a82... nodejs:10 cold 55.451s success guest/A:0.0.4 2020-08-27 17:26:58 3ae95... sequence warm 55.944s internal error guest/seq:0.0.3 ``` ```json { "response": { "status": "whisk internal error", "statusCode": 0, "success": false, "result": { "error": "Action could not be fetched." } } } ``` ## Environment details: local deployment (Mac OS), production environment (CentOS) ## Steps to reproduce the issue: 1. Create an action A. 2. Create an action B. 3. Run a shell script for testing. ### Action A.js ```javascript function main(params) { return new Promise(resolve => { setTimeout(() => { resolve({ result: "long-action" }) }, 10000); }); } ``` ### Action B.js ```javascript function main(params) { return new Promise(resolve => { setTimeout(() => { resolve({ result: JSON.stringify(params) }) }, 700); }); } ``` ### Test script ```bash wsk action update A A.js wsk action update B B.js wsk action update seq --sequence A,B wsk action invoke seq for i in {1..2} do wsk action update B B.js -p num $i wsk action invoke B -b done ``` ## Provide the expected results and outputs: ``` 2020-08-27 17:29:04 c5851... unknown warm 0s internal error guest/B:0.0.9 ``` ## Provide the actual results and outputs: ``` 2020-08-27 17:29:04 c5851... nodejs:10 warm 0s success guest/B:0.0.9 ``` ## Additional information you deem important: * issue happens only occasionally or under certain circumstances * changes you did or observed in the environment ---------------------------------------------------------------- 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: [email protected]
