[asterisk-users] Error of FreePBX after installing from Yum Repository of Asterisk

Seann Clark nombrandue at tsukinokage.net
Mon Jun 7 17:48:39 CDT 2010


On 6/7/2010 5:20 PM, bruce bruce wrote:
> Thanks for the input Seann and Steve. That is insightful. I did run 
> chkconfig --list asterisk and following is the output:
> *[root at tel ~]# chkconfig --list asterisk*
> *asterisk        0:off   1:off   2:on    3:on    4:on    5:on    6:off*
>
> In file /usr/sbin/safe_asterisk I have priority for asterisk set at 9.
> *# run asterisk with this priority*
> *PRIORITY=9*
>
> /var/log/messages doesn't show anything important or related to why 
> asterisk not starting at startup. I think asterisk should start first 
> and then amportal will start as well is asterisk does start.
>
> Here is what happens if I do amportal restart:
>
> *[root at tel ~]# amportal restart*
> *
> *
> *STOPPING ASTERISK*
> *Unable to connect to remote asterisk (does 
> /var/run/asterisk/asterisk.ctl exist?)*
> *Asterisk Stopped*
> *
> *
> *STOPPING FOP SERVER*
> *SETTING FILE PERMISSIONS*
> *chown: cannot access `/dev/tty9': No such file or directory*
> *Permissions OK*
> *
> *
> *STARTING ASTERISK*
> *Cannot find specified TTY (9)*
> *safe_asterisk: no process killed*
> *mpg123: no process killed*
> *
> *
> *-----------------------------------------------------*
> *Asterisk could not start!*
> *Use 'tail /var/log/asterisk/full' to find out why.*
> *-----------------------------------------------------*
> *[root at tel ~]#*
> *[root at tel ~]#*
> *[root at tel ~]# asterisk -g*
> *[root at tel ~]# amportal start*
> *
> *
> *
> *
> *SETTING FILE PERMISSIONS*
> *chown: cannot access `/dev/tty9': No such file or directory*
> *Permissions OK*
> *
> *
> *STARTING ASTERISK*
> *Asterisk is already running*
> *
> *
> *STARTING FOP SERVER*
> *FOP Server Started*
>
> I did a tail and here it is:
>
> *[root at tel ~]# tail /var/log/asterisk/full*
> *[Jun  7 22:17:36] WARNING[4384] chan_dahdi.c: Ignoring any changes to 
> 'userbase' (on reload) at line 23.*
> *[Jun  7 22:17:36] WARNING[4384] chan_dahdi.c: Ignoring any changes to 
> 'vmsecret' (on reload) at line 31.*
> *[Jun  7 22:17:36] WARNING[4384] chan_dahdi.c: Ignoring any changes to 
> 'hassip' (on reload) at line 35.*
> *[Jun  7 22:17:36] WARNING[4384] chan_dahdi.c: Ignoring any changes to 
> 'hasiax' (on reload) at line 39.*
> *[Jun  7 22:17:36] WARNING[4384] chan_dahdi.c: Ignoring any changes to 
> 'hasmanager' (on reload) at line 47.*
> *[Jun  7 22:17:36] NOTICE[4384] chan_skinny.c: Configuring skinny from 
> skinny.conf*
> *[Jun  7 22:17:36] WARNING[4384] res_musiconhold.c: Cannot open dir 
> /var/lib/asterisk/moh or dir does not exist*
> *[Jun  7 22:17:36] WARNING[4384] res_musiconhold.c: Cannot open dir 
> /var/lib/asterisk/moh/.nomusic_reserved or dir does not exist*
> *[Jun  7 22:17:36] WARNING[4384] res_musiconhold.c: No music on hold 
> classes configured, disabling music on hold.*
> *[Jun  7 22:18:40] ERROR[4479] pbx.c: Did not remove this priority 
> label (57/vmxopts) from the peer_label_table of context macro-vm, 
> extension vmx!*
>
>
> Thanks,
> Bruce
>
> On Mon, Jun 7, 2010 at 3:29 PM, Steve Edwards <asterisk.org 
> <http://asterisk.org>@sedwards.com <http://sedwards.com>> wrote:
>
>     On Mon, 7 Jun 2010, bruce bruce wrote:
>
>     > CentOS 5.4 and asterisk does stay running after it's loaded by
>     asterisk
>     > -g. But the chkconfig --add asterisk doesn't work :(
>
>     What does "chkconfig --list asterisk" show?
>
>     The "add" command looks in the asterisk script for a line that
>     looks like:
>
>            # chkconfig: 2345 98 98
>
>     This says that chkconfig should create the appropriate links in the
>     /etc/rc{x}.d/ hierarchy so that Asterisk will be started at
>     runlevels 2,
>     3, 4, 5 with a start priority of 98 (see "man chkconfig" for
>     details) and
>     a stop priority of 98. Since CentOS servers should be running at
>     runlevel
>     3, the 2, 4, and 5 are superfluous.
>
>     If there is no such line, chkconfig will not create the
>     appropriate links.
>
>     Also, if /etc/init.d/asterisk does not have execute privileges, it
>     will
>     not be executed on startup and Asterisk will not be running as
>     expected.
>
>     --
>     Thanks in advance,
>     -------------------------------------------------------------------------
>
First, I would create the directories that it is missing, and view your 
tty's in /dev (ls -Al /dev | grep tty) and validate it is there, and 
what permissions it has. Mine, default install, has:
crw-rw---- 1 root tty      4,   9 Jun  7 17:24 tty9

~Seann

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5544 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100607/f8cb5cc5/attachment.bin 


More information about the asterisk-users mailing list