Trigger-fired action failed to invoke with akka.stream.StreamTcpException
- Dominant language
- Scala
- Stars
- 6.8k
- Forks
- 1.2k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 2
Description
## Environment details:
* I run openwhisk on a virtualbox VM on a workstation
Workstation :
* CUP : Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz 3.60 GHz
* MEMORY: 32G
* OS: Win10 Pro
VM:
* OS: Ubuntu 22.04.1 LTS (64 bits)
* CPU: 1cpu
* MEMEORY: 8G
* version of docker, ubuntu, ...
``` shell
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
```
Docker version 20.10.23, build 7155243
## Steps to reproduce the issue:
1. code
``` node.js
function main(args){
console.log(args.name)
return {}
}
```
2. create package
``` shell
$ wsk pakcage update basics
```
3. create action
``` shell
$ wsk action update basics/log-alpha -p name alpha log.js
```
4. create a trigger
``` shell
$ wsk trigger create basics-alert
```
5. create a rule
``` shell
$ wsk rule update basics-alert-alpha basics-alert basics/log-alpha
```
6. fire the trigger
``` shell
$ wsk trigger fire basics-alert
$ ok: triggered /_/basics-alert with id 46a799668bd34138a799668bd3c138ce
```
7. get result
``` shell
$ wsk activation get 46a799668bd34138a799668bd3c138ce
```
## Provide the expected results and outputs:
The logs should provide something like
```
[
"2023-02-07T02:02:27.001323024Z alpha"
]
```
## Provide the actual results and outputs:
"There was an internal server error." when the rule is activated to invoke the action `basics/log-alpha`
```
{
"namespace": "guest",
"name": "basics-alert",
"version": "0.0.1",
"subject": "guest",
"activationId": "46a799668bd34138a799668bd3c138ce",
"start": 1675735493384,
"end": 0,
"duration": 0,
"statusCode": 0,
"response": {
"status": "success",
"statusCode": 0,
"success": true,
"result": {}
},
"logs": [
"{\"statusCode\":3,\"success\":false,\"rule\":\"guest/basics-alert-alpha\",\"error\":\"There was an internal server error.\",\"action\":\"guest/basics/log-alpha\"}"
],
"annotations": [],
"publish": false
}
```
## Additional information you deem important:
The openwhisk logs:
``` shell
[2023-02-07T10:04:53.388Z] [INFO] [#tid_Wl0sjUAto0nZhXQkQzqvt2Cgy0Qs1V3c] [BasicHttpService] [marker:http_post.202_counter:14:14]
[2023-02-07T10:04:53.447Z] [ERROR] [#tid_Wl0sjUAto0nZhXQkQzqvt2Cgy0Qs1V3c] [TriggersApi] trigger-fired action 'guest/basics/log-alpha' failed to invoke with akka.stream.StreamTcpException: Tcp command [Connect(localhost:3233,None,List(),Some(10 seconds),true)] failed because of java.net.ConnectException: Connection refused
[2023-02-07T10:04:53.448Z] [INFO] [#tid_Wl0sjUAto0nZhXQkQzqvt2Cgy0Qs1V3c] [MemoryArtifactStore] [PUT] 'activations' saving document: 'id: guest/46a799668bd34138a799668bd3c138ce, rev: null' [marker:database_saveDocument_start:74]
```
Contributor guide
Assessment
This issue has not been assessed yet.