[SR-Users] Kamailio : kamctl address reload with HAProxy

Henning Westerholt hw at gilawa.com
Sun Mar 27 22:52:15 CEST 2022


it seems the data that gets delivered to the Kamailio is corrupted. Analyse it further e.g. with a network trace, wireshark etc..



Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Paclinio
Sent: Friday, March 25, 2022 5:22 PM
To: sr-users at lists.kamailio.org
Subject: [SR-Users] Kamailio : kamctl address reload with HAProxy

Dear colleagues,

I've installed a Galera cluster with a HAProxy that kamailio interacts with.
Kamailio's DBURL is linked to the proxy that will contact the databases.
Kamailio works fine except when I need to reload something from the database (Using kamctl).

When cache and database are the same I receive

sudo kamctl address reload
  "jsonrpc":  "2.0",
  "result": "Reload OK",
  "id": 13111

Now when I have something using kamctl, it still works and is replaced on all my databases.

sipsecure at kamailio:~$ sudo kamctl address add 0 32 0 Test
-e \E[37;33mINFO: execute '/sbin/kamctl address reload' to synchronize cache and database

 Then when i try to reload i receive

sipsecure at kamailio:~$ sudo kamctl address reload
  "jsonrpc":  "2.0",
  "error":  {
    "code": 500,
    "message":  "Reload failed."
  "id": 13504

And when I'm going to read my logs to see a error, I only see that little sentence

Mar 25 17:14:40 kamailio /usr/sbin/kamailio[13343]: ERROR: permissions [address.c:233]: reload_address_db_table(): database problem - invalid record

Could I have some explanation ?

Thank you.

Virus-free. www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220327/089dfd88/attachment.htm>

More information about the sr-users mailing list