Asterisk Hangs While Starting In OpenSuse 12.2

Home » Asterisk Users » Asterisk Hangs While Starting In OpenSuse 12.2
Asterisk Users 27 Comments

Hi,

I am using OpenSuse 12.2 64bit OS which uses Kernel 3.3.x version and downloaded Asterisk 1.8 current version, after installing Asterisk, while starting Asterisk it hangs at the stage of loading modules.conf, I checked the forum https://issues.asterisk.org/jira/browse/ASTERISK-19245 but still after updating through yast also i am facing the issue.

Have anybody faced this type of issue with OpenSuse 12.2, its really wired working with OpenSuse 12.2, even i tried with OpenSuse 12.1 as well which results to same failure.

Regards, Gopal.

27 thoughts on - Asterisk Hangs While Starting In OpenSuse 12.2

  • I am running OpenSuse 12.1 with no issues. I have not tried 12.2 beta yet.

    Thanks

    Bryant Zimmerman (ZK Tech Inc.)
    616-855-1030 Ext. 2003

    ————————————–

  • Hi,

    Thanks for your comments. Even I tried with 12.1 also, its the same issue, I am not sure whether it may be hardware related. Logs below,

    OS details – uname -a Linux laptop-prasad 3.3.0-2-desktop #1 SMP PREEMPT Sat Mar 24 00:11:53 UTC
    2012 (7e9dd21) x86_64 x86_64 x86_64 GNU/Linux

    while executing asterisk -vvvvc from the root prompt, its stuck as below and the CPU usage is fully utilized,

    == Manager registered action DBPut
    == Manager registered action DBDel
    == Manager registered action DBDelTree
    == Parsing ‘/etc/asterisk/enum.conf’: == Found
    == Registered application ‘CallCompletionRequest’
    == Registered application ‘CallCompletionCancel’
    == Parsing ‘/etc/asterisk/ccss.conf’: == Found Asterisk Dynamic Loader Starting:
    == Parsing ‘/etc/asterisk/modules.conf’: == Found
    [Aug 14 10:48:36] NOTICE[3805]: loader.c:1133 load_modules: 184 modules will be loaded.

    Any advice would be much appreciated.

    Regards, Gopal.

  • If I change autoload=no then asterisk is starting, but post to that loading modules even chan_sip.so asterisk hangs. Its strange, only in OpenSuse I am facing this. In CentOS, Ubuntu its working fine, same Asterisk version with same hardware.

    Regards.

  • Please do not top post and properly trim your replies.

    Have you made sure that on the OpenSuse box your DNS is configured properly? You should be able to lookup your IP address/FQDN both ways. So for example 192.168.1.1 (replace with your IP adres) should resolve in your.box.com (replace with your FQDN) and vice versa your.box.com should resolve into 192.168.1.1. See man dig or man nslookup for commands that can do DNS lookups.

    Regards, Patrick

  • Hi Patrick,

    Thanks for your suggestion, even though I added my hostname in the
    /etc/hosts, still the problem persists. Also I tried to install in OpenSuse
    12.2 (32bit) in virtualbox (like vmware) even there I faced problem like hanging at modules while starting Asterisk.

    Regards, Gopal.

  • Its really weird working with OpenSuse. I am not sure how others are using with OpenSuse. Through Yast also I tried to install Asterisk package, it didn’t find.

    Now I am clueless to work with OpenSuse.

    Regards.

  • From the forum I understand OpenSuse 12.2 is pre-relase and better to use OpenSuse 12.1. Lets check with OpenSuse 12.1.

    Regards.

  • Hi,

    Again I stuck up with OpenSuse 12.1 also, Installed OpenSuse 12.1 (32bit)
    version in virtualbox. Downloaded Asterisk 1.8.15. Installed, installation went fine.

    While starting Asterisk, it hangs here,
    *Asterisk Dynamic Loader Starting:*
    * == Parsing ‘/etc/asterisk/modules.conf’: == Found*
    *[Aug 23 14:56:14] NOTICE[19340]: loader.c:1133 load_modules: 186 modules will be loaded.*

    any my linux machine uname -a output is below,
    *Linux linux-w6le.site 3.1.0-1.2-default #1 SMP Thu Nov 3 14:45:45 UTC 2011
    (187dde0) i686 i686 i386 GNU/Linux*
    *
    *
    Any suggestion would be much appreciated.

    Regards, Gopal.

  • Have you tried vmware or hyper-v as your host. I have had issues with OpenSuse 12.x with Virtual Box. Asterisk not starting was one of them. Also in a virtual env I found that I had to alwyas build asterisk from source to make things work don’t know why but that was the mix that worked for me. I
    moved to Hyper-V. OpenSuse 12.x as a VM is kind of a black art with asterisk for some reason. Hi Patrick, Thanks for your suggestion, even though I added my hostname in the
    /etc/hosts, still the problem persists. Also I tried to install in OpenSuse
    12.2 (32bit) in virtualbox (like vmware) even there I faced problem like hanging at modules while starting Asterisk. Regards, Gopal.

    Please do not top post and properly trim your replies.

    Have you made sure that on the OpenSuse box your DNS is configured properly? You should be able to lookup your IP address/FQDN both ways. So for example 192.168.1.1 (replace with your IP adres) should resolve in your.box.com (replace with your FQDN) and vice versa your.box.com should resolve into 192.168.1.1. See man dig or man nslookup for commands that can do DNS lookups.

    Regards, Patrick

  • Have you tried the versions from the OBS?

    Or perhaps a virtualbox issue? Its notorious for vapourizing cpu-cycles…

    hw

  • Hi Bryant,

    As you said, I dont have Hyper-V, I avoided virtualbox and tested in normal host directly, even then it hangs while loading modules.
    *Asterisk Dynamic Loader Starting:*
    * == Parsing ‘/etc/asterisk/modules.conf’: == Found*
    *[Aug 27 11:52:21] NOTICE[22886]: loader.c:1133 load_modules: 186 modules will be loaded.*

    This is really tuff working with OpenSuse. I am clueless how to sort our this.

    Regards.

  • Maybe switch to a different distribution? I have used CentOS and RHEL
    for years without any problems and as far as I know both debian and ubuntu should work without problems too.

    Regards, Patrick

  • I use OpenSuse here (our production boxes are Suse Enterprise 11 SP1 and 10
    SP2). My advice would be to try to start the box with as few SIP/DAHDI
    channels as possible to begin with and add as you get things stable.

    From: asterisk-users-bounces@lists.digium.com
    [mailto:asterisk-users-bounces@lists.digium.com] This is really tuff working with OpenSuse. I am clueless how to sort our this.

    Maybe switch to a different distribution? I have used CentOS and RHEL for years without any problems and as far as I know both debian and ubuntu should work without problems too.

    Regards, Patrick

  • Hi danny,

    Are you talking about modules or sip extensions and dahdi extensions because its a fresh installation also it doesn’t have dahdi interface, I am just trying to have only ip side.

    Regards

  • Extensions/trunks. Another thought is that you might make your modules.conf not load anything to start with so you can eliminate a rogue module as the problem. Just change autoload=yes to autoload=no.

    From: asterisk-users-bounces@lists.digium.com
    [mailto:asterisk-users-bounces@lists.digium.com] This is really tuff working with OpenSuse. I am clueless how to sort our this.

    Maybe switch to a different distribution? I have used CentOS and RHEL for years without any problems and as far as I know both debian and ubuntu should work without problems too.

    Regards, Patrick

  • I tried that too, what happens is asterisk is loading but after that if I
    try to start any one module for example chan_sip.so, asterisk hangs.

    Regards.

  • Check Jason Parker’s post from today and see if you skipped any of the preliminary build steps. It is possible that something like libpri is biting you.

    From: asterisk-users-bounces@lists.digium.com
    [mailto:asterisk-users-bounces@lists.digium.com] This is really tuff working with OpenSuse. I am clueless how to sort our this.

    Maybe switch to a different distribution? I have used CentOS and RHEL for years without any problems and as far as I know both debian and ubuntu should work without problems too.

    Regards, Patrick

  • If I don’t need to install dahdi hardware, is it really I need to have libpri installed?

    Regards.

  • I would install both dahdi and libpri. I brought up a 12.2 RC-2 VM on hyper-v Windows 8 and followed our standard asterisk build and have no issues yet but we have not run full testing to confirm. Also a point of not 12.2 is RC for the next 8 days or so.

    Thanks

    Bryant Zimmerman (ZK Tech Inc.)
    616-855-1030 Ext. 2003

    ————————————–

  • Hi,

    I have installed libpri, Dahdi 2.6 and Asterisk 1.8.15, in normal host, I
    am not using any virtualbox, still i struck in loading the modules.

    Regards.

  • Please do not top post.

    Install strace and then start asterisk with the command:
    # strace asterisk

    That should give you some low level info what’s going on. More info about strace and available options can be found in:

    $ man strace

    Regards, Patrick

  • Asterisk will fork into the background and the process you trace will exit.

    strace -f asterisk #?
    strace asterisk -f #?

    Just in case you wonder, ‘asterisk -f strace’ will not work as you might have expected from the above examples. Nither will ‘-f strace asterisk’.

    ‘-U asterisk ‘ may also come in handy.

  • Hi,

    I have started asterisk using strace, and the log is listed in pastebin http://pastebin.com/ry2Q1e6x

    Moreover, for some peoples Asterisk is properly installed in OpenSuse 12.1
    (i586), can you please correct me with the installation steps what I did, my steps as follows,

    1. OpenSuse fresh installation
    2. Login to root in terminal (sudo -i)
    3. Download libpri, dahdi and Asterisk
    4. Install libpri and dahdi (even though I am not using any dahdi
    hardware) – make and make install
    5. Installation of Asterisk (./configure, make menuconfig, make, make
    install and make samples)
    6. Start Asterisk (asterisk -vvvvc) – here hangs while loading modules.

    any other packages has to be installed or the installation is fine! please advice!

    Regards.

  • Gopalakrishnan

    I download and compile from libpri, dahdi, and asterisk. You have to insure that you have all of the dependencies when you compile there are many. Also compile and install spandsp as well. I did a 12.1 system over the weekend without issue.

    Thanks

    Bryant Zimmerman (ZK Tech Inc.)
    616-855-1030 Ext. 2003

    ————————————–

  • Hi Bryant,

    Thank you, have you updated your OS? If so can you please tell us, if it is done thru yast or someother way?

    Regards.