Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

connect kong error #491

Open
ajamesa opened this issue Nov 9, 2019 · 5 comments
Open

connect kong error #491

ajamesa opened this issue Nov 9, 2019 · 5 comments

Comments

@ajamesa
Copy link

ajamesa commented Nov 9, 2019

debug: Policy:dynamicNode connection-id is defined. 9
debug: KongProxyController:req.method GET
debug: KongProxyController:req.url ?connection_id=9
debug: KongProxyController:entity null
debug: Kong admin url => http://localhost:8001
error: KongProxyController request error undefined
error: Sending 500 ("Server Error") response:
{ error:
{ Error: connect ECONNREFUSED 127.0.0.1:8001
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 8001 } }

@ajamesa
Copy link
Author

ajamesa commented Nov 9, 2019

root@james-cd:/# kong health --v
2019/11/09 18:50:47 [verbose] Kong: 1.4.0
2019/11/09 18:50:47 [verbose] prefix in use: /usr/local/kong
2019/11/09 18:50:47 [verbose] reading config file at /usr/local/kong/.kong_env
2019/11/09 18:50:47 [verbose] prefix in use: /usr/local/kong
2019/11/09 18:50:47 [info] nginx.......running
2019/11/09 18:50:47 [info]
2019/11/09 18:50:47 [info] Kong is healthy at /usr/local/kong
root@james-cd:/# curl -I http://localhost:8001/
HTTP/1.1 200 OK
Server: openresty
Date: Sat, 09 Nov 2019 10:51:18 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Access-Control-Allow-Origin: *
X-Kong-Admin-Latency: 0

@dfdf10086
Copy link

我也出现了这种情况,你们都是怎么解决的?
愁死我了!

@gln-gln
Copy link

gln-gln commented Nov 26, 2020

Hello, Any suggestions for resolving this ?Thanks

@Jdchjq
Copy link

Jdchjq commented Feb 21, 2021

If your kong and konga are deployed on mac, please use host.docker.internal instead of localhost when connecting to kong, such as url: http://host.docker.internal:8001
you also can reference this link https://stackoverflow.com/questions/31324981/how-to-access-host-port-from-docker-container/43541732#43541732 for linux and windows

@rasel-stacklearner
Copy link

If your kong and konga are deployed on mac, please use host.docker.internal instead of localhost when connecting to kong, such as url: http://host.docker.internal:8001 you also can reference this link https://stackoverflow.com/questions/31324981/how-to-access-host-port-from-docker-container/43541732#43541732 for linux and windows

thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants