FS crash / Monitoring Script to Restart FS
We are running FreeSWITCH Version 1.0.head (git-51cc00a 2010-10-06 11-07-41 -0500). On the 7th December FS crashed. The last lines of the log file with full debug output are: 22c143da-728d-4477-aa06-c8383fa604f2 2010-12-07 22:52:55.339619 [DEBUG] sofia_glue.c:4250 Audio Codec Compare [G729:18:8000:20:8000]/[G729:18:8000:20:8000] 22c143da-728d-4477-aa06-c8383fa604f2 2010-12-07 22:52:55.339619 [DEBUG] sofia_glue.c:2554 Changing Codec from G729@30ms to G729@20ms 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:76 ENCODER DESTROYX - 0x2aaacc1530b0 (nil) 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:77 DECODER DESTROYX - 0x2aaacc1530b0 (nil) 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:76 ENCODER DESTROYX - 0x2aaacc153130 (nil) There were some dozen concurrent calls on the system at this moment, thus it is possible that the crash was caused by something else than mod_com_g729.c. Furthermore, a 209 MB core dump file was written. Please let me know, if anyone wants to examine the reason for the crash in detail. Does anyone have written a script, which monitors and restart FS in such cases? Thank you in advance Jan -- Jan Riedinger Phone : +49-30-39 73 19 66 Dipl.-Inf. | Managing Director Fax : +49-30-39 73 19 64 E-Mail: riedinger@sns.eu SNS Consult GmbH ICQ : 163-237-041 Südwestkorso 49a MSN : jan@sns-consult.de 14197 Berlin GERMANY Skype : Jan Riedinger AG Charlottenburg - HRB 71973
Hi Jan, Regarding the monitoring and restarting script - you can use monit: <http://mmonit.com/monit/>Take one of the pre-compiled binaries from http://mmonit.com/monit/download/ <http://mmonit.com/monit/download/>Unpack it on your system, create file: /etc/monitrc With the following content: set daemon 60 set logfile syslog facility log_daemon check process freeswitch with pidfile /usr/local/freeswitch/run/freeswitch.pid start program = "/usr/local/freeswitch/bin/freeswitch -nc" stop program = "/usr/local/freeswitch/bin/freeswitch -stop" Start monit /your/dir/monit/bin/monit and enjoy :) Also you can monitor the status from web, if you will add the following lines to the monitrc: set httpd port 1234 use address your.domain.com allow your.ip.add.ress allow yourUser:yourPassword Don't forget to add start monit to the system auto start list. Refer to your linux doc how to do it. Regards, Vitalie 2010/12/14 Jan Riedinger <riedinger@sns.eu>
We are running FreeSWITCH Version 1.0.head (git-51cc00a 2010-10-06 11-07-41 -0500).
On the 7th December FS crashed. The last lines of the log file with full debug output are: 22c143da-728d-4477-aa06-c8383fa604f2 2010-12-07 22:52:55.339619 [DEBUG] sofia_glue.c:4250 Audio Codec Compare [G729:18:8000:20:8000]/[G729:18:8000:20:8000] 22c143da-728d-4477-aa06-c8383fa604f2 2010-12-07 22:52:55.339619 [DEBUG] sofia_glue.c:2554 Changing Codec from G729@30ms to G729@20ms 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:76 ENCODER DESTROYX - 0x2aaacc1530b0 (nil) 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:77 DECODER DESTROYX - 0x2aaacc1530b0 (nil) 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:76 ENCODER DESTROYX - 0x2aaacc153130 (nil)
There were some dozen concurrent calls on the system at this moment, thus it is possible that the crash was caused by something else than mod_com_g729.c.
Furthermore, a 209 MB core dump file was written. Please let me know, if anyone wants to examine the reason for the crash in detail.
Does anyone have written a script, which monitors and restart FS in such cases?
Thank you in advance Jan
-- Jan Riedinger Phone : +49-30-39 73 19 66 Dipl.-Inf. | Managing Director Fax : +49-30-39 73 19 64 E-Mail: riedinger@sns.eu SNS Consult GmbH ICQ : 163-237-041 Südwestkorso 49a MSN : jan@sns-consult.de 14197 Berlin GERMANY Skype : Jan Riedinger
AG Charlottenburg - HRB 71973
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Also see freeswitch.monitrc in git (I forget which directory) which also has an example config. Steve on iPhone On 14 Dec 2010, at 12:38, Vitalii Colosov <vetali100@gmail.com> wrote:
Hi Jan, Regarding the monitoring and restarting script - you can use monit:
Take one of the pre-compiled binaries from http://mmonit.com/monit/download/
Unpack it on your system, create file: /etc/monitrc
With the following content:
set daemon 60 set logfile syslog facility log_daemon
check process freeswitch with pidfile /usr/local/freeswitch/run/freeswitch.pid start program = "/usr/local/freeswitch/bin/freeswitch -nc" stop program = "/usr/local/freeswitch/bin/freeswitch -stop"
Start monit /your/dir/monit/bin/monit and enjoy :)
Also you can monitor the status from web, if you will add the following lines to the monitrc: set httpd port 1234 use address your.domain.com allow your.ip.add.ress allow yourUser:yourPassword
Don't forget to add start monit to the system auto start list. Refer to your linux doc how to do it.
Regards, Vitalie
2010/12/14 Jan Riedinger <riedinger@sns.eu> We are running FreeSWITCH Version 1.0.head (git-51cc00a 2010-10-06 11-07-41 -0500).
On the 7th December FS crashed. The last lines of the log file with full debug output are: 22c143da-728d-4477-aa06-c8383fa604f2 2010-12-07 22:52:55.339619 [DEBUG] sofia_glue.c:4250 Audio Codec Compare [G729:18:8000:20:8000]/[G729:18:8000:20:8000] 22c143da-728d-4477-aa06-c8383fa604f2 2010-12-07 22:52:55.339619 [DEBUG] sofia_glue.c:2554 Changing Codec from G729@30ms to G729@20ms 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:76 ENCODER DESTROYX - 0x2aaacc1530b0 (nil) 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:77 DECODER DESTROYX - 0x2aaacc1530b0 (nil) 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:76 ENCODER DESTROYX - 0x2aaacc153130 (nil)
There were some dozen concurrent calls on the system at this moment, thus it is possible that the crash was caused by something else than mod_com_g729.c.
Furthermore, a 209 MB core dump file was written. Please let me know, if anyone wants to examine the reason for the crash in detail.
Does anyone have written a script, which monitors and restart FS in such cases?
Thank you in advance Jan
-- Jan Riedinger Phone : +49-30-39 73 19 66 Dipl.-Inf. | Managing Director Fax : +49-30-39 73 19 64 E-Mail: riedinger@sns.eu SNS Consult GmbH ICQ : 163-237-041 Südwestkorso 49a MSN : jan@sns-consult.de 14197 Berlin GERMANY Skype : Jan Riedinger
AG Charlottenburg - HRB 71973
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I think this issue is fixed. issue "make current" to update to latest On Tue, Dec 14, 2010 at 6:11 AM, Jan Riedinger <riedinger@sns.eu> wrote:
We are running FreeSWITCH Version 1.0.head (git-51cc00a 2010-10-06 11-07-41 -0500).
On the 7th December FS crashed. The last lines of the log file with full debug output are: 22c143da-728d-4477-aa06-c8383fa604f2 2010-12-07 22:52:55.339619 [DEBUG] sofia_glue.c:4250 Audio Codec Compare [G729:18:8000:20:8000]/[G729:18:8000:20:8000] 22c143da-728d-4477-aa06-c8383fa604f2 2010-12-07 22:52:55.339619 [DEBUG] sofia_glue.c:2554 Changing Codec from G729@30ms to G729@20ms 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:76 ENCODER DESTROYX - 0x2aaacc1530b0 (nil) 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:77 DECODER DESTROYX - 0x2aaacc1530b0 (nil) 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:76 ENCODER DESTROYX - 0x2aaacc153130 (nil)
There were some dozen concurrent calls on the system at this moment, thus it is possible that the crash was caused by something else than mod_com_g729.c.
Furthermore, a 209 MB core dump file was written. Please let me know, if anyone wants to examine the reason for the crash in detail.
Does anyone have written a script, which monitors and restart FS in such cases?
Thank you in advance Jan
-- Jan Riedinger Phone : +49-30-39 73 19 66 Dipl.-Inf. | Managing Director Fax : +49-30-39 73 19 64 E-Mail: riedinger@sns.eu SNS Consult GmbH ICQ : 163-237-041 Südwestkorso 49a MSN : jan@sns-consult.de 14197 Berlin GERMANY Skype : Jan Riedinger
AG Charlottenburg - HRB 71973
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Jan,
From your version number your current version predates the latest version of mod_com_g729, you'll probably also need to upgrade to fsg729-167-installer from http://files.freeswitch.org/g729/ to get the module to load.
-Steve On 14 December 2010 15:40, Anthony Minessale <anthony.minessale@gmail.com> wrote:
I think this issue is fixed. issue "make current" to update to latest
On Tue, Dec 14, 2010 at 6:11 AM, Jan Riedinger <riedinger@sns.eu> wrote:
We are running FreeSWITCH Version 1.0.head (git-51cc00a 2010-10-06 11-07-41 -0500).
On the 7th December FS crashed. The last lines of the log file with full debug output are: 22c143da-728d-4477-aa06-c8383fa604f2 2010-12-07 22:52:55.339619 [DEBUG] sofia_glue.c:4250 Audio Codec Compare [G729:18:8000:20:8000]/[G729:18:8000:20:8000] 22c143da-728d-4477-aa06-c8383fa604f2 2010-12-07 22:52:55.339619 [DEBUG] sofia_glue.c:2554 Changing Codec from G729@30ms to G729@20ms 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:76 ENCODER DESTROYX - 0x2aaacc1530b0 (nil) 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:77 DECODER DESTROYX - 0x2aaacc1530b0 (nil) 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:76 ENCODER DESTROYX - 0x2aaacc153130 (nil)
There were some dozen concurrent calls on the system at this moment, thus it is possible that the crash was caused by something else than mod_com_g729.c.
Furthermore, a 209 MB core dump file was written. Please let me know, if anyone wants to examine the reason for the crash in detail.
Does anyone have written a script, which monitors and restart FS in such cases?
Thank you in advance Jan
-- Jan Riedinger Phone : +49-30-39 73 19 66 Dipl.-Inf. | Managing Director Fax : +49-30-39 73 19 64 E-Mail: riedinger@sns.eu SNS Consult GmbH ICQ : 163-237-041 Südwestkorso 49a MSN : jan@sns-consult.de 14197 Berlin GERMANY Skype : Jan Riedinger
AG Charlottenburg - HRB 71973
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Anthony Minessale
-
Jan Riedinger
-
Steven Ayre
-
Vitalii Colosov