[SR-Users] Re: usrloc database duplicate keys issue

2024-01-29 Thread Benoit Panizzon via sr-users
Hi Henning > somehow the usrloc internal record id got duplicated. Are you seeing this > error frequently or just on some occasions, like the restart you mentioned? > You can try to activate this parameter: > https://kamailio.org/docs/modules/5.7.x/modules/usrloc.html#usrloc.p.db_insert_update I

[SR-Users] Re: usrloc database duplicate keys issue

2024-01-27 Thread Henning Westerholt via sr-users
Hello Benoit, somehow the usrloc internal record id got duplicated. Are you seeing this error frequently or just on some occasions, like the restart you mentioned? You can try to activate this parameter: https://kamailio.org/docs/modules/5.7.x/modules/usrloc.html#usrloc.p.db_insert_update Cheers

[SR-Users] Re: usrloc database duplicate keys issue

2024-01-26 Thread Benoît Panizzon via sr-users
Hi Fred > Did you upgrade the database (assuming an upgrade from pre-5.6): > > https://www.kamailio.org/wikidocs/install/upgrade/5.5.x-to-5.6.0/ Yes I did. I even remember reading this article. That is the only change, right? -- add index on connection_id for usrloc module location table CREAT

[SR-Users] Re: usrloc database duplicate keys issue

2024-01-26 Thread Fred Posner via sr-users
Did you upgrade the database (assuming an upgrade from pre-5.6): https://www.kamailio.org/wikidocs/install/upgrade/5.5.x-to-5.6.0/ Regards, Fred Posner p: +1 (352) 664-3733 > On Jan 26, 2024, at 8:06 AM, Benoît Panizzon via sr-users > wrote: > > Hi Henning > > Missed the first line with

[SR-Users] Re: usrloc database duplicate keys issue

2024-01-26 Thread Benoît Panizzon via sr-users
Hi Henning Missed the first line with the specific issue: Jan 26 07:27:45 dev-cpereg01 kamailio[2708456]: ERROR: db_mysql [km_dbase.c:122]: db_mysql_submit_query(): driver error on query: Duplicate entry 'uloc-65b237f8-28983d-1' for key 'location.ruid_idx' (1062) Jan 26 07:27:45 dev-cpereg01 ka

[SR-Users] Re: usrloc database duplicate keys issue

2024-01-26 Thread Henning Westerholt via sr-users
Hello, are there more specific errors e.g. from the db_mysql module? Otherwise enable query logging or checkout the DB error log might help you here. If you run Kamailio in debug mode you will also see all the queries on that side. Cheers, Henning -- Henning Westerholt – https://skalatan.d