Ben Ferguson
2006-Jan-10 13:47 UTC
[Asterisk-Users] Help with amportal: asterisk ended with exit status 127
Greetings. I am trying to get AMP up and going on my Asterisk server. I can access the admin pages on my asterisk server via a web browser. I can add and edit things via the web browser and it edits the database accordingly. Everything seems fine except when I try to run 'amportal start'. Below is what I get (Plus tail /var/log/asterisk/full, but the tail of the 'full' log doesn't seem to list anything from trying to run amportal. It seems to me that the last lines from the 'full' log are related to me stopping my currently up and running asterisk so that I can try to run the amportal command. Make sense?). Please help. Thanks, Ben F CirclePix ************************************************************************ [root@blah]# /usr/sbin/amportal start SETTING FILE PERMISSIONS Permissions OK STARTING ASTERISK Asterisk ended with exit status 127 Asterisk died with code 127. Automatically restarting Asterisk. Asterisk ended with exit status 127 Asterisk died with code 127. Automatically restarting Asterisk. mpg123: no process killed ----------------------------------------------------- Asterisk could not start! Use 'tail /var/log/asterisk/full' to find out why. ----------------------------------------------------- [root@blah]# [root@blah]# tail /var/log/asterisk/full Jan 10 09:47:01 VERBOSE[12657] logger.c: == Registered file format pcm, extension(s) pcm|ulaw|ul|mu Jan 10 09:47:01 VERBOSE[12657] logger.c: == Manager registered action DBGet Jan 10 09:47:01 VERBOSE[12657] logger.c: == Manager registered action DBPut Jan 10 09:47:01 VERBOSE[12657] logger.c: == Parsing '/etc/asterisk/enum.conf': Jan 10 09:47:01 VERBOSE[12657] logger.c: =Parsing '/etc/asterisk/enum.conf': Found Jan 10 09:47:01 VERBOSE[12657] logger.c: Asterisk Ready. Jan 10 09:47:09 VERBOSE[12657] logger.c: Asterisk Ready. Beginning asterisk shutdown.... Jan 10 09:47:09 VERBOSE[12657] logger.c: Executing last minute cleanups Jan 10 09:47:09 VERBOSE[12657] logger.c: == Destroying musiconhold processes Jan 10 09:47:09 VERBOSE[12657] logger.c: Asterisk cleanly ending (0). [root@blah]# -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060110/8d263ac4/attachment.htm
Moises Silva
2006-Jan-10 14:24 UTC
[Asterisk-Users] Help with amportal: asterisk ended with exit status 127
hum... 127 is command not found, right?? On 1/10/06, Ben Ferguson <ben@circlepix.com> wrote:> > > > Greetings. I am trying to get AMP up and going on my Asterisk server. I can > access the admin pages on my asterisk server via a web browser. I can add > and edit things via the web browser and it edits the database accordingly. > Everything seems fine except when I try to run 'amportal start'. Below is > what I get (Plus tail /var/log/asterisk/full, but the tail of the 'full' log > doesn't seem to list anything from trying to run amportal. It seems to me > that the last lines from the 'full' log are related to me stopping my > currently up and running asterisk so that I can try to run the amportal > command. Make sense?). Please help. > > Thanks, > > Ben F > > CirclePix > > ************************************************************************ > > [root@blah]# /usr/sbin/amportal start > > SETTING FILE PERMISSIONS > > Permissions OK > > STARTING ASTERISK > > Asterisk ended with exit status 127 > > Asterisk died with code 127. > > Automatically restarting Asterisk. > > Asterisk ended with exit status 127 > > Asterisk died with code 127. > > Automatically restarting Asterisk. > > mpg123: no process killed > > ----------------------------------------------------- > > Asterisk could not start! > > Use 'tail /var/log/asterisk/full' to find out why. > > ----------------------------------------------------- > > [root@blah]# > > [root@blah]# tail /var/log/asterisk/full > > Jan 10 09:47:01 VERBOSE[12657] logger.c: == Registered file format pcm, > extension(s) pcm|ulaw|ul|mu > > Jan 10 09:47:01 VERBOSE[12657] logger.c: == Manager registered action DBGet > > Jan 10 09:47:01 VERBOSE[12657] logger.c: == Manager registered action DBPut > > Jan 10 09:47:01 VERBOSE[12657] logger.c: == Parsing > '/etc/asterisk/enum.conf': Jan 10 09:47:01 VERBOSE[12657] logger.c: => Parsing '/etc/asterisk/enum.conf': Found > > Jan 10 09:47:01 VERBOSE[12657] logger.c: Asterisk Ready. > > Jan 10 09:47:09 VERBOSE[12657] logger.c: Asterisk Ready. Beginning asterisk > shutdown.... Jan 10 09:47:09 VERBOSE[12657] logger.c: Executing last minute > cleanups > > Jan 10 09:47:09 VERBOSE[12657] logger.c: == Destroying musiconhold processes > > Jan 10 09:47:09 VERBOSE[12657] logger.c: Asterisk cleanly ending (0). > [root@blah]# > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > >-- "Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"
Ben Ferguson
2006-Jan-10 14:42 UTC
[Asterisk-Users] Help with amportal: asterisk ended with exit status 127
Greetings. I am trying to get AMP up and going on my Asterisk server. I can access the admin pages on my asterisk server via a web browser. I can add and edit things via the web browser and it edits the database accordingly. Everything seems fine except when I try to run 'amportal start'. Below is what I get (Plus tail /var/log/asterisk/full, but the tail of the 'full' log doesn't seem to list anything from trying to run amportal. It seems to me that the last lines from the 'full' log are related to me stopping my currently up and running asterisk so that I can try to run the amportal command. Make sense?). Please help. Thanks, Ben F CirclePix [root@blah]# /usr/sbin/amportal start SETTING FILE PERMISSIONS Permissions OK STARTING ASTERISK Asterisk ended with exit status 127 Asterisk died with code 127. Automatically restarting Asterisk. Asterisk ended with exit status 127 Asterisk died with code 127. Automatically restarting Asterisk. mpg123: no process killed ----------------------------------------------------- Asterisk could not start! Use 'tail /var/log/asterisk/full' to find out why. ----------------------------------------------------- [root@blah]# [root@blah]# tail /var/log/asterisk/full Jan 10 09:47:01 VERBOSE[12657] logger.c: == Registered file format pcm, extension(s) pcm|ulaw|ul|mu Jan 10 09:47:01 VERBOSE[12657] logger.c: == Manager registered action DBGet Jan 10 09:47:01 VERBOSE[12657] logger.c: == Manager registered action DBPut Jan 10 09:47:01 VERBOSE[12657] logger.c: == Parsing '/etc/asterisk/enum.conf': Jan 10 09:47:01 VERBOSE[12657] logger.c: =Parsing '/etc/asterisk/enum.conf': Found Jan 10 09:47:01 VERBOSE[12657] logger.c: Asterisk Ready. Jan 10 09:47:09 VERBOSE[12657] logger.c: Asterisk Ready. Beginning asterisk shutdown.... Jan 10 09:47:09 VERBOSE[12657] logger.c: Executing last minute cleanups Jan 10 09:47:09 VERBOSE[12657] logger.c: == Destroying musiconhold processes Jan 10 09:47:09 VERBOSE[12657] logger.c: Asterisk cleanly ending (0). [root@blah]# -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060110/b496487b/attachment.htm
Colin Anderson
2006-Jan-10 14:46 UTC
[Asterisk-Users] Help with amportal: asterisk ended with exit status 127
from the command line, run asterisk -v. You will either get "Asterisk Ready" (good) or "Ouch...Broken Pipe" (bad). If it breaks, note the name of the last .so file it referenced before you got the "Ouch" and remove that file from /var/lib/asterisk/modules. Rinse and repeat until you get an "Asterisk Ready" prompt. Once you do, Ctrl-C (kill) it, then run ampportal start. Asterisk should run OK. Now you have to figure out why the .so modules you removed won't run. However, a lot of times they aren't important for you to use, so you can ignore them. For example, app_adsiprog.so is only relevant if you are running ADSI phones. If you aren't, and it's causing Asterisk to die, leave it out. One other thing comes to mind and that is you might be running safe_asterisk *already* from ampportal start which is invoked by default in /etc/rc.d/rc.local. Comment out the /usr/sbin/ampportal start in rc.local, reboot, THEN try the above stuff. If Asterisk runs right away, then it is a conflict with the entry in rc.local. You can comment it back in, reboot, then type in asterisk -r at the command line to get an Asterisk console. If not, you have to follow the troubleshooting procedure above in order to get it running. hth -----Original Message----- From: Ben Ferguson [mailto:ben@circlepix.com] Sent: Tuesday, January 10, 2006 1:48 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: [Asterisk-Users] Help with amportal: asterisk ended with exit status 127 Greetings. I am trying to get AMP up and going on my Asterisk server. I can access the admin pages on my asterisk server via a web browser. I can add and edit things via the web browser and it edits the database accordingly. Everything seems fine except when I try to run 'amportal start'. Below is what I get (Plus tail /var/log/asterisk/full, but the tail of the 'full' log doesn't seem to list anything from trying to run amportal. It seems to me that the last lines from the 'full' log are related to me stopping my currently up and running asterisk so that I can try to run the amportal command. Make sense?). Please help. Thanks, Ben F CirclePix ************************************************************************ [root@blah]# /usr/sbin/amportal start SETTING FILE PERMISSIONS Permissions OK STARTING ASTERISK Asterisk ended with exit status 127 Asterisk died with code 127. Automatically restarting Asterisk. Asterisk ended with exit status 127 Asterisk died with code 127. Automatically restarting Asterisk. mpg123: no process killed ----------------------------------------------------- Asterisk could not start! Use 'tail /var/log/asterisk/full' to find out why. ----------------------------------------------------- [root@blah]# [root@blah]# tail /var/log/asterisk/full Jan 10 09:47:01 VERBOSE[12657] logger.c: == Registered file format pcm, extension(s) pcm|ulaw|ul|mu Jan 10 09:47:01 VERBOSE[12657] logger.c: == Manager registered action DBGet Jan 10 09:47:01 VERBOSE[12657] logger.c: == Manager registered action DBPut Jan 10 09:47:01 VERBOSE[12657] logger.c: == Parsing '/etc/asterisk/enum.conf': Jan 10 09:47:01 VERBOSE[12657] logger.c: =Parsing '/etc/asterisk/enum.conf': Found Jan 10 09:47:01 VERBOSE[12657] logger.c: Asterisk Ready. Jan 10 09:47:09 VERBOSE[12657] logger.c: Asterisk Ready. Beginning asterisk shutdown.... Jan 10 09:47:09 VERBOSE[12657] logger.c: Executing last minute cleanups Jan 10 09:47:09 VERBOSE[12657] logger.c: == Destroying musiconhold processes Jan 10 09:47:09 VERBOSE[12657] logger.c: Asterisk cleanly ending (0). [root@blah]# -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060110/ba4df3a8/attachment.htm
Colin Anderson
2006-Jan-11 11:46 UTC
[Asterisk-Users] Help with amportal: asterisk ended with exit status 127
safe_opserver is a daemon that will restart FOP when it fails and (presumably) restart op_server.pl when a configuration change is made. The "terminated ./op_server.pl" should be an informative message. The way to find out for sure is to simply run FOP aftr you make a change. If it works, and reflects the changes you have made, no worries. hth -----Original Message----- From: Ben Ferguson [mailto:ben@circlepix.com] Sent: Wednesday, January 11, 2006 10:33 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] Help with amportal: asterisk ended with exit status 127 Thanks so much for the suggestions. I'm having trouble getting the list emails so I just looked at the archives for yesterday. Funny, yesterday I did run into a broken pipe error while restarting using asterisk -v. It was wilcalu.so (or something like that). I've stopped and started asterisk several times over the past few weeks and had never gotten the broken pipe error, then all of a sudden I did. Anyway, I removed that yesterday and had never tried to restart amportal (or safe asterisk) at all until this morning--after we had also figured out that /usr/sbin was not in the PATH of the user I was trying to start amportal with. Anyway, amportal was able to start asterisk and FOP and it seems to be working, but now when I click to apply changes from the AMP admin page, I get this output on the CLI at which I had started amportal: /var/www/html/panel/safe_opserver: line 5: 12452 Terminated ./op_server.pl I'll be searching, but if anybody has a suggestion, lemme know. Thanks, Ben F _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users