uuwaf 部署在 k8s 发生错误
这是错误信息
bash-4.4# cat error.log
2025/03/24 20:49:26 [error] 31#31: *3 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:26 [error] 31#31: *3 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:26 [error] 32#32: *13 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:26 [error] 32#32: *13 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:26 [error] 30#30: *5 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:26 [error] 30#30: *5 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:26 [error] 29#29: *8 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:26 [error] 29#29: *8 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:30 [error] 31#31: *34 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:30 [error] 30#30: *33 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:30 [error] 29#29: *35 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:30 [error] 30#30: *33 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:30 [error] 31#31: *34 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:30 [error] 29#29: *35 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:30 [error] 32#32: *38 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:30 [error] 32#32: *38 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:33 [error] 31#31: *51 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:33 [error] 31#31: *51 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:33 [error] 32#32: *53 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:33 [error] 29#29: *52 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:33 [error] 32#32: *53 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:33 [error] 29#29: *52 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:33 [error] 30#30: *56 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:33 [error] 30#30: *56 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:36 [error] 32#32: *70 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:36 [error] 32#32: *70 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:36 [error] 29#29: *71 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:36 [error] 29#29: *71 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:36 [error] 30#30: *74 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:36 [error] 30#30: *74 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:37 [error] 31#31: *75 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:37 [error] 31#31: *75 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:39 [error] 32#32: *88 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:39 [error] 29#29: *89 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:39 [error] 32#32: *88 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:39 [error] 29#29: *89 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:39 [error] 30#30: *92 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:39 [error] 30#30: *92 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:40 [error] 31#31: *93 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:40 [error] 31#31: *93 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:42 [error] 29#29: *106 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:42 [error] 32#32: *107 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:42 [error] 32#32: *107 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:42 [error] 29#29: *106 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:42 [error] 30#30: *110 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:42 [error] 30#30: *110 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:43 [error] 31#31: *111 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:43 [error] 31#31: *111 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:45 [error] 32#32: *125 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:45 [error] 32#32: *125 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:45 [error] 29#29: *124 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:45 [error] 29#29: *124 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:45 [error] 30#30: *128 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:45 [error] 30#30: *128 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:46 [error] 31#31: *129 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:46 [error] 31#31: *129 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:48 [error] 29#29: *142 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:48 [error] 29#29: *142 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:48 [error] 32#32: *145 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:48 [error] 32#32: *145 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:48 [error] 30#30: *146 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:48 [error] 30#30: *146 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:49 [error] 31#31: *147 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:49 [error] 31#31: *147 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:51 [error] 29#29: *160 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:51 [error] 29#29: *160 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:51 [error] 32#32: *163 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:51 [error] 32#32: *163 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:51 [error] 30#30: *164 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:51 [error] 30#30: *164 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:52 [error] 31#31: *165 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:52 [error] 31#31: *165 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:54 [error] 29#29: *178 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:54 [error] 32#32: *181 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:54 [error] 29#29: *178 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:54 [error] 32#32: *181 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:54 [error] 30#30: *182 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:54 [error] 30#30: *182 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:55 [error] 31#31: *183 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:55 [error] 31#31: *183 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:57 [error] 32#32: *199 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:57 [error] 32#32: *199 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:57 [error] 29#29: *195 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:57 [error] 29#29: *195 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:57 [error] 30#30: *200 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:57 [error] 30#30: *200 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:49:58 [error] 31#31: *201 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:49:58 [error] 31#31: *201 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:01 [error] 31#31: *219 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:01 [error] 31#31: *219 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:01 [error] 29#29: *220 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:01 [error] 29#29: *220 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:01 [error] 32#32: *223 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:01 [error] 32#32: *223 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:01 [error] 30#30: *224 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:01 [error] 30#30: *224 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:03 [error] 30#30: *232 [lua] [string "waf"]:0: http_ssl_phase(): failed to get certificate for site: www.wjlin0.com, context: ssl_certificate_by_lua*, client: 10.42.0.1, server: 0.0.0.0:443
2025/03/24 20:50:04 [error] 29#29: *239 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:04 [error] 31#31: *241 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:04 [error] 29#29: *239 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:04 [error] 31#31: *241 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:04 [error] 32#32: *243 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:04 [error] 32#32: *243 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:04 [error] 30#30: *244 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:04 [error] 30#30: *244 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:07 [error] 29#29: *257 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:07 [error] 29#29: *257 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:07 [error] 31#31: *260 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:07 [error] 31#31: *260 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:07 [error] 32#32: *261 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:07 [error] 32#32: *261 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:07 [error] 30#30: *262 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:07 [error] 30#30: *262 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:10 [error] 31#31: *275 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:10 [error] 31#31: *275 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:10 [error] 29#29: *276 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:10 [error] 29#29: *276 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:10 [error] 32#32: *279 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:10 [error] 32#32: *279 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:10 [error] 30#30: *280 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:10 [error] 30#30: *280 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:13 [error] 31#31: *293 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:13 [error] 31#31: *293 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:13 [error] 29#29: *294 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:13 [error] 29#29: *294 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:13 [error] 32#32: *297 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:13 [error] 32#32: *297 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:13 [error] 30#30: *298 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:13 [error] 30#30: *298 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:16 [error] 31#31: *311 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:16 [error] 31#31: *311 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:16 [error] 32#32: *312 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:16 [error] 32#32: *312 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:16 [error] 29#29: *313 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:16 [error] 29#29: *313 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:16 [error] 30#30: *316 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:16 [error] 30#30: *316 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:19 [error] 31#31: *330 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:19 [error] 29#29: *329 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
2025/03/24 20:50:19 [error] 31#31: *330 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:19 [error] 29#29: *329 [lua] [string "waf.config"]:0: failed to update sites: /uuwaf/luajit/share/lua/5.1/resty/mysql.lua:374: attempt to perform arithmetic on field 'packet_no' (a nil value), context: ngx.timer
2025/03/24 20:50:19 [error] 32#32: *333 [lua] [string "waf.config"]:0: (): failed to connect: failed to connect: wafdb could not be resolved (3: Host not found): nil nil, context: ngx.timer
我发现是 wafdb 这个 域名找不到 然而 我使用 curl 去请求了一下 有 IP DNS 没问题
bash-4.4# curl wafdb -v
* Rebuilt URL to: wafdb/
* Trying 10.43.138.144...
* TCP_NODELAY set
uuwaf.conf 上面改动了一下这个
试了哈 这个帅哥提到的 发现还是不行 现在容器中的 config.json 会被 重置。好像修改不了这个 host 一样
https://github.com/Safe3/uuWAF/issues/18
默认需要修改waf_shared卷中的这个文件,这里wafdb是数据库连接的域名,需要修改成你对应的数据库地址,并且确保数据库中已经导入waf.sql
可以删除容器中的/uuwaf/waf.sql就可以自定义/uuwaf/web/conf/config.json中的数据库连接名称了
k8s 的持久化存储 不会继承 容器类原有的文件 挂载 /uuwaf 发现都没有 文件了
waf_shared
我改过的 改了。容器重启 又变回来了
你可以基于现有南墙镜像,删除掉/uuwaf/waf.sql,并修改/uuwaf/web/conf/config.json中的数据库连接名称,创建一个新的镜像上传到k8s使用。前提是mysql镜像要先单独创建好并导入/uuwaf/waf.sql数据库结构。
我试一下
---- 回复的原邮件 ---- | 发件人 | UUSEC @.> | | 发送日期 | 2025年03月25日 17:02 | | 收件人 | Safe3/uuWAF @.> | | 抄送人 | wjlin0 @.>, Author @.> | | 主题 | Re: [Safe3/uuWAF] uuwaf 部署在 k8s 发生错误 (Issue #126) |
你可以基于现有南墙镜像,删除掉/uuwaf/waf.sql,并修改/uuwaf/web/conf/config.json中的数据库连接名称,创建一个新的镜像上传到k8s使用。前提是mysql镜像要先单独创建好并导入/uuwaf/waf.sql数据库结构。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Safe3 left a comment (Safe3/uuWAF#126)
你可以基于现有南墙镜像,删除掉/uuwaf/waf.sql,并修改/uuwaf/web/conf/config.json中的数据库连接名称,创建一个新的镜像上传到k8s使用。前提是mysql镜像要先单独创建好并导入/uuwaf/waf.sql数据库结构。
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
ææ°v6.7.0çæ¬æ¯æéè¿WAF_DB_DSNç¯å¢åéé ç½®æ°æ®åºè¿æ¥ä¿¡æ¯äºï¼å¦ï¼UUWAF_DB_DSN=root:Safe3.WAF@tcp(wafdb:3306)/uuwaf?charset=utf8mb4&parseTime=true&loc=Localï¼æ¹ä¾¿èªå®ä¹æ°æ®åºipçä¿¡æ¯ï¼ä½ å¯ä»¥åè¯è¯