Asterisk randomly shutdown on start

Hello everyone,
this is another weird one (only the best by me :smile: ).

I have an Asterisk 1.8 machine running working doing everything in such a cool way…when suddenly one day it decided it had enough and stopped.
Now when I try to call “asterisk -c” I obtain this:

[quote][root@wepbx asterisk]# asterisk -c
Asterisk 1.8.18.0, Copyright © 1999 - 2012 Digium, Inc. and others.
Created by Mark Spencer 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 ]
[ Initializing Custom Configuration Options ]
…SIP channel loading…
… == Aliased CLI command ‘hangup request’ to ‘channel request hangup’
== Aliased CLI command ‘originate’ to ‘channel originate’
== Aliased CLI command ‘help’ to ‘core show help’
== Aliased CLI command ‘pri intense debug span’ to ‘pri set debug 2 span’
== Aliased CLI command ‘reload’ to ‘module reload’
…[root@wepbx asterisk]#
[/quote]
Asterisk does not run, CLI is not connected. Fine.
No errors, no logs, nothing of nothing. Just it does not start.

I said “randomly” because if I uncomment “verbose = 3” in “/etc/asterisk/asterisk.conf” and type “asterisk -c” again, I see Asterisk loading all the configuration from file apparently without errors, until it suddenly stops and goes back to bash. Randomly. At every “asterisk -c” it quits at all different unrelated points. Just like a… say “random crash”.

Why is this happening? Any clue?

Thanks in advance.

Tried to reinstall Asterisk…nothing, all the sadly same.

Re-installing rarely works (that’s largely true, even for Windows applications).

Startup crashes can be caused by left over modules from another version.

Other than that, you need to get a backtrace. If you are not getting a core dump, you should try running asterisk -c under gdb.

Google “asterisk wiki backtrace” for further details.

Very Thank you david55 for your cent on the subject.

Eventually, after something like 8 hours of bash, I found what caused the problem: /etc/asterisk/cdr_mysql.conf .
That could be something not related to Asterisk itself, so I’m not going to dig further here, but it contains mysql credentials for cdr reporting in db…don’t know why it smashes everything. Gonna investigate.

Anyway way thank you again you “Rock” community :wink: