weibocom / nginx-upsync-module

For http protocol. nginx-upsync-module, sync upstreams from consul or etcd and so on, dynamiclly modify backend-servers attributes(weight, max_fails, down...), needn't reload nginx
1.83k stars 391 forks source link

cache manager process exited on signal 11 (core dumped) with openresty/1.15.8 #311

Open xujpxm opened 1 year ago

xujpxm commented 1 year ago

error log show:

2022/11/18 17:19:13 [notice] 31170#31170: worker process 58858 exited with code 0 2022/11/18 17:19:13 [notice] 31170#31170: signal 29 (SIGIO) received 2022/11/18 17:19:13 [notice] 31170#31170: signal 17 (SIGCHLD) received from 59097 2022/11/18 17:19:13 [alert] 31170#31170: cache manager process 59097 exited on signal 11 (core dumped) 2022/11/18 17:19:13 [notice] 31170#31170: start cache manager process 59099 2022/11/18 17:19:13 [notice] 31170#31170: signal 29 (SIGIO) received 2022/11/18 17:19:15 [notice] 31170#31170: signal 17 (SIGCHLD) received from 59099 2022/11/18 17:19:15 [alert] 31170#31170: cache manager process 59099 exited on signal 11 (core dumped) 2022/11/18 17:19:15 [notice] 31170#31170: start cache manager process 59460 2022/11/18 17:19:15 [notice] 31170#31170: signal 29 (SIGIO) received 2022/11/18 17:19:16 [notice] 31170#31170: signal 17 (SIGCHLD) received from 59460 2022/11/18 17:19:16 [alert] 31170#31170: cache manager process 59460 exited on signal 11 (core dumped) 2022/11/18 17:19:16 [notice] 31170#31170: start cache manager process 59541 2022/11/18 17:19:16 [notice] 31170#31170: signal 29 (SIGIO) received

Version Show: nginx version: openresty/1.15.8.3 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) built with OpenSSL 1.1.1d 10 Sep 2019 TLS SNI support enabled configure arguments: --prefix=/usr/local/openresty/nginx --with-cc-opt='-g -O2 -fno-omit-frame-pointer -DTCP_FASTOPEN=23' --add-module=../ngx_devel_kit-0.3.1rc1 --add-module=../echo-nginx-module-0.61 --add-module=../xss-nginx-module-0.06 --add-module=../ngx_coolkit-0.2 --add-module=../set-misc-nginx-module-0.32 --add-module=../form-input-nginx-module-0.12 --add-module=../srcache-nginx-module-0.31 --add-module=../ngx_lua-0.10.15 --add-module=../ngx_lua_upstream-0.07 --add-module=../headers-more-nginx-module-0.33 --add-module=../array-var-nginx-module-0.05 --add-module=../memc-nginx-module-0.19 --add-module=../redis2-nginx-module-0.15 --add-module=../redis-nginx-module-0.3.7 --add-module=../rds-json-nginx-module-0.15 --add-module=../rds-csv-nginx-module-0.09 --add-module=../ngx_stream_lua-0.0.7 --with-ld-opt=-Wl,-rpath,/usr/local/openresty/luajit/lib --user=www --group=www --add-module=/data/openresty_install/build/nginx_upstream_check_module --add-module=/data/openresty_install/build/nginx-upsync-module --add-module=/data/openresty_install/build/ngx_brotli --add-module=/data/openresty_install/build/nginx-module-vts --with-threads --with-pcre-jit --with-http_sub_module --with-http_stub_status_module --with-http_v2_module --with-http_realip_module --with-openssl=/data/openresty_install/build/openssl-1.1.1d --with-http_ssl_module --with-google_perftools_module --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module

Question:cache manager process always exited and new start? 辛苦确认下是不是版本不兼容导致的?谢谢。

xujpxm commented 1 year ago

upsync version: v2.1.3

xujpxm commented 1 year ago

193 参考配置建议后,使用include 命令,并在upstream中去除fake server,解决此问题。

xujpxm commented 1 year ago

添加backup server时,依然会有core dumped的报错,配置示例如下: upstream test { upsync 127.0.0.1:8500/v1/catalog/service/test upsync_timeout=6m upsync_interval=500ms upsync_type=consul_services strong_dependency=off; upsync_dump_path /usr/local/openresty/nginx/conf/servers/servers_test.conf; include /usr/local/nginx/conf/servers/servers_test.conf; server 127.0.0.1:8080 bakcup; }