Hi,
We have XCAP + RLS based presence setup which seems to work perfectly fine in our dev environment, however same setup in identical production environment gives no presence for contact list. When we do RLS subscribe, we receive initial Notify with full contact list retrieved from XCAP backend but aggregated presence Notify either does not come at all (most of the time) or it comes too late (sometime and take over 3-5 minutes).
We see following error in syslogs,
--
ERROR: db_mysql [km_dbase.c:129]: db_mysql_submit_query(): ERROR: driver error on query: Deadlock found when trying to get lock; try restarting transaction (1213)
ERROR: <core> [db_query.c:386]: db_do_replace(): error while submitting query
ERROR: rls [resource_notify.c:808]: rls_handle_notify(): in sql replace
--
This is quite strange since we are using db_mode = 0 in all presence related modules e.g. presence, presence_xml, pua and rls. So ideally the entire presence should be managed in in-memory hash tables and there should be no DB query, right?