Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Asterisk Not Starting after YUM Update


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
aaberga at gmail.com
Guest





PostPosted: Wed Feb 12, 2014 4:43 pm    Post subject: [asterisk-users] Asterisk Not Starting after YUM Update Reply with quote

Hi List,

it feels silly, but here I am.

My Asterisk box is useless, after running a long delayed yum update (Centos box).

*****

A few details on the box:

cat /etc/redhat-release
CentOS release 5.10 (Final)

arch
i686

uname -a
Linux hermes 2.6.18-371.4.1.el5 #1 SMP Thu Jan 30 06:09:24 EST 2014 i686 athlon i386 GNU/Linux


asterisk -r
Asterisk 1.6.2.20, Copyright (C) 1999 - 2010 Digium, Inc. and others.

*****

Starting Asterisk very verbosely seems to load the dialplan, but at some point I get a segmentation fault. This is new to me!

[…] edited […]
chan_agent.so => (Agent Proxy Channel)
== Registered custom function 'EXTENSION_STATE'
func_extstate.so => (Gets an extension's state in the dialplan)
== Registered application 'DAHDIBarge'
app_dahdibarge.so => (Barge in on DAHDI channel application)
== Registered custom function 'CALLERPRES'
== Registered custom function 'CALLERID'
func_callerid.so => (Caller ID related dialplan functions)
[2014-02-12 22:40:07] NOTICE[13842]: codec_g729a.c:760 load_module: G.729A transcoding module version 1.6.0_3.1.4, Copyright (C) 1999-2009 Digium, Inc.
[2014-02-12 22:40:07] NOTICE[13842]: codec_g729a.c:761 load_module: This module is supplied under a commercial license granted by Digium, Inc.
[2014-02-12 22:40:07] NOTICE[13842]: codec_g729a.c:762 load_module: Please see the full license text supplied by the accompanying
[2014-02-12 22:40:07] NOTICE[13842]: codec_g729a.c:763 load_module: "register" utility, or ask for a copy from Digium.
Segmentation fault

****

The problem seems to come after the callerid module loads: does this make sense?

BTW: I do have a G729 pack of licenses (they were actually active without any problem before messing with the update)..

What should the clever sysadmin do?

Thanks in advance,
Aldo


--
_____________________________________________________________________
-- 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
Back to top
tzafrir.cohen at xorco...
Guest





PostPosted: Wed Feb 12, 2014 5:20 pm    Post subject: [asterisk-users] Asterisk Not Starting after YUM Update Reply with quote

On Wed, Feb 12, 2014 at 10:44:42PM +0100, Aldo Bergamini wrote:
Quote:
Hi List,

it feels silly, but here I am.

My Asterisk box is useless, after running a long delayed yum update (Centos box).

[snip]

Quote:

Starting Asterisk very verbosely seems to load the dialplan, but at some point I get a segmentation fault. This is new to me!

[…] edited […]
chan_agent.so => (Agent Proxy Channel)
== Registered custom function 'EXTENSION_STATE'
func_extstate.so => (Gets an extension's state in the dialplan)
== Registered application 'DAHDIBarge'
app_dahdibarge.so => (Barge in on DAHDI channel application)
== Registered custom function 'CALLERPRES'
== Registered custom function 'CALLERID'
func_callerid.so => (Caller ID related dialplan functions)
[2014-02-12 22:40:07] NOTICE[13842]: codec_g729a.c:760 load_module: G.729A transcoding module version 1.6.0_3.1.4, Copyright (C) 1999-2009 Digium, Inc.
[2014-02-12 22:40:07] NOTICE[13842]: codec_g729a.c:761 load_module: This module is supplied under a commercial license granted by Digium, Inc.
[2014-02-12 22:40:07] NOTICE[13842]: codec_g729a.c:762 load_module: Please see the full license text supplied by the accompanying
[2014-02-12 22:40:07] NOTICE[13842]: codec_g729a.c:763 load_module: "register" utility, or ask for a copy from Digium.
Segmentation fault

****

The problem seems to come after the callerid module loads: does this make sense?

BTW: I do have a G729 pack of licenses (they were actually active without any problem before messing with the update)..

What should the clever sysadmin do?

Thanks in advance,
Aldo

Try:

# standard asterisk command-line. No verbosity

strace -eopen asterisk -U asterisk -c

See which module was the one last loaded.

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen@xorcom.com
+972-50-7952406 mailto:tzafrir.cohen@xorcom.com
http://www.xorcom.com

--
_____________________________________________________________________
-- 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
Back to top
rwheeler at artifact-s...
Guest





PostPosted: Wed Feb 12, 2014 5:32 pm    Post subject: [asterisk-users] Asterisk Not Starting after YUM Update Reply with quote

DAHDI might be the culprit.
You may have had a better version from Asterisk than the "new" one that
YUM got you.

Check to see if YUM gave you a new DAHDI. Who's your daddy now?

You may want to rebuild the Asterisk DAHDI and install it over the DAHDI
from your Linux distro.


Ron

On 12/02/2014 5:22 PM, Tzafrir Cohen wrote:
Quote:
On Wed, Feb 12, 2014 at 10:44:42PM +0100, Aldo Bergamini wrote:
Quote:
Hi List,

it feels silly, but here I am.

My Asterisk box is useless, after running a long delayed yum update (Centos box).
[snip]

Quote:
Starting Asterisk very verbosely seems to load the dialplan, but at some point I get a segmentation fault. This is new to me!

[…] edited […]
chan_agent.so => (Agent Proxy Channel)
== Registered custom function 'EXTENSION_STATE'
func_extstate.so => (Gets an extension's state in the dialplan)
== Registered application 'DAHDIBarge'
app_dahdibarge.so => (Barge in on DAHDI channel application)
== Registered custom function 'CALLERPRES'
== Registered custom function 'CALLERID'
func_callerid.so => (Caller ID related dialplan functions)
[2014-02-12 22:40:07] NOTICE[13842]: codec_g729a.c:760 load_module: G.729A transcoding module version 1.6.0_3.1.4, Copyright (C) 1999-2009 Digium, Inc.
[2014-02-12 22:40:07] NOTICE[13842]: codec_g729a.c:761 load_module: This module is supplied under a commercial license granted by Digium, Inc.
[2014-02-12 22:40:07] NOTICE[13842]: codec_g729a.c:762 load_module: Please see the full license text supplied by the accompanying
[2014-02-12 22:40:07] NOTICE[13842]: codec_g729a.c:763 load_module: "register" utility, or ask for a copy from Digium.
Segmentation fault

****

The problem seems to come after the callerid module loads: does this make sense?

BTW: I do have a G729 pack of licenses (they were actually active without any problem before messing with the update)..

What should the clever sysadmin do?

Thanks in advance,
Aldo
Try:

# standard asterisk command-line. No verbosity

strace -eopen asterisk -U asterisk -c

See which module was the one last loaded.



--
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


--
_____________________________________________________________________
-- 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
Back to top
asterisk_list at earth...
Guest





PostPosted: Thu Feb 13, 2014 3:48 am    Post subject: [asterisk-users] Asterisk Not Starting after YUM Update Reply with quote

On Wednesday 12 Feb 2014, Aldo Bergamini wrote:
Quote:
Hi List,

it feels silly, but here I am.

My Asterisk box is useless, after running a long delayed yum update (Centos
box).

If you got a new kernel as part of the upgrade, you will need to rebuild at
least DAHDI and maybe Asterisk. Just cd to the folder with your DAHDI source
code and

# make install

The `make` command does the magic for you, and only rebuilds what needs
rebuilding. All should be fine after a reboot. If not, run the same command
in your Asterisk source folder and reboot again.

--
AJS

Answers come *after* questions.

--
_____________________________________________________________________
-- 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
Back to top
aaberga at gmail.com
Guest





PostPosted: Thu Feb 13, 2014 3:53 am    Post subject: [asterisk-users] Asterisk Not Starting after YUM Update Reply with quote

On 12 Feb 2014, at 23:22, Tzafrir Cohen <tzafrir.cohen@xorcom.com (tzafrir.cohen@xorcom.com)> wrote:
Quote:
Try:# standard asterisk command-line. No verbosity strace -eopen asterisk -U asterisk -cSee which module was the one last loaded.-- Tzafrir Cohen




Hi,


I did compile the latest DAHDI and LibPRI, with no success… So I thought about updating the Asterisk package to the last known 1.6.2 release.


Now it's crashing at some different point.


This is the the strace result:


[root@hermes sources]# strace -eopen asterisk -U asterisk -c
open("/etc/ld.so.cache", O_RDONLY) = 3
open("/lib/libssl.so.6", O_RDONLY) = 3
open("/lib/libcrypto.so.6", O_RDONLY) = 3
open("/lib/libc.so.6", O_RDONLY) = 3
open("/usr/lib/libxml2.so.2", O_RDONLY) = 3
open("/lib/libz.so.1", O_RDONLY) = 3
open("/lib/libm.so.6", O_RDONLY) = 3
open("/lib/libdl.so.2", O_RDONLY) = 3
open("/lib/libcap.so.1", O_RDONLY) = 3
open("/lib/libpthread.so.0", O_RDONLY) = 3
open("/lib/libtermcap.so.2", O_RDONLY) = 3
open("/lib/libresolv.so.2", O_RDONLY) = 3
open("/usr/lib/libgssapi_krb5.so.2", O_RDONLY) = 3
open("/usr/lib/libkrb5.so.3", O_RDONLY) = 3
open("/lib/libcom_err.so.2", O_RDONLY) = 3
open("/usr/lib/libk5crypto.so.3", O_RDONLY) = 3
open("/usr/lib/libkrb5support.so.0", O_RDONLY) = 3
open("/lib/libkeyutils.so.1", O_RDONLY) = 3
open("/lib/libselinux.so.1", O_RDONLY) = 3
open("/lib/libsepol.so.1", O_RDONLY) = 3
open("/etc/selinux/config", O_RDONLY|O_LARGEFILE) = 3
open("/proc/mounts", O_RDONLY|O_LARGEFILE) = 3
open("/dev/urandom", O_RDONLY|O_LARGEFILE) = 3
Asterisk 1.6.2.24, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com (markster@digium.com)>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
[ Booting...
[ Reading Master Configuration ]
open("/etc/asterisk/asterisk.conf", O_RDONLY|O_LARGEFILE) = 4
open("/etc/nsswitch.conf", O_RDONLY) = 4
open("/etc/ld.so.cache", O_RDONLY) = 4
open("/lib/libnss_files.so.2", O_RDONLY) = 4
open("/etc/passwd", O_RDONLY) = 4
open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 4
open("/etc/group", O_RDONLY) = 4
Unable to access the running directory (Permission denied). Changing to '/' for compatibility.
open("/usr/share/terminfo/x/xterm", O_RDONLY|O_LARGEFILE) = 4
[ Initializing Custom Configuration Options ]
open("/etc/asterisk/extconfig.conf", O_RDONLY|O_LARGEFILE) = 4
open("/etc/termcap", O_RDONLY) = 4
open("/root/.asterisk_history", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied)
open("/var/run/asterisk.pid", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 4
open("/etc/asterisk/logger.conf", O_RDONLY|O_LARGEFILE) = 5
open("/var/log/asterisk/messages", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = -1 EACCES (Permission denied)
Logger Warning: Unable to open log file '/var/log/asterisk/messages': Permission denied
open("/var/log/asterisk/event_log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = -1 EACCES (Permission denied)
open("/etc/localtime", O_RDONLY|O_LARGEFILE) = 5
open("/etc/localtime", O_RDONLY) = 5
open("/var/log/asterisk/queue_log", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = -1 EACCES (Permission denied)
[root@hermes sources]#



It's a long time I do not compile Asterisk; compiling from root does set a specific user under which to run the binaries? Does it run as root?


Another idea I had is if the presence of now outdated binaries for fax, Skype and G729 (all from Digium, but made for Ast 16.0.x) could cause the problem..


Thanks in advance!
Aldo
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services