- I downloaded .rpm file of kong enterprise edition-> kong-enterprise-edition-0.32.el7.noarch.rpm
- Installed using “rpm -ivh” command
- Installed cassandra which is running on the same server as kong’s
- But kong start is giving the below error.
error log-
$kong start -vv
2018/07/02 10:03:38 [verbose] Kong: 0.32-enterprise-edition
2018/07/02 10:03:38 [debug] ngx_lua: 10013
2018/07/02 10:03:38 [debug] nginx: 1013006
2018/07/02 10:03:38 [debug] Lua: LuaJIT 2.1.0-beta3
2018/07/02 10:03:38 [verbose] reading config file at /etc/kong/kong.conf
2018/07/02 10:03:38 [warn] RBAC authorization is enabled but Admin API calls will not be encrypted via SSL
2018/07/02 10:03:38 [debug] admin_access_log = “logs/admin_access.log”
2018/07/02 10:03:38 [debug] admin_error_log = “logs/error.log”
2018/07/02 10:03:38 [debug] admin_gui_access_log = “logs/admin_gui_access.log”
2018/07/02 10:03:38 [debug] admin_gui_error_log = “logs/admin_gui_error.log”
2018/07/02 10:03:38 [debug] admin_gui_flags = “{}”
2018/07/02 10:03:38 [debug] admin_gui_listen = {“0.0.0.0:8002”,“0.0.0.0:8445 ssl”}
2018/07/02 10:03:38 [debug] admin_listen = {“127.0.0.1:8001”,“127.0.0.1:8444 ssl”}
2018/07/02 10:03:38 [debug] anonymous_reports = true
2018/07/02 10:03:38 [debug] cassandra_consistency = “ONE”
2018/07/02 10:03:38 [debug] cassandra_contact_points = {“127.0.0.1”}
2018/07/02 10:03:38 [debug] cassandra_data_centers = {“dc1:2”,“dc2:3”}
2018/07/02 10:03:38 [debug] cassandra_keyspace = “kong”
2018/07/02 10:03:38 [debug] cassandra_lb_policy = “RoundRobin”
2018/07/02 10:03:38 [debug] cassandra_port = 9042
2018/07/02 10:03:38 [debug] cassandra_repl_factor = 2
2018/07/02 10:03:38 [debug] cassandra_repl_strategy = “SimpleStrategy”
2018/07/02 10:03:38 [debug] cassandra_schema_consensus_timeout = 10000
2018/07/02 10:03:38 [debug] cassandra_ssl = false
2018/07/02 10:03:38 [debug] cassandra_ssl_verify = false
2018/07/02 10:03:38 [debug] cassandra_timeout = 5000
2018/07/02 10:03:38 [debug] cassandra_username = “kong”
2018/07/02 10:03:38 [debug] client_body_buffer_size = “8k”
2018/07/02 10:03:38 [debug] client_max_body_size = “0”
2018/07/02 10:03:38 [debug] client_ssl = false
2018/07/02 10:03:38 [debug] custom_plugins = {}
2018/07/02 10:03:38 [debug] database = “cassandra”
2018/07/02 10:03:38 [debug] db_cache_ttl = 3600
2018/07/02 10:03:38 [debug] db_update_frequency = 3600
2018/07/02 10:03:38 [debug] db_update_propagation = 2
2018/07/02 10:03:38 [debug] dns_error_ttl = 1
2018/07/02 10:03:38 [debug] dns_hostsfile = “/etc/hosts”
2018/07/02 10:03:38 [debug] dns_no_sync = false
2018/07/02 10:03:38 [debug] dns_not_found_ttl = 30
2018/07/02 10:03:38 [debug] dns_order = {“LAST”,“SRV”,“A”,“CNAME”}
2018/07/02 10:03:38 [debug] dns_resolver = {}
2018/07/02 10:03:38 [debug] dns_stale_ttl = 4
2018/07/02 10:03:38 [debug] enforce_rbac = true
2018/07/02 10:03:38 [debug] error_default_type = “text/plain”
2018/07/02 10:03:38 [debug] latency_tokens = true
2018/07/02 10:03:38 [debug] log_level = “notice”
2018/07/02 10:03:38 [debug] lua_package_cpath = “”
2018/07/02 10:03:38 [debug] lua_package_path = “./?.lua;./?/init.lua;”
2018/07/02 10:03:38 [debug] lua_socket_pool_size = 30
2018/07/02 10:03:38 [debug] lua_ssl_verify_depth = 1
2018/07/02 10:03:38 [debug] mem_cache_size = “128m”
2018/07/02 10:03:38 [debug] nginx_daemon = “on”
2018/07/02 10:03:38 [debug] nginx_optimizations = true
2018/07/02 10:03:38 [debug] nginx_user = “nobody nobody”
2018/07/02 10:03:38 [debug] nginx_worker_processes = “auto”
2018/07/02 10:03:38 [debug] pg_database = “kong”
2018/07/02 10:03:38 [debug] pg_host = “127.0.0.1”
2018/07/02 10:03:38 [debug] pg_port = 5432
2018/07/02 10:03:38 [debug] pg_ssl = false
2018/07/02 10:03:38 [debug] pg_ssl_verify = false
2018/07/02 10:03:38 [debug] pg_user = “kong”
2018/07/02 10:03:38 [debug] portal = true
2018/07/02 10:03:38 [debug] portal_api_access_log = “logs/portal_api_access.log”
2018/07/02 10:03:38 [debug] portal_api_error_log = “logs/error.log”
2018/07/02 10:03:38 [debug] portal_api_listen = {“0.0.0.0:8004”,“0.0.0.0:8447 ssl”}
2018/07/02 10:03:38 [debug] portal_api_url = “0.0.0.0:8004”
2018/07/02 10:03:38 [debug] portal_auto_approve = false
2018/07/02 10:03:38 [debug] portal_gui_listen = {“0.0.0.0:8003”,“0.0.0.0:8446 ssl”}
2018/07/02 10:03:38 [debug] portal_gui_url = “0.0.0.0:8003, 0.0.0.0:8446 ssl”
2018/07/02 10:03:38 [debug] prefix = “/usr/local/kong/”
2018/07/02 10:03:38 [debug] proxy_access_log = “logs/access.log”
2018/07/02 10:03:38 [debug] proxy_error_log = “logs/error.log”
2018/07/02 10:03:38 [debug] proxy_listen = {“0.0.0.0:8000”,“0.0.0.0:8443 ssl”}
2018/07/02 10:03:38 [debug] rbac_auth_header = “Kong-Admin-Token”
2018/07/02 10:03:38 [debug] real_ip_header = “X-Real-IP”
2018/07/02 10:03:38 [debug] real_ip_recursive = “off”
2018/07/02 10:03:38 [debug] server_tokens = true
2018/07/02 10:03:38 [debug] ssl_cipher_suite = “modern”
2018/07/02 10:03:38 [debug] ssl_ciphers = “ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256”
2018/07/02 10:03:38 [debug] trusted_ips = {}
2018/07/02 10:03:38 [debug] upstream_keepalive = 60
2018/07/02 10:03:38 [debug] vitals = true
2018/07/02 10:03:38 [debug] vitals_delete_interval_pg = 30
2018/07/02 10:03:38 [debug] vitals_flush_interval = 10
2018/07/02 10:03:38 [debug] vitals_ttl_minutes = 90000
2018/07/02 10:03:38 [debug] vitals_ttl_seconds = 3600
2018/07/02 10:03:38 [verbose] prefix in use: /usr/local/kong
2018/07/02 10:03:38 [verbose] preparing nginx prefix directory at /usr/local/kong
2018/07/02 10:03:38 [verbose] could not start Kong, stopping services
2018/07/02 10:03:38 [verbose] stopped services
Error:
/usr/local/share/lua/5.1/kong/cmd/start.lua:68: /usr/local/share/lua/5.1/kong/cmd/start.lua:25: Permission denied
stack traceback:
[C]: in function ‘error’
/usr/local/share/lua/5.1/kong/cmd/start.lua:68: in function ‘cmd_exec’
/usr/local/share/lua/5.1/kong/cmd/init.lua:87: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:87>
[C]: in function ‘xpcall’
/usr/local/share/lua/5.1/kong/cmd/init.lua:87: in function </usr/local/share/lua/5.1/kong/cmd/init.lua:44>
/usr/local/bin/kong:7: in function ‘file_gen’
init_worker_by_lua:47: in function <init_worker_by_lua:45>
[C]: in function ‘xpcall’
init_worker_by_lua:54: in function <init_worker_by_lua:52>