-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot access Kong admin port 8001 after kong started #2207
Comments
have you tried explicitly setting |
YES, I explicitly set admin_listen as 0.0.0.0:8001 in /etc/kong/kong.conf. |
I meant set it to a the ip address of the adapter your listening on, eg |
I have tried to set it to 127.0.0.1:8001 or the lan ip 10.0.0.30:8001, it doesn't work. It seems not the ip problem. Because when I tried to access some invalid apis, eg 10.0.0.30:8001/wrongApi, it returns { "message": "Not found"}. That shows we can connect to port 8001. It seems kong cannot connect to postgresql server from the error log. But if this is true, how can it be started! After kong started about 3 minutes or a longer time, it works correctly. It's really a strange problem! Here is a part of my error log:
|
have you tried a fully qualified domain name for postgres? |
@Tieske I have tried to set postgres to localhost and it works, thank you very much. Buf if postgresql server works on the other machine, what should I do? I try to add a item of postgres' ip and its domain name in /etc/hosts, but that doesn't work. |
The dns resolver will resolve names in the |
Problem solved! I reset the value of nameserver in |
For more clarity refer Kong/kubernetes-ingress-controller#59 (comment) |
Summary
When kong started or reloaded, the admin port 8001 has no response in some minutes. This problem doesn't happen on CentOS 6.8, only happens on CentOS 7.3.1611
Additional Details & Logs
$ kong start --vv
)<KONG_PREFIX>/logs/error.log
)error.txt
kong.txt
CentOS Linux release 7.3.1611 (Core)
The text was updated successfully, but these errors were encountered: