Showing posts with label kannel error. Show all posts
Showing posts with label kannel error. Show all posts

Friday, November 11, 2022

Ubuntu 20 : Kannel : Cannot start with store-file failing System error 13

Tried Kannel on an Ubuntu 20 SBC and got this error when testing the store-file

2022-11-11 00:47:47 [1337] [0] INFO: Cannot open any store file, starting a new one
2022-11-11 00:47:47 [1337] [0] ERROR: Failed to open '/etc/kannel/store' for writing, cannot create store-file
2022-11-11 00:47:47 [1337] [0] ERROR: System error 13: Permission denied
2022-11-11 00:47:47 [1337] [0] PANIC: Cannot start with store-file failing

Doesn't get resolved through usermod, my installation is under root.

Solution was to move the store file to a folder accessible to Kannel, so I placed it in the log file for now.

store-type = file
store-location = "/var/log/kannel/store"

That works.

Friday, July 26, 2019

Ubuntu 18 : Kannel : Sendsms failed : Connection refused

accessing the sendsms function returns "failed: Connection refused."

a telnet to the smsbox port has a similar response, which means no service is accessible on that port
allowing the port on the firewall still returns the same status

tail on the bearer box log shows:
INFO: ----------------------------------------
INFO: Kannel bearerbox II version 1.4.4 starting
INFO: MAIN: Start-up done, entering mainloop
INFO: AT2[xxxxxxxxxxx]: Logging in
INFO: AT2[xxxxxxxxxxx]: init device
INFO: AT2[xxxxxxxxxxx]: speed set to 115200
INFO: AT2[xxxxxxxxxxx]: Phase 2+ is supported
INFO: AT2[xxxxxxxxxxx]: AT SMSC successfully opened.

compared to a working installation, it's missing a "INFO: Client connected from <127 .0.0.1="">" message. hmmm... something is not running. looks like the smsbox is not starting by default.

modify /etc/defaults/kannel to enable smsbox
#START_WAPBOX=1
START_SMSBOX=1

restarting the service now shows:
INFO: ----------------------------------------
INFO: Kannel bearerbox II version 1.4.4 starting
INFO: MAIN: Start-up done, entering mainloop
INFO: AT2[xxxxxxxxxxx]: Logging in
INFO: AT2[xxxxxxxxxxx]: init device
INFO: AT2[xxxxxxxxxxx]: speed set to 115200
INFO: AT2[xxxxxxxxxxx]: Phase 2+ is supported
INFO: AT2[xxxxxxxxxxx]: AT SMSC successfully opened.
INFO: Client connected from <127 .0.0.1="">

a telnet test to the smsbox port connects!
sendsms works!</127></127>

Ubuntu 16 : Kannel : System error 13

got an error 13 when running kannel service

AT2[xxxxxxxxxxx]: open failed!
ERRNO=13 ERROR: System error 13: Permission denied

to resolve, add kannel to dialout group

usermod -a -G dialout kannel


Thursday, October 03, 2013

kannel on linux: gw_gethostbyname error

newly installed kannel gets:
2013-09-05 11:37:26 [11994] [0] ERROR: Error while gw_gethostbyname occurs.
2013-09-05 11:37:26 [11994] [0] ERROR: System error 1: Operation not permitted
2013-09-05 11:37:26 [11994] [0] ERROR: Can't find out official hostname for this host, using `<hostname>' instead.


to resolve, add hostname in /etc/hosts file.

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...