启动不了 kong,提示:[postgres error] FATAL: password authentication failed for user "kong"

2018-03-07 22:59:29 +08:00
 MrMike

刚学着安装 kong,但是启动 kong start 时,报错:

2018/03/07 22:45:22 [verbose] Kong: 0.12.2 2018/03/07 22:45:22 [verbose] reading config file at /etc/kong/kong.conf 2018/03/07 22:45:22 [verbose] prefix in use: /usr/local/kong 2018/03/07 22:45:22 [verbose] preparing nginx prefix directory at /usr/local/kong 2018/03/07 22:45:22 [verbose] SSL enabled, no custom certificate set: using default certificate 2018/03/07 22:45:22 [verbose] default SSL certificate found at /usr/local/kong/ssl/kong-default.crt 2018/03/07 22:45:22 [verbose] Admin SSL enabled, no custom certificate set: using default certificate 2018/03/07 22:45:22 [verbose] admin SSL certificate found at /usr/local/kong/ssl/admin-kong-default.crt 2018/03/07 22:45:23 [verbose] could not start Kong, stopping services 2018/03/07 22:45:23 [verbose] stopped services Error: /usr/local/share/lua/5.1/kong/cmd/start.lua:62: /usr/local/share/lua/5.1/kong/cmd/start.lua:28: [postgres error] could not retrieve current migrations: [postgres error] FATAL: password authentication failed for user "kong" stack traceback: [C]: in function 'error' /usr/local/share/lua/5.1/kong/cmd/start.lua:62: 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:45: in function <init_worker_by_lua:43> [C]: in function 'xpcall' init_worker_by_lua:52: in function <init_worker_by_lua:50>

已经安装 postgres,kong 这个用户已经建立了,密码也设置了的,也重启了。请问下配置过 kong 的朋友们,这个咋个解决呢?

3405 次点击
所在节点    PostgreSQL
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/435954

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX