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 > > >
