Re: error bind failed

2005-05-04 Thread Aarno Syvänen
Some other program is already listening at port 13000.
Terminate it first.
Aarno
On 2.5.2005, at 18.27, Yasser Sultan wrote:
hi
I am trying to run the bearerbox and I am getting the following errors
I have connected a nokia 6630 as a gsm modem through usb port and I  
am using fedroa core2
I am including both my error and config files
Hope someone can help
Thanks
Yasser


2005-05-03 21:09:01 [5580] [0] INFO: HTTP: Opening server at port  
13000.
2005-05-03 21:09:01 [5580] [0] ERROR: bind failed
2005-05-03 21:09:01 [5580] [0] ERROR: System error 98: Address  
already in use
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 1 (gw/ 
bb_http.c:httpadmin_r
un)
2005-05-03 21:09:01 [5580] [0] DEBUG: starting smsbox connection  
module
2005-05-03 21:09:01 [5580] [0] INFO: BOXC: 'smsbox-max-pending' not  
set, using d
efault (100).
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 2 (gw/ 
bb_boxc.c:sms_to_smsb
oxes)
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 3 (gw/ 
bb_boxc.c:smsboxc_run
)
2005-05-03 21:09:01 [5580] [0] INFO: DLR rerouting for smsc id  
(null) disabled
.
2005-05-03 21:09:01 [5580] [0] INFO: AT2[/dev/ttyACM0]:  
configuration shows mode
mtype nokiaphone
2005-05-03 21:09:01 [5580] [0] DEBUG: AT2[/dev/ttyACM0]: Reading  
modem definitio   ns from  
smskannel.conf
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 (gw/ 
bb_http.c:httpadmin_run)  
mapsto pid 5580.
2005-05-03 21:09:01 [5580] [1] DEBUG: HTTP: No clients with  
requests, quitting.
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 (gw/ 
bb_http.c:httpadmin_run)  
term   inates.
2005-05-03 21:09:01 [5580] [2] DEBUG: Thread 2 (gw/ 
bb_boxc.c:sms_to_smsboxes)  
ma   ps to pid 5580.
2005-05-03 21:09:01 [5580] [3] DEBUG: Thread 3 (gw/ 
bb_boxc.c:smsboxc_run) maps  
t   o pid 5580.
2005-05-03 21:09:01 [5580] [3] ERROR: bind failed
2005-05-03 21:09:01 [5580] [3] ERROR: System error 98: Address  
already in use
2005-05-03 21:09:01 [5580] [3] PANIC: Could not open smsbox port 13002
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox(gw_panic+0x175)  
[0x80c9e16]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x8055a4e]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x80bf908]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libpthread.so.0  
[0x8aa98c]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libc.so.6(__clone 
+0x5a) [0x70916

//config file/
group = core
admin-port = 13000
smsbox-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 = /tmp/kannel.store
#ssl-server-cert-file = cert.pem
#ssl-server-key-file = key.pem
#ssl-certkey-file = mycertandprivkeyfile.pem
# SMSC CONNECTIONS
# SMSC GSM
group = smsc
smsc = at
modemtype = nokiaphone
device = /dev/ttyACM0
pin = 2345
validityperiod = 167
group = modems
id = nokiaphone
name = Nokia Phone
detect-string = Nokia Mobile Phone
need-sleep = true
keepalive-cmd = AT+CBC;+CSQ
enable-mms = true

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = 0123456789 +-
#log-file = /tmp/smsbox.log
#log-level = 0
#access-log = /tmp/access.log
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
#user-deny-ip = 
#user-allow-ip = 
# SERVICES
group = sms-service
keyword = nop
text = its working yarr
# there should be default always
group = sms-service
keyword = default
text = No service specified
_
Express yourself instantly with MSN Messenger! Download today it's  
FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/





Re: error bind failed

2005-05-04 Thread Aarno Syvänen
Try netstat -a | grep 13000 or lsof -i
Aarno
On 2.5.2005, at 21.02, Yasser Sultan wrote:
hi
Thanks for the reply
I did a fresh install of kannel on another system running Fedora  
core 2 but I am still getting this error ?

and there isn't any orther box ruuning
I googled a bit and may be someome can help by reading these messages
http://forums.fedoraforum.org/archive/index.php/t-26887.html
Regards
Yasser


From: Rodrigo Cremaschi [EMAIL PROTECTED]
To: Yasser Sultan [EMAIL PROTECTED], users@kannel.org
Subject: Re: error bind failed
Date: Mon, 2 May 2005 14:37:45 -0300
Hi Yasser,
   be sure there is no other instance of the bearerbox (or smsbox)  
already running:

ps -ef | grep bearerbox
or
ps aux | grep bearerbox
   If this is the case, stop it beforing restarting Kannel.
Rodrigo.
- Original Message - From: Yasser Sultan  
[EMAIL PROTECTED]
To: users@kannel.org
Sent: Monday, May 02, 2005 1:27 PM
Subject: error bind failed


hi
I am trying to run the bearerbox and I am getting the following  
errors

I have connected a nokia 6630 as a gsm modem through usb port and  
I am using fedroa core2
I am including both my error and config files
Hope someone can help
Thanks
Yasser


2005-05-03 21:09:01 [5580] [0] INFO: HTTP: Opening server at port  
13000.
2005-05-03 21:09:01 [5580] [0] ERROR: bind failed
2005-05-03 21:09:01 [5580] [0] ERROR: System error 98: Address  
already in use
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 1 (gw/ 
bb_http.c:httpadmin_r
un)
2005-05-03 21:09:01 [5580] [0] DEBUG: starting smsbox connection  
module
2005-05-03 21:09:01 [5580] [0] INFO: BOXC: 'smsbox-max-pending'  
not set, using d
efault (100).
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 2 (gw/ 
bb_boxc.c:sms_to_smsb
oxes)
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 3 (gw/ 
bb_boxc.c:smsboxc_run
)
2005-05-03 21:09:01 [5580] [0] INFO: DLR rerouting for smsc id  
(null) disabled
.
2005-05-03 21:09:01 [5580] [0] INFO: AT2[/dev/ttyACM0]:  
configuration shows  
mode   mtype nokiaphone
2005-05-03 21:09:01 [5580] [0] DEBUG: AT2[/dev/ttyACM0]: Reading  
modem definitio   ns from  
smskannel.conf
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 (gw/ 
bb_http.c:httpadmin_run) maps to pid 5580.
2005-05-03 21:09:01 [5580] [1] DEBUG: HTTP: No clients with  
requests, quitting.
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 (gw/ 
bb_http.c:httpadmin_run) term inates.
2005-05-03 21:09:01 [5580] [2] DEBUG: Thread 2 (gw/ 
bb_boxc.c:sms_to_smsboxes) ma ps to pid 5580.
2005-05-03 21:09:01 [5580] [3] DEBUG: Thread 3 (gw/ 
bb_boxc.c:smsboxc_run) maps  
t   o pid 5580.
2005-05-03 21:09:01 [5580] [3] ERROR: bind failed
2005-05-03 21:09:01 [5580] [3] ERROR: System error 98: Address  
already in use
2005-05-03 21:09:01 [5580] [3] PANIC: Could not open smsbox port  
13002
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox(gw_panic+0x175)  
[0x80c9e16]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x8055a4e]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x80bf908]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libpthread.so.0  
[0x8aa98c]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libc.so.6(__clone 
+0x5a) [0x70916

//config  
file/

group = core
admin-port = 13000
smsbox-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 = /tmp/kannel.store
#ssl-server-cert-file = cert.pem
#ssl-server-key-file = key.pem
#ssl-certkey-file = mycertandprivkeyfile.pem
# SMSC CONNECTIONS
# SMSC GSM
group = smsc
smsc = at
modemtype = nokiaphone
device = /dev/ttyACM0
pin = 2345
validityperiod = 167
group = modems
id = nokiaphone
name = Nokia Phone
detect-string = Nokia Mobile Phone
need-sleep = true
keepalive-cmd = AT+CBC;+CSQ
enable-mms = true

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = 0123456789 +-
#log-file = /tmp/smsbox.log
#log-level = 0
#access-log = /tmp/access.log
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
#user-deny-ip = 
#user-allow-ip = 
# SERVICES
group = sms-service
keyword = nop
text = its working yarr
# there should be default always
group = sms-service
keyword = default
text = No service specified
_
Express yourself instantly with MSN Messenger! Download today  
it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/ 
direct/01/



_
Express yourself instantly with MSN Messenger! Download today it's  
FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/





Re: error bind failed

2005-05-04 Thread Gregor B. Rosenauer
2005-05-03 21:09:01 [5580] [0] ERROR: bind failed
2005-05-03 21:09:01 [5580] [0] ERROR: System error 98: Address already in use
I think I also got this error when bearerbox was terminated and could 
not exit cleanly for some reason.
So the socket does not get closed properly and the OS cannot reuse the 
corresponding port.
In this case, only a reboot helps.

regards,
Gregor


RE: error bind failed

2005-05-04 Thread ambar-kannel
  2005-05-03 21:09:01 [5580] [0] ERROR: bind failed
  2005-05-03 21:09:01 [5580] [0] ERROR: System error 98: 
 Address already in use
 I think I also got this error when bearerbox was terminated and could 
 not exit cleanly for some reason.
 So the socket does not get closed properly and the OS cannot 
 reuse the 
 corresponding port.
 In this case, only a reboot helps.
In this typically under Linux, the socket does get freed up after some time.
Doing a netstat -a -n|grep port number should show the connection in
TIME_WAIT state, which clears after 1-2 mins by default under Linux.

If this does not work, then restarting the ethernet interface should do the
trick. Rarely do you need to reboot Linux to take care of network problems.

Regards,

Ambar Roy




Re: error bind failed

2005-05-02 Thread Rodrigo Cremaschi
Hi Yasser,
   be sure there is no other instance of the bearerbox (or smsbox) already 
running:

ps -ef | grep bearerbox
or
ps aux | grep bearerbox
   If this is the case, stop it beforing restarting Kannel.
Rodrigo.
- Original Message - 
From: Yasser Sultan [EMAIL PROTECTED]
To: users@kannel.org
Sent: Monday, May 02, 2005 1:27 PM
Subject: error bind failed


hi
I am trying to run the bearerbox and I am getting the following errors
I have connected a nokia 6630 as a gsm modem through usb port and I am 
using fedroa core2
I am including both my error and config files
Hope someone can help
Thanks
Yasser


2005-05-03 21:09:01 [5580] [0] INFO: HTTP: Opening server at port 13000.
2005-05-03 21:09:01 [5580] [0] ERROR: bind failed
2005-05-03 21:09:01 [5580] [0] ERROR: System error 98: Address already in 
use
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 1 
(gw/bb_http.c:httpadmin_r
un)
2005-05-03 21:09:01 [5580] [0] DEBUG: starting smsbox connection module
2005-05-03 21:09:01 [5580] [0] INFO: BOXC: 'smsbox-max-pending' not set, 
using d
efault (100).
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 2 
(gw/bb_boxc.c:sms_to_smsb
oxes)
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 3 
(gw/bb_boxc.c:smsboxc_run
)
2005-05-03 21:09:01 [5580] [0] INFO: DLR rerouting for smsc id (null) 
disabled
.
2005-05-03 21:09:01 [5580] [0] INFO: AT2[/dev/ttyACM0]: configuration 
shows mode   mtype nokiaphone
2005-05-03 21:09:01 [5580] [0] DEBUG: AT2[/dev/ttyACM0]: Reading modem 
definitio   ns from 
smskannel.conf
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 
(gw/bb_http.c:httpadmin_run) maps 
to pid 5580.
2005-05-03 21:09:01 [5580] [1] DEBUG: HTTP: No clients with requests, 
quitting.
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 
(gw/bb_http.c:httpadmin_run) term 
inates.
2005-05-03 21:09:01 [5580] [2] DEBUG: Thread 2 
(gw/bb_boxc.c:sms_to_smsboxes) ma 
ps to pid 5580.
2005-05-03 21:09:01 [5580] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run) 
maps t   o pid 5580.
2005-05-03 21:09:01 [5580] [3] ERROR: bind failed
2005-05-03 21:09:01 [5580] [3] ERROR: System error 98: Address already in 
use
2005-05-03 21:09:01 [5580] [3] PANIC: Could not open smsbox port 13002
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox(gw_panic+0x175) 
[0x80c9e16]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x8055a4e]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x80bf908]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libpthread.so.0 [0x8aa98c]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libc.so.6(__clone+0x5a) 
[0x70916

//config file/
group = core
admin-port = 13000
smsbox-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 = /tmp/kannel.store
#ssl-server-cert-file = cert.pem
#ssl-server-key-file = key.pem
#ssl-certkey-file = mycertandprivkeyfile.pem
# SMSC CONNECTIONS
# SMSC GSM
group = smsc
smsc = at
modemtype = nokiaphone
device = /dev/ttyACM0
pin = 2345
validityperiod = 167
group = modems
id = nokiaphone
name = Nokia Phone
detect-string = Nokia Mobile Phone
need-sleep = true
keepalive-cmd = AT+CBC;+CSQ
enable-mms = true

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = 0123456789 +-
#log-file = /tmp/smsbox.log
#log-level = 0
#access-log = /tmp/access.log
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
#user-deny-ip = 
#user-allow-ip = 
# SERVICES
group = sms-service
keyword = nop
text = its working yarr
# there should be default always
group = sms-service
keyword = default
text = No service specified
_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




Re: error bind failed

2005-05-02 Thread Yasser Sultan
hi
Thanks for the reply
I did a fresh install of kannel on another system running Fedora core 2 but 
I am still getting this error ?

and there isn't any orther box ruuning
I googled a bit and may be someome can help by reading these messages
http://forums.fedoraforum.org/archive/index.php/t-26887.html
Regards
Yasser

From: Rodrigo Cremaschi [EMAIL PROTECTED]
To: Yasser Sultan [EMAIL PROTECTED], users@kannel.org
Subject: Re: error bind failed
Date: Mon, 2 May 2005 14:37:45 -0300
Hi Yasser,
   be sure there is no other instance of the bearerbox (or smsbox) already 
running:

ps -ef | grep bearerbox
or
ps aux | grep bearerbox
   If this is the case, stop it beforing restarting Kannel.
Rodrigo.
- Original Message - From: Yasser Sultan 
[EMAIL PROTECTED]
To: users@kannel.org
Sent: Monday, May 02, 2005 1:27 PM
Subject: error bind failed


hi
I am trying to run the bearerbox and I am getting the following errors
I have connected a nokia 6630 as a gsm modem through usb port and I am 
using fedroa core2
I am including both my error and config files
Hope someone can help
Thanks
Yasser


2005-05-03 21:09:01 [5580] [0] INFO: HTTP: Opening server at port 13000.
2005-05-03 21:09:01 [5580] [0] ERROR: bind failed
2005-05-03 21:09:01 [5580] [0] ERROR: System error 98: Address already in 
use
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 1 
(gw/bb_http.c:httpadmin_r
un)
2005-05-03 21:09:01 [5580] [0] DEBUG: starting smsbox connection module
2005-05-03 21:09:01 [5580] [0] INFO: BOXC: 'smsbox-max-pending' not set, 
using d
efault (100).
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 2 
(gw/bb_boxc.c:sms_to_smsb
oxes)
2005-05-03 21:09:01 [5580] [0] DEBUG: Started thread 3 
(gw/bb_boxc.c:smsboxc_run
)
2005-05-03 21:09:01 [5580] [0] INFO: DLR rerouting for smsc id (null) 
disabled
.
2005-05-03 21:09:01 [5580] [0] INFO: AT2[/dev/ttyACM0]: configuration 
shows mode   mtype nokiaphone
2005-05-03 21:09:01 [5580] [0] DEBUG: AT2[/dev/ttyACM0]: Reading modem 
definitio   ns from 
smskannel.conf
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 
(gw/bb_http.c:httpadmin_run) maps to pid 5580.
2005-05-03 21:09:01 [5580] [1] DEBUG: HTTP: No clients with requests, 
quitting.
2005-05-03 21:09:01 [5580] [1] DEBUG: Thread 1 
(gw/bb_http.c:httpadmin_run) term inates.
2005-05-03 21:09:01 [5580] [2] DEBUG: Thread 2 
(gw/bb_boxc.c:sms_to_smsboxes) ma ps to pid 5580.
2005-05-03 21:09:01 [5580] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run) 
maps t   o pid 5580.
2005-05-03 21:09:01 [5580] [3] ERROR: bind failed
2005-05-03 21:09:01 [5580] [3] ERROR: System error 98: Address already in 
use
2005-05-03 21:09:01 [5580] [3] PANIC: Could not open smsbox port 13002
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox(gw_panic+0x175) 
[0x80c9e16]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x8055a4e]
2005-05-03 21:09:01 [5580] [3] PANIC: ./bearerbox [0x80bf908]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libpthread.so.0 [0x8aa98c]
2005-05-03 21:09:01 [5580] [3] PANIC: /lib/tls/libc.so.6(__clone+0x5a) 
[0x70916

//config file/
group = core
admin-port = 13000
smsbox-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 = /tmp/kannel.store
#ssl-server-cert-file = cert.pem
#ssl-server-key-file = key.pem
#ssl-certkey-file = mycertandprivkeyfile.pem
# SMSC CONNECTIONS
# SMSC GSM
group = smsc
smsc = at
modemtype = nokiaphone
device = /dev/ttyACM0
pin = 2345
validityperiod = 167
group = modems
id = nokiaphone
name = Nokia Phone
detect-string = Nokia Mobile Phone
need-sleep = true
keepalive-cmd = AT+CBC;+CSQ
enable-mms = true

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = 0123456789 +-
#log-file = /tmp/smsbox.log
#log-level = 0
#access-log = /tmp/access.log
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
#user-deny-ip = 
#user-allow-ip = 
# SERVICES
group = sms-service
keyword = nop
text = its working yarr
# there should be default always
group = sms-service
keyword = default
text = No service specified
_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


_
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/