You are almost there.  Just clear out those errors and you are good to.

P.


@sotandeka
+256 716 801 124
Senior Programmer in VAS Mobile services, ERP, Health and Web-based Systems.
Experienced Linux System Administrator and Open Source Developer.



On Fri, May 2, 2014 at 5:45 PM, MOSES KARIUKI <kariuk...@gmail.com> wrote:

> Hi All,
>
> This is the bearer box log:
>
> 2014-05-02 14:41:49 [1944] [0] ERROR: Couldn't open logfile
> `/var/log/kannel/bearerbox.log'.
> 2014-05-02 14:41:49 [1944] [0] ERROR: System error 2: No such file or
> directory
> 2014-05-02 14:41:49 [1944] [0] INFO: SSL not supported, no SSL
> initialization done.
> 2014-05-02 14:41:49 [1944] [0] INFO: HTTP: Opening server at port 13000.
> 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 1
> (gwlib/fdset.c:poller)
> 2014-05-02 14:41:49 [1944] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
> to pid 1944.
> 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 2
> (gwlib/http.c:server_thread)
> 2014-05-02 14:41:49 [1944] [2] DEBUG: Thread 2
> (gwlib/http.c:server_thread) maps to pid 1944.
> 2014-05-02 14:41:49 [1944] [3] DEBUG: Thread 3
> (gw/bb_http.c:httpadmin_run) maps to pid 1944.
> 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 3
> (gw/bb_http.c:httpadmin_run)
> 2014-05-02 14:41:49 [1944] [2] DEBUG: HTTP: Including port 13000, fd 8 for
> polling in server thread
> 2014-05-02 14:41:49 [1944] [0] DEBUG: starting smsbox connection module
> 2014-05-02 14:41:49 [1944] [0] INFO: BOXC: 'smsbox-max-pending' not set,
> using default (100).
> 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 4
> (gw/bb_boxc.c:sms_to_smsboxes)
> 2014-05-02 14:41:49 [1944] [4] DEBUG: Thread 4
> (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 1944.
> 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 5
> (gw/bb_boxc.c:smsboxc_run)
> 2014-05-02 14:41:49 [1944] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
> maps to pid 1944.
> 2014-05-02 14:41:49 [1944] [0] INFO: Set SMS resend frequency to 60
> seconds.
> 2014-05-02 14:41:49 [1944] [0] INFO: SMS resend retry set to unlimited.
> 2014-05-02 14:41:49 [1944] [0] DEBUG: MO concatenated message handling
> enabled
> 2014-05-02 14:41:49 [1944] [0] INFO: DLR rerouting for smsc id
> <congoairtel> disabled.
> 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 6
> (gw/smsc/smsc_smpp.c:io_thread)
> 2014-05-02 14:41:49 [1944] [6] DEBUG: Thread 6
> (gw/smsc/smsc_smpp.c:io_thread) maps to pid 1944.
> 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 7
> (gw/bb_smscconn.c:sms_router)
> 2014-05-02 14:41:49 [1944] [7] DEBUG: Thread 7
> (gw/bb_smscconn.c:sms_router) maps to pid 1944.
> 2014-05-02 14:41:49 [1944] [0] DEBUG: starting UDP sender/receiver module
> 2014-05-02 14:41:49 [1944] [0] INFO: Adding interface *
> 2014-05-02 14:41:49 [1944] [6] DEBUG: Connecting to <217.113.71.81>
> 2014-05-02 14:41:49 [1944] [0] DEBUG: udpc_create: Bound to UDP <
> 0.0.0.0:9200>
> 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 8
> (gw/bb_udp.c:udp_receiver)
> 2014-05-02 14:41:49 [1944] [8] DEBUG: Thread 8 (gw/bb_udp.c:udp_receiver)
> maps to pid 1944.
> 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 9
> (gw/bb_udp.c:udp_sender)
> 2014-05-02 14:41:49 [1944] [9] DEBUG: Thread 9 (gw/bb_udp.c:udp_sender)
> maps to pid 1944.
> 2014-05-02 14:41:49 [1944] [0] DEBUG: udpc_create: Bound to UDP <
> 0.0.0.0:9201>
> 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 10
> (gw/bb_udp.c:udp_receiver)
> 2014-05-02 14:41:49 [1944] [10] DEBUG: Thread 10
> (gw/bb_udp.c:udp_receiver) maps to pid 1944.
> 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 11
> (gw/bb_udp.c:udp_sender)
> 2014-05-02 14:41:49 [1944] [0] DEBUG: starting wapbox connection module
> 2014-05-02 14:41:49 [1944] [11] DEBUG: Thread 11 (gw/bb_udp.c:udp_sender)
> maps to pid 1944.
> 2014-05-02 14:41:49 [1944] [0] ERROR: Missing wapbox-port variable, cannot
> start WAP
> 2014-05-02 14:41:49 [1944] [0] DEBUG: starting WDP router
> 2014-05-02 14:41:49 [1944] [0] DEBUG: Started thread 12
> (gw/bearerbox.c:wdp_router)
> 2014-05-02 14:41:49 [1944] [12] DEBUG: Thread 12
> (gw/bearerbox.c:wdp_router) maps to pid 1944.
> 2014-05-02 14:41:49 [1944] [12] DEBUG: udp_die: removing producers from
> udp-lists
> 2014-05-02 14:41:49 [1944] [0] INFO:
> ----------------------------------------
> 2014-05-02 14:41:49 [1944] [0] INFO: Kannel bearerbox II version svn-r5089
> starting
>
>
>
> On Fri, May 2, 2014 at 5:36 PM, Otandeka Simon Peter 
> <sotand...@gmail.com>wrote:
>
>>
>> Hi,
>>
>> 1. Run bearerbox first before running smsbox.... something like
>>     /usr/local/sbin/bearerbox -v 0 /etc/kannel.conf
>>     /usr/local/sbin/smsbox -v 0 /etc/kannel.conf
>> 2. Send us the full log at debug-level zero (/usr/local/sbin/bearerbox -v
>> 0 /etc/kannel.conf)
>> 3. Check that you reach your SMSC at the given port and connection is
>> stable.
>> 4. Also check for file permissions.
>>
>>
>>
>>
>>
>> @sotandeka
>> +256 716 801 124
>> Senior Programmer in VAS Mobile services, ERP, Health and Web-based
>> Systems.
>> Experienced Linux System Administrator and Open Source Developer.
>>
>>
>>
>> On Fri, May 2, 2014 at 5:11 PM, MOSES KARIUKI <kariuk...@gmail.com>wrote:
>>
>>> Bendon,
>>>
>>> In Addition, these are the instructions I followed.
>>>
>>> svn co https://svn.kannel.org/gateway/trunk kannel-1.5
>>> cd kannel-1.5
>>> ./configure --with-mysql --prefix=/usr/local
>>> make
>>> make install
>>>
>>>
>>>
>>> On Fri, May 2, 2014 at 5:10 PM, MOSES KARIUKI <kariuk...@gmail.com>wrote:
>>>
>>>> #
>>>> # 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 =
>>>> admin-deny-ip = "*.*.*.*"
>>>> admin-allow-ip = ""
>>>>  #wapbox-port = 13002
>>>> smsbox-port = 13001
>>>> wdp-interface-name = "*"
>>>> log-file = "/var/log/kannel/bearerbox.log"
>>>> log-level = 0
>>>> box-deny-ip = "*.*.*.*"
>>>> box-allow-ip =
>>>> #dlr-storage = pgsql
>>>>
>>>> #group = wapbox
>>>> #bearerbox-host = localhost
>>>> #log-file = "/var/log/kannel/wapbox.log"
>>>>
>>>> group = smsbox
>>>> bearerbox-host = localhost
>>>> sendsms-port = 13013
>>>> global-sender = 13013
>>>> smsbox-id = box1
>>>> log-file = "/var/log/kannel/smsbox.log"
>>>> log-level = 0
>>>>
>>>>  group = sendsms-user
>>>> username =
>>>> password =
>>>> dlr-url = "
>>>> http://localhost/kannel/dlr_status.php?id=%p&mask=%d&message_id=%F";
>>>>
>>>> group = sms-service
>>>> keyword = default
>>>> get-url = "
>>>> http://localhost/kannel/receivesms.php?sender=%p&text=%a&receiverph=%P&smscid=%i
>>>> "
>>>> accept-x-kannel-headers = true
>>>> concatenation = true
>>>> catch-all = true
>>>>
>>>> #group = wapbox
>>>> #bearerbox-host = localhost
>>>> #log-file = "/var/log/kannel/wapbox.log"
>>>>
>>>> group = smsc
>>>> smsc = smpp
>>>> smsc-id =
>>>> host =
>>>> port = 0
>>>> smsc-username =
>>>> smsc-password =
>>>> system-type = VMA
>>>> transceiver-mode = false
>>>> receive-port = 9000
>>>> interface-version = 34
>>>> #connect-allow-ip = 127.0.0.1
>>>> #msg-id-type = 0x00
>>>>
>>>> group = pgsql-connection
>>>> id = mydlr
>>>> host = localhost
>>>> port = 5432
>>>> username = postgres
>>>> password = _123ntGrac0N_
>>>> database = postgres
>>>> max-connections = 1
>>>>
>>>> group = dlr-db
>>>> id = mydlr
>>>> table = tbl_dlr
>>>> field-smsc = smsc
>>>> field-timestamp = _timstamp
>>>> field-destination = destination
>>>> field-source = source
>>>> field-service = _service
>>>> field-url = url
>>>> field-mask = mask
>>>> field-status = status
>>>> field-boxc-id = boxc_id
>>>>
>>>>
>>>>
>>>> On Fri, May 2, 2014 at 5:06 PM, Bendon Murgor 
>>>> <bendonmur...@gmail.com>wrote:
>>>>
>>>>> Send in your conf file...
>>>>> You may remove the passwords in it
>>>>>
>>>>>
>>>>> Best Regards,
>>>>> -----------------------------------------
>>>>> Bendon Murgor
>>>>> Sytems Engineer/IT Systems Auditor
>>>>> +254-720-529868
>>>>> Sent from my BlackBerry®
>>>>> ------------------------------
>>>>> *From: * MOSES KARIUKI <kariuk...@gmail.com>
>>>>> *Date: *Fri, 2 May 2014 17:03:53 +0300
>>>>> *To: *Murgor Bendon<bendonmur...@gmail.com>
>>>>> *Cc: *Kannel Users<users@kannel.org>
>>>>> *Subject: *Re: Kannel 1.5 smsbox error
>>>>>
>>>>> THanks Bendon,
>>>>>
>>>>> I have done that. Below is the new error I am getting.
>>>>>
>>>>> 2014-05-02 14:01:07 [1811] [0] DEBUG: Connecting to <127.0.0.1>
>>>>> 2014-05-02 14:01:07 [1811] [0] INFO: Connected to bearerbox at
>>>>> localhost port 13001.
>>>>> 2014-05-02 14:01:07 [1811] [0] DEBUG: Started thread 8
>>>>> (gw/heartbeat.c:heartbeat_thread)
>>>>> 2014-05-02 14:01:07 [1811] [8] DEBUG: Thread 8
>>>>> (gw/heartbeat.c:heartbeat_thread) maps to pid 1811.
>>>>> 2014-05-02 14:01:07 [1811] [0] ERROR: Connection closed by the
>>>>> bearerbox.
>>>>> 2014-05-02 14:01:07 [1811] [0] ERROR: Bearerbox is gone, restarting
>>>>> 2014-05-02 14:01:07 [1811] [0] INFO: Received (and handled?) 0
>>>>> requests in 0 seconds (-nan per second)
>>>>> 2014-05-02 14:01:07 [1811] [0] INFO: Kannel smsbox terminating.
>>>>> 2014-05-02 14:01:07 [1811] [8] ERROR: Error writing 12 octets to fd 45:
>>>>> 2014-05-02 14:01:07 [1811] [8] ERROR: System error 32: Broken pipe
>>>>> 2014-05-02 14:01:07 [1811] [8] ERROR: Couldn't write Msg to bearerbox.
>>>>> 2014-05-02 14:01:07 [1811] [8] DEBUG: Thread 8
>>>>> (gw/heartbeat.c:heartbeat_thread) terminates.
>>>>> 2014-05-02 14:01:07 [1811] [0] DEBUG: Waiting for 2
>>>>> (gwlib/http.c:server_thread) to terminate
>>>>> 2014-05-02 14:01:07 [1811] [3] DEBUG: HTTP: No clients with requests,
>>>>> quitting.
>>>>> 2014-05-02 14:01:07 [1811] [3] DEBUG: Thread 3
>>>>> (gw/smsbox.c:sendsms_thread) terminates.
>>>>> 2014-05-02 14:01:07 [1811] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
>>>>> terminates.
>>>>> 2014-05-02 14:01:07 [1811] [2] DEBUG: Thread 2
>>>>> (gwlib/http.c:server_thread) terminates.
>>>>> 2014-05-02 14:01:07 [1811] [0] DEBUG: Waiting for 5
>>>>> (gw/smsbox.c:obey_request_thread) to terminate
>>>>>
>>>>> MT
>>>>>
>>>>>
>>>>> On Fri, May 2, 2014 at 5:02 PM, Bendon Murgor 
>>>>> <bendonmur...@gmail.com>wrote:
>>>>>
>>>>>> Boss, are you sure that is the correct location of your conf file?
>>>>>> Have you followed the documentation?
>>>>>> Create the kannel.conf in your current working directory and execute
>>>>>> again.
>>>>>> Best Regards,
>>>>>> -----------------------------------------
>>>>>> Bendon Murgor
>>>>>> Sytems Engineer/IT Systems Auditor
>>>>>> +254-720-529868
>>>>>> Sent from my BlackBerry®
>>>>>> ------------------------------
>>>>>> *From: * MOSES KARIUKI <kariuk...@gmail.com>
>>>>>> *Sender: * "users" <users-boun...@kannel.org>
>>>>>> *Date: *Fri, 2 May 2014 16:56:53 +0300
>>>>>> *To: *Kannel Users<users@kannel.org>
>>>>>> *Subject: *Kannel 1.5 smsbox error
>>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> I am getting the below error. Please assist. I tried locating the
>>>>>> /etc/default/kannel file but its not there.
>>>>>> root@rzpeiz52m2:/etc/default# /etc/kannel/sbin/smsbox kannel.conf
>>>>>> 2014-05-02 13:46:26 [24447] [0] INFO: Debug_lvl = -1, log_file =
>>>>>> <none>, log_lvl = 0
>>>>>> 2014-05-02 13:46:26 [24447] [0] ERROR: fopen failed: couldn't open
>>>>>> `kannel.conf'
>>>>>> 2014-05-02 13:46:26 [24447] [0] ERROR: System error 2: No such file
>>>>>> or directory
>>>>>> 2014-05-02 13:46:26 [24447] [0] PANIC: Failed to load main
>>>>>> configuration file `kannel.conf'. Aborting!
>>>>>> 2014-05-02 13:46:26 [24447] [0] PANIC:
>>>>>> /etc/kannel/sbin/smsbox(gw_backtrace+0xae) [0x440fee]
>>>>>>  2014-05-02 13:46:26 [24447] [0] PANIC:
>>>>>> /etc/kannel/sbin/smsbox(gw_panic+0x169) [0x441169]
>>>>>> 2014-05-02 13:46:26 [24447] [0] PANIC:
>>>>>> /etc/kannel/sbin/smsbox(cfg_read+0x5d6) [0x42c826]
>>>>>> 2014-05-02 13:46:26 [24447] [0] PANIC:
>>>>>> /etc/kannel/sbin/smsbox(main+0x101) [0x40ce21]
>>>>>> 2014-05-02 13:46:26 [24447] [0] PANIC:
>>>>>> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f485ec5476d]
>>>>>> 2014-05-02 13:46:26 [24447] [0] PANIC: /etc/kannel/sbin/smsbox()
>>>>>> [0x40e3f5]
>>>>>>
>>>>>>
>>>>>> Please assist.
>>>>>> MK
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>

Reply via email to