SOLVED Fresh install BBB - Broken pipe

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
I took another BBB and executed the whole install again from the beginning ontothe eMMC internal memory.
Same result.
I am sorry I did not succeed.

(log attached)
 

Attachments

  • 140609-1925 full log.txt
    346.3 KB · Views: 3

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
I'm out of town for a few days. Will give it a fresh test when we get back to home base on Friday.
 

jrglass

Guru
Joined
Oct 18, 2007
Messages
302
Reaction score
20
I am having a similar problem. New BBB ver C using 16g class 4 msd card,followed instructions after installing incredible PBX 4.11.3, News and weather by city does not work. other features such as today in history, weather by zip and time work.

raspbx*CLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [951@from-internal:1] Answer("SIP/702-00000001", "") in new stack
> 0xbdea10 -- Probation passed - setting RTP source address to 192.168.1.110:4040
-- Executing [951@from-internal:2] Wait("SIP/702-00000001", "1") in new stack
> 0xbdea10 -- Probation passed - setting RTP source address to 192.168.1.110:4040
-- Executing [951@from-internal:3] BackGround("SIP/702-00000001", "custom/chime") in new stack
-- <SIP/702-00000001> Playing 'custom/chime.gsm' (language 'en')
-- Executing [951@from-internal:4] Set("SIP/702-00000001", "TIMEOUT(digit)=7") in new stack
-- Digit timeout set to 7.000
-- Executing [951@from-internal:5] Set("SIP/702-00000001", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10.000
-- Executing [951@from-internal:6] AGI("SIP/702-00000001", "googletts.agi,"Please hold a moment while we retrieve the latest Yahoo news headlines.",en") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/googletts.agi
-- Playing '/tmp/ggl_jl3yFR' (escape_digits=) (sample_offset 0)
-- <SIP/702-00000001>AGI Script googletts.agi completed, returning 0
-- Executing [951@from-internal:7] AGI("SIP/702-00000001", "nv-news-yahoo.php,10") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/nv-news-yahoo.php
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Code:
<?php

Look at the nv-news-yahoo.php script in /var/lib/asterisk/agi-bin and be sure first second line is what's shown above. Ubuntu quirk.
 

vgabbott

New Member
Joined
Jun 23, 2014
Messages
24
Reaction score
2
I am having a similar problem. New BBB ver C using 16g class 4 msd card,followed instructions after installing incredible PBX 4.11.3, News and weather by city does not work. other features such as today in history, weather by zip and time work.

raspbx*CLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [951@from-internal:1] Answer("SIP/702-00000001", "") in new stack
> 0xbdea10 -- Probation passed - setting RTP source address to 192.168.1.110:4040
-- Executing [951@from-internal:2] Wait("SIP/702-00000001", "1") in new stack
> 0xbdea10 -- Probation passed - setting RTP source address to 192.168.1.110:4040
-- Executing [951@from-internal:3] BackGround("SIP/702-00000001", "custom/chime") in new stack
-- <SIP/702-00000001> Playing 'custom/chime.gsm' (language 'en')
-- Executing [951@from-internal:4] Set("SIP/702-00000001", "TIMEOUT(digit)=7") in new stack
-- Digit timeout set to 7.000
-- Executing [951@from-internal:5] Set("SIP/702-00000001", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10.000
-- Executing [951@from-internal:6] AGI("SIP/702-00000001", "googletts.agi,"Please hold a moment while we retrieve the latest Yahoo news headlines.",en") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/googletts.agi
-- Playing '/tmp/ggl_jl3yFR' (escape_digits=) (sample_offset 0)
-- <SIP/702-00000001>AGI Script googletts.agi completed, returning 0
-- Executing [951@from-internal:7] AGI("SIP/702-00000001", "nv-news-yahoo.php,10") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/nv-news-yahoo.php
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-14 01:20:04] ERROR[3331][C-00000001]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe




I am still hoping for a fix...

Is your weather by zipcode working?
 

vgabbott

New Member
Joined
Jun 23, 2014
Messages
24
Reaction score
2
How 'bout responding to my question. o_O


I changed directory from root to /var/lib/asterisk/agi-bin. Then I did a dir and found the scrip: nv-news-yahoo.php. I then ./nv-news-yahoo.php and got a print out. Can not find any of the 3 lines you mention. Not sure if I did this right or not. I do not know any linux or perl at all.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
nano -w /var/lib/asterisk/agi-bin/nv-news-yahoo.php. It's the first second line of the file. Make sure it looks like what I posted. Then save the file: Ctrl-X, Y, Enter.
 

vgabbott

New Member
Joined
Jun 23, 2014
Messages
24
Reaction score
2
nano -w /var/lib/asterisk/agi-bin/nv-news-yahoo.php. It's the first line of the file. Make sure it looks like what I posted. Then save the file: Ctrl-X, Y, Enter.



Can not find any line that looks like this: Incredible PBX 4.11.4 for RasPBX Ubuntu 14.04 Asterisk 11.8.0 FreePBX 2.11.0.35

Seems that ctrl-O saves the file.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
First, find all the files with the problem.

Code:
grep -r "<?$" /var/lib/asterisk/agi-bin/*

Second, run this one with each file name:

Code:
sed -i ':a;N;$!ba;s/<?\n/<?php\n/' /var/lib/asterisk/agi-bin/eachfile.php

Or, if you're really lazy, just run these two commands (which we will push out as an update shortly). No harm in running them multiple times...

Code:
for f in /var/lib/asterisk/agi-bin/*.php; do echo "Updating $f..." && sed -i ':a;N;$!ba;s/<?\n/<?php\n/' $f; done
for f in /var/lib/asterisk/agi-bin/*.agi; do echo "Updating $f..." && sed -i ':a;N;$!ba;s/<?\n/<?php\n/' $f; done
 

vgabbott

New Member
Joined
Jun 23, 2014
Messages
24
Reaction score
2
Can not find any line that looks like this: Incredible PBX 4.11.4 for RasPBX Ubuntu 14.04 Asterisk 11.8.0 FreePBX 2.11.0.35

Seems that ctrl-O saves the file.

Looks like I did not see your short <?php fix. Thought you were talking about lines way above.
I used your scrip and it changed to <?php.

However, still no change, get measage, tone, but nothing after I announced Ketchikan, AK. Then script and tone repeat.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Sounds like a different issue. Please start a new thread and post snippets from /var/lib/asterisk/full that show what transpired during the attempted call.
 

vgabbott

New Member
Joined
Jun 23, 2014
Messages
24
Reaction score
2
I crashed your server? could not upload 3 screen shots at the same time?
My upload is 9mbps... here the screenshots


Did you finally get Google voice recognition on BBB to work?
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
TTS is working for me.
This:
- Executing [951@from-internal:6] AGI("SIP/702-00000001", "googletts.agi,"Please hold a moment while we retrieve the latest Yahoo news headlines.",en") in new stack
I can hear when I call 951
Everything work with the <?php fix, I have not yet found the time to apply Ward's fix, but am sure that will do it for me.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Be sure to cut-and-paste your Google key so the O's and 0's don't get confused. :idea:
 

Erik Knowles

New Member
Joined
Aug 19, 2014
Messages
5
Reaction score
1
The two-line "search and sed" fix worked for me too. Any chance of getting the fix into the mainline install?
 

Erik Knowles

New Member
Joined
Aug 19, 2014
Messages
5
Reaction score
1
Little correction -- the "search and sed" did fix Yahoo! news but did not fix nv-callwho.php (which I'm using with the voice activated Asteridex extension -- 411). Still tossing an error.
 

Erik Knowles

New Member
Joined
Aug 19, 2014
Messages
5
Reaction score
1
I hate debugging SED regexs, but I think the nv-callwho problem was due to a space (or tab?) at the end of the <? line, which I think your sed search regex fails to account for. Try this (*no* warrantee!!!):

Code:
for f in /var/lib/asterisk/agi-bin/*.php; do echo "Updating $f..." && sed -i ':a;N;$!ba;s/<?[[:space:]]*\n/<?php\n/' $f; done
for f in /var/lib/asterisk/agi-bin/*.agi; do echo "Updating $f..." && sed -i ':a;N;$!ba;s/<?[[:space:]]*\n/<?php\n/' $f; done
 

Members online

Forum statistics

Threads
25,782
Messages
167,509
Members
19,203
Latest member
frapu
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top