connection refused by smsbox to sqlbox
Hi all, I am not able to run sqlbox with kannel-1.4.1. I have made a start script where I am starting bearerbox then sqlbox then smsbox. bearerbox and sqlbox are starting smoothly but when smsbox starts it gaves folowing error with panic. - Wed Nov 25 04:39:10 IST 2009 : Bringing the test SMS CONNECTOR up 2009-11-25 04:39:10 [25005] [0] WARNING: DLR: using default 'internal' for storage type. Wed Nov 25 04:39:15 IST 2009 : Bringing the sqlbox CONNECTOR up Wed Nov 25 04:39:15 IST 2009 : Bringing the test SMS SERVER up 2009-11-25 04:39:15 [25018] [0] ERROR: connect failed 2009-11-25 04:39:15 [25018] [0] ERROR: System error 111: Connection refused 2009-11-25 04:39:15 [25018] [0] ERROR: error connecting to server `localhost' at port `14003' 2009-11-25 04:39:15 [25018] [0] PANIC: Couldn't connect to the bearerbox. 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox(gw_panic+0xe6) [0x8085946] 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox(main+0xf0a) [0x80538fa] 2009-11-25 04:39:15 [25018] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xdc) [0x77bdec] 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox [0x8052241] -- I have two config file one is sqlbox.conf and smskannel.conf. smskannel.conf group = core admin-port = 13012 smsbox-port = 13015 admin-password = bar status-password = foo log-file = /home/admin/log/gwsc.log log-level = 0 store-file = /home/admin/log/gwstore1.log access-log = /home/admin/log/gwaccess.log group = smsc smsc = smpp smsc-id = SMPP_CLIENT host = *** transceiver-mode = 1 port = smsc-username = smsc-password = * msg-id-type = 3 system-type = CMT address-range = . source-addr-ton = 1 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 group = smsbox bearerbox-host = localhost bearerbox-port = 14003 smsbox-id = smsbox sendsms-port = 13013 log-file = /home/admin/log/gwss.log access-log = /home/admin/log/gwaccess.log log-level = 0 group = sendsms-user username = * password = * max-messages = 10 concatenation = true --- sqlbox.conf --- group = sqlbox id = sqlbox smsbox-id = smsbox02 bearerbox-host = localhost bearerbox-port= 13015 smsbox-port = 14003 smsbox-port-ssl = false sql-log-table = sent_sms sql-insert-table = send_sms log-file = /home/admin/log/sqlbox.log log-level = 5 group = mysql-connection id = sqlbox host = localhost username = root password = ** database = ** port = 3306 max-connections = 40 -- Waiting for reply Regards Jyoti
Re: connection refused by smsbox to sqlbox
If you're connecting sqlbox to smsbox, as it appears to be the case, then you should start smsbox _before_ sqlbox. Hope it helps, Alex On Wed, Nov 25, 2009 at 12:19 PM, jyotiranjan panda tell2jy...@gmail.comwrote: Hi all, I am not able to run sqlbox with kannel-1.4.1. I have made a start script where I am starting bearerbox then sqlbox then smsbox. bearerbox and sqlbox are starting smoothly but when smsbox starts it gaves folowing error with panic. - Wed Nov 25 04:39:10 IST 2009 : Bringing the test SMS CONNECTOR up 2009-11-25 04:39:10 [25005] [0] WARNING: DLR: using default 'internal' for storage type. Wed Nov 25 04:39:15 IST 2009 : Bringing the sqlbox CONNECTOR up Wed Nov 25 04:39:15 IST 2009 : Bringing the test SMS SERVER up 2009-11-25 04:39:15 [25018] [0] ERROR: connect failed 2009-11-25 04:39:15 [25018] [0] ERROR: System error 111: Connection refused 2009-11-25 04:39:15 [25018] [0] ERROR: error connecting to server `localhost' at port `14003' 2009-11-25 04:39:15 [25018] [0] PANIC: Couldn't connect to the bearerbox. 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox(gw_panic+0xe6) [0x8085946] 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox(main+0xf0a) [0x80538fa] 2009-11-25 04:39:15 [25018] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xdc) [0x77bdec] 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox [0x8052241] -- I have two config file one is sqlbox.conf and smskannel.conf. smskannel.conf group = core admin-port = 13012 smsbox-port = 13015 admin-password = bar status-password = foo log-file = /home/admin/log/gwsc.log log-level = 0 store-file = /home/admin/log/gwstore1.log access-log = /home/admin/log/gwaccess.log group = smsc smsc = smpp smsc-id = SMPP_CLIENT host = *** transceiver-mode = 1 port = smsc-username = smsc-password = * msg-id-type = 3 system-type = CMT address-range = . source-addr-ton = 1 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 group = smsbox bearerbox-host = localhost bearerbox-port = 14003 smsbox-id = smsbox sendsms-port = 13013 log-file = /home/admin/log/gwss.log access-log = /home/admin/log/gwaccess.log log-level = 0 group = sendsms-user username = * password = * max-messages = 10 concatenation = true --- sqlbox.conf --- group = sqlbox id = sqlbox smsbox-id = smsbox02 bearerbox-host = localhost bearerbox-port= 13015 smsbox-port = 14003 smsbox-port-ssl = false sql-log-table = sent_sms sql-insert-table = send_sms log-file = /home/admin/log/sqlbox.log log-level = 5 group = mysql-connection id = sqlbox host = localhost username = root password = ** database = ** port = 3306 max-connections = 40 -- Waiting for reply Regards Jyoti
Re: connection refused by smsbox to sqlbox
Dear Alex, the same error I am geting, please look into my config if I have to change anything? I am connecting as smsbox -- sqlbox bearerbox Regards Jyoti On 11/25/09, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: If you're connecting sqlbox to smsbox, as it appears to be the case, then you should start smsbox _before_ sqlbox. Hope it helps, Alex On Wed, Nov 25, 2009 at 12:19 PM, jyotiranjan panda tell2jy...@gmail.comwrote: Hi all, I am not able to run sqlbox with kannel-1.4.1. I have made a start script where I am starting bearerbox then sqlbox then smsbox. bearerbox and sqlbox are starting smoothly but when smsbox starts it gaves folowing error with panic. - Wed Nov 25 04:39:10 IST 2009 : Bringing the test SMS CONNECTOR up 2009-11-25 04:39:10 [25005] [0] WARNING: DLR: using default 'internal' for storage type. Wed Nov 25 04:39:15 IST 2009 : Bringing the sqlbox CONNECTOR up Wed Nov 25 04:39:15 IST 2009 : Bringing the test SMS SERVER up 2009-11-25 04:39:15 [25018] [0] ERROR: connect failed 2009-11-25 04:39:15 [25018] [0] ERROR: System error 111: Connection refused 2009-11-25 04:39:15 [25018] [0] ERROR: error connecting to server `localhost' at port `14003' 2009-11-25 04:39:15 [25018] [0] PANIC: Couldn't connect to the bearerbox. 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox(gw_panic+0xe6) [0x8085946] 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox(main+0xf0a) [0x80538fa] 2009-11-25 04:39:15 [25018] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xdc) [0x77bdec] 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox [0x8052241] -- I have two config file one is sqlbox.conf and smskannel.conf. smskannel.conf group = core admin-port = 13012 smsbox-port = 13015 admin-password = bar status-password = foo log-file = /home/admin/log/gwsc.log log-level = 0 store-file = /home/admin/log/gwstore1.log access-log = /home/admin/log/gwaccess.log group = smsc smsc = smpp smsc-id = SMPP_CLIENT host = *** transceiver-mode = 1 port = smsc-username = smsc-password = * msg-id-type = 3 system-type = CMT address-range = . source-addr-ton = 1 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 group = smsbox bearerbox-host = localhost bearerbox-port = 14003 smsbox-id = smsbox sendsms-port = 13013 log-file = /home/admin/log/gwss.log access-log = /home/admin/log/gwaccess.log log-level = 0 group = sendsms-user username = * password = * max-messages = 10 concatenation = true --- sqlbox.conf --- group = sqlbox id = sqlbox smsbox-id = smsbox02 bearerbox-host = localhost bearerbox-port= 13015 smsbox-port = 14003 smsbox-port-ssl = false sql-log-table = sent_sms sql-insert-table = send_sms log-file = /home/admin/log/sqlbox.log log-level = 5 group = mysql-connection id = sqlbox host = localhost username = root password = ** database = ** port = 3306 max-connections = 40 -- Waiting for reply Regards Jyoti
Re: connection refused by smsbox to sqlbox
Sorry, my bad, the order was right. sqlbox should sit inbetween smsbox and sqlbox :P Are you sure sqlbox is running when you start smsbox? Try running each box from the command line without --daemonize and paste the relevant log entries from stdout. Regards, Alex On Wed, Nov 25, 2009 at 12:41 PM, jyotiranjan panda tell2jy...@gmail.comwrote: Dear Alex, the same error I am geting, please look into my config if I have to change anything? I am connecting as smsbox -- sqlbox bearerbox Regards Jyoti On 11/25/09, Alejandro Guerrieri alejandro.guerri...@gmail.com wrote: If you're connecting sqlbox to smsbox, as it appears to be the case, then you should start smsbox _before_ sqlbox. Hope it helps, Alex On Wed, Nov 25, 2009 at 12:19 PM, jyotiranjan panda tell2jy...@gmail.com wrote: Hi all, I am not able to run sqlbox with kannel-1.4.1. I have made a start script where I am starting bearerbox then sqlbox then smsbox. bearerbox and sqlbox are starting smoothly but when smsbox starts it gaves folowing error with panic. - Wed Nov 25 04:39:10 IST 2009 : Bringing the test SMS CONNECTOR up 2009-11-25 04:39:10 [25005] [0] WARNING: DLR: using default 'internal' for storage type. Wed Nov 25 04:39:15 IST 2009 : Bringing the sqlbox CONNECTOR up Wed Nov 25 04:39:15 IST 2009 : Bringing the test SMS SERVER up 2009-11-25 04:39:15 [25018] [0] ERROR: connect failed 2009-11-25 04:39:15 [25018] [0] ERROR: System error 111: Connection refused 2009-11-25 04:39:15 [25018] [0] ERROR: error connecting to server `localhost' at port `14003' 2009-11-25 04:39:15 [25018] [0] PANIC: Couldn't connect to the bearerbox. 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox(gw_panic+0xe6) [0x8085946] 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox(main+0xf0a) [0x80538fa] 2009-11-25 04:39:15 [25018] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xdc) [0x77bdec] 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox [0x8052241] -- I have two config file one is sqlbox.conf and smskannel.conf. smskannel.conf group = core admin-port = 13012 smsbox-port = 13015 admin-password = bar status-password = foo log-file = /home/admin/log/gwsc.log log-level = 0 store-file = /home/admin/log/gwstore1.log access-log = /home/admin/log/gwaccess.log group = smsc smsc = smpp smsc-id = SMPP_CLIENT host = *** transceiver-mode = 1 port = smsc-username = smsc-password = * msg-id-type = 3 system-type = CMT address-range = . source-addr-ton = 1 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 group = smsbox bearerbox-host = localhost bearerbox-port = 14003 smsbox-id = smsbox sendsms-port = 13013 log-file = /home/admin/log/gwss.log access-log = /home/admin/log/gwaccess.log log-level = 0 group = sendsms-user username = * password = * max-messages = 10 concatenation = true --- sqlbox.conf --- group = sqlbox id = sqlbox smsbox-id = smsbox02 bearerbox-host = localhost bearerbox-port= 13015 smsbox-port = 14003 smsbox-port-ssl = false sql-log-table = sent_sms sql-insert-table = send_sms log-file = /home/admin/log/sqlbox.log log-level = 5 group = mysql-connection id = sqlbox host = localhost username = root password = ** database = ** port = 3306 max-connections = 40 -- Waiting for reply Regards Jyoti
Re: connection refused by smsbox to sqlbox
Hi, Try commenting out the bearerbox-port setting in group smsbox. Bearerbox listens in for smsbox at 13015. BR, Nikos - Original Message - From: jyotiranjan panda To: users@kannel.org Sent: Wednesday, November 25, 2009 1:19 PM Subject: connection refused by smsbox to sqlbox Hi all, I am not able to run sqlbox with kannel-1.4.1. I have made a start script where I am starting bearerbox then sqlbox then smsbox. bearerbox and sqlbox are starting smoothly but when smsbox starts it gaves folowing error with panic. - Wed Nov 25 04:39:10 IST 2009 : Bringing the test SMS CONNECTOR up 2009-11-25 04:39:10 [25005] [0] WARNING: DLR: using default 'internal' for storage type. Wed Nov 25 04:39:15 IST 2009 : Bringing the sqlbox CONNECTOR up Wed Nov 25 04:39:15 IST 2009 : Bringing the test SMS SERVER up 2009-11-25 04:39:15 [25018] [0] ERROR: connect failed 2009-11-25 04:39:15 [25018] [0] ERROR: System error 111: Connection refused 2009-11-25 04:39:15 [25018] [0] ERROR: error connecting to server `localhost' at port `14003' 2009-11-25 04:39:15 [25018] [0] PANIC: Couldn't connect to the bearerbox. 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox(gw_panic+0xe6) [0x8085946] 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox(main+0xf0a) [0x80538fa] 2009-11-25 04:39:15 [25018] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xdc) [0x77bdec] 2009-11-25 04:39:15 [25018] [0] PANIC: /home/admin/smsbox [0x8052241] -- I have two config file one is sqlbox.conf and smskannel.conf. smskannel.conf group = core admin-port = 13012 smsbox-port = 13015 admin-password = bar status-password = foo log-file = /home/admin/log/gwsc.log log-level = 0 store-file = /home/admin/log/gwstore1.log access-log = /home/admin/log/gwaccess.log group = smsc smsc = smpp smsc-id = SMPP_CLIENT host = *** transceiver-mode = 1 port = smsc-username = smsc-password = * msg-id-type = 3 system-type = CMT address-range = . source-addr-ton = 1 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 group = smsbox bearerbox-host = localhost bearerbox-port = 14003 smsbox-id = smsbox sendsms-port = 13013 log-file = /home/admin/log/gwss.log access-log = /home/admin/log/gwaccess.log log-level = 0 group = sendsms-user username = * password = * max-messages = 10 concatenation = true --- sqlbox.conf --- group = sqlbox id = sqlbox smsbox-id = smsbox02 bearerbox-host = localhost bearerbox-port= 13015 smsbox-port = 14003 smsbox-port-ssl = false sql-log-table = sent_sms sql-insert-table = send_sms log-file = /home/admin/log/sqlbox.log log-level = 5 group = mysql-connection id = sqlbox host = localhost username = root password = ** database = ** port = 3306 max-connections = 40 -- Waiting for reply Regards Jyoti
Re: WARNING: SIGHUP received, catching and re-opening logs
So, what is the right version to use? The one that is in the manual online, or the one I see installed on my server? The one I have currently on my server says: postrotate killall -HUP bearerbox smsbox wapbox /dev/null 2 /dev/null || true Regards, Stéphane 2009/11/24 Nikos Balkanas n...@amdtelecom.net: Hi, it does, but unrelated to your problem. However, the manual needs updating, sources are correct. BR, Nikos - Original Message - From: Stephane Bruno mysubscription...@gmail.com To: Eduardo Anuel ean...@gmail.com Cc: us...@vm1.kannel.org Sent: Wednesday, November 25, 2009 12:32 AM Subject: Re: WARNING: SIGHUP received, catching and re-opening logs Hello, I effectively run Debian/Lenny. But, I did apt-get install psmisc and I saw that it is already installed. However, when I look at my logrotate file for kannel, I see a difference compared to what is suggested in the user guide. Here is what I see in the user guide : postrotate killall -HUP bearerbox smsbox wapbox || true /dev/null 2 /dev/null Here is what I have in my file: postrotate killall -HUP bearerbox smsbox wapbox /dev/null 2 /dev/null || true Does that make a difference? Is it the reason of my problem? Regards, Stιphane On Tue, Nov 24, 2009 at 10:42 AM, Eduardo Anuel ean...@gmail.com wrote: I don't know if this will help but are you sure your linux has killall installed? I use Debian GNU/Linux and since a few years ago Debian doesn't have killall in the base installation, you have to install the psmisc package after you install to get it (http://www.ducea.com/2008/08/18/killall-in-debian/). If killall isn't installed the SIGHUP signal is not received by kannel and the logs will remain being written to the file logrotate renamed instead of the new one. This happens to me every time I install a new server with kannel, just check and see if it helps you. Greetings -- Think for yourself...Question Authority
Re: WARNING: SIGHUP received, catching and re-opening logs
When in doubt, sources never lie. Manuals need updating. You probably mean logrotate, and the one you have on your server is the correct one. However, neither version is related to your problem. BR, Nikos - Original Message - From: Stephane Bruno mysubscription...@gmail.com To: Nikos Balkanas n...@amdtelecom.net Cc: Eduardo Anuel ean...@gmail.com; users@kannel.org Sent: Wednesday, November 25, 2009 8:56 PM Subject: Re: WARNING: SIGHUP received, catching and re-opening logs So, what is the right version to use? The one that is in the manual online, or the one I see installed on my server? The one I have currently on my server says: postrotate killall -HUP bearerbox smsbox wapbox /dev/null 2 /dev/null || true Regards, StΓ©phane 2009/11/24 Nikos Balkanas n...@amdtelecom.net: Hi, it does, but unrelated to your problem. However, the manual needs updating, sources are correct. BR, Nikos - Original Message - From: Stephane Bruno mysubscription...@gmail.com To: Eduardo Anuel ean...@gmail.com Cc: us...@vm1.kannel.org Sent: Wednesday, November 25, 2009 12:32 AM Subject: Re: WARNING: SIGHUP received, catching and re-opening logs Hello, I effectively run Debian/Lenny. But, I did apt-get install psmisc and I saw that it is already installed. However, when I look at my logrotate file for kannel, I see a difference compared to what is suggested in the user guide. Here is what I see in the user guide : postrotate Β Β Β Β Β Β Β Β Β killall -HUP bearerbox smsbox wapbox || true /dev/null 2 /dev/null Here is what I have in my file: postrotate Β Β Β Β Β Β Β Β Β killall -HUP bearerbox smsbox wapbox /dev/null 2 /dev/null || true Does that make a difference? Is it the reason of my problem? Regards, StΞΉphane On Tue, Nov 24, 2009 at 10:42 AM, Eduardo Anuel ean...@gmail.com wrote: I don't know if this will help but are you sure your linux has killall installed? I use Debian GNU/Linux and since a few years ago Debian doesn't have killall in the base installation, you have to install the psmisc package after you install to get it (http://www.ducea.com/2008/08/18/killall-in-debian/). If killall isn't installed the SIGHUP signal is not received by kannel and the logs will remain being written to the file logrotate renamed instead of the new one. This happens to me every time I install a new server with kannel, just check and see if it helps you. Greetings -- Think for yourself...Question Authority
Two Basic Questions, Please?
Hello, I have windows xp on my pc, and am very interested in Kannel. Before installing Linux and going through the whole process, I would like to know, if possible, please:- 1. To send sms messages, what else would one need apart from:- Kannel + GSM modem + SMSC connectivity (for recepients' network) Anything else apart from the above 3 'components'? 2. Would that arrangement be actually cheaper than to go through some bulk SMS suppliers like Clickatell, for example? I think it should, but I am not sure. I would greatly appreciate an answer. Best regards, David
Re: Two Basic Questions, Please?
Hi, 1) To push SMS you will need: Application - Kannel - GSM modem -or- Application - Kannel - SMSc link Application is some kind of web interface to facilitate and schedule pushes. Optionally you can substitute one of kannel's components, smsbox, with SQLbox for sending bulk. GSM modem provides for a low volume, cheaper usually interface using a SIM card. But volume is restricted else SIM maybe disabled. SMSc provides for a more reliable interface, however, throughput is restricted according to your contract. Volume is unlimited (of course you are charged for each SMS). You can also shop around to get the lowest price globally, whereas with a SIM you are restricted by what your operator gives you. 2) Cost depends on your volume and destination. If Clickatell is an aggeragator, ie routes SMS to other SMScs, you can do better than them. If, however, they have real SS7 connections, given their volume, it is unlikely. BR, Nikos - Original Message - From: David Halliday To: Kannel Users Sent: Wednesday, November 25, 2009 9:54 PM Subject: Two Basic Questions, Please? Hello, I have windows xp on my pc, and am very interested in Kannel. Before installing Linux and going through the whole process, I would like to know, if possible, please:- 1. To send sms messages, what else would one need apart from:- Kannel + GSM modem + SMSC connectivity (for recepients' network) Anything else apart from the above 3 'components'? 2. Would that arrangement be actually cheaper than to go through some bulk SMS suppliers like Clickatell, for example? I think it should, but I am not sure. I would greatly appreciate an answer. Best regards, David