4

Today I installed Kong (API Management Layer) on my Mac OS X (Yosemite 10.10.5). I used the .pkg file which is available here. I followed the installation instructions and everything was successful.

I also installed Cassandra using the information given on the Cassandra home page.

But when I start Kong, using the command:

$ kong start

It throws the following error:

dnsmasq: failed to create listening socket for fe80::3e15:XXXX:XXXX%en0: Can't assign requested address
Mark
  • 67,098
  • 47
  • 117
  • 162
Kamalakannan J
  • 2,818
  • 3
  • 23
  • 51

4 Answers4

0

Looks like you have already something running on the kong port 8000,8001 or 9042. Try to shut down anything that might be using those ports and retry?

API_sheriff_orlie
  • 1,223
  • 10
  • 18
  • No, in the mentioned ports only 9042 is only occupied. That too by Cassandra only. Other ports are free. Still I get the same error. – Kamalakannan J Jun 16 '15 at 08:29
0

you can configure Kong to run on any custom ports for (proxy and admin) by changing the values in the /etc/kong/kong.yml file. see full config reference here

Ahmad Nassri
  • 1,299
  • 1
  • 12
  • 18
0

The problem is that dnsmasq on Kong is listening by default on port 8053 (https://github.com/Mashape/kong/blob/master/kong.yml#L29), which seems to be already taken on your system.

Make sure that there is nothing else running on that port.

Mark
  • 67,098
  • 47
  • 117
  • 162
0

You can kill the process that is running on the dnsmasq port and restart the kong.

Kill the process:

sudo kill `sudo lsof -t -i:8053`

Start Kong:

kong start

/usr/local/bin/kong start
/usr/local/bin/kong stop
/usr/local/bin/kong reload
/usr/local/bin/kong status
Gajen Sunthara
  • 4,470
  • 37
  • 23