Page 1 of 1

Broken Pipe

PostPosted: Thu Nov 08, 2018 9:55 am
by Leckbush
Hi Im seeing a few line of this code on "asterisk -rvvvvvv" while under operations as of right now.


[Nov 8 22:40:18] ERROR[17248]: utils.c:1446 ast_careful_fwrite: fwrite() returned error: Broken pipe
[Nov 8 22:40:18] ERROR[17248]: utils.c:1446 ast_careful_fwrite: fwrite() returned error: Broken pipe

Any idea what is this? and whats causing it and its solution?

No effect on calls tho. Thanks in advance :)

Re: Broken Pipe

PostPosted: Sun Nov 11, 2018 9:20 pm
by williamconley
Good job posting your specs. Earned you a response on this topic I ordinarily ignore.

The huge mistake in this scenario is that the module in question tosses "ERROR" instead of "NOTIFICATION" which would not cause any alarm at all, but because it says "ERROR", you care about it.

What happened is the opening of a file to write data, then NO data was written, and the file was closed. The app gets pissed off, people freak out ... and all for no particular reason. There was NO need to write into the file, but it was opened IN CASE there was a need to write. So the error won't be going away.

Re: Broken Pipe

PostPosted: Mon Nov 12, 2018 9:48 am
by Leckbush
Thanks william, So there's nothing to worry about right?

Re: Broken Pipe

PostPosted: Mon Nov 12, 2018 12:32 pm
by williamconley
Aside from the fact that whichever programmer on the project that is responsible for that "error" message should be slapped? Nope. Nothin' to see here. Move along. Of course, if you should decide to write a patch for asterisk that either changes that ERROR to a NOTICE (or just doesn't bother reporting at all), there would be kudos for you. Several of them.