-
Notifications
You must be signed in to change notification settings - Fork 498
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
502 Errors with patch 1018 #168
Comments
hi ,it means the module doesn't work , i guess u can only proxy http request . This step wrong: u should copy the "objs/nginx" to "/usr/sbin/nginx" or add dynamic module "ngx_http_proxy_connect_module-master" copy the so file |
Enabling debugging while building nginx pointed to a probable root cause being host addresses being IPv6. If your target host resolution includes IPv6 addresses then you will get 502s when the IPv6 address is attempted. Adding "ipv6=off" to your resolver line should be a functioning workaround until it is fixed in code. Change this: |
@scott-hiemstra Thanks for pointing out the workaround. I think I'm experiencing a similar issue (which vanishes when using |
@scott-hiemstra you're a life saver |
I see similar issue. Disabling ipv6 fixed it. Is it possible to configure the proxy_connect to try all IPs reported by resolver - if some of the connection attempts failed - till one IP that succeeded is found? |
Great, it works to me, Thanks! |
Ⅰ. Issue Description
Intermittent 502 errors when using openresty 1.17.8.2 with 1018.path.
Ⅱ. Describe what happened
Ⅲ. Describe what you expected to happen
I expected the requests to be proxied through localhost:3128.
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Dockerfile:
nginx.conf:
Ⅴ. Anything else we need to know?
nginx error.log:
Ⅵ. Environment:
The text was updated successfully, but these errors were encountered: