Still the problem seems to be with your Apache/Coyote server that is serving
your blacklist. Either there is a virtual host problem (it expects actually
/marceoolivas not /localhost) or your blacklist file is empty.
This doesn't seem to be a kannel problem, but your Apache/Coyote
configuration.
Why don't you use a local blacklist file since you are on the same server?
BR,
Nikos
----- Original Message -----
From: "Marcelo Olivas" <marcelo.oli...@up-mobile.com>
To: "Nikos Balkanas" <nbalka...@gmail.com>
Cc: <us...@vm1.kannel.org>
Sent: Friday, August 14, 2009 5:33 PM
Subject: Re: question about reload-list
Sorry for the confusion Nikos, http://localhost/midcgw/blacklist.txt is
the same as http://marceloolivas/kannel/blacklist.txt. I just replaced
the IP and the port for security reasons. I also replaced the IP address
for "xx.xx.xx.xx:80" in some cases. Again, sorry for the confusion.
Below are some the lines of code you requested:
2009-08-14 10:08:50 [14694] [0] DEBUG: Started thread 7 (gwlib/
http.c:write_request_thread)
2009-08-14 10:08:50 [14694] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
maps to pid 14694.
2009-08-14 10:08:50 [14694] [2] DEBUG: Thread 2 (gwlib/
http.c:server_thread) maps to pid 14694.
2009-08-14 10:08:50 [14694] [3] DEBUG: Thread 3 (gw/
bb_http.c:httpadmin_run) maps to pid 14694.
2009-08-14 10:08:50 [14694] [4] DEBUG: Thread 4 (gw/
bb_boxc.c:sms_to_smsboxes) maps to pid 14694.
2009-08-14 10:08:50 [14694] [5] DEBUG: Thread 5 (gw/
bb_boxc.c:smsboxc_run) maps to pid 14694.
2009-08-14 10:08:50 [14694] [6] DEBUG: Thread 6 (gwlib/fdset.c:poller)
maps to pid 14694.
2009-08-14 10:08:50 [14694] [7] DEBUG: Thread 7 (gwlib/
http.c:write_request_thread) maps to pid 14694.
2009-08-14 10:08:50 [14694] [7] DEBUG: Queue contains 0 pending requests.
2009-08-14 10:08:50 [14694] [7] DEBUG: Parsing URL
`http://localhost/midcgw/blacklist.txt' :
2009-08-14 10:08:50 [14694] [7] DEBUG: Scheme: http://
2009-08-14 10:08:50 [14694] [7] DEBUG: Host: localhost
2009-08-14 10:08:50 [14694] [7] DEBUG: Port: 80
2009-08-14 10:08:50 [14694] [7] DEBUG: Username: (null)
2009-08-14 10:08:50 [14694] [7] DEBUG: Password: (null)
2009-08-14 10:08:50 [14694] [7] DEBUG: Path: /midcgw/blacklist.txt
2009-08-14 10:08:50 [14694] [7] DEBUG: Query: (null)
2009-08-14 10:08:50 [14694] [7] DEBUG: Fragment: (null)
2009-08-14 10:08:50 [14694] [7] DEBUG: HTTP: Opening connection to
`localhost' (fd=34).
2009-08-14 10:08:50 [14694] [7] DEBUG: Socket connecting
2009-08-14 10:08:50 [14694] [6] DEBUG: Get info about connecting socket
2009-08-14 10:08:50 [14694] [6] DEBUG: HTTP: Sending request:
2009-08-14 10:08:50 [14694] [6] DEBUG: Octet string at 0x9ea3c00:
2009-08-14 10:08:50 [14694] [6] DEBUG: len: 86
2009-08-14 10:08:50 [14694] [6] DEBUG: size: 1024
2009-08-14 10:08:50 [14694] [6] DEBUG: immutable: 0
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 47 45 54 20 2f 6d 69 64 63
67 77 2f 62 6c 61 63 GET /midcgw/blac
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 6b 6c 69 73 74 2e 74 78 74
20 48 54 54 50 2f 31 klist.txt HTTP/1
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2e 31 0d 0a 48 6f 73 74 3a
20 31 30 2e 31 30 2e .1..Host: xx.xx.
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 32 30 2e 31 30 3a 39 30 39
30 0d 0a 43 6f 6e 6e xx.xx:80..Conn
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 65 63 74 69 6f 6e 3a 20 6b
65 65 70 2d 61 6c 69 ection: keep-ali
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 76 65 0d 0a 0d 0a
ve....
2009-08-14 10:08:50 [14694] [6] DEBUG: Octet string dump ends.
2009-08-14 10:08:50 [14694] [6] DEBUG: HTTP: Status line: <HTTP/1.1 200
OK>
2009-08-14 10:08:50 [14694] [6] DEBUG: HTTP: Received response:
2009-08-14 10:08:50 [14694] [6] DEBUG: Octet string at 0x9ea3bd8:
2009-08-14 10:08:50 [14694] [6] DEBUG: len: 7705
2009-08-14 10:08:50 [14694] [6] DEBUG: size: 8192
2009-08-14 10:08:50 [14694] [6] DEBUG: immutable: 0
On Aug 14, 2009, at 10:24 AM, Nikos Balkanas wrote:
Hi,
Still need a few log lines before that. I can't see where it is trying
to download the list from. Problem is that the blacklist file is
downloading is empty (0 numbers). However, it seems to be:
http://localhost/midcgw/blacklist.txt
Not the one you have specified:
http://marceloolivas/kannel/blacklist.txt
Are these the same? Is the last url empty?
BR,
Nikos
----- Original Message ----- From: "Marcelo Olivas"
<marcelo.oli...@up-mobile.com
>
To: "Nikos Balkanas" <nbalka...@gmail.com>
Cc: <us...@vm1.kannel.org>
Sent: Friday, August 14, 2009 5:14 PM
Subject: Re: question about reload-list
Sorry, I should know better. Here it is Nikos:
2009-08-14 10:08:50 [14694] [6] DEBUG: immutable: 0
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 47 45 54 20 2f 6d 69 64
63 67 77 2f 62 6c 61 63 GET /midcgw/blac
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 6b 6c 69 73 74 2e 74 78
74 20 48 54 54 50 2f 31 klist.txt HTTP/1
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2e 31 0d 0a 48 6f 73 74
3a 20 31 30 2e 31 30 2e .1..Host: xx.xx.
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 32 30 2e 31 30 3a 39 30
39 30 0d 0a 43 6f 6e 6e xx.xx:xxxx..Conn
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 65 63 74 69 6f 6e 3a 20
6b 65 65 70 2d 61 6c 69 ection: keep-ali
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 76 65 0d 0a 0d 0a
ve....
2009-08-14 10:08:50 [14694] [6] DEBUG: Octet string dump ends.
2009-08-14 10:08:50 [14694] [6] DEBUG: HTTP: Status line: <HTTP/ 1.1
200 OK>
2009-08-14 10:08:50 [14694] [6] DEBUG: HTTP: Received response:
2009-08-14 10:08:50 [14694] [6] DEBUG: Octet string at 0x9ea3bd8:
2009-08-14 10:08:50 [14694] [6] DEBUG: len: 7705
2009-08-14 10:08:50 [14694] [6] DEBUG: size: 8192
2009-08-14 10:08:50 [14694] [6] DEBUG: immutable: 0
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 53 65 72 76 65 72 3a 20
41 70 61 63 68 65 2d 43 Server: Apache-C
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 6f 79 6f 74 65 2f 31 2e
31 0d 0a 45 54 61 67 3a oyote/1.1..ETag:
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 20 57 2f 22 37 35 31 35
2d 31 32 35 30 31 39 39 W/"7515-1250199
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 32 39 37 30 30 30 22 0d
0a 4c 61 73 74 2d 4d 6f 297000"..Last-Mo
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 64 69 66 69 65 64 3a 20
54 68 75 2c 20 31 33 20 dified: Thu, 13
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 41 75 67 20 32 30 30 39
20 32 31 3a 33 34 3a 35 Aug 2009 21:34:5
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 37 20 47 4d 54 0d 0a 43
6f 6e 74 65 6e 74 2d 54 7 GMT..Content-T
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 79 70 65 3a 20 74 65 78
74 2f 70 6c 61 69 6e 0d ype: text/plain.
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 0a 43 6f 6e 74 65 6e 74
2d 4c 65 6e 67 74 68 3a .Content-Length:
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 20 37 35 31 35 0d 0a 44
61 74 65 3a 20 46 72 69 7515..Date: Fri
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 20 31 34 20 41 75 67
20 32 30 30 39 20 31 34 , 14 Aug 2009 14
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 3a 30 38 3a 35 30 20 47
4d 54 0d 0a 0d 0a 31 32 :08:50 GMT....12
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 37 34 34 37 31 30 38 35
37 36 31 2c 32 30 33 32 74471085761,2032
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 34 36 33 37 34 34 2c 35
30 34 38 38 31 30 37 38 463744,504881078
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 31 2c 36 32 30 36 35 35
37 35 36 39 2c 31 33 30 1,6206557569,130
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 31 33 30 31 32 33 34 35
36 32 34 33 38 33 32 31 1301234562438321
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 32 35 2c 31 33 30 31 33
30 31 32 33 34 35 36 31 25,1301301234561
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 39 38 31 35 31 37 30 35
33 2c 37 38 37 33 37 36 981517053,787376
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 31 34 35 30 2c 37 38 37
35 31 39 31 34 34 36 2c 1450,7875191446,
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 37 38 37 35 31 39 36 33
36 35 2c 37 38 37 33 37 7875196365,78737
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 36 31 34 35 30 2c 37 38
37 35 31 39 31 34 34 36 61450,7875191446
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 37 38 37 35 31 39 36
33 36 35 2c 31 32 37 34 ,7875196365,1274
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 34 37 31 30 38 35 37 36
31 2c 32 30 33 32 34 36 471085761,203246
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 33 37 34 34 2c 35 30 34
38 38 31 30 37 38 31 2c 3744,5048810781,
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 36 32 30 36 35 35 37 35
36 39 2c 31 33 30 31 33 6206557569,13013
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 30 31 32 33 34 35 36 32
34 33 38 33 32 31 32 35 0123456243832125
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 31 33 30 31 33 30 31
32 33 34 35 36 31 39 38 ,130130123456198
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 31 35 31 37 30 35 33 2c
37 38 37 33 37 36 31 34 1517053,78737614
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 35 30 2c 37 38 37 35 31
39 31 34 34 36 2c 37 38 50,7875191446,78
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 37 35 31 39 36 33 36 35
2c 38 37 39 38 39 30 35 75196365,8798905
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 38 37 36 35 35 33 35
2c 38 36 37 37 31 38 38 ,8765535,8677188
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 34 36 31 33 37 38 34
2c 38 38 37 32 38 31 39 ,4613784,8872819
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 38 36 36 37 32 31 36
2c 38 38 37 33 38 38 36 ,8667216,8873886
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 36 38 39 33 33 37 31
2c 38 38 35 30 33 31 35 ,6893371,8850315
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 38 38 36 39 32 33 37
2c 38 38 31 39 39 32 35 ,8869237,8819925
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 38 37 38 32 33 38 36
2c 38 38 32 35 33 36 39 ,8782386,8825369
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 38 38 32 30 34 32 34
2c 38 38 37 39 33 34 31 ,8820424,8879341
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 38 38 36 33 30 30 33
2c 38 30 36 35 33 33 34 ,8863003,8065334
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 38 31 30 34 39 32 33
2c 38 38 33 32 31 36 32 ,8104923,8832162
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 38 38 36 34 37 38 34
2c 38 38 32 35 31 35 34 ,8864784,8825154
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 34 36 35 30 33 37 38
2c 34 36 35 30 33 37 39 ,4650378,4650379
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 2c 34 36 35 30 33 38 31
2c 34 36 35 30 33 39 35 ,4650381,4650395
....
2009-08-14 10:08:50 [14694] [6] DEBUG: data: 35 32 31 30 31 34 39 32
32 521014922
2009-08-14 10:08:50 [14694] [6] DEBUG: Octet string dump ends.
2009-08-14 10:08:50 [14694] [0] DEBUG: Total 0 lines in
http://localhost/midcgw/blacklist.txt
2009-08-14 10:08:50 [14694] [0] INFO: Read from
<http://localhost/midcgw/blacklist.txt
> total of 0 numbers
2009-08-14 10:08:50 [14694] [0] INFO: Set SMS resend frequency to 60
seconds.
2009-08-14 10:08:50 [14694] [0] INFO: SMS resend retry set to
unlimited.
2009-08-14 10:08:50 [14694] [0] DEBUG: smsbox MO concatenated message
handling enabled
On Aug 14, 2009, at 2:25 AM, Nikos Balkanas wrote:
Hi,
Please post relevant log entries with error.
BR,
Nikos
----- Original Message ----- From: "Marcelo Olivas"
<marcelo.oli...@up-mobile.com
>
To: <users@kannel.org>
Sent: Friday, August 14, 2009 12:55 AM
Subject: question about reload-list
Gurus, in the current version of Kannel, we should be able to reload
the blacklist and white list without restarting kannel using the
HTTP admin. However, when I run this:
http://localhost:13000/reload-lists?password=secret
It tells me that: "Could not reload list".
I don't see any problems in the logs. I only have a "blacklist"
configured. Should I have also the whitelist?
I have the following configuration for my bb config:
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = secret
status-password = foobar
log-file = "/opt/kannel/logs/bearerbox.log"
log-level = 0
access-log = "/opt/kannel/logs/access_bearerbox.log"
store-type = spool
store-location = "/opt/kannel/var/spool/bearerbox"
dlr-storage = mysql
black-list = "http://marceloolivas/kannel/blacklist.txt"
#
# Include the bearerbox DLR storage type.
#
include = "/opt/kannel/etc/module.d/dlr-storage.conf"
#
# The inbound (MO) routing for smsbox/smppbox.
# This is required if this bearerbox has connections to various
# smsbox and smppbox instances. Here you define to which of the
# connected smsbox/smppbox instances MO messages are routed.
#
# Example: (m = mandatory, o = optional)
#
# group = smsbox-route
# smsbox-id = MYSMSC (m) - the smsbox id that is registed at
bearerbox at runtime
# smsc-id = "fake_1;fake_2;fake_3" (o) - the list of smsc ids that
are routed to this smsbox/smppbox
# shortcode = "83111;83222;83444" (o) - the destination numbers
that are routed to thus smsbox/smppbox
#
#group = smsbox-route
#smsbox-id = "KANNELSMSC"
#shortcode = "1111;61427202730"
#
#
# The upstream SMSC connection configurations we use.
#
#include = "/opt/kannel/etc/smsc.d/smsc_fake_all.conf"
include = "/opt/kannel/etc/smsc.d"
#
# A kludge smsbox group. Bearerbox at least needs to know
# that it should open the smsbox-port by detecing at least
# a smsbox group here.
group = smsbox
Thanks,
Marcelo