Comments (3)
I'm trying to reproduce the issue, however, the problem didn't appear with a default Nginx config.
Can you post your Nginx config file? @colundrum
from traffic-accounting-nginx-module.
Hello,
This is my output of nginx -V
nginx version: nginx/1.15.7
built by gcc 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC)
built with OpenSSL 1.1.1c 28 May 2019
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-pcre-jit --with-http_geoip_module=dynamic --with-http_image_filter_module=dynamic --with-http_perl_module=dynamic --with-http_xslt_module=dynamic --add-module=../../SOURCES/headers-more-nginx-module --add-module=../../SOURCES/naxsi/naxsi_src --add-module=../../SOURCES/nchan --add-module=../../SOURCES/nginx_circle_gif --add-module=../../SOURCES/nginx-ct --add-module=../../SOURCES/nginx-http-rdns --add-module=../../SOURCES/nginx-log-zmq --add-module=../../SOURCES/nginx-openssl-version --add-module=../../SOURCES/nginx-push-stream-module --add-module=../../SOURCES/nginx-upload-progress-module --add-module=../../SOURCES/ngx_cache_purge --add-module=../../SOURCES/ngx_brotli --add-module=../../SOURCES/traffic-accounting-nginx-module --add-module=../../SOURCES/ngx_http_auth_pam_module --add-module=../../SOURCES/ngx_http_internal_redirect --add-module=../../SOURCES/ngx_log_if --add-module=../../SOURCES/ngx-fancyindex --add-module=../../SOURCES/ngx_devel_kit --add-module=../../SOURCES/lua-nginx-module --add-module=../../SOURCES/form-input-nginx-module --add-module=../../SOURCES/set-misc-nginx-module --add-module=../../SOURCES/encrypted-session-nginx-module --add-module=../../SOURCES/testcookie-nginx-module --add-module=../../SOURCES/ngx_dynamic_etag --add-module=../../SOURCES/stream-lua-nginx-module --add-module=../../SOURCES/srcache-nginx-module --add-module=../../SOURCES/memc-nginx-module --add-module=../../SOURCES/rds-csv-nginx-module --add-module=../../SOURCES/rds-json-nginx-module --add-module=../../SOURCES/ngx_postgres --add-module=../../SOURCES/nginx-static-etags --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -DTCP_FASTOPEN=23 -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -pie' --with-openssl=../../SOURCES/openssl --with-openssl-opt=enable-tls1_3
No problem with version v1.2 :
TCP FASTOPEN : activated
OpenSSL : OpenSSL_1_1_1c
Modules version (branch or tag) :
- cache_purge : 2.3
- devel_kit : v0.3.0
- dynamic_etag : 0.0.3
- encrypted_session : v0.08
- fancyindex : v0.4.3
- headers-more : v0.33
- http_auth_pam : v1.5.1
- http_internal_redirect : v0.6
- lua : v0.10.15
- memc : v0.19
- nchan : v1.2.6
- openssl-version : v0.04
- push-stream-module : 0.5.4
- rds_csv : v0.09
- rds_json : v0.15
- set_misc : v0.32
- srcache : v0.31
- stream-lua : v0.0.7
- traffic_accounting : v1.2
- brotli : MASTER @ bfd2885b2da4d763fed18f49216bb935223cd34b
- naxsi : MASTER @ d3cbf8a5b055c3d6ae17be37797ecb82d0a4956c
- nginx-upload-progress-module : MASTER @ afb2d31d1277c50bd6215c470ba94b843349e250
- circle_gif : MASTER @ 4631d75be7b5c46aef7fee2438eec84081bb406b
- http-rdns : MASTER @ a32deecaf1fa4be4bd445c2b770283d20bf61da6
- log_if : MASTER @ 3a78876fed0bb7e497bfd41c25afba3c2535d87f
- log-zmq : MASTER @ b8e18592491c8c9c2a4aae4a2f3eec377f753610
- ct : MASTER @ 93e9884764b77300236fd878ae284f2a40314f38
- testcookie-nginx-module : MASTER @ 3e0a32f611dc98406f0ae8b1fce12673dbc62eaf
- form-input-nginx-module : MASTER @ 2c94e74671f006d1897de062b5c774f7e0e5ff74
- ngx_postgres : MASTER @ 7950a250e9bc99967d83c57fbbadb9d0d6d5c4bf
- nginx-static-etags : MASTER @ 424e7b0eadbaea822707d1855e4b5ff737c0189c
If I change traffic_accounting to v2.0, I obtain signal 17 (SIGCHLD)
If you want to reproduce it more easily, you can look my 2 repositories :
- https://github.com/colundrum/centos-builder-custom_nginx_rpms
- https://github.com/colundrum/custom_nginx_rpms
I use this way to compile and test inside the same docker :
mkdir -p /tmp/shared
docker run -it --rm -u root -v /tmp/shared:/shared colundrum/centos-builder-custom_nginx_rpms:develop
su - builder && ./run.sh
after, CTRL+D and yum install /shared/nginx-1*.rpm
The branch master is only for CI/CD because I have all I need to release in GitHub pages using var env.
You'll need to add lua_load_resty_core off
in nginx.conf (inside http {}) … for me it's in Ansible about my config.
Regards
from traffic-accounting-nginx-module.
Can not get nginx-1.20.1 (source install) to work with traffic-accounting-nginx-module v2.0 (source install) on CentOS 7.9.2009. Using most basic config as follows:
load_module modules/ngx_http_accounting_module.so;
worker_processes 1;
error_log logs/error.log debug;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
accounting on;
accounting_log logs/http-accounting.log debug;
accounting_id $hostname;
sendfile on;
keepalive_timeout 65;
server {
listen 8008;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
error.log extract:
2021/07/22 21:38:02 [debug] 218908#218908: bind() 0.0.0.0:8008 #7
2021/07/22 21:38:02 [notice] 218908#218908: using the "epoll" event method
2021/07/22 21:38:02 [debug] 218908#218908: counter: 00007F8B32CCE080, 1
2021/07/22 21:38:02 [notice] 218908#218908: nginx/1.20.1
2021/07/22 21:38:02 [notice] 218908#218908: built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
2021/07/22 21:38:02 [notice] 218908#218908: OS: Linux 3.10.0-1160.11.1.el7.x86_64
2021/07/22 21:38:02 [notice] 218908#218908: getrlimit(RLIMIT_NOFILE): 1024:4096
2021/07/22 21:38:02 [debug] 218910#218910: write: 8, 00007FFC08473C40, 7, 0
2021/07/22 21:38:02 [debug] 218910#218910: setproctitle: "nginx: master process /opt/nginx/sbin/nginx -c /opt/nginx/conf/nginx.conf"
2021/07/22 21:38:02 [notice] 218910#218910: start worker processes
2021/07/22 21:38:02 [debug] 218910#218910: channel 3:8
2021/07/22 21:38:02 [notice] 218910#218910: start worker process 218911
2021/07/22 21:38:02 [debug] 218910#218910: sigsuspend
2021/07/22 21:38:02 [debug] 218911#218911: add cleanup: 0000559957DDFCD0
2021/07/22 21:38:02 [debug] 218911#218911: malloc: 0000559957DE4260:8
2021/07/22 21:38:02 [debug] 218911#218911: notify eventfd: 10
2021/07/22 21:38:02 [debug] 218911#218911: eventfd: 11
2021/07/22 21:38:02 [debug] 218911#218911: testing the EPOLLRDHUP flag: success
2021/07/22 21:38:02 [debug] 218911#218911: malloc: 0000559957DC3E30:6144
2021/07/22 21:38:02 [debug] 218911#218911: malloc: 00007F8B32C64010:245760
2021/07/22 21:38:02 [debug] 218911#218911: malloc: 0000559957DE44E0:98304
2021/07/22 21:38:02 [debug] 218911#218911: malloc: 0000559957DFC4F0:98304
2021/07/22 21:38:02 [debug] 218911#218911: epoll add event: fd:7 op:1 ev:00002001
2021/07/22 21:38:02 [notice] 218910#218910: signal 17 (SIGCHLD) received from 218911
2021/07/22 21:38:02 [alert] 218910#218910: worker process 218911 exited on signal 11
2021/07/22 21:38:02 [debug] 218910#218910: shmtx forced unlock
2021/07/22 21:38:02 [debug] 218910#218910: wake up, sigio 0
2021/07/22 21:38:02 [debug] 218910#218910: reap children
2021/07/22 21:38:02 [debug] 218910#218910: child: 0 218911 e:0 t:1 d:0 r:1 j:0
2021/07/22 21:38:02 [debug] 218910#218910: channel 3:8
2021/07/22 21:38:02 [notice] 218910#218910: start worker process 218912
2021/07/22 21:38:02 [debug] 218910#218910: sigsuspend
2021/07/22 21:38:02 [debug] 218912#218912: add cleanup: 0000559957DDFCD0
2021/07/22 21:38:02 [debug] 218912#218912: malloc: 0000559957DE4260:8
2021/07/22 21:38:02 [debug] 218912#218912: notify eventfd: 10
2021/07/22 21:38:02 [debug] 218912#218912: eventfd: 11
2021/07/22 21:38:02 [debug] 218912#218912: testing the EPOLLRDHUP flag: success
2021/07/22 21:38:02 [debug] 218912#218912: malloc: 0000559957DC3E30:6144
2021/07/22 21:38:02 [debug] 218912#218912: malloc: 00007F8B32C64010:245760
2021/07/22 21:38:02 [debug] 218912#218912: malloc: 0000559957DE44E0:98304
2021/07/22 21:38:02 [debug] 218912#218912: malloc: 0000559957DFC4F0:98304
2021/07/22 21:38:02 [debug] 218912#218912: epoll add event: fd:7 op:1 ev:00002001
2021/07/22 21:38:02 [notice] 218910#218910: signal 17 (SIGCHLD) received from 218912
2021/07/22 21:38:02 [alert] 218910#218910: worker process 218912 exited on signal 11
2021/07/22 21:38:02 [debug] 218910#218910: shmtx forced unlock
2021/07/22 21:38:02 [debug] 218910#218910: wake up, sigio 0
2021/07/22 21:38:02 [debug] 218910#218910: reap children
2021/07/22 21:38:02 [debug] 218910#218910: child: 0 218912 e:0 t:1 d:0 r:1 j:0
2021/07/22 21:38:02 [debug] 218910#218910: channel 3:8
2021/07/22 21:38:02 [notice] 218910#218910: start worker process 218913
2021/07/22 21:38:02 [debug] 218910#218910: sigsuspend
2021/07/22 21:38:02 [debug] 218913#218913: add cleanup: 0000559957DDFCD0
2021/07/22 21:38:02 [debug] 218913#218913: malloc: 0000559957DE4260:8
2021/07/22 21:38:02 [debug] 218913#218913: notify eventfd: 10
2021/07/22 21:38:02 [debug] 218913#218913: eventfd: 11
2021/07/22 21:38:02 [debug] 218913#218913: testing the EPOLLRDHUP flag: success
2021/07/22 21:38:02 [debug] 218913#218913: malloc: 0000559957DC3E30:6144
2021/07/22 21:38:02 [debug] 218913#218913: malloc: 00007F8B32C64010:245760
2021/07/22 21:38:02 [debug] 218913#218913: malloc: 0000559957DE44E0:98304
2021/07/22 21:38:02 [debug] 218913#218913: malloc: 0000559957DFC4F0:98304
2021/07/22 21:38:02 [debug] 218913#218913: epoll add event: fd:7 op:1 ev:00002001
2021/07/22 21:38:02 [notice] 218910#218910: signal 17 (SIGCHLD) received from 218913
2021/07/22 21:38:02 [alert] 218910#218910: worker process 218913 exited on signal 11
2021/07/22 21:38:02 [debug] 218910#218910: shmtx forced unlock
2021/07/22 21:38:02 [debug] 218910#218910: wake up, sigio 0
2021/07/22 21:38:02 [debug] 218910#218910: reap children
2021/07/22 21:38:02 [debug] 218910#218910: child: 0 218913 e:0 t:1 d:0 r:1 j:0
2021/07/22 21:38:02 [debug] 218910#218910: channel 3:8
2021/07/22 21:38:02 [notice] 218910#218910: start worker process 218914
2021/07/22 21:38:02 [debug] 218910#218910: sigsuspend
2021/07/22 21:38:02 [debug] 218914#218914: add cleanup: 0000559957DDFCD0
2021/07/22 21:38:02 [debug] 218914#218914: malloc: 0000559957DE4260:8
2021/07/22 21:38:02 [debug] 218914#218914: notify eventfd: 10
2021/07/22 21:38:02 [debug] 218914#218914: eventfd: 11
2021/07/22 21:38:02 [debug] 218914#218914: testing the EPOLLRDHUP flag: success
2021/07/22 21:38:02 [debug] 218914#218914: malloc: 0000559957DC3E30:6144
2021/07/22 21:38:02 [debug] 218914#218914: malloc: 00007F8B32C64010:245760
2021/07/22 21:38:02 [debug] 218914#218914: malloc: 0000559957DE44E0:98304
2021/07/22 21:38:02 [debug] 218914#218914: malloc: 0000559957DFC4F0:98304
2021/07/22 21:38:02 [debug] 218914#218914: epoll add event: fd:7 op:1 ev:00002001
2021/07/22 21:38:02 [notice] 218910#218910: signal 17 (SIGCHLD) received from 218914
2021/07/22 21:38:02 [alert] 218910#218910: worker process 218914 exited on signal 11
2021/07/22 21:38:02 [debug] 218910#218910: shmtx forced unlock
2021/07/22 21:38:02 [debug] 218910#218910: wake up, sigio 0
2021/07/22 21:38:02 [debug] 218910#218910: reap children
2021/07/22 21:38:02 [debug] 218910#218910: child: 0 218914 e:0 t:1 d:0 r:1 j:0
2021/07/22 21:38:02 [debug] 218910#218910: channel 3:8
2021/07/22 21:38:02 [notice] 218910#218910: start worker process 218915
http-accounting.log extract.
2021/07/22 21:38:02 [notice] 218911#218911: pid:218911|start http traffic accounting
2021/07/22 21:38:02 [notice] 218912#218912: pid:218912|start http traffic accounting
2021/07/22 21:38:02 [notice] 218913#218913: pid:218913|start http traffic accounting
2021/07/22 21:38:02 [notice] 218914#218914: pid:218914|start http traffic accounting
2021/07/22 21:38:02 [notice] 218915#218915: pid:218915|start http traffic accounting
2021/07/22 21:38:02 [notice] 218916#218916: pid:218916|start http traffic accounting
2021/07/22 21:38:02 [notice] 218917#218917: pid:218917|start http traffic accounting
2021/07/22 21:38:02 [notice] 218918#218918: pid:218918|start http traffic accounting
2021/07/22 21:38:02 [notice] 218920#218920: pid:218920|start http traffic accounting
2021/07/22 21:38:02 [notice] 218921#218921: pid:218921|start http traffic accounting
2021/07/22 21:38:02 [notice] 218922#218922: pid:218922|start http traffic accounting
2021/07/22 21:38:02 [notice] 218923#218923: pid:218923|start http traffic accounting
2021/07/22 21:38:02 [notice] 218924#218924: pid:218924|start http traffic accounting
2021/07/22 21:38:02 [notice] 218926#218926: pid:218926|start http traffic accounting
Any ideas as to why this does not work?
from traffic-accounting-nginx-module.
Related Issues (20)
- v1.3版本编译报错,二进制不兼容 HOT 1
- Stream module is not compatible with nginx-1.15 HOT 3
- Pre-build binaries HOT 1
- accounting_id should allow variables within a string
- NGINX 1.16.1 - dynamic module keeps crashing ( segfault ) HOT 7
- Is it possible to monitor hit/miss rate in the module? HOT 1
- The traffic-accounting-nginx-module included upstream_bytes? HOT 1
- issue with dynamic building: "no suitable image found" HOT 1
- Keep getting the same error after following the installation steps. HOT 2
- Dynamic module undefined symbol ngx_stream_get_variable_index problem HOT 4
- AUR package for nginx-mainline for this module
- Samples don't work with Elastic 7.x HOT 3
- Issues when loading as dynamic module on macOS HOT 8
- Memory leak
- Feature request: reset counters once a month
- Invalid ELF header error when loading module
- Constant crashing HOT 1
- QUESTION: Any practical way to use this module with multiple Independent servers? HOT 3
- Feature request: combined log entries
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from traffic-accounting-nginx-module.