Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After reinstall kong by brew, i can not startup kong #4933

Closed
chenyanter opened this issue Aug 17, 2019 · 1 comment
Closed

After reinstall kong by brew, i can not startup kong #4933

chenyanter opened this issue Aug 17, 2019 · 1 comment

Comments

@chenyanter
Copy link

chenyanter commented Aug 17, 2019

Summary

After reinstall kong by brew, can not startup kong

Additional Details & Logs

  • Kong version 1.2.1
  • Kong debug-level startup logs
2019/08/17 17:05:03 [debug] stream_listen = {"off"}
2019/08/17 17:05:03 [debug] trusted_ips = {}
2019/08/17 17:05:03 [debug] upstream_keepalive = 60
2019/08/17 17:05:03 [verbose] prefix in use: /usr/local/opt/kong
2019/08/17 17:05:03 [debug] sending signal to pid at: /usr/local/opt/kong/pids/nginx.pid
2019/08/17 17:05:03 [debug] kill -0 `cat /usr/local/opt/kong/pids/nginx.pid` >/dev/null 2>&1
Error: 
/usr/local/share/lua/5.1/pgmoon/socket.lua:30: attempt to call field 'tcp' (a nil value)
stack traceback:
        /usr/local/share/lua/5.1/pgmoon/socket.lua:30: in function 'tcp'
        /usr/local/share/lua/5.1/pgmoon/socket.lua:95: in function 'new'
        /usr/local/share/lua/5.1/pgmoon/init.lua:673: in function '__init'
        /usr/local/share/lua/5.1/pgmoon/init.lua:697: in function 'new'
        .../share/lua/5.1/kong/db/strategies/postgres/connector.lua:195: in function 'connect'
        .../share/lua/5.1/kong/db/strategies/postgres/connector.lua:484: in function 'query'
        .../share/lua/5.1/kong/db/strategies/postgres/connector.lua:272: in function 'init'
        /usr/local/share/lua/5.1/kong/db/init.lua:125: in function 'init_connector'
        /usr/local/share/lua/5.1/kong/cmd/start.lua:31: 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:49: in function <init_worker_by_lua:47>
        [C]: in function 'xpcall'
        init_worker_by_lua:56: in function <init_worker_by_lua:54>
@chenyanter
Copy link
Author

fix by

brew uninstall kong && brew install kong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant