Do you have any information about what was happening during that four-minute period? I would have to wonder if there was something goofy happening with disk i/o or some other weirdness. The hard part is going to be reproducing it. If you are able to reproduce the symptoms then getting a gcore while the system is in the weird state might be useful for debugging purposes.<div>
<br></div><div>What kind of load is on this system? Also, what are the system specs?</div><div><br></div><div>-MC<br><br><div class="gmail_quote">On Mon, Jan 17, 2011 at 1:48 PM, Vitalii Colosov <span dir="ltr"><<a href="mailto:vetali100@gmail.com">vetali100@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<div><br></div><div>I am using cron job which executes: killall -HUP freeswitch</div><div><br></div><div>Usually new cdr file is created every one minute:</div>
<div><br></div><div>2011-01-17 16:55:01.583043 [NOTICE] mod_cdr_csv.c:123 Rotated CDR logfile /usr/local/freeswitch/log/cdr-csv/Master.csv</div>
<div>2011-01-17 16:56:01.861371 [NOTICE] mod_cdr_csv.c:123 Rotated CDR logfile /usr/local/freeswitch/log/cdr-csv/Master.csv</div><div>2011-01-17 16:57:44.338974 [NOTICE] mod_cdr_csv.c:123 Rotated CDR logfile /usr/local/freeswitch/log/cdr-csv/Master.csv</div>
<div><br></div><div><br></div><div>Today I got some problems with network DB connection, as this also can be seen by few lines (I am using xml_curl to serve registrations):<br></div><div><br></div><div>2011-01-17 16:59:04.382035 [ERR] switch_xml.c:1621 Error[[error near line 1]: root tag missing]</div>
<div><div><div><div>2011-01-17 17:00:24.443196 [ERR] switch_xml.c:1621 Error[[error near line 1]: root tag missing]</div><div>2011-01-17 17:00:30.997069 [ERR] switch_xml.c:1621 Error[[error near line 1]: root tag missing]</div>
<div>2011-01-17 17:00:30.997069 [WARNING] sofia_reg.c:2171 Can't find user [1000@xxx]</div><div>You must define a domain called 'xxx' in your directory and add a user with the id="1000" attribute</div>
<div>and you must configure your device to use the proper domain in it's authentication credentials.</div></div></div></div><div>...</div><div><br></div><div>And I did not get any CDR file between 16:57 and 17:01.</div>
<div><br></div><div><br></div><div>CDR rotation was restored after 4 minutes - 17:01 - BUT 3 times in 1 second!</div><div><br></div><div><div>2011-01-17 17:01:<b>44</b>.540795 [NOTICE] mod_cdr_csv.c:123 Rotated CDR logfile /usr/local/freeswitch/log/cdr-csv/Master.csv</div>
<div>2011-01-17 17:01:<b>44</b>.540795 [NOTICE] mod_cdr_csv.c:123 Rotated CDR logfile /usr/local/freeswitch/log/cdr-csv/Master.csv</div><div>2011-01-17 17:01:<b>44</b>.542071 [NOTICE] mod_cdr_csv.c:123 Rotated CDR logfile /usr/local/freeswitch/log/cdr-csv/Master.csv</div>
</div><div><br></div><div><br></div><div>The same repeated again in few minutes:</div><div><br></div><div><div>2011-01-17 17:05:<b>09</b>.701507 [NOTICE] mod_cdr_csv.c:123 Rotated CDR logfile /usr/local/freeswitch/log/cdr-csv/Master.csv</div>
<div>2011-01-17 17:05:<b>09</b>.701507 [NOTICE] mod_cdr_csv.c:123 Rotated CDR logfile /usr/local/freeswitch/log/cdr-csv/Master.csv</div><div>2011-01-17 17:05:<b>09</b>.853446 [NOTICE] mod_cdr_csv.c:123 Rotated CDR logfile /usr/local/freeswitch/log/cdr-csv/Master.csv</div>
</div><div><br></div><div><div>2011-01-17 17:05:<b>14</b>.949815 [NOTICE] mod_cdr_csv.c:123 Rotated CDR logfile /usr/local/freeswitch/log/cdr-csv/Master.csv</div><div>2011-01-17 17:05:<b>14</b>.952841 [NOTICE] mod_cdr_csv.c:123 Rotated CDR logfile /usr/local/freeswitch/log/cdr-csv/Master.csv</div>
</div><div><br></div><div> </div><div>Because of this, I lost few call records (it is confirmed).</div><div><br></div><div>File at 17:05:<b>14</b>.949815 (which contained 1 call record - as per logs) was overwritten by empty file at 17:05:<b>14</b>.952841.</div>
<div><br></div><div><br></div><div><br></div><div>Basically my question is - is it expected behavior that such [rarely expected] errors make it behave this way?</div><div><br></div><div><br></div><div>It is Freeswitch 1.0.7 on Ubuntu Server 10.4.</div>
<div><br></div><div>Thank you,</div><div>Vitalie</div><div><br></div><div><div><br></div></div><div><br></div><div><br></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>