Sorry I misunderstood what you want me to do: please just forget my previous email.<br><br>Now I'm going to generate some load to reproduce the failure and I'll send you the feedback you expect.<br><br>-pascal<br><br>
<div class="gmail_quote">On Fri, Jun 5, 2009 at 2:15 PM, Pascal Maugeri <span dir="ltr"><<a href="mailto:pascal.maugeri@gmail.com">pascal.maugeri@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br><br>I just applied your patch and I get - with no traffic yet - continusouly this log:<br><br>Jun 5 16:07:24 sandbox /usr/sbin/kamailio[14713]: ERROR:db_mysql:db_mysql_submit_query: submit_query(): delete from active_watchers where expires<1244210834<br>
Jun 5 16:07:24 sandbox /usr/sbin/kamailio[14713]: ERROR:db_mysql:db_mysql_submit_query: submit_query(): select id from watchers where inserted_time<1244124444 AND status=2<br>Jun 5 16:07:24 sandbox /usr/sbin/kamailio[14713]: ERROR:db_mysql:db_mysql_submit_query: submit_query(): select username,domain,etag,event from presentity where expires<1244210844 order by username<br>
<br>and it never stops.<br><br>I noticed that this occurs when presence server cleans or updates database. So I change these configuration parameters:<br><br><div style="margin-left: 40px;">modparam("presence", "db_update_period", 10)<br>
modparam("presence", "clean_period", 10)<br></div><br>It changes the frequency of the log but the log always appear periodically (for clean/update actions).<br><br>Regards,<br><font color="#888888">Pascal</font><div>
<div></div><div class="h5"><br><br><div class="gmail_quote">
On Fri, Jun 5, 2009 at 10:04 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br>
<br>
On 06/05/2009 10:55 AM, Daniel-Constantin Mierla wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
On 06/04/2009 03:14 PM, Pascal Maugeri wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
ok, I've applied your patch changed my kamailio.cfg to have debug=5 and restarted the test.<br>
I will send you send feedback ASAP<br>
</blockquote>
ok, thanks. If it is too annoying, you can change the LM_DBG to LM_ERR or something else (like in attached patch).<br>
</blockquote></div>
... patch attached now.<div><div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-pascal<br>
<br>
On Thu, Jun 4, 2009 at 12:09 PM, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>> wrote:<br>
<br>
Hello,<br>
<br>
<br>
On 06/04/2009 11:49 AM, Pascal Maugeri wrote:<br>
<br>
Hello<br>
<br>
I'm getting these errors using Kamailio 1.5.1:<br>
<br>
Jun 4 12:25:10 sandbox /usr/sbin/kamailio[5060]:<br>
ERROR:db_mysql:db_mysql_submit_query: driver error on query:<br>
Commands out of sync; you can't run this command now<br>
Jun 4 12:25:10 sandbox /usr/sbin/kamailio[5060]:<br>
ERROR:core:db_do_update: error while submitting query<br>
Jun 4 12:25:10 sandbox /usr/sbin/kamailio[5060]:<br>
ERROR:presence:update_db_subs: updating in database<br>
Jun 4 12:25:10 sandbox /usr/sbin/kamailio[5060]:<br>
ERROR:db_mysql:db_mysql_submit_query: driver error on query:<br>
Commands out of sync; you can't run this command now<br>
Jun 4 12:25:10 sandbox /usr/sbin/kamailio[5060]:<br>
ERROR:core:db_do_query: error while submitting query<br>
Jun 4 12:25:10 sandbox /usr/sbin/kamailio[5060]:<br>
ERROR:presence:msg_watchers_clean: querying database for<br>
expired messages<br>
Jun 4 12:25:10 sandbox /usr/sbin/kamailio[5060]:<br>
ERROR:db_mysql:db_mysql_submit_query: driver error on query:<br>
Commands out of sync; you can't run this command now<br>
Jun 4 12:25:10 sandbox /usr/sbin/kamailio[5060]:<br>
ERROR:core:db_do_query: error while submitting query<br>
Jun 4 12:25:10 sandbox /usr/sbin/kamailio[5060]:<br>
ERROR:presence:msg_presentity_clean: querying database for<br>
expired messages<br>
<br>
I haven't seen anything similar in the issue tracker ? Is it a<br>
new bug ? How can I track it down ?<br>
<br>
there seems to be a case when the result from db is not freed<br>
before making a new query. To sort it out, please apply the patch<br>
attached and send me the last two queries you get for the same<br>
process - the one that gives the error and the one before.<br>
<br>
<br>
Should<br>
<br>
Thanks,<br>
Daniel<br>
<br>
<br>
-- Daniel-Constantin Mierla<br>
<a href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote>
<br>
</blockquote>
<br>
-- <br>
Daniel-Constantin Mierla<br>
<a href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br>
<br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>