Hi all
Just installed a kamailio 5.4.1 for a simple proxy scenario.
I created the version,address and trusted tables, and added some ips to the trusted via kamctl.
If I execute "kamctl trusted show" I see the list of servers. But with "kamctl trusted dump" I receive
{ "jsonrpc": "2.0", "error": { "code": 500, "message": "No trusted table" }, "id": 13063 }
when I start kamailio with debug I see these messages:
b_do_submit_query(): submitted query: select `table_version` from `version` where `table_name`='trusted', result 0
my version table looks like this:
+----+------------+---------------+ | id | table_name | table_version | +----+------------+---------------+ | 1 | version | 1 | | 2 | trusted | 6 | | 3 | address | 6 | +----+------------+---------------+
any hints?
cheers,
Jon
Dump should be the in memory, and show is from the db.
Did you try a reload?
El Sat, 17 Oct 2020 12:37:48 -0400 Fred Posner fred@palner.com escribió:
Dump should be the in memory, and show is from the db.
Did you try a reload?
Also restarts :)
the logs for a reload:
# kamctl trusted reload { "jsonrpc": "2.0", "error": { "code": 500, "message": "Reload failed." }, "id": 20276 }
DEBUG: jsonrpc_fifo_server(): preparing to execute fifo jsonrpc [{"jsonrpc": "2.0", "method": "permissions.trustedReload", "reply_name": "kamailio_receiver_20276", "id": 20276}]
ERROR: permissions [trusted.c:69]: reload_trusted_table(): in-memory hash table not initialized
Sorry for the noise.
I had modparam db_url but no db_mode
On Sat, 2020-10-17 at 19:14 +0200, Jon Bonilla (Manwe) wrote:
Sorry for the noise.
I had modparam db_url but no db_mode
Great!
You probably will help someone in the future having this same issue. Thanks for following up and have a great weekend.
On Sat, 2020-10-17 at 19:08 +0200, Jon Bonilla (Manwe) wrote:
[snip] Also restarts :)
the logs for a reload:
# kamctl trusted reload { "jsonrpc": "2.0", "error": { "code": 500, "message": "Reload failed." }, "id": 20276 }
DEBUG: jsonrpc_fifo_server(): preparing to execute fifo jsonrpc [{"jsonrpc": "2.0", "method": "permissions.trustedReload", "reply_name": "kamailio_receiver_20276", "id": 20276}]
ERROR: permissions [trusted.c:69]: reload_trusted_table(): in-memory hash table not initialized [snip]
I think perhaps we would need more information to help troubleshoot, such as the module parameters.