Hi,

Please post detailed bearerbox logs (-v 0 or log-level 0), 20 entries before 
first panic till end of panic. You shouldn't be posting smsbox logs, and asking 
why bearerbox died.

BR,
Nikos
  ----- Original Message ----- 
  From: Ronen Amity 
  To: sangprabv 
  Cc: [email protected] 
  Sent: Monday, February 09, 2009 2:43 PM
  Subject: Re: smsbox.log : PANIC: /usr/local/sbin/smsbox(gw_panic+0xa3) 
[0x807f353]


  the question is why the bearerbox died ?

  here are the logs (below).

  p.s.
  why 900 sms works, and then the bearer  dies ?  the config files are ok for 
999 out of a 1000 sms, what is the diff?  

  2009-02-09 11:46:02 [19400] [0] INFO: Starting to log to file 
/var/log/kannel/smsbox.log level 0
  2009-02-09 11:46:02 [19400] [0] INFO: Added logfile 
`/var/log/kannel/smsbox.log' with level `0'.
  2009-02-09 11:46:02 [19400] [0] INFO: Service global sender set as '13013'
  2009-02-09 11:46:02 [19400] [0] INFO: Logging accesses to 
'/var/log/kannel/sms-access.log'.
  2009-02-09 11:46:02 [19400] [0] INFO: Started access logfile 
`/var/log/kannel/sms-access.log'.
  2009-02-09 11:46:02 [19400] [0] INFO: HTTP: Opening server at port 13013.
  2009-02-09 11:46:02 [19400] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
  2009-02-09 11:46:02 [19400] [0] DEBUG: Started thread 2 
(gwlib/http.c:server_thread)
  2009-02-09 11:46:02 [19400] [0] INFO: Set up send sms service at port 13013
  2009-02-09 11:46:02 [19400] [0] DEBUG: Started thread 3 
(gw/smsbox.c:sendsms_thread)
  2009-02-09 11:46:02 [19400] [0] DEBUG: 
----------------------------------------------
  2009-02-09 11:46:02 [19400] [0] DEBUG: Kannel smsbox version 1.4.3 starting
  2009-02-09 11:46:02 [19400] [0] DEBUG:   dumping group (sendsms-user):
  2009-02-09 11:46:02 [19400] [0] DEBUG:     <group> = <sendsms-user>
  2009-02-09 11:46:02 [19400] [0] DEBUG:     <username> = <xxx>
  2009-02-09 11:46:02 [19400] [0] DEBUG:     <password> = <xxx>
  2009-02-09 11:46:02 [19400] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps 
to pid 19400.
  2009-02-09 11:46:02 [19400] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) 
maps to pid 19400.
  2009-02-09 11:46:02 [19400] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) 
maps to pid 19400.
  2009-02-09 11:46:02 [19400] [4] DEBUG: Thread 4 
(gw/smsbox.c:obey_request_thread) maps to pid 19400.
  2009-02-09 11:46:02 [19400] [0] DEBUG: Started thread 4 
(gw/smsbox.c:obey_request_thread)
  2009-02-09 11:46:02 [19400] [0] DEBUG: Started thread 5 
(gw/smsbox.c:url_result_thread)
  2009-02-09 11:46:02 [19400] [0] DEBUG: Started thread 6 
(gw/smsbox.c:http_queue_thread)
  2009-02-09 11:46:02 [19400] [0] INFO: Connected to bearerbox at localhost 
port 13001.
  2009-02-09 11:46:02 [19400] [0] DEBUG: Started thread 7 
(gw/heartbeat.c:heartbeat_thread)
  2009-02-09 11:46:02 [19400] [5] DEBUG: Thread 5 
(gw/smsbox.c:url_result_thread) maps to pid 19400.
  2009-02-09 11:46:02 [19400] [6] DEBUG: Thread 6 
(gw/smsbox.c:http_queue_thread) maps to pid 19400.
  2009-02-09 11:46:02 [19400] [7] DEBUG: Thread 7 
(gw/heartbeat.c:heartbeat_thread) maps to pid 19400.
  2009-02-09 13:09:01 [19400] [2] DEBUG: HTTP: Creating HTTPClient for 
`10.166.2.51'.
  2009-02-09 13:09:01 [19400] [2] DEBUG: HTTP: Created HTTPClient area 
0x9f1b408.
  2009-02-09 13:09:01 [19400] [3] INFO: smsbox: Got HTTP request 
</cgi-bin/sendsms> from <10.166.2.51>
  2009-02-09 13:09:01 [19400] [3] INFO: sendsms used by <xxx>
  2009-02-09 13:09:01 [19400] [3] INFO: sendsms sender:<xxx:13013> 
(10.166.2.51) to:<0546384114
  > msg:<
  finished eco_5.  Mon Feb 09 13:06:16 IST 2009 in dir 
/data/leo/pd/F761682/RTL_12/PHC_00/REV_61_cont_of_REV_60_func>
  2009-02-09 13:09:01 [19400] [3] DEBUG: Stored UUID 
db62b407-80cb-4788-8ce0-30829defe68a
  2009-02-09 13:09:01 [19400] [3] DEBUG: message length 115, sending 1 messages
  2009-02-09 13:09:01 [19400] [3] DEBUG: Status: 202 Answer: <Sent.>
  2009-02-09 13:09:01 [19400] [3] DEBUG: Delayed reply - wait for bearerbox
  2009-02-09 13:09:01 [19400] [0] DEBUG: Got ACK (0) of 
db62b407-80cb-4788-8ce0-30829defe68a
  2009-02-09 13:09:01 [19400] [0] DEBUG: HTTP: Destroying HTTPClient area 
0x9f1b408.
  2009-02-09 13:09:01 [19400] [0] DEBUG: HTTP: Destroying HTTPClient for 
`10.166.2.51'.
  2009-02-09 14:40:02 [19400] [2] DEBUG: HTTP: Creating HTTPClient for 
`10.166.2.51'.
  2009-02-09 14:40:02 [19400] [2] DEBUG: HTTP: Created HTTPClient area 
0x9f1b358.
  2009-02-09 14:40:02 [19400] [3] INFO: smsbox: Got HTTP request 
</cgi-bin/sendsms> from <10.166.2.51>
  2009-02-09 14:40:02 [19400] [3] INFO: sendsms used by <xxx>
  2009-02-09 14:40:02 [19400] [3] INFO: sendsms sender:<xxx:13013> 
(10.166.2.51) to:<0544603749
  > msg:<
  Test 2 from email>
  2009-02-09 14:40:02 [19400] [3] DEBUG: Stored UUID 
96cae7bd-db2c-45cd-82c4-58480cc36639
  2009-02-09 14:40:02 [19400] [3] DEBUG: message length 18, sending 1 messages
  2009-02-09 14:40:02 [19400] [3] DEBUG: Status: 202 Answer: <Sent.>
  2009-02-09 14:40:02 [19400] [3] DEBUG: Delayed reply - wait for bearerbox
  2009-02-09 14:40:02 [19400] [0] DEBUG: Got ACK (0) of 
96cae7bd-db2c-45cd-82c4-58480cc36639
  2009-02-09 14:40:02 [19400] [0] DEBUG: HTTP: Destroying HTTPClient area 
0x9f1b358.
  2009-02-09 14:40:02 [19400] [0] DEBUG: HTTP: Destroying HTTPClient for 
`10.166.2.51'.



  On Mon, Feb 9, 2009 at 9:16 AM, sangprabv <[email protected]> wrote:

    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






  -- 
  Ronen Amity

Reply via email to