Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: conflict with "ngx_http_js_module" in 1.27.4 nginx version #185

Open
pinguet62 opened this issue Mar 18, 2025 · 0 comments
Open

[BUG]: conflict with "ngx_http_js_module" in 1.27.4 nginx version #185

pinguet62 opened this issue Mar 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@pinguet62
Copy link

pinguet62 commented Mar 18, 2025

Module Version(s)

1.5.0

Bug Report

Hello 🖖

After upgrade of nginx from 1.27.3 to 1.27.4, the agent does't work.
It seems side effect with the ngx_http_js_module module I'm using.

The agent does't seem to use the DD_ configuration 🤔
Probably after #169 ?

Thanks in advance.

Reproduction Code

With docker packaging:

# FROM nginx:1.27.3 # OK
FROM nginx:1.27.4 # ERRROR

RUN apt-get update \
 && apt-get install --yes --no-install-recommends wget

# install DataDog agent
RUN sed -i '1 i\load_module modules/ngx_http_datadog_module.so;' /etc/nginx/nginx.conf \
 && wget https://github.com/DataDog/nginx-datadog/releases/download/v1.5.0/ngx_http_datadog_module-amd64-${NGINX_VERSION}.so.tgz --output-document - | tar --extract --gzip --directory /usr/lib/nginx/modules

# sample "ngx_http_js_module" usage
RUN sed -i '1 i\load_module modules/ngx_http_js_module.so;' /etc/nginx/nginx.conf \
 && echo "export default {}" > /etc/nginx/helpers.js \
 && echo "js_import helpers.js; \n" >> /etc/nginx/conf.d/default.conf

docker build --no-cache . --tag test
docker run --rm -it -e DD_AGENT_HOST=datadog-agent test

Error Logs

2025/03/18 15:28:18 [error] 160#164: nginx-datadog: [error code 4] Error occurred during HTTP request for Remote Configuration: Error sending request with libcurl (Couldn't connect to server): Failed to connect to localhost port 8126 after 0 ms: Couldn't connect to server

See "localhost" instead of "datadog-agent" in my example of reproduction code.

No data in DataDog APM page.

Operating System

/

@pinguet62 pinguet62 added the bug Something isn't working label Mar 18, 2025
@pinguet62 pinguet62 changed the title [BUG]: [BUG]: not working after 1.27.4 upgrade of nginx Mar 18, 2025
@pinguet62 pinguet62 changed the title [BUG]: not working after 1.27.4 upgrade of nginx [BUG]: conflict with "ngx_http_js_module" in 1.27.4 nginx version Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant