Hi,
Please use users list for such questions.
You seem to be running another bearerbox instance in the background, or you
have something else listening in on port 9200 required for wap traffic.
1) Check if another bb is running before starting up:
pgrep -fl box
2) if none is running check if something else is listening on port 9200::
neatstat -a | grep 9200 | grep LISTEN
3) Do you really want wap traffic? If not comment out wdp-interface-name.
Most people use kannel for SMS.
BR,
Nikos
----- Original Message -----
From: Mohammed Rashad
To: [email protected]
Sent: Monday, December 06, 2010 11:02 AM
Subject: error running kannel bearbox on ubuntu
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"
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