SOLVED Fresh install BBB - Broken pipe

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
I am trying out the latest version of incrediblePBX11 on top of:
RasPBX Ubuntu 14.04 Asterisk 11.8.0 FreePBX 2.11.0.35

I dialed 412 to test Callwho and 951 for yahoo weather and have Broken pipe error.
Am I doing something wrong?
Did I miss a fix somewhere?

-- Executing [951@from-internal:6] AGI("SIP/701-00000002", "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_6kl3Y2' (escape_digits=) (sample_offset 0)
-- <SIP/701-00000002>AGI Script googletts.agi completed, returning 0
-- Executing [951@from-internal:7] AGI("SIP/701-00000002", "nv-news-yahoo.php,10") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/nv-news-yahoo.php
[2014-06-04 11:51:54] ERROR[3143][C-00000002]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-04 11:51:54] ERROR[3143][C-00000002]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-04 11:51:54] ERROR[3143][C-00000002]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe

-- Executing [412@from-internal:6] Flite("SIP/701-00000000", ""At the beep enter the first three letters of the name of the person you wish to contact."") in new stack
-- <SIP/701-00000000> Playing '/tmp/flite_68202199.slin' (language 'en')
-- Executing [412@from-internal:7] Goto("SIP/701-00000000", "412,9") in new stack
-- Goto (from-internal,412,9)
-- Executing [412@from-internal:9] Read("SIP/701-00000000", "DIALCODE,beep,3") in new stack
-- Accepting a maximum of 3 digits.
-- <SIP/701-00000000> Playing 'beep.ulaw' (language 'en')
-- User entered '123'
-- Executing [412@from-internal:10] NoOp("SIP/701-00000000", "Name lookup: 123") in new stack
-- Executing [412@from-internal:11] AGI("SIP/701-00000000", "nv-callwho2.php,123") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/nv-callwho2.php
[2014-06-04 11:45:12] ERROR[3114][C-00000000]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-04 11:45:12] ERROR[3114][C-00000000]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-04 11:45:12] ERROR[3114][C-00000000]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
Thanks, unfortunately it did not help. Actually yahoo weather is TTS not STT, does it matter?

What I did:
I created the key and added it into the downloaded speech-recog.agi
I had some trouble getting JSON (in attached log).
It required me to manually run 'dpkg --configure -a' which did not go well due to a program I had installed previously, called nfs-common.

I removed nfs-common and then successfully ran 'dpkg --configure -a' and 'apt-get install libjson-perl' and amportal restart

Still, the script for nv-news-yahoo failed with same Broken pipe.
 

Attachments

  • logjson.txt
    3.5 KB · Views: 1

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
90% (1.4G used of 1.7G, Avail 166M)
Will do and revert back here in a moment
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
I now started from an SDcard with the same image ofRaspbx and made after initial install of IncrediblePBX11.
Although you may argue it is not a complete new install, it is a clean install before I changed anything else.

...with the same Broken pipe as a result.
A complete log attache, including df -h at the end.

If needed I could build all from scratch again :( on a new SDcard and enlarge 2Gb to 8Gb
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,220
We can't reproduce the problem which tells me you either have a bad SD card or something different than the stock install. What type SD card are you using? Type 4 or Type 10?? Try copying the image to the internal flash and see if the problem goes away.
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
I use only type 4, Sandisk.
Initially I was on the eMMC that had the image from Raspbx raspbx-bbb-24-04-2014.img which I copied over to the eMMC from an 16Gb card that contained the 2Gb image.

Just now I put the same image on an 8Gb card, booted from it and installed incrediblepbx11.
Note: After reboot (console) I did not get the incrediblepbx status screen
Updates completed. Your system is now current.

No mail for root
/usr/bin/status: line 6: curl: command not found
wlan0: error fetching interface information: Device not found
cat: /sys/class/thermal/thermal_zone0/temp: No such file or directory
/usr/bin/status: line 85: bc: command not found
/usr/bin/status: line 86: bc: command not found
/usr/bin/status: line 93: dialog: command not found
I continued with instructions as per here, but again received the Broken pipe.

Since the Incrediblepbx install was not satisfactory, I will now re-download raspbx-bbb-24-04-2014.img again and put it on a different, 16Gb card using Win32DiskImager, boot from it and install incrediblepbx11 again and report back.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,220
You've got a bad image. Look at all the missing apps in your listing above.
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
I reinstalled from scratch again on the SD card.
A perfect install. All upgrades went through well. Status of incrediblepbx shows.
resize-partition went well.
apt-get install libjson-perl went without hickups.
Then I executed this
Code:
cd /var/lib/asterisk/agi-bin
mv speech-recog.agi speech-recog.last.agi
wget --no-check-certificate https://raw.githubusercontent.com/zaf/asterisk-speech-recog/master/speech-recog.agi
chown asterisk:asterisk speech*
chmod 775 speech*
nano -w speech-recog.agi
...and entered my API key into line containing my $key="xxx"
After amportal restart, I called from ext701 to 951 resulting again in Broken pipe.:confused:
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,220
949 is the app that uses speech recognition. Try it. If that fails, it narrows it down to an underperforming card, I think. Try copying 2GB image (not expanded image) to internal flash and see if it still fails after booting from there. That will confirm it's a microSD card issue. If it works, then I'd try a Type 10 card instead of a Type 4.
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
Ward, thanks, but its hard to believe its the card. I tried various cards and (fresh) images.
Initially I was working nicely on the eMMC with the same problem.

This rules out the card. In any case, type 10 was never preferred as it is too fast for the slow CPUs of BBB and Pi.
I will try internal flash though, again a fresh copy on the eMMC and build from there (tomorrow).

... It could be that by Google API key does not work, I have no idea how to test it.
I could PM you mine, if you would not mind trying it on your system...

-- Executing [949@from-internal:10] AGI("SIP/701-00000003", "googletts.agi,"Please hold a moment while we retrieve your report for San Francisco California.",en") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/googletts.agi
-- Playing '/tmp/ggl_kXOdOe' (escape_digits=) (sample_offset 0)
-- <SIP/701-00000003>AGI Script googletts.agi completed, returning 0
-- Executing [949@from-internal:11] AGI("SIP/701-00000003", "nv-weather-google.php,San Francisco California") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/nv-weather-google.php
[2014-06-04 21:01:41] ERROR[5524][C-00000003]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
[2014-06-04 21:01:41] ERROR[5524][C-00000003]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
Another perfect install:
A fresh download of raspbx-bbb-24-04-2014.img saved on a USB stick which I flashed over to the eMMC while the BBB was running on an external SD card.​
Installed pbxinaflash11.​
One quirk, though, the download of incrediblepbx-logo.sh failed, screenshot attached.​
Rebooted.​
System continued with update-raspbx1-4, all successfully. Expected warning that the disk is 84% full. (log from here is attached).​
Status screen Incredible PBX 4.11.4 for Raspbx.​
Installed json and ran the commands for speech-recog.​
Entered my API key for Google Speech: my $key = "AIz......s" (the key is 39 characters).​
amportal restart.​
asterisk -rvvvv​
sip show peers (701 OK)​
Called 951 from extension 701.​
[2014-06-05 10:15:08] ERROR[4989][C-00000000]: utils.c:1321 ast_carefulwrite: write() returned error: Broken pipe
Ward, its not the image, not the SDcard, not the eMMC.
It needs to be either the API key (attached) or something else?
 

Attachments

  • Status piaf Capture 2.JPG
    Status piaf Capture 2.JPG
    120.9 KB · Views: 4

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,220
If your connection to incrediblepbx.com is timing out, it means you don't have an Internet connection.
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
I checked that from console and could ping www.yahoo.com but not 74.86.213.25
I think your server may have been out of the air for a moment.
Do you suggest this is the issue and I should rerun setup for pbxinaflash11?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,201
Reaction score
5,220
We provide Cloud-based services...

No Shirt, No Shoes, No Internet = No Service
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
:) No cloud = Nobody knows.
Anyway, the logo script does not seem that important, unless you tell me it is.
I will do this again but can someone please test my API key in a working system?
At least I know its not that. I am feeling rather hopeless after so many hours of trying something that always works (for others) and you are making jokes.
:dots:
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
Again a (failed) try

1. fresh download, did not unzip it, copied it to the SD card that contained a working OS and booted BBB from SD card.
2. xz -dc raspbx-bbb-*.img.xz > /dev/mmcblk1
3. reboot from eMMC, log in root with password beaglebone
4. install incrediblepbx

Code:
cd /
 
wget http://incrediblepbx.com/incrediblepbx11-raspbx.gz
 
gunzip incrediblepbx11-raspbx.gz
 
chmod +x incrediblepbx11-raspbx
 
./incrediblepbx11-raspbx

5. 3 error messages that I could see during install
incrediblepbx11-raspbx: line 188: make: command not found
and same for line 189 line 190
screenshot attached

6. http://incrediblepbx.com/incrediblepbx-logo.sh loads this time :)
7. error message
rm: cannot remove 'incrediblepbx.pn*': No such file or directory
screenshot attached

8.Asterisk ended with exit status 0 (same screenshot)
9. continued changing passwords
10. error message
[FATAL] Unable to connect to Asterisk Manager from /var/lib/asterisk/bin/retrieve_conf, aborting
11. amportal stop / shutdown -h now
12. reboot and Patching FreePBX security vulnerability...
4 updates raspbx-update1-4
Updates completed. Your system is now current.

13. asterisk -rvvv
14. sip show peers: OK
15. called 951
=> can hear the chime
=> this time:no sound -- Executing [951@from-internal:6] AGI("SIP/701-00000001", "googletts.agi,"Please hold a moment while we retrieve the latest Yahoo news headlines.",en"
=> broken pipe
Too much is going wrong here. Unless you say you have a problem with the installer, I will try to do this on another BBB...
:beatdeadhorse5:
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
I crashed your server? could not upload 3 screen shots at the same time?
My upload is 9mbps... here the screenshots
 

Attachments

  • Pictures.zip
    179.2 KB · Views: 1

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
First, apologies since in the previous post I forgot to install json and the google API key after step 14.
In the meantime, I had another go at it (on the same BBB): in the middle of the process of installing incrediblepbx11, I get several time the message:
E: Failed to fetch...
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

(attached in the error txt file)

This time I added extra steps for a complete install:
15. apt-get install libjson-perl
16.
cd /var/lib/asterisk/agi-bin
mv speech-recog.agi speech-recog.last.agi
wget --no-check-certificate https://raw.githubusercontent.com/zaf/asterisk-speech-recog/master/speech-recog.agi
chown asterisk:asterisk speech*
chmod 775 speech*
nano -w speech-recog.agi
amportal restart
17. called 951
=> can hear the chime
=> can hear google voice -- Executing [951@from-internal:6] AGI("SIP/701-00000001", "googletts.agi,"Please hold a moment while we retrieve the latest Yahoo news headlines.",en"
=> broken pipe error

I find it hard to believe my internet (90mpbs down and 9mbps up) is interupted, but it could be...
Has anyone done a recent from scratch install of the BBB without issues (especially with calling ext 951)?
Is it really my card, my BBB or my internet to blame?
 

Attachments

  • 11 compilation terminated Capture.JPG
    11 compilation terminated Capture.JPG
    134.7 KB · Views: 1
  • 11 errors.txt
    9.6 KB · Views: 0

Members online

No members online now.

Forum statistics

Threads
25,810
Messages
167,754
Members
19,240
Latest member
nikko
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