Comments (7)
@wualex Please try the attached dynamic module - it works for my NGINX 1.16.1 installation
ngx_http_accounting_module.so.zip
I have built it with the following config inside docker container then pulled out the ngx_http_accounting_module.so
./configure --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-bTTM30/nginx-1.16.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' \
--with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' \
--prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--lock-path=/var/lock/nginx.lock \
--pid-path=/run/nginx.pid \
--modules-path=/usr/lib/nginx/modules \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--with-compat \
--with-debug \
--with-pcre-jit \
--with-http_ssl_module \
--with-http_stub_status_module \
--with-http_realip_module \
--with-http_auth_request_module \
--with-http_v2_module \
--with-http_dav_module \
--with-http_slice_module \
--with-threads \
--with-http_addition_module \
--with-http_geoip_module=dynamic \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_image_filter_module=dynamic \
--with-http_sub_module \
--with-http_xslt_module=dynamic \
--with-mail=dynamic \
--with-mail_ssl_module \
--add-dynamic-module=traffic-accounting-nginx-module-master \
--add-dynamic-module=echo-nginx-module-master \
&& make -s && make -s install
from traffic-accounting-nginx-module.
@wualex I have changed it to 1.16.1 and I am running test currently, will get you posted
from traffic-accounting-nginx-module.
i have the same issue, even on a fresh Ubuntu 18.04 system
Did you find a workaround for this @radixxko?
@Lax any idea what could be the problem?
from traffic-accounting-nginx-module.
@wualex @radixxko can you reproduce this issue based on the Dockerfile in the fix-dynamic-module-crashing-ubuntu
branch? https://github.com/Lax/traffic-accounting-nginx-module/tree/fix-dynamic-module-crashing-ubuntu
Maybe you need to update build flags and config files.
from traffic-accounting-nginx-module.
@Lax i did the following based on that Dockerfile
docker build -t nginxtest .
But i get an error while it builds
checking for getaddrinfo() ... found
configuring additional dynamic modules
adding module in traffic-accounting-nginx-module
./configure: error: no traffic-accounting-nginx-module/config was found
The command '/bin/sh -c ./configure --prefix=${PREFIX} --with-stream
--add-dynamic-module=traffic-accounting-nginx-module
--add-dynamic-module=echo-nginx-module-master
--http-log-path=/dev/stdout --error-log-path=/dev/stderr
&& make -s && make -s install' returned a non-zero code: 1
i don't have any experience with Docker so maybe i'm doing something wrong?
Also it seems that the Dockerfile uses nginx 1.16.0 - while we are trying to run latest stable which is 1.16.1
thanks.
from traffic-accounting-nginx-module.
It keeps failing for me "modules/ngx_http_accounting_module.so" failed ( undefined symbol: ngx_stream_get_variable_ind...
I will give it another try in a few hours
from traffic-accounting-nginx-module.
@radixxko i can confirm that it's working for me too, great job!
thank you.
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
- 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.