Comments (8)
I just realised that my issue is the same as issue #39 (outstanding since 2019), so I guess it will never be solved (project seems to be abandoned?)
I tried building v1.3 and at least it seems to work (no streams support).
from traffic-accounting-nginx-module.
@nemphys can you show the ./configure parameters, I will try to reproduce the issue first
from traffic-accounting-nginx-module.
The installation is the default current Homebrew installation of 1.19.7 under Big Sur.
Configure parameters:
--prefix=/usr/local/Cellar/nginx/1.19.7 --sbin-path=/usr/local/Cellar/nginx/1.19.7/bin/nginx --with-cc-opt='-I/usr/local/opt/pcre/include -I/usr/local/opt/[email protected]/include' --with-ld-opt='-L/usr/local/opt/pcre/lib -L/usr/local/opt/[email protected]/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --pid-path=/usr/local/var/run/nginx.pid --lock-path=/usr/local/var/run/nginx.lock --http-client-body-temp-path=/usr/local/var/run/nginx/client_body_temp --http-proxy-temp-path=/usr/local/var/run/nginx/proxy_temp --http-fastcgi-temp-path=/usr/local/var/run/nginx/fastcgi_temp --http-uwsgi-temp-path=/usr/local/var/run/nginx/uwsgi_temp --http-scgi-temp-path=/usr/local/var/run/nginx/scgi_temp --http-log-path=/usr/local/var/log/nginx/access.log --error-log-path=/usr/local/var/log/nginx/error.log --with-compat --with-debug --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_degradation_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_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-ipv6 --with-mail --with-mail_ssl_module --with-pcre --with-pcre-jit --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module
from traffic-accounting-nginx-module.
cannot reproduce the issue.
configuration options and nginx.conf see below:
➜ nginx-1.19.7 ./objs/nginx -V
nginx version: nginx/1.19.7
built by clang 12.0.0 (clang-1200.0.32.29)
built with OpenSSL 1.1.1j 16 Feb 2021
TLS SNI support enabled
configure arguments: --prefix=/usr/local/Cellar/nginx/1.19.7 --sbin-path=/usr/local/Cellar/nginx/1.19.7/bin/nginx --with-cc-opt='-I/usr/local/opt/pcre/include -I/usr/local/opt/[email protected]/include' --with-ld-opt='-L/usr/local/opt/pcre/lib -L/usr/local/opt/[email protected]/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --pid-path=/usr/local/var/run/nginx.pid --lock-path=/usr/local/var/run/nginx.lock --http-client-body-temp-path=/usr/local/var/run/nginx/client_body_temp --http-proxy-temp-path=/usr/local/var/run/nginx/proxy_temp --http-fastcgi-temp-path=/usr/local/var/run/nginx/fastcgi_temp --http-uwsgi-temp-path=/usr/local/var/run/nginx/uwsgi_temp --http-scgi-temp-path=/usr/local/var/run/nginx/scgi_temp --http-log-path=/usr/local/var/log/nginx/access.log --error-log-path=/usr/local/var/log/nginx/error.log --with-compat --with-debug --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_degradation_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_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-ipv6 --with-mail --with-mail_ssl_module --with-pcre --with-pcre-jit --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --add-dynamic-module=traffic-accounting-nginx-module
load_module objs/ngx_http_accounting_module.so;
#user nobody;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
accounting on;
accounting_log logs/http-accounting.log;
server {
listen 8081;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
stream {
accounting on;
accounting_id 'STREAM';
accounting_interval 60;
accounting_perturb on;
accounting_log logs/stream-accounting.log;
upstream echo {
server 127.0.0.1:8888 max_fails=3 fail_timeout=30s;
}
server {
listen 9999;
proxy_connect_timeout 1s;
proxy_timeout 30s;
proxy_pass echo;
resolver 127.0.0.1;
accounting_id "TCP_PROXY_ECHO";
}
upstream dns {
server 8.8.8.8:53;
}
server {
listen 53 udp;
proxy_responses 1;
proxy_timeout 20s;
proxy_pass dns;
accounting_id $remote_addr;
}
}
from traffic-accounting-nginx-module.
I notice that there's a message cache manager process 81340 exited on signal 11
that may be related to cache configuration, can you show the nginx configuration @nemphys
from traffic-accounting-nginx-module.
Here is my config (please note that I am not using the stream module at all):
`load_module modules/ngx_http_accounting_module.so;
user nobody staff;
worker_processes 4;
error_log /usr/local/var/log/nginx/error.log;
events {
worker_connections 256;
}
http {
http_accounting on;
http_accounting_log /usr/local/var/log/nginx/http-accounting.log;
http_accounting_id $hostname;
http_accounting_interval 10;
include mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nodelay on;
tcp_nopush on;
keepalive_timeout 65;
client_max_body_size 512M;
gzip on;
gzip_http_version 1.1;
gzip_comp_level 5;
gzip_proxied any;
gzip_min_length 256;
gzip_buffers 16 8k;
gzip_vary on;
gzip_types
application/atom+xml
application/javascript
application/x-javascript
application/json
application/rss+xml
application/vnd.ms-fontobject
application/x-font-ttf
application/x-web-app-manifest+json
application/xhtml+xml
application/xml
font/opentype
image/svg+xml
image/x-icon
text/css
text/plain
text/x-component;
##
# SSL Settings
##
ssl_protocols TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
ssl_ciphers TLS-CHACHA20-POLY1305-SHA256:TLS-AES-256-GCM-SHA384:TLS-AES-128-GCM-SHA256:ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:!aNULL:!MD5:!DSS; # TLS1.3
ssl_dhparam /usr/local/etc/nginx/ssl/dhparams.pem;
ssl_session_cache shared:SSL:32m;
ssl_session_timeout 180m;
ssl_buffer_size 8k;
map $scheme $fastcgi_https { ## Detect when HTTPS is used
default off;
https on;
}
proxy_cache_path /tmp/cache keys_zone=microcache:50m levels=1:2 inactive=600s max_size=100m;
server {
listen 127.0.0.1:3333;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-PORT $remote_port;
proxy_buffers 32 4k;
proxy_buffer_size 16k;
http_accounting_id xxxxxxx;
location / {
proxy_cache microcache;
proxy_cache_revalidate on;
proxy_cache_valid 200 1s;
proxy_cache_lock on;
proxy_cache_use_stale updating;
proxy_ignore_headers Set-Cookie;
proxy_hide_header Set-Cookie;
proxy_ignore_headers Cache-Control;
add_header X-Cache-Status $upstream_cache_status;
proxy_pass http://nodejs;
}
}
}`
from traffic-accounting-nginx-module.
Any news on this one?
from traffic-accounting-nginx-module.
The same issue for me trying to load dynamic module after compiling it with nginx 1.21.0-1~focal
package from official repository on Ubuntu 20.04. Even with a sample minimal config:
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
}
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
- Release 2.0 = signal 17 (SIGCHLD) received HOT 3
- 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
- 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.