Hi @csantanapr thanks for detailed steps. Getting the following logs now
```
➜ incubator-openwhisk-devtools git:(master) wsk --auth $WSKSYSTEMAUTH
--insecure activation logs 2a346c0a22cd441ab46c0a22cd241a92
2018-10-06T10:34:41.254872639Z stdout: replaceNamespaceInUrl: namspace=guest
url before - https://127.94.0.2/api/v1/web/guest/default/hello.http
2018-10-06T10:34:41.255034466Z stdout: replaceNamespaceInUrl: replacing
namespace 'guest' with 'guest'
2018-10-06T10:34:41.255314942Z stdout: replaceNamespaceInUrl: url after -
https://127.94.0.2/api/v1/web/guest/default/hello.http
2018-10-06T10:34:41.255923699Z stdout: GW URL : undefined
2018-10-06T10:34:41.255950604Z stdout: GW URL V2 : http://127.94.0.2:9000/v2
2018-10-06T10:34:41.255954767Z stdout: GW Auth : undefined
2018-10-06T10:34:41.255957474Z stdout: __ow_user : guest
2018-10-06T10:34:41.255959798Z stdout: namespace : guest
2018-10-06T10:34:41.256035294Z stdout: tenantInstance: undefined / openwhisk
2018-10-06T10:34:41.256042132Z stdout: accesstoken : DUMMY TOKEN
2018-10-06T10:34:41.256044608Z stdout: spaceguid :
23bc46b1-71f6-4ed5-8c54-816aa4f8c502
2018-10-06T10:34:41.256046926Z stdout: responsetype : json
2018-10-06T10:34:41.25604905Z stdout: API name : undefined
2018-10-06T10:34:41.256051301Z stdout: basepath : /hello
2018-10-06T10:34:41.256053411Z stdout: relpath : /world
2018-10-06T10:34:41.256055554Z stdout: GW method : GET
2018-10-06T10:34:41.256110996Z stdout: action name: hello
2018-10-06T10:34:41.256116494Z stdout: action namespace: guest
2018-10-06T10:34:41.256118951Z stdout: action backendUrl:
https://127.94.0.2/api/v1/web/guest/default/hello.http
2018-10-06T10:34:41.256121147Z stdout: action backendMethod: GET
2018-10-06T10:34:41.256123293Z stdout: action authkey: XXXXXXXXXX
2018-10-06T10:34:41.256178952Z stdout: action secureKey: undefined
2018-10-06T10:34:41.256184868Z stdout: calledAsWebAction: true
2018-10-06T10:34:41.256187337Z stdout: apidoc :
2018-10-06T10:34:41.256190284Z stdout:
{"gatewayMethod":"GET","gatewayPath":"/world","gatewayBasePath":"/hello","id":"API:guest:/hello","action":{"name":"hello","backendMethod":"GET","authkey":"23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP","backendUrl":"https://127.94.0.2/api/v1/web/guest/default/hello.http","namespace":"guest"},"namespace":"guest"}
2018-10-06T10:34:41.256346102Z stdout: getApis: querying APIs based on basepath
2018-10-06T10:34:41.256947264Z stdout: getApis: request:
{"followAllRedirects":true,"url":"http://127.94.0.2:9000/v2/23bc46b1-71f6-4ed5-8c54-816aa4f8c502/apis","headers":{"Accept":"application/json","User-Agent":"OpenWhisk-apimgmt/1.0.0
OpenWhisk-CLI/1.0 (2018-09-14T17:43:44.288+0000) darwin
amd64","Authorization":"Bearer DUMMY
TOKEN"},"json":true,"qs":{"basePath":"/hello"}}
2018-10-06T10:34:41.275861524Z stdout: getApis: response status: undefined
2018-10-06T10:34:41.277711084Z stdout: getApis: body type = undefined
2018-10-06T10:34:41.277760589Z stderr: { Error: connect ECONNREFUSED
127.94.0.2:9000
2018-10-06T10:34:41.277764419Z stderr: at Object.exports._errnoException
(util.js:1020:11)
2018-10-06T10:34:41.277766885Z stderr: at exports._exceptionWithHostPort
(util.js:1043:20)
2018-10-06T10:34:41.277777487Z stderr: at TCPConnectWrap.afterConnect [as
oncomplete] (net.js:1099:14)
2018-10-06T10:34:41.277780105Z stderr: code: 'ECONNREFUSED',
2018-10-06T10:34:41.277782282Z stderr: errno: 'ECONNREFUSED',
2018-10-06T10:34:41.277784372Z stderr: syscall: 'connect',
2018-10-06T10:34:41.277786481Z stderr: address: '127.94.0.2',
2018-10-06T10:34:41.27778856Z stderr: port: 9000 }
2018-10-06T10:34:41.277790744Z stderr: Warning: getApis request failed:
"connect ECONNREFUSED 127.94.0.2:9000"
2018-10-06T10:34:41.277793073Z stderr: getApis: Unable to obtain API(s) from
the API Gateway
2018-10-06T10:34:41.277965321Z stderr: { Error: connect ECONNREFUSED
127.94.0.2:9000
2018-10-06T10:34:41.277977652Z stderr: at Object.exports._errnoException
(util.js:1020:11)
2018-10-06T10:34:41.277980993Z stderr: at exports._exceptionWithHostPort
(util.js:1043:20)
2018-10-06T10:34:41.277983547Z stderr: at TCPConnectWrap.afterConnect [as
oncomplete] (net.js:1099:14)
2018-10-06T10:34:41.277985995Z stderr: code: 'ECONNREFUSED',
2018-10-06T10:34:41.277988188Z stderr: errno: 'ECONNREFUSED',
2018-10-06T10:34:41.277990396Z stderr: syscall: 'connect',
2018-10-06T10:34:41.277992555Z stderr: address: '127.94.0.2',
2018-10-06T10:34:41.277994736Z stderr: port: 9000 }
2018-10-06T10:34:41.278484709Z stdout: makeJsonString: String is not JSON, so
need to convert it: SyntaxError: Unexpected token U in JSON at position 0
2018-10-06T10:34:41.278484859Z stderr: API creation failure: Unable to obtain
API(s) from the API Gateway: "connect ECONNREFUSED 127.94.0.2:9000"
2018-10-06T10:34:41.27858922Z stdout: makeErrorResponseObject: isWebAction:
true
2018-10-06T10:34:41.278599167Z stdout: makeJsonString: String is not JSON, so
need to convert it: SyntaxError: Unexpected token A in JSON at position 0
```
Yup, it looks like action is getting connection refused from the API gateway.
Also my `docker0` interface is still bound to `172.17.0.1` as yours. Running
`docker network inspect bridge` gives
```
[
{
"Name": "bridge",
"Id":
"1b4b71874236408dc4b9aa170d035407f072bae34787698b172a5969b07af0b9",
"Created": "2018-10-06T10:03:08.054387632Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.17.0.0/16",
"Gateway": "172.17.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {},
"Options": {
"com.docker.network.bridge.default_bridge": "true",
"com.docker.network.bridge.enable_icc": "true",
"com.docker.network.bridge.enable_ip_masquerade": "true",
"com.docker.network.bridge.host_binding_ipv4": "0.0.0.0",
"com.docker.network.bridge.name": "docker0",
"com.docker.network.driver.mtu": "1500"
},
"Labels": {}
}
]
```
but when I do `wsk property get --apihost` I always get
```
whisk API host 127.94.0.2
```
I also activated my `docker0` network interface using
```
sudo ifconfig lo0 alias 172.17.0.1/24
```
and now my `ifconfig | grep inet` shows
```
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.94.0.2 netmask 0xff000000
inet 127.94.0.1 netmask 0xff000000
inet 172.17.0.1 netmask 0xffffff00
inet6 fe80::81c:17ad:1de2:dcb0%en0 prefixlen 64 secured scopeid 0xc
inet 10.71.76.84 netmask 0xfffff800 broadcast 10.71.79.255
inet6 fe80::b461:6aff:fe87:2eb1%awdl0 prefixlen 64 scopeid 0xe
inet6 fe80::cd8a:e14b:919c:5c62%utun0 prefixlen 64 scopeid 0x10
inet6 fe80::aede:48ff:fe00:1122%en6 prefixlen 64 scopeid 0x7
```
But still getting the same error.
Unsure why its not connecting through the bridge network interface ?
[ Full content available at:
https://github.com/apache/incubator-openwhisk-devtools/issues/163 ]
This message was relayed via gitbox.apache.org for [email protected]