Big Problem with asterisk

Hi,
I have a problem with my asterisk server at job. Everything was ok so far … but 2 days ago my server reboot with no reason (Nothing about a reboot in my system log). Now asterisk do strange thing. It can receive and send call but cannot run any application like queue , voicemail … even Hangup does’nt work. And when i restart nothing works. I have to reboot the computer.
I din’t change anything in my configuration files so im wondering why is doing this.
Mayby its a hardware problem … I checked my asterisk log and i dont see anything strange …

Please help me !!!
Thanks

turn on debug in logger.conf and reload. then go through the log file you are sending debug messages through looking for errors and post them here.

already did that :

Jul  7 00:00:30 NOTICE[14910] app_chanspy.c: Attaching SIP/220-2b1a to SIP/260-4a4a
Jul  7 00:01:04 NOTICE[3690] chan_iax2.c: No registration for peer '5149070838-user' (from 192.168.53.4)
Jul  7 00:01:11 ERROR[13993] cdr_addon_mysql.c: cdr_mysql: cannot connect to database server localhost.
Jul  7 00:01:12 WARNING[14910] file.c: Failed to write frame
Jul  7 01:08:19 ERROR[17110] cdr_addon_mysql.c: cdr_mysql: cannot connect to database server localhost.
Jul  7 01:08:34 NOTICE[3690] chan_iax2.c: No registration for peer '5149070838-user' (from 192.168.53.4)
Jul  7 01:09:24 NOTICE[3690] chan_iax2.c: No registration for peer '5149070838-user' (from 192.168.53.4)
Jul  7 01:10:14 NOTICE[3690] chan_iax2.c: No registration for peer '5149070838-user' (from 192.168.53.4)
Jul  7 01:10:45 ERROR[17189] cdr_addon_mysql.c: cdr_mysql: cannot connect to database server localhost.
Jul  7 01:11:04 NOTICE[3690] chan_iax2.c: No registration for peer '5149070838-user' (from 192.168.53.4)
Jul  7 01:11:49 ERROR[17225] cdr_addon_mysql.c: cdr_mysql: cannot connect to database server localhost.
Jul  7 01:11:53 NOTICE[17231] app_dial.c: Unable to create channel of type 'sip' (cause 3 - No route to destination)
Jul  7 01:11:54 NOTICE[3690] chan_iax2.c: No registration for peer '5149070838-user' (from 192.168.53.4)
Jul  7 01:11:54 ERROR[17231] cdr_addon_mysql.c: cdr_mysql: cannot connect to database server localhost.
Jul  7 01:11:59 ERROR[17235] cdr_addon_mysql.c: cdr_mysql: cannot connect to database server localhost.
Jul  7 16:23:31 NOTICE[3690] chan_iax2.c: No registration for peer '5149070838-user' (from 192.168.53.4)
Jul  7 16:23:57 WARNING[14393] app_directory.c: Can't find extension 'o' in current context.  Not Exiting the Directory!
Jul  7 16:24:15 WARNING[14393] file.c: Failed to write frame
Jul  7 16:53:26 WARNING[15430] file.c: Failed to write frame

Well , When i reboot i forgot to start my mysql server so … the cdr_addon_mysql error is normal. The only error i dont understand is the Failed to write frame

i don’t have access to the source code right now, but i’m wondering if there is a permissions problem?

Well it could be but i dont how this happen. I mean this server as been up for the last 6 months and i dint change anything !! So …

well that’s only one possibility. do a ‘df’ and make sure all filesystems have enough free disk space…

… something changed. you just have to find out what.

Hi

You will need to start from the begining.

Restart the server and watch the startup and see if there are any disk errrors.

If * starts automaticly, Stop it and start it on the console and again watch the startup. and record any errors.

It sound like a disk problem are you sure the filesysystem is in read write mode and not read only ?

The only time I have seen errors like this was with a customers system after they tried to update the kernel and it was booting usng the wrong kernel image to load.

When you say

[quote]I din’t change anything in my configuration files so im wondering why is doing this. [/quote] Have you changed anything else?

Ian

First of all i forgot to say that i dont alway have these problem … Everythig works fine and soudainly i got the problem

well when i have the problem and i restart asterisk with the command :

asterisk -vvvvvvv

the loading stop after loading the logger module

No my file system is in read/whrite

Never updated my kernel im still on the one i compiled when i installed my gentoo

Well like i said my asterisk server was working fine and i dint touch it … and 2 days ago it reboot by itself and this is when the problem began.

I think i will go cry in my corner :cry:

ugh. sounds like something may have gotten corrupted :frowning:

OK … What should i do … recompile asterisk ???

i would save your config(s) and do a complete reinstall if you can’t otherwise figure this out…

Is the output of ztcfg -vvvv and zttool showing normal status.