Re: error running kannel bearbox on ubuntu

Mohammed Rashad <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Thanks a lot for your configuration file. I need to setup an sms gateway for
recieving sms from other phones without attaching a phone to my device
Can you help me for that

On Mon, Dec 6, 2010 at 3:17 PM, Rahul Chordiya <[email protected]>wrote:

> hello Rashad,
>
> after review of your log file it seem like you are trying to run bearerbox
> on the port which is already in use try to run on another port instead of
> 10001 and define smsbox port in core configuration.
>
> check my configuration:
>
> group = core
> admin-port = 13000
> smsbox-port = 13001
> wapbox-port = 13002
> admin-password = bar
> #status-password = foo
>
> #admin-deny-ip = ""
> #admin-allow-ip = ""
> #log-file = "/tmp/kannel.log"
> #log-level = 0
>
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> #unified-prefix = "+358,00358,0;+,00"
> #access-log = "/tmp/access.log"
> #store-file = "kannel.store"
> #ssl-server-cert-file = "cert.pem"
> #ssl-server-key-file = "key.pem"
> #ssl-certkey-file = "mycertandprivkeyfile.pem"
>
> #---------------------------------------------
> # SMSBOX SETUP
> #
> # Smsbox(es) do higher-level SMS handling after they have been received
> from
> # SMS centers by bearerbox, or before they are given to bearerbox for
> delivery
>
> group = smsbox
> bearerbox-host = 127.0.0.1
> sendsms-port = 13013
> global-sender = 13013
> #sendsms-chars = "0123456789 +-"
> #log-file = "/tmp/smsbox.log"
> #log-level = 0
> #access-log = "/tmp/access.log"
>
> #---------------------------------------------
> # WAPBOX SETUP
> #
>
> group = wapbox
> bearerbox-host = 127.0.0.1
> #log-file = "/tmp/wapbox.log"
> #log-level = 0
> syslog-level = none
> #access-log = "/tmp/wapaccess.log"
>
> group = sendsms-user
> username = tester
> password = foobar
> #user-deny-ip = ""
> #user-allow-ip = ""
>
> group = sms-service
> keyword = default
> text = "No service specified"
>
>
> On Mon, Dec 6, 2010 at 2:32 PM, Mohammed Rashad <
> [email protected]> wrote:
>
>> I am using ubuntu 10.04 LTS
>> and installed kannel using sudo apt-get install kannel
>>
>> my configuration file is this
>> group = core
>> admin-port = 10001
>> admin-password = bar
>> #admin-deny-ip = "*.*.*.*"
>> admin-allow-ip = "*.*.*.*"
>> http-proxy-port=8080
>> http-proxy-host=hostelproxy.iiit.ac.in
>>  wapbox-port = 10003
>> wdp-interface-name = "*"
>> log-file = "/var/log/kannel/bearerbox.log"
>> #box-deny-ip = "*.*.*.*"
>> box-allow-ip = "127.0.0.1"
>>
>> group = wapbox
>> bearerbox-host = localhost
>> log-file = "/var/log/kannel/wapbox.log"
>>
>>
> I'm Rahul Chordiya
>
>>
>> sudo bearerbox /etc/kannel/kannel.conf
>> gives me this error
>>
>>
>> 2010-12-06 14:30:09 [5640] [0] INFO: Debug_lvl = -1, log_file = <none>,
>> log_lvl = 0
>> 2010-12-06 14:30:09 [5640] [0] WARNING: DLR: using default 'internal' for
>> storage type.
>> 2010-12-06 14:30:09 [5640] [0] INFO: DLR using storage type: internal
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: Kannel bearerbox version `1.4.3'.
>> Build `Apr  6 2010 13:16:08', compiler `4.4.3'.
>> System Linux, release 2.6.32-23-generic-pae, version #37-Ubuntu SMP Fri
>> Jun 11 09:26:55 UTC 2010, machine i686.
>> Hostname rashad-laptop, IP 127.0.1.1.
>> Libxml version 2.7.6.
>> Using OpenSSL 0.9.8k 25 Mar 2009.
>> Compiled with MySQL 5.1.41, using MySQL 5.1.41.
>> Using native malloc.
>>
>> 2010-12-06 14:30:09 [5640] [0] INFO: Added logfile
>> `/var/log/kannel/bearerbox.log' with level `0'.
>> 2010-12-06 14:30:09 [5640] [0] INFO: HTTP: Opening server at port 10001.
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: Started thread 1
>> (gwlib/fdset.c:poller)
>> 2010-12-06 14:30:09 [5640] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
>> to pid 5640.
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: Started thread 2
>> (gwlib/http.c:server_thread)
>> 2010-12-06 14:30:09 [5640] [2] DEBUG: Thread 2
>> (gwlib/http.c:server_thread) maps to pid 5640.
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: Started thread 3
>> (gw/bb_http.c:httpadmin_run)
>> 2010-12-06 14:30:09 [5640] [3] DEBUG: Thread 3
>> (gw/bb_http.c:httpadmin_run) maps to pid 5640.
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: starting UDP sender/receiver module
>> 2010-12-06 14:30:09 [5640] [0] INFO: Adding interface *
>> 2010-12-06 14:30:09 [5640] [0] ERROR: Couldn't bind a UDP socket to port
>> 9200
>> 2010-12-06 14:30:09 [5640] [0] ERROR: System error 98: Address already in
>> use
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: udpc_create: Bound to UDP <
>> 0.0.0.0:9200>
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: Started thread 4
>> (gw/bb_udp.c:udp_receiver)
>> 2010-12-06 14:30:09 [5640] [4] DEBUG: Thread 4 (gw/bb_udp.c:udp_receiver)
>> maps to pid 5640.
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: Started thread 5
>> (gw/bb_udp.c:udp_sender)
>> 2010-12-06 14:30:09 [5640] [5] DEBUG: Thread 5 (gw/bb_udp.c:udp_sender)
>> maps to pid 5640.
>> 2010-12-06 14:30:09 [5640] [0] ERROR: Couldn't bind a UDP socket to port
>> 9201
>> 2010-12-06 14:30:09 [5640] [0] ERROR: System error 98: Address already in
>> use
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: udpc_create: Bound to UDP <
>> 0.0.0.0:9201>
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: Started thread 6
>> (gw/bb_udp.c:udp_receiver)
>> 2010-12-06 14:30:09 [5640] [6] DEBUG: Thread 6 (gw/bb_udp.c:udp_receiver)
>> maps to pid 5640.
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: Started thread 7
>> (gw/bb_udp.c:udp_sender)
>> 2010-12-06 14:30:09 [5640] [7] DEBUG: Thread 7 (gw/bb_udp.c:udp_sender)
>> maps to pid 5640.
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: starting wapbox connection module
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: Started thread 8
>> (gw/bb_boxc.c:wdp_to_wapboxes)
>> 2010-12-06 14:30:09 [5640] [8] DEBUG: Thread 8
>> (gw/bb_boxc.c:wdp_to_wapboxes) maps to pid 5640.
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: Started thread 9
>> (gw/bb_boxc.c:wapboxc_run)
>> 2010-12-06 14:30:09 [5640] [9] DEBUG: Thread 9 (gw/bb_boxc.c:wapboxc_run)
>> maps to pid 5640.
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: starting WDP router
>> 2010-12-06 14:30:09 [5640] [0] DEBUG: Started thread 10
>> (gw/bearerbox.c:wdp_router)
>> 2010-12-06 14:30:09 [5640] [10] DEBUG: Thread 10
>> (gw/bearerbox.c:wdp_router) maps to pid 5640.
>> 2010-12-06 14:30:09 [5640] [0] INFO:
>> ----------------------------------------
>> 2010-12-06 14:30:09 [5640] [0] INFO: Kannel bearerbox II version 1.4.3
>> starting
>> 2010-12-06 14:30:09 [5640] [0] INFO: MAIN: Start-up done, entering
>> mainloop
>> 2010-12-06 14:30:09 [5640] [4] PANIC: gwlib/socket.c:380: read_available:
>> Assertion `fd >= 0' failed.
>> 2010-12-06 14:30:09 [5640] [4] PANIC: bearerbox(gw_panic+0xcd) [0x80d21ed]
>> 2010-12-06 14:30:09 [5640] [4] PANIC: bearerbox(read_available+0x1fc)
>> [0x80dc6ec]
>> 2010-12-06 14:30:09 [5640] [4] PANIC: bearerbox() [0x806131b]
>> 2010-12-06 14:30:09 [5640] [4] PANIC: bearerbox() [0x80c952d]
>> 2010-12-06 14:30:09 [5640] [4] PANIC:
>> /lib/tls/i686/cmov/libpthread.so.0(+0x596e) [0xb779396e]
>> 2010-12-06 14:30:09 [5640] [4] PANIC:
>> /lib/tls/i686/cmov/libc.so.6(clone+0x5e) [0xb728fa4e]
>>
>>
>> --
>> Rashad
>>
>
>


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