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

bruce bruce bruceb444 at gmail.com
Mon Jun 7 17:20:27 CDT 2010


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 at 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,
> -------------------------------------------------------------------------
> Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
> Newline                                              Fax: +1-760-731-3000
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100607/966889b4/attachment.htm 


More information about the asterisk-users mailing list