-
Notifications
You must be signed in to change notification settings - Fork 270
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
Failed to get the sockets from the old process #696
Comments
Hi, thanks for the detailed description. This is related with reading and reusing the listening sockets to perform a seamless reload, see A few questions below:
|
Sorry to reply so late. It hasn't appeared since last time, so I didn't check as you saiy. But today there is another problem。in one node,the haproxy-ingress log show(v0.12.1):
The reason is a port conflict。 calico-node used a port in my setting scope, then i set service tcp port as the same,it happens~ ============== |
Hi, both errors seem to be caused by distinct reasons - while the later is caused by haproxy failing to start, the former apparently happened on a running haproxy instance. I'll leave this issue open, maybe I have a clue as to what's going on, maybe you can reproduce it again and can make the proposed tests. Please update here if you have any news. |
setting: net.ipv4.ip_nonlocal_bind=1 Now I'll continue to observe to see if this problem will occur again |
@jcmoraisjr Regarding to the issue, could you please take a look into the reloading script haproxy-reload.sh. It means that "reloading" function would not have a chance to run once socat commond retruns non-zero. |
@jcmoraisjr We're encountering the reload failure on 0.12.11. It coincided with other potentially interesting logs:
I'll poke around to see if I can find a proximate cause. If I do see one I'll be happy to contribute a PR. |
There is some conjecture over here that this sort of symptom may be related to the alpine image of haproxy: haproxy/haproxy#1413 I'm gonna give non-alpine a shot to see what happens. |
Very recent, potentially relevant commit: haproxy/haproxy@148d7a0 Fixed in 2.2.20: https://www.haproxy.org/download/2.2/src/CHANGELOG |
Hooray thanks for sharing =) we've a small amount of commits in the queue and will tag new versions shortly. |
v0.12.12 was just released with embedded haproxy version 2.2.20, which fixes this issue on libmusl, btw used on our base image. @frogluo I hope this also fixes the issue you've reported. Thank you @alienth for linking the points! I've just removed the backlog tag, feel free to provide any update, otherwise this issue will be closed in a couple of weeks. |
This issue got stale and will be closed in 7 days. |
v0.13.10 has the same problem, the primary cause by port conflict. |
Description of the problem
My haproxy-ingress had run a long time, but this day
haproxy-ingress logs deploy on k8s showed:
and then , the service ( update k8s deployment image only )on k8s can't access and return http status code:502
it's nomal for no update service(deployment/pod).
but if --reload-strategy=native,no problem。
so i think maybe something wrong with reusesocket?
Environment information
k8s 1.15.7
HAProxy Ingress version:
v0.12.1
v0.9 has the problem so i upgrade to v0.12.1, and As well
it's R&D environment ,pod change very frequently。
Command-line options:
Global options:
The text was updated successfully, but these errors were encountered: