from what I see, I think it is running. I does not have much experience with
kannel. but  I think you should try looking
at status by this command.

lynx  -dump "http://localhost:13000/status.html?password=bar";

or you can telnet the port and look at bearer log see what happens.

On Wed, Oct 26, 2011 at 1:01 AM, Fourat ZOUARI <[email protected]> wrote:

> Same thing with kannel.conf from kannel's package:
>
> Here's the execution outcome of bearerbox:
>
>
>> # bearerbox -v 0 kannel.conf
>
> 2011-10-25 20:59:29 [3263] [0] INFO: Debug_lvl = 0, log_file = <none>,
>> log_lvl = 0
>
> 2011-10-25 20:59:29 [3263] [0] WARNING: DLR: using default 'internal' for
>> storage type.
>
> 2011-10-25 20:59:29 [3263] [0] INFO: DLR using storage type: internal
>
> 2011-10-25 20:59:29 [3263] [0] DEBUG: Kannel bearerbox version `1.4.3'.
>
> Build `Oct 25 2011 20:27:35', compiler `4.4.3'.
>
> System Linux, release 2.6.32-34-generic-pae, version #77-Ubuntu SMP Tue Sep
>> 13 21:16:18 UTC 2011, machine i686.
>
> Hostname app-kannel, IP 127.0.1.1.
>
> Libxml version 2.7.6.
>
> Using OpenSSL 0.9.8k 25 Mar 2009.
>
> Using native malloc.
>
>
>> 2011-10-25 20:59:29 [3263] [0] INFO: Added logfile `/tmp/bearerbox.log'
>> with level `0'.
>
> 2011-10-25 20:59:29 [3263] [0] WARNING: Kannel was compiled without WAP
>> support
>
> 2011-10-25 20:59:29 [3263] [0] INFO: HTTP: Opening server at port 13000.
>
> 2011-10-25 20:59:29 [3263] [0] DEBUG: Started thread 1
>> (gwlib/fdset.c:poller)
>
> 2011-10-25 20:59:29 [3263] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
>> to pid 3263.
>
> 2011-10-25 20:59:29 [3263] [0] DEBUG: Started thread 2
>> (gwlib/http.c:server_thread)
>
> 2011-10-25 20:59:29 [3263] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
>> maps to pid 3263.
>
> 2011-10-25 20:59:29 [3263] [0] DEBUG: Started thread 3
>> (gw/bb_http.c:httpadmin_run)
>
> 2011-10-25 20:59:29 [3263] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
>> maps to pid 3263.
>
> 2011-10-25 20:59:29 [3263] [0] INFO:
>> ----------------------------------------
>
> 2011-10-25 20:59:29 [3263] [0] INFO: Kannel bearerbox II version 1.4.3
>> starting
>
> 2011-10-25 20:59:33 [3263] [2] DEBUG: HTTP: Creating HTTPClient for
>> `127.0.0.1'.
>
> 2011-10-25 20:59:33 [3263] [2] DEBUG: HTTP: Created HTTPClient area
>> 0x8755700.
>
> 2011-10-25 20:59:33 [3263] [3] INFO: HTTP admin tried from denied host
>> <127.0.0.1>, disconnected
>
> 2011-10-25 20:59:33 [3263] [3] DEBUG: HTTP: Destroying HTTPClient area
>> 0x8755700.
>
> 2011-10-25 20:59:33 [3263] [3] DEBUG: HTTP: Destroying HTTPClient for
>> `127.0.0.1'.
>
> 2011-10-25 20:59:34 [3263] [0] INFO: MAIN: Start-up done, entering mainloop
>
> 2011-10-25 20:59:34 [3263] [0] DEBUG: Shutting down Kannel...
>
> 2011-10-25 20:59:34 [3263] [0] DEBUG: shutting down smsc
>
> 2011-10-25 20:59:34 [3263] [0] INFO: All flow threads have died, killing
>> core
>
> 2011-10-25 20:59:34 [3263] [0] DEBUG: Waiting for 2
>> (gwlib/http.c:server_thread) to terminate
>
> 2011-10-25 20:59:34 [3263] [3] DEBUG: HTTP: No clients with requests,
>> quitting.
>
> 2011-10-25 20:59:34 [3263] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
>> terminates.
>
> 2011-10-25 20:59:34 [3263] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
>> terminates.
>
> 2011-10-25 20:59:34 [3263] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
>> terminates.
>
> 2011-10-25 20:59:34 [3263] [0] INFO: Total SMS messages: received 0, sent 0
>
> 2011-10-25 20:59:34 [3263] [0] DEBUG: Immutable octet strings: 80.
>
>
> The configuration file 'kannel.conf' contains:
>
>> #
>> # Sample configuration file for Kannel bearerbox on Debian.
>> # See the documentation for explanations of fields.
>> #
>> # HTTP administration is disabled by default. Make sure you set the
>> # password if you enable it.
>> group = core
>> admin-port = 13000
>> admin-password = bar
>> admin-deny-ip = "*.*.*.*"
>> admin-allow-ip = ""
>> wapbox-port = 13002
>> wdp-interface-name = "*"
>> log-file = "/tmp/bearerbox.log"
>> box-deny-ip = "*.*.*.*"
>> box-allow-ip = "127.0.0.1"
>> group = wapbox
>> bearerbox-host = localhost
>> log-file = "/tmp/wapbox.log"
>
>
>
> On Tue, Oct 25, 2011 at 8:56 PM, Otandeka Simon Peter <[email protected]
> > wrote:
>
>>
>> And that is why your kannel is shutting down.  Your main.conf is missing a
>> lot of must-have parameters.
>> The kannel package comes with a sample and basic configuration file. Look
>> it up and start from there.
>>
>> Kind regards,
>> P.
>>
>> On Tue, Oct 25, 2011 at 10:51 PM, Fourat ZOUARI <[email protected]> wrote:
>>
>>> All my configuration is the main.conf file containing this:
>>>
>>> group = core
>>>> admin-port = 1300
>>>> admin-password = fxxbar
>>>
>>>
>>> These 3 lines shall keep bearerbox running and listening on port 1300.
>>>
>>>
>>>
>>> On Tue, Oct 25, 2011 at 8:49 PM, Otandeka Simon Peter <
>>> [email protected]> wrote:
>>>
>>>>
>>>> Please post your configuration file. There could be an error.
>>>>
>>>> P.
>>>>
>>>>
>>>> On Tue, Oct 25, 2011 at 10:37 PM, Fourat ZOUARI <[email protected]>wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I've just compiled Kannel 1.4.3 and tried to start bearerbox like this:
>>>>>
>>>>> # /usr/local/sbin/bearerbox -v 0 main.conf
>>>>>
>>>>> 2011-10-25 20:29:53 [19391] [0] INFO: Debug_lvl = 0, log_file = <none>,
>>>>>> log_lvl = 0
>>>>>
>>>>> 2011-10-25 20:29:53 [19391] [0] WARNING: DLR: using default 'internal'
>>>>>> for storage type.
>>>>>
>>>>> 2011-10-25 20:29:53 [19391] [0] INFO: DLR using storage type: internal
>>>>>
>>>>> 2011-10-25 20:29:53 [19391] [0] DEBUG: Kannel bearerbox version
>>>>>> `1.4.3'.
>>>>>
>>>>> Build `Oct 25 2011 20:27:35', compiler `4.4.3'.
>>>>>
>>>>> System Linux, release 2.6.32-32-generic-pae, version #62-Ubuntu SMP Wed
>>>>>> Apr 20 22:10:33 UTC 2011, machine i686.
>>>>>
>>>>> Hostname app-kannel, IP 127.0.1.1.
>>>>>
>>>>> Libxml version 2.7.6.
>>>>>
>>>>> Using OpenSSL 0.9.8k 25 Mar 2009.
>>>>>
>>>>> Using native malloc.
>>>>>
>>>>>
>>>>>> 2011-10-25 20:29:53 [19391] [0] WARNING: Kannel was compiled without
>>>>>> WAP support
>>>>>
>>>>> 2011-10-25 20:29:53 [19391] [0] INFO: HTTP: Opening server at port
>>>>>> 1300.
>>>>>
>>>>> 2011-10-25 20:29:53 [19391] [0] DEBUG: Started thread 1
>>>>>> (gwlib/fdset.c:poller)
>>>>>
>>>>> 2011-10-25 20:29:53 [19391] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
>>>>>> maps to pid 19391.
>>>>>
>>>>> 2011-10-25 20:29:53 [19391] [0] DEBUG: Started thread 2
>>>>>> (gwlib/http.c:server_thread)
>>>>>
>>>>> 2011-10-25 20:29:53 [19391] [2] DEBUG: Thread 2
>>>>>> (gwlib/http.c:server_thread) maps to pid 19391.
>>>>>
>>>>> 2011-10-25 20:29:53 [19391] [0] DEBUG: Started thread 3
>>>>>> (gw/bb_http.c:httpadmin_run)
>>>>>
>>>>> 2011-10-25 20:29:53 [19391] [3] DEBUG: Thread 3
>>>>>> (gw/bb_http.c:httpadmin_run) maps to pid 19391.
>>>>>
>>>>> 2011-10-25 20:29:53 [19391] [0] INFO:
>>>>>> ----------------------------------------
>>>>>
>>>>> 2011-10-25 20:29:53 [19391] [0] INFO: Kannel bearerbox II version 1.4.3
>>>>>> starting
>>>>>
>>>>> 2011-10-25 20:29:58 [19391] [0] INFO: MAIN: Start-up done, entering
>>>>>> mainloop
>>>>>
>>>>> 2011-10-25 20:29:58 [19391] [0] DEBUG: Shutting down Kannel...
>>>>>
>>>>> 2011-10-25 20:29:58 [19391] [0] DEBUG: shutting down smsc
>>>>>
>>>>> 2011-10-25 20:29:58 [19391] [0] INFO: All flow threads have died,
>>>>>> killing core
>>>>>
>>>>> 2011-10-25 20:29:58 [19391] [0] DEBUG: Waiting for 2
>>>>>> (gwlib/http.c:server_thread) to terminate
>>>>>
>>>>> 2011-10-25 20:29:58 [19391] [3] DEBUG: HTTP: No clients with requests,
>>>>>> quitting.
>>>>>
>>>>> 2011-10-25 20:29:58 [19391] [3] DEBUG: Thread 3
>>>>>> (gw/bb_http.c:httpadmin_run) terminates.
>>>>>
>>>>> 2011-10-25 20:29:58 [19391] [2] DEBUG: Thread 2
>>>>>> (gwlib/http.c:server_thread) terminates.
>>>>>
>>>>> 2011-10-25 20:29:58 [19391] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
>>>>>> terminates.
>>>>>
>>>>> 2011-10-25 20:29:58 [19391] [0] INFO: Total SMS messages: received 0,
>>>>>> sent 0
>>>>>
>>>>> 2011-10-25 20:29:58 [19391] [0] DEBUG: Immutable octet strings: 58.
>>>>>
>>>>>
>>>>> As for the main.conf file, i've simplified it to the minimum so i can
>>>>> focus more on the problem, here is it:
>>>>>
>>>>> group = core
>>>>>> admin-port = 1300
>>>>>> admin-password = fxxbar
>>>>>
>>>>>
>>>>> Any idea ?
>>>>>
>>>>> thanks
>>>>>
>>>>
>>>>
>>>
>>
>

Reply via email to