ffay / proxygateway

Proxy Gateway基于openresty(nginx lua module)开发,可以作为接口网关(api gateway)使用,整合业务模块接口,微服务治理聚合,通过web配置界面,能够轻松进行代理配置管理,支持负载均衡,服务器状态检测等
MIT License
374 stars 179 forks source link

默认的可以,新添加的域名就不行了 #7

Open zc806zc opened 6 years ago

zc806zc commented 6 years ago

404 Not Found openresty/1.13.6.1

全是这个,而且删除原来的配置,再次配置成一样,也是这样,感觉上是配置没有生效

zc806zc commented 6 years ago

看了下,应该是数据库操作有问题

zc806zc commented 6 years ago

2018/04/27 19:02:01 [error] 27781#27781: 54 [lua] init.lua:21: sync api info failed:/usr/local/openresty/nginx/proxygateway/src/service/agw.lua:53: bad argument #1 to 'pairs' (table expected, got nil), context: ngx.timer 2018/04/27 19:02:04 [error] 27781#27781: 55 [lua] init.lua:21: sync api info failed:/usr/local/openresty/nginx/proxygateway/src/service/agw.lua:53: bad argument #1 to 'pairs' (table expected, got nil), context: ngx.timer 2018/04/27 19:02:05 [error] 27781#27781: 56 [lua] init.lua:34: error occured when check server state:/usr/local/openresty/nginx/proxygateway/src/service/agw.lua:67: bad argument #1 to 'pairs' (table expected, got nil), context: ngx.timer 2018/04/27 19:02:07 [error] 27781#27781: 57 [lua] init.lua:21: sync api info failed:/usr/local/openresty/nginx/proxygateway/src/service/agw.lua:53: bad argument #1 to 'pairs' (table expected, got nil), context: ngx.timer 2018/04/27 19:02:10 [error] 27781#27781: *58 [lua] init.lua:21: sync api info failed:/usr/local/openresty/nginx/proxygateway/src/service/agw.lua:53: bad argument #1 to 'pairs' (table expected, got nil), context: ngx.timer

ffay commented 6 years ago

我用了一台全新的服务器重新试了下,都是正常的,有更多信息吗

zc806zc commented 6 years ago

可以了,配置搞错了