kong安装启动问题
安装kong,需要先创建个pg库,配置pg需要的变量docker安装kong,kong版本2.1.3,遇到下面报错2021/01/11 04:36:57 [warn] 1#0: load balancing method redefined in /usr/local/kong/nginx-kong.conf:56nginx: [warn] load balancing method redefi
安装kong,需要先创建个pg库,配置pg需要的变量
docker安装kong,kong版本2.1.3,遇到下面报错
2021/01/11 04:36:57 [warn] 1#0: load balancing method redefined in /usr/local/kong/nginx-kong.conf:56
nginx: [warn] load balancing method redefined in /usr/local/kong/nginx-kong.conf:56
2021/01/11 04:36:58 [error] 1#0: init_by_lua error: /usr/local/share/lua/5.1/kong/cmd/utils/migrations.lua:16: Database needs bootstrapping or is older than Kong 1.0.To start a new installation from scratch, run 'kong migrations bootstrap'.
To migrate from a version older than 1.0, migrated to Kong 1.5.0 first.
If you still have 'apis' entities, you can convert them to Routes and Services
using the 'kong migrations migrate-apis' command in Kong 1.5.0.
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/kong/cmd/utils/migrations.lua:16: in function 'check_state'
/usr/local/share/lua/5.1/kong/init.lua:449: in function 'init'
init_by_lua:3: in main chunk
nginx: [error] init_by_lua error: /usr/local/share/lua/5.1/kong/cmd/utils/migrations.lua:16: Database needs bootstrapping or is older than Kong 1.0.To start a new installation from scratch, run 'kong migrations bootstrap'.
To migrate from a version older than 1.0, migrated to Kong 1.5.0 first.
If you still have 'apis' entities, you can convert them to Routes and Services
using the 'kong migrations migrate-apis' command in Kong 1.5.0.
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/kong/cmd/utils/migrations.lua:16: in function 'check_state'
/usr/local/share/lua/5.1/kong/init.lua:449: in function 'init'
init_by_lua:3: in main chunk
解决办法:容器第一次启动时,执行命令
kong migrations bootstrap
更多推荐




所有评论(0)