V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MrMike
V2EX  ›  PostgreSQL

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

  •  
  •   MrMike · 2018-03-07 22:59:29 +08:00 · 3413 次点击
    这是一个创建于 2471 天前的主题,其中的信息可能已经有所发展或是发生改变。

    刚学着安装 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 的朋友们,这个咋个解决呢?

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2782 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 13:21 · PVG 21:21 · LAX 05:21 · JFK 08:21
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.