You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[root@localhost logs]# cat admin.log
2017/12/07 16:53:12 [error] 8391#0: *1 [lua] log.lua:28: errlog(): ab_div host [ab_admin] code : 40201, desc : lua runtime error ../lib/abtesting/adapter/policy.lua:95: module 'abtesting.diversion.arg_station' not found:
no field package.preload['abtesting.diversion.arg_station']
no file '../abtesting/diversion/arg_station.lua'
no file '../lib/abtesting/diversion/arg_station.lua'
no file '../lib/lua-resty-core/lib/abtesting/diversion/arg_station.lua'
no file '/usr/local/openresty/lualib/abtesting/diversion/arg_station.lua'
no file '/usr/local/openresty/lualib/abtesting/diversion/arg_station/init.lua'
no file './abtesting/diversion/arg_station.lua'
no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta1/abtesting/diversion/arg_station.lua'
no file '/usr/local/share/lua/5.1/abtesting/diversion/arg_station.lua'
no file '/usr/local/share/lua/5.1/abtesting/diversion/arg_station/init.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/abtesting/diversion/arg_station.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/abtesting/diversion/arg_station/init.lua'
no file '/usr/local/openresty/lualib/abtesting/diversion/arg_station.so'
no file './abtesting/diversion/arg_station.so'
no file '/usr/local/lib/lua/5.1/abtesting/diversion/arg_station.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/abtesting/diversion/arg_station.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/usr/local/openresty/lualib/abtesting.so'
no file './abtesting.so'
no file '/usr/local/lib/lua/5.1/abtesting.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/abtesting.so'
no file '/usr/local/lib/lua/5.1/loadall.so', errstack : stack traceback:
../lib/abtesting/error/handler.lua:17: in function <../lib/abtesting/error/handler.lua:7>
[C]: in function 'require'
../lib/abtesting/adapter/policy.lua:95: in function 'check'
../lib/abtesting/adapter/policygroup.lua:117: in function <../lib/abtesting/adapter/policygroup.lua:111>
[C]: in function 'xpcall'
../admin/policygroup.lua:160: in function 'checkPolicy'
../admin/policygroup.lua:192: in function 'do_action'
/usr/local/dygateway/utils/../admin/ab_action.lua:82: in function </usr/local/dygateway/utils/../admin/ab_action.lua:1>, client: 127.0.0.1, server: localhost, request: "POST /ab_admin?action=policygroup_set HTTP/1.1", host: "127.0.0.1:8080"
[root@localhost logs]# cat admin.log
2017/12/07 16:53:12 [error] 8391#0: *1 [lua] log.lua:28: errlog(): ab_div host [ab_admin] code : 40201, desc : lua runtime error ../lib/abtesting/adapter/policy.lua:95: module 'abtesting.diversion.arg_station' not found:
no field package.preload['abtesting.diversion.arg_station']
no file '../abtesting/diversion/arg_station.lua'
no file '../lib/abtesting/diversion/arg_station.lua'
no file '../lib/lua-resty-core/lib/abtesting/diversion/arg_station.lua'
no file '/usr/local/openresty/lualib/abtesting/diversion/arg_station.lua'
no file '/usr/local/openresty/lualib/abtesting/diversion/arg_station/init.lua'
no file './abtesting/diversion/arg_station.lua'
no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta1/abtesting/diversion/arg_station.lua'
no file '/usr/local/share/lua/5.1/abtesting/diversion/arg_station.lua'
no file '/usr/local/share/lua/5.1/abtesting/diversion/arg_station/init.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/abtesting/diversion/arg_station.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/abtesting/diversion/arg_station/init.lua'
no file '/usr/local/openresty/lualib/abtesting/diversion/arg_station.so'
no file './abtesting/diversion/arg_station.so'
no file '/usr/local/lib/lua/5.1/abtesting/diversion/arg_station.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/abtesting/diversion/arg_station.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/usr/local/openresty/lualib/abtesting.so'
no file './abtesting.so'
no file '/usr/local/lib/lua/5.1/abtesting.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/abtesting.so'
no file '/usr/local/lib/lua/5.1/loadall.so', errstack : stack traceback:
../lib/abtesting/error/handler.lua:17: in function <../lib/abtesting/error/handler.lua:7>
[C]: in function 'require'
../lib/abtesting/adapter/policy.lua:95: in function 'check'
../lib/abtesting/adapter/policygroup.lua:117: in function <../lib/abtesting/adapter/policygroup.lua:111>
[C]: in function 'xpcall'
../admin/policygroup.lua:160: in function 'checkPolicy'
../admin/policygroup.lua:192: in function 'do_action'
/usr/local/dygateway/utils/../admin/ab_action.lua:82: in function </usr/local/dygateway/utils/../admin/ab_action.lua:1>, client: 127.0.0.1, server: localhost, request: "POST /ab_admin?action=policygroup_set HTTP/1.1", host: "127.0.0.1:8080"
按照arg_city.lua新增了一个分流方式,
1.在lib/abtesting/diversion/下新增文件arg_station.lua
2.在lib/abtesting/userinfo/下新增文件stationParser.lua
3.在lib/abtesting/utils/init.lua文件中新增 ["arg_station"] = 'stationParser' 语句
然后使用abtesting.sh方式重启,最后增加相关策略报上述错误
curl 127.0.0.1:8080/ab_admin?action=policygroup_set -d '{"1":{"divtype":"arg_station","divdata":[{"station":"HDQA00","upstream":"beta1"},{"station":"CQ11","upstream":"beta2"},{"station":"CQ12","upstream":"beta1"},{"station":"CQ13","upstream":"beta3"}]}}'
是还有哪个地方没有加吗,还是什么问题,多谢
The text was updated successfully, but these errors were encountered: