Your bearerbox is not running. And if we see your bearerbox log. It failed to read the config file.
Willy -----Original Message----- From: Ronen Amity <[email protected]> To: Alejandro Guerrieri <[email protected]> Cc: [email protected] Subject: Re: smsbox.log : PANIC: /usr/local/sbin/smsbox(gw_panic+0xa3) [0x807f353] Date: Mon, 9 Feb 2009 09:12:23 +0200 missed the /var/log/kannel.log. [r...@monsrv log]# cat kannel.log 2008-03-02 15:33:52 [23445] [0] PANIC: Where are the modem definitions ?!?! 2008-03-02 15:33:52 [23445] [0] PANIC: /usr/sbin/bearerbox(gw_panic +0xb4) [0x80c1153] 2008-03-02 15:33:52 [23445] [0] PANIC: /usr/sbin/bearerbox [0x8065ff4] 2008-03-02 15:33:52 [23445] [0] PANIC: /usr/sbin/bearerbox(smsc_at2_create+0x4dd) [0x80665b6] 2008-03-02 15:33:52 [23445] [0] PANIC: /usr/sbin/bearerbox(smscconn_create+0xf32) [0x80615e7] 2008-03-02 15:33:52 [23445] [0] PANIC: /usr/sbin/bearerbox(smsc2_start +0x373) [0x805836d] 2008-03-02 15:33:52 [23445] [0] PANIC: /usr/sbin/bearerbox(main+0xd26) [0x80529c7] 2008-03-02 15:33:52 [23445] [0] PANIC: /lib/tls/libc.so.6(__libc_start_main+0xd3) [0x7b1de3] 2008-03-02 15:33:52 [23445] [0] PANIC: /usr/sbin/bearerbox [0x80517b1] what am i missing ? usualy it works. Regards, Ronen On Mon, Feb 9, 2009 at 9:04 AM, Alejandro Guerrieri <[email protected]> wrote: Smsbox is dying because probably bearerbox died before that. Check on kannel.log to see if it's there any more info there, or try running bearerbox from the command line and see what it prints when it dies. Regards, Alejandro On Mon, Feb 9, 2009 at 8:00 AM, Ronen Amity <[email protected]> wrote: Every now and again kannel hangs (does not receive / send sms). I now moved to restarting the kannel every 1 hour (to move away from the problem). I am starting both bearerbox and smsbox (as I am only sending sms out – notification for Nagios). Once in a while I get the following (from smsbox.log) 2009-02-09 06:00:10 [4382] [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `0'. 2009-02-09 06:00:10 [4382] [0] INFO: Service global sender set as '13013' 2009-02-09 06:00:10 [4382] [0] INFO: Logging accesses to '/var/log/kannel/sms-access.log'. 2009-02-09 06:00:10 [4382] [0] INFO: Started access logfile `/var/log/kannel/sms-access.log'. 2009-02-09 06:00:10 [4382] [0] INFO: HTTP: Opening server at port 13013. 2009-02-09 06:00:10 [4382] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2009-02-09 06:00:10 [4382] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2009-02-09 06:00:10 [4382] [0] INFO: Set up send sms service at port 13013 2009-02-09 06:00:10 [4382] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2009-02-09 06:00:10 [4382] [0] DEBUG: ---------------------------------------------- 2009-02-09 06:00:10 [4382] [0] DEBUG: Kannel smsbox version 1.4.1 starting 2009-02-09 06:00:10 [4382] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2009-02-09 06:00:10 [4382] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2009-02-09 06:00:10 [4382] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2009-02-09 06:00:10 [4382] [0] ERROR: connect failed 2009-02-09 06:00:10 [4382] [0] ERROR: System error 111: Connection refused 2009-02-09 06:00:10 [4382] [0] ERROR: error connecting to server `localhost' at port `13001' 2009-02-09 06:00:10 [4382] [0] PANIC: Couldn't connect to the bearerbox. 2009-02-09 06:00:10 [4382] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 4382. 2009-02-09 06:00:10 [4382] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 4382. 2009-02-09 06:00:10 [4382] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 4382. 2009-02-09 06:00:10 [4382] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 4382. 2009-02-09 06:00:10 [4382] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 4382. 2009-02-09 06:00:10 [4382] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 4382. 2009-02-09 06:00:10 [4382] [0] PANIC: /usr/local/sbin/smsbox(gw_panic+0xa3) [0x807f353] 2009-02-09 06:00:10 [4382] [0] PANIC: /usr/local/sbin/smsbox(main+0xc9b) [0x8057377] 2009-02-09 06:00:10 [4382] [0] PANIC: /lib/tls/libc.so.6(__libc_start_main+0xd3) [0x7b1de3] 2009-02-09 06:00:10 [4382] [0] PANIC: /usr/local/sbin/smsbox [0x80522e1] this is very distressing, I have to manually restart (or have a script that will restart kannel every 1 hour). i added 5 sec sleep between the stop and the start in the init.d startup script. Any recommendation would help. p.s. Below is my kannel.conf Regards, Ronen ________________________________________________________ etc]# cat kannel.conf group = core admin-port = 13000 smsbox-port = 13001 admin-password = xxx wdp-interface-name = "*" log-file = "/var/log/kannel/bearerbox.log" access-log = "/var/log/kannel/bearer-access.log" group = smsc smsc = at modemtype = wavecom device = /dev/ttyS0 speed = 115200 group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 log-file = "/var/log/kannel/smsbox.log" access-log = "/var/log/kannel/sms-access.log" group = sendsms-user username = xxx password = xxx # SERVICES group = sms-service keyword = nop text = "You asked nothing and I did it!" # there should be default always group = sms-service keyword = default text = "Nagios Server" # text = "No service specified" group = modems id = wavecom name = "wavecom" need-sleep = true init-string = AT+CNMI=2,2,0,1,0;+CMEE=1 -- Ronen Amity
