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

404 error suddenly appearing on one of our environments and ingress level issue #12748

Open
mullasaddam opened this issue Jan 23, 2025 · 2 comments
Labels
needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@mullasaddam
Copy link

Hi All,

We have been facing a continuous 404 error suddenly appearing on one of our environments. This issue occurs without any recent code changes in the Ingress Controller or infrastructure. When accessing any URL in this environment, we are receiving the 404 (Not Found) error. Please see the error message below for reference

Error: exit status 1
2025/01/21 20:14:16 [emerg] 197#197: "proxy_http_version" directive is duplicate in /tmp/nginx/nginx-cfg2330729348:185270
nginx: [emerg] "proxy_http_version" directive is duplicate in /tmp/nginx/nginx-cfg2330729348:185270
nginx: configuration file /tmp/nginx/nginx-cfg2330729348 test failed

As per the error above, I’m trying to identify where the proxy_http_version directive is defined twice in our configuration files. However, we haven’t explicitly defined this directive anywhere, and we believe it is being automatically generated by default as part of the NGINX Ingress Controller settings.

As per a solution mentioned on a GitHub page, we added the following annotation:

annotations:
nginx.ingress.kubernetes.io/rewrite-target: /

However, this annotation is already in place on our configuration. For reference, we are using EKS version 1.28 and Ingress Controller version 1.9.4.

The strange part is that all lower environments are functioning fine with the same configuration, including preprod and prod environments, except this particular environment.

To troubleshoot, I upgraded the Ingress Controller to version 1.10.4, but that did not resolve the issue. After further investigation, we suspected a CoreDNS issue, but all components in the EKS cluster are up and running without any issues, and there were no apparent problems at the CoreDNS level.

Interestingly, the issue started working after two days, despite no changes being made to the code or configuration. We are concerned about the potential impact if this happens in production.

Could you please help us with the following:

Root Cause Analysis (RCA): Could you suggest any potential causes for this behavior?
Preventative Measures: How can we avoid this situation in the future, especially in production environments?
Looking forward to your assistance.

Thanks,

@mullasaddam mullasaddam added the kind/bug Categorizes issue or PR as related to a bug. label Jan 23, 2025
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jan 23, 2025
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@longwuyuan
Copy link
Contributor

/remove-kind bug

At a bare minimum, the readers here need the data like the answers to the questions asked in the template of a new bug report.

@k8s-ci-robot k8s-ci-robot added needs-kind Indicates a PR lacks a `kind/foo` label and requires one. and removed kind/bug Categorizes issue or PR as related to a bug. labels Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
Development

No branches or pull requests

3 participants