Can t start kong

ubuntu 20.04 with cassandra without postgres…

sebastien@dev-box:~$ kong start
Error: [PostgreSQL error] failed to retrieve PostgreSQL server_version_num: connection refused

Run with --v (verbose) or --vv (debug) for more details

AND i dont find my kong.conf and kong.yml

help me please

First of all, you need to install the Cassandra database separately in your Ubuntu server. check this link (Installing Cassandra in Ubuntu)
You can create a specific user and password in the cassandra for your Kong gateway

Then, you need to locate /etc/kong/kong.conf.default then make a copy by running this command cp /etc/kong/kong.conf.default /etc/kong/kong.conf then open /etc/kong/kong.conf file to update update datastore/database configs like:

database = cassandra
pg_host =
pg_port = 5432
pg_user = yourCassandraUsername
pg_password = yourCassandraPassword
pg_database = kong

Finally run kong start

1 Like