Cannot start asterisk

Hi, I am new to freepbx and asterisk. I am attempting to install both using the instructions at http://wiki.freepbx.org/display/HTGS/Installing+FreePBX+on+Centos+6.3 Here is what I have done so far

1) Installed CentOS 6.4 on mac hardware using an ISO and all the space in the harddrive. I used the "minimal desktop" installation with no customizations.

2) Opened a terminal as root and followed the directions at http://wiki.freepbx.org/display/HTGS/Installing+FreePBX+on+Centos+6.3 to the letter with the following exceptions

  • used the dahdi-linux-complete-2.7.0.1+2.7.0.1 instead of dahdi-linux-complete-2.6.1+2.6.1 since that is the version that is downloaded when running wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz
  • used asterisk-11.5.1 instead of asterisk-11.1.0 since that is the version you get when downloading wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
  • after the ./configure step in the "Compile and install Asterisk" section gave me an error related to sqlite3 i installed sqlite development package using "yum install sqlite-devel" which allowed the ./configure command to run correctly
  • started the mysqld and httpd services manually

When I get to the "Restart Asterisk and install FreePBX" section and attempt to run "./start_asterisk start" i get the following messages repeated over and over
Asterisk ended with exit status 127
Asterisk died with code 127.
cat: /var/run/asterisk/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
Asterisk ended with exit status 127
Asterisk died with code 127.
cat: /var/run/asterisk/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
Oddly, at this point there are no files in the /etc/asterisk folder and no logs (the /var/log/asterisk folder has 3 directories all of which are empty cdr-csv, cdr-custom and cel-custom. There is no /var/log/asterisk/full log).  Is this normal?Troubleshooting steps i've taken

  • checked the permissions on /var/run/asterisk which are 755 owned by asterisk:asterisk
  • repeated all steps from the beginning to be sure i didn't miss anything the first time
  • run "make samples" to create sample .conf files in the /etc/asterisk directory
  • added an asterisk.conf file from another server to the /etc/asterisk directory
  • removed asterisk 11.5 and installed asterisk 11.4 instead which worked for me a few weeks ago

Again I was actually able to do this successfully a few weeks with the same Linux distro and the same instructions however the 11.5 asterisk distribution may not have been released at that time.

Any help would be greatly appreciated. Thank you.

 

 

Did you make menulsect;make;make install after configuring asterisk?

Thank you for the reply. Yes I did run the following after the successful ./configure step

make menuselect (this brought me to an actual menu which i exited using f12 (save and exit))
make
make install
make config

None of the above seemed to generate any errors.

I have the exact same issue. Any luck figuring it out?

Yes a new distro was release since I originally posted (the one that includes centOS, asterisk and freepbx all together- i had tried the older version of this bundle without any luck). When I used this new distro the problem did not occur and I was able to install everything just fine.

Have you looked at the log var/log/asterisk/full and /var/log/messages when you try and start Asterisk?

I need to install on a base CentOS – no ISO. I tried the sequence, and also get error 127.

Any ideas on how to fix this?

I used the following steps:

http://wiki.freepbx.org/display/HTGS/Installing+FreePBX+2.11+on+Centos+6.3#InstallingFreePBX2.11onCentos6.3-UpdateYourSystem

RTFL :wink:

At what Alan?

Hi, yes, thanks for that thought. But no log files were created. I think the system simply didn’t compile correctly, so wouldn’t even get to the log files. When I compiled for x64, everything worked.

I think the fellow meant “Read The Fing Logs”, sort of like “RTFM – Read the … manual”. But at least in some of our cases, there are no logs.

hello,
i am also same error ,not able to start asterisk
Error :
cat: /var/run/asterisk/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
Asterisk ended with exit status 127
Asterisk died with code 127.
cat: /var/run/asterisk/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
Asterisk ended with exit status 127
Asterisk died with code 127.
cat: /var/run/asterisk/asterisk.pid: No such file or directory
Automatically restarting Asterisk.

done installation as per below link .
http://wiki.freepbx.org/display/HTGS/Installing+FreePBX+2.11+on+Centos+6.3?focusedCommentId=24052453#comment-24052453
please suggest solution .

received solution from one of the forum …
need to run below command in terminal

SOLUTION:
ln -s /usr/lib/libasteriskssl.so.1 /usr/lib64/libasteriskssl.so.1