write() returned error: Broken pipe on each autocall

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

write() returned error: Broken pipe on each autocall

Postby omar » Fri Sep 21, 2012 11:19 am

Hi

For every successfully auto call, the asterisk cli always show the following error:

ERROR[9869]: utils.c:967 ast_carefulwrite: write() returned error: Broken pipe

What does it mean?

_____________________________________________________________________________________________________
The environment is
1 DB
1 WWW
1 ARCHIVE SERVER
2 asterisk dialers (astA, astB)

vicibox 3.1.15
asterisk 1.4.39.2 (both servers)
vicidial 2.6b0.5
build 120831-1523

All the servers have the same version and build
Omar
omar
 
Posts: 77
Joined: Wed Dec 13, 2006 2:05 pm

Re: write() returned error: Broken pipe on each autocall

Postby DomeDan » Sat Sep 22, 2012 9:48 am

This has been asked a few times before, a simple google search will direct you to any of them, like this one http://www.vicidial.org/VICIDIALforum/v ... =8&t=15275
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: write() returned error: Broken pipe on each autocall

Postby omar » Mon Sep 24, 2012 8:42 pm

DomeDan wrote:This has been asked a few times before, a simple google search will direct you to any of them, like this one http://www.vicidial.org/VICIDIALforum/v ... =8&t=15275


Thanks for the answer

Until now, searching this topic in different post. There are just to kind of answers:

gmcust3 wrote:U can safely Ignore them.


mflorell wrote:Please open a new topic if you are going to discuss something different.

Also, I would recommend trying svn/trunk to see if the same issue exists.


mflorell wrote:I know there were a couple schema hiccups in the past, but none since the last branch.


mcargile wrote:That is Asterisk complaining that it cannot send a message to either and AGI script or something that is connected to the Manager interface. This is because the item in question has already exited. These are normally completely harmless and really should not be an error, more like a warning, but the asterisk development team doesn't see it that way. In any even you are most likely fine unless you are having other problems. We have fixed most of these "Errors" in Vicidial SVN trunk (still working on one more), but like I said they should be harmless..


So, this error is normal? and I just have to ignore it?
BUT if I don't missunderstood, Matt says that this error shouldn't be in the last branch

i will still searching to find the right answer, and if i have success i will post the solution or answer on this post.

Thanks
Omar
omar
 
Posts: 77
Joined: Wed Dec 13, 2006 2:05 pm

Re: write() returned error: Broken pipe on each autocall

Postby williamconley » Mon Sep 24, 2012 10:22 pm

the link provided by DomeDan has specific detailed responses. Perhaps you should read through it again?

viewtopic.php?f=8&t=15275
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: write() returned error: Broken pipe on each autocall

Postby mcargile » Thu Sep 27, 2012 10:29 am

The funny thing is that that forum post does not actually list the real problem.

First off some back ground. At some point Digium changed the behavior of the Manager interface and the AGI interface. You used to be able to issue commands and not stick around for the results. Matt used to connect into the AMI, issue a command, and then immediately disconnect. After Digium made the change this error would fly by on the screen. We then added something that would wait up to four seconds for a response and then disconnect. This cut the number of these errors down dramatically. However they still appear.

It was not until I started doing Asterisk 1.8 development that I was able to figure out where the rest of these are coming from. In some of the AGI scripts Matt is not using the AGI perl object to issue AGI commands. Instead he is issuing them directly. The problem is he is not grabbing the response back from Asterisk and just exiting. This is resulting in the broken pipe errors. Luckily Asterisk is perfectly happy to just throw the error and chug along. My Asterisk 1.8 patches have this fix in them, which will also fix it for Asterisk 1.4.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am

Re: write() returned error: Broken pipe on each autocall

Postby omar » Thu Sep 27, 2012 10:34 am

williamconley wrote:the link provided by DomeDan has specific detailed responses. Perhaps you should read through it again?

http://www.vicidial.org/VICIDIALforum/v ... =8&t=15275


Hi

In that topic or any other that i found, MATT never says something like: "The error is normal and you can ignore it". OR "If you don't want that ERROR message you can change it to a WARNING message, following....". For matt the ERROR message shouldn't be there in SVN/TRUNK code.

And as matt is the main creator of vicidial, he is the authorized voice to give a final conclusion.

Thanks
Omar
omar
 
Posts: 77
Joined: Wed Dec 13, 2006 2:05 pm

Re: write() returned error: Broken pipe on each autocall

Postby mcargile » Thu Sep 27, 2012 10:39 am

While I am not Matt, with regards to Vicidial, that error is normal and you can ignore it. If you are using the asterisk box for other things that control Asterisk programatically, you might want to double check the code is waiting for Asterisk to respond. I would not recommend changing it to a WARNING however. If you can be patient for a few months this will go away completely when my asterisk 1.8 patches are mainlined.
Michael Cargile | Director of Engineering | ViciDialGroup | http://www.vicidial.com

The official source for VICIDIAL services and support. 1-888-894-VICI (8424)
mcargile
Site Admin
 
Posts: 617
Joined: Tue Jan 16, 2007 9:38 am


Return to Support

Who is online

Users browsing this forum: john321 and 119 guests