Possible bug on restart command from http

Oscar Medina Duarte <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <1097231170.3380.24.camel@mathilda>
Hi!

The restart command is not working here, I send the command, and it only
makes it to the bearer but the smsbox doesn't, I guess is some kind of
problem with the synchronization of them, perhaps smsbox should try a
couple of more times to connect to the bearer, or have a delay of
something else.

This what I get on smsbox when I try to reset using the restart command
from http admin:

2004-10-08 12:20:28 [4167] [0] INFO: Bearerbox told us to restart
2004-10-08 12:20:28 [4167] [0] INFO: Received (and handled?) 1 requests
in 1367 seconds (0.00 per second)
2004-10-08 12:20:28 [4167] [0] INFO: Kannel smsbox terminating.
2004-10-08 12:20:28 [4167] [7] DEBUG: Thread 7
(gw/heartbeat.c:heartbeat_thread) terminates.
2004-10-08 12:20:28 [4167] [3] DEBUG: HTTP: No clients with requests,
quitting.
2004-10-08 12:20:28 [4167] [3] DEBUG: Thread 3
(gw/smsbox.c:sendsms_thread) terminates.
2004-10-08 12:20:28 [4167] [0] DEBUG: Waiting for 2
(gwlib/http.c:server_thread) to terminate
2004-10-08 12:20:28 [4167] [2] DEBUG: Thread 2
(gwlib/http.c:server_thread) terminates.
2004-10-08 12:20:28 [4167] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
terminates.
2004-10-08 12:20:28 [4167] [0] DEBUG: Waiting for 4
(gw/smsbox.c:obey_request_thread) to terminate
2004-10-08 12:20:28 [4167] [4] DEBUG: Thread 4
(gw/smsbox.c:obey_request_thread) terminates.
2004-10-08 12:20:28 [4167] [6] DEBUG: Thread 6
(gw/smsbox.c:http_queue_thread) terminates.
2004-10-08 12:20:28 [4167] [0] DEBUG: Waiting for 5
(gw/smsbox.c:url_result_thread) to terminate
2004-10-08 12:20:28 [4167] [5] DEBUG: Thread 5
(gw/smsbox.c:url_result_thread) terminates.
2004-10-08 12:20:33 [4167] [0] DEBUG: Waiting for 9
(gwlib/http.c:write_request_thread) to terminate
2004-10-08 12:20:33 [4167] [9] DEBUG: Thread 9
(gwlib/http.c:write_request_thread) terminates.
2004-10-08 12:20:33 [4167] [8] DEBUG: Thread 8 (gwlib/fdset.c:poller)
terminates.
2004-10-08 12:20:33 [4167] [0] DEBUG: Immutable octet strings: 317.
2004-10-08 12:20:33 [4456] [0] INFO: Added logfile
`/opt/Kannel/concurso/logs/smsbox.log' with level `0'.
2004-10-08 12:20:33 [4456] [0] INFO: Service global sender set as '2665'
2004-10-08 12:20:33 [4456] [0] INFO: Logging accesses to
'/opt/Kannel/concurso/logs/smsbox.access'.
2004-10-08 12:20:33 [4456] [0] INFO: Started access logfile
`/opt/Kannel/concurso/logs/smsbox.access'.
2004-10-08 12:20:33 [4456] [0] INFO: HTTP: Opening server at port 2665.
2004-10-08 12:20:33 [4456] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
2004-10-08 12:20:33 [4456] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2004-10-08 12:20:33 [4456] [0] INFO: Set up send sms service at port
2665
2004-10-08 12:20:33 [4456] [0] DEBUG: Started thread 3
(gw/smsbox.c:sendsms_thread)
2004-10-08 12:20:33 [4456] [0] DEBUG:
----------------------------------------------
2004-10-08 12:20:33 [4456] [0] DEBUG: Kannel smsbox version cvs-20041006
starting
2004-10-08 12:20:33 [4456] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
maps to pid 4456.
2004-10-08 12:20:33 [4456] [2] DEBUG: Thread 2
(gwlib/http.c:server_thread) maps to pid 4456.
2004-10-08 12:20:33 [4456] [3] DEBUG: Thread 3
(gw/smsbox.c:sendsms_thread) maps to pid 4456.
2004-10-08 12:20:33 [4456] [0] DEBUG: Started thread 4
(gw/smsbox.c:obey_request_thread)
2004-10-08 12:20:33 [4456] [0] DEBUG: Started thread 5
(gw/smsbox.c:url_result_thread)
2004-10-08 12:20:33 [4456] [0] DEBUG: Started thread 6
(gw/smsbox.c:http_queue_thread)
2004-10-08 12:20:33 [4456] [0] ERROR: connect failed
2004-10-08 12:20:33 [4456] [0] ERROR: System error 111: Connection
refused
2004-10-08 12:20:33 [4456] [0] ERROR: error connecting to server
`localhost' at port `26657'
2004-10-08 12:20:33 [4456] [0] PANIC: Couldn't connect to the bearerbox.
2004-10-08 12:20:33 [4456] [0] PANIC:
../../gateway/gw/smsbox(gw_panic+0x19a) [0x807f24b]
2004-10-08 12:20:33 [4456] [0] PANIC:
../../gateway/gw/smsbox(connect_to_bearerbox+0x48) [0x8060d16]
2004-10-08 12:20:33 [4456] [0] PANIC:
../../gateway/gw/smsbox(main+0x2dc) [0x805bc44]
2004-10-08 12:20:33 [4456] [0] PANIC:
/lib/tls/libc.so.6(__libc_start_main+0x108) [0x402d17f8]


Cheers !
== Oscar
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.