Josip Djuricic
2009-Oct-22 14:30 UTC
[asterisk-users] carefulwrite: write() returned error: Broken pipe
Dear, I am getting this in CLI on release candidate version of Asterisk. Any ideas, or points where to look? -- Launched AGI Script /var/lib/asterisk/agi-bin/rad-auth.agi [Oct 22 18:21:45] ERROR[9853]: utils.c:1126 ast_carefulwrite: write() returned error: Broken pipe -- <SIP/916-fc001968>AGI Script rad-auth.agi completed, returning 0 Best regards, Josip -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091022/12ecd019/attachment.htm
Danny Nicholas
2009-Oct-22 14:42 UTC
[asterisk-users] carefulwrite: write() returned error: Broken pipe
In main/utils.c there is a line (1126) that reads like this - ast_log(LOG_ERROR, "write() returned error: %s\n", strerror(errno)); change ERROR to NOTICE - ast_log(LOG_NOTICE, "write() returned error: %s\n", strerror(errno)); and do make && make install. This will remove this message. _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Josip Djuricic Sent: Thursday, October 22, 2009 9:31 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: [asterisk-users] carefulwrite: write() returned error: Broken pipe Importance: High Dear, I am getting this in CLI on release candidate version of Asterisk. Any ideas, or points where to look? -- Launched AGI Script /var/lib/asterisk/agi-bin/rad-auth.agi [Oct 22 18:21:45] ERROR[9853]: utils.c:1126 ast_carefulwrite: write() returned error: Broken pipe -- <SIP/916-fc001968>AGI Script rad-auth.agi completed, returning 0 Best regards, Josip -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091022/d41ede52/attachment.htm
Tilghman Lesher
2009-Oct-22 14:57 UTC
[asterisk-users] carefulwrite: write() returned error: Broken pipe
On Thursday 22 October 2009 09:30:58 Josip Djuricic wrote:> I am getting this in CLI on release candidate version of Asterisk. Any > ideas, or points where to look? > > -- Launched AGI Script /var/lib/asterisk/agi-bin/rad-auth.agi > [Oct 22 18:21:45] ERROR[9853]: utils.c:1126 ast_carefulwrite: write() > returned error: Broken pipe > -- <SIP/916-fc001968>AGI Script rad-auth.agi completed, returning 0Generally, that means that your AGI exited early, before the AGI controller had a chance to output responses. You could ignore the error, or you could fix your AGI script to ensure that it receives full responses before exiting. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org