-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
==> Caught signal: broken pipe #2768
Comments
If you're seeing that message, it means Consul is just logging the fact that it received a SIGPIPE signal; there's probably something else going on in the system to cause that. |
b.t.w, I am using docker swarm to set up the cluster. and 0.7.1 does not have this issue. |
0.7.5 also have this issue |
I also have the same issue but I suspect that it is rather caused by consul-template which I also use along with consul. Are you using consul-template too? If no I apologize for that. Since I started using consul-template I start seeing: Caught signal: broken pipe during consul-template daemon runs I assume consul-template is not finishing its calls to consul gracefully which cause consul to log those broken pipes. Also those messages are appearing on ~60s intervals 20170302T143403.652999: ==> Caught signal: broken pipe I started consul-template in debug but even it does not indicate any activity I see the above in the consul log. At the same time the messages listed above appear in consul daemon log consul monitor -log-level=debug is showing how consul-template is lookup up some things from the KV store and also do 2017/03/02 09:43:45 [DEBUG] http: Request GET /v1/kv/pub/server/backup/priv/addr?index=3170485&recurse=&stale=&wait=60000ms (1m1.455466342s) from=127.0.0.1:52436 And also service lookup in the consul catalog. Those are also used by the consul template 2017/03/02 09:43:46 [DEBUG] http: Request GET /v1/health/service/backup?index=3399730&passing=1&stale=&wait=60000ms (1m0.934059097s) from=127.0.0.1:49836 So it is the kv or the service catalog lookup that is not terminated properly (or both) by consul-template which is causing consul to print "broken pipes" Anything else I can do in order to help you debug the issue? consul is 0.7.5 Should I rather report this as a consul-template issue? vaLentin |
For the record I removed the service catalog lookups from the template files and issue still persists so I assume KV lookups are causing this. |
@vaLski, I'm not using consul-template, no other applications were using consul's api. how to get know who's sending this signal to consul and can we safely ignore it? |
@hehailong5 By the time I was trying to debug this issue it looked to me that message is logged if something is querying consul catalog/kvstore and connection to this something unexpectedly closed. However I can not be 100% sure. As for the message it does not indicate any issues with the consul itself but maybe an issue with the subsystem that is using/querying consul.
|
update: I was wrong, some other components in the system are using consul's service apis. |
Any clarity from anyone on this? I have logs filled with this in a test cluster with just consul and vault |
Compiled my client using Go 1.8, didn't remove this. What's more, I moved my client to a "3.16.0-30-generic 14.04.1-Ubuntu" machine and it didn't happen for both apis. the problematic machine is "4.4.0-31-generic 14.04.1-Ubuntu" based. So, I guess this issue is both api and kernel related. |
Supress signal logging on SIGPIPE. Should address #2768
Removed useless logging in #2842. |
version: 0.7.3
after the cluster starting up, it keeps printing the below line, never stops.
==> Caught signal: broken pipe
==> Caught signal: broken pipe
==> Caught signal: broken pipe
==> Caught signal: broken pipe
==> Caught signal: broken pipe
the cluster works correctly, but how come this report, need to fix?
The text was updated successfully, but these errors were encountered: