<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Thanks, that solves the reboot issue.</p>
<p>I am a bit concerned about potential database corruption, since I sometimes get this 'nua' error when just stopping the profile. It seems like FS isn't waiting long enough for it to finish whatever it's doing, and small flash drives don't have a ram cache to flush data into in a hurry. That leaves me with enabling writeback caching on the file system, which I'm not too fond of.....</p>
<p>Francis</p>
<p>&nbsp;</p>
<div>&nbsp;</div>
<p>On 2014-05-08 07:08, Anthony Minessale wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">Hi,
<div>&nbsp;</div>
<div>edit&nbsp;/usr/local/freeswitch/conf/autoload_configs/sofia.conf.xml</div>
<div>&nbsp;</div>
<div>uncomment this:</div>
<div>&lt;!-- &lt;param name="auto-restart" value="false"/&gt; --&gt;&nbsp;</div>
<div>&nbsp;</div>
<div>to look like this:</div>
<div>&nbsp;</div>
<div>&lt;param name="auto-restart" value="false"/&gt;</div>
<div>&nbsp;</div>
<div>Then restart FS.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Your route to the internet or the IP being used by the box is flapping or FS is falsely detecting it to be the case.</div>
<div>This param should disable that behavior.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
</div>
<div class="gmail_extra"><br /><br />
<div class="gmail_quote">On Wed, May 7, 2014 at 8:52 AM, Francis <span>&lt;<a href="mailto:sms@icefire.qza.net.au">sms@icefire.qza.net.au</a>&gt;</span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0  0  0  .8ex; border-left: 1px  #ccc  solid; padding-left: 1ex;">This had me stumped for two days. The server would reboot, FS would come<br /> up and profiles would work for a few seconds, then fail. Checking the<br /> profile status showed it missing, but manually starting it, everything<br /> worked?<br /><br /> The trigger was the ipv6 interface coming up late, causing the profiles<br /> to reload:<br /><br /><br /> 2014-05-08 03:51:39.443205 [INFO] mod_sofia.c:5751 EVENT_TRAP: IP change<br /> detected<br /> 2014-05-08 03:51:39.443205 [INFO] mod_sofia.c:5752 IP change detected<br /> []-&gt;[] [::1]-&gt;[2632:f0d0:4211:a::2]<br /> 2014-05-08 03:51:39.803298 [NOTICE] sofia_glue.c:5885 Reload XML<br /> [Success]<br /> 2014-05-08 03:51:39.803298 [INFO] mod_enum.c:876 ENUM Reloaded<br /> 2014-05-08 03:51:39.803298 [INFO] switch_time.c:1191 Timezone reloaded<br /> 530 definitions<br /> 2014-05-08 03:51:39.843230 [NOTICE] sofia_reg.c:135 UN-Registering<br /> footel<br /> 2014-05-08 03:51:40.843346 [NOTICE] sofia.c:2682 Waiting for worker<br /> thread<br /> 2014-05-08 03:51:40.843346 [INFO] switch_core_sqldb.c:1495<br /> sofia:external Destroying SQL queue.<br /> 2014-05-08 03:51:40.963253 [NOTICE] sofia.c:2682 Waiting for worker<br /> thread<br /> 2014-05-08 03:51:40.963253 [INFO] switch_core_sqldb.c:1495<br /> sofia:internal Destroying SQL queue.<br /> 2014-05-08 03:51:41.043214 [INFO] switch_core_sqldb.c:1439<br /> sofia:external Stopping SQL thread.<br /><br /><br /> .... which wasn't a problem, but then this error would pop up halfway<br /> through the reload:<br /><br /><br /> 2014-05-08 03:51:43.883336 [NOTICE] sofia.c:2682 Waiting for worker<br /> thread<br /> nua.c:223 nua_destroy() nua_destroy(0x90c7a98): FATAL: nua_shutdown not<br /> completed<br /> 2014-05-08 03:51:43.883336 [INFO] switch_core_sqldb.c:1495<br /> sofia:int-15000 Destroying SQL queue.<br /> 2014-05-08 03:51:44.083185 [INFO] switch_core_sqldb.c:1439<br /> sofia:int-15000 Stopping SQL thread.<br /><br /><br /> .... resulting in this error:<br /><br /><br /> 2014-05-08 03:51:44.083185 [NOTICE] sofia.c:4874 Started Profile<br /> int-15000 [sofia_reg_int-15020]<br /> 2014-05-08 03:51:44.083185 [DEBUG] sofia.c:2413 Creating agent for<br /> int-15000<br /> 2014-05-08 03:51:44.103652 [ERR] sofia.c:2506 Error Creating SIP UA for<br /> profile: int-15000 (sip:mod_sofia@115.89.334.121:15000;maddr=10.5.5.250)<br /> The likely causes for this are:<br /> 1) Another application is already listening on the specified address.<br /><br /> 2) The IP the profile is attempting to bind to is not local to this<br /> system.<br /><br /><br /> So as an experiment, I deleted all the db's in /var/lib/freeswitch/db<br /> and the error disappeared, for two reboots. On the third reboot, the<br /> db's had grown again (less than 1mb all told) and the errors resurfaced.<br /> I also get the same error intermittently when restarting the profile<br /> manually. However, stopping the profile, waiting 10 seconds, then<br /> starting it again works fine.<br /><br /> The system is FreeSWITCH (Version 1.2.23 -1 32bit) on an Atom N270<br /> 1GBram 32GB USB3 MLC flash, which I thought would be fast enough to<br /> handle this. It seems like nua isnt' able to finish whatever it's doing<br /> before FS tries to restart the profile, causing it to assume something<br /> else is listening on the address and fail loading the profile. Is there<br /> any way I can extend the restart timeout to avoid this?<br /><br /> -Francis<br /><br /><br /><br /> _________________________________________________________________________<br /> Professional FreeSWITCH Consulting Services:<br /><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br /><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><br /><br /> FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br /><a href="http://www.cudatel.com">http://www.cudatel.com</a><br /><br /> Official FreeSWITCH Sites<br /><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br /><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><br /><a href="http://www.cluecon.com">http://www.cluecon.com</a><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">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br /> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br /><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></blockquote>
</div>
<br /><br clear="all" />
<div>&nbsp;</div>
-- <br />
<div dir="ltr">Anthony Minessale II &nbsp; &nbsp; &nbsp; ♬ @anthmfs&nbsp;&nbsp;♬ @FreeSWITCH&nbsp;&nbsp;♬
<div><br />
<div>☞ <a href="http://freeswitch.org/">http://freeswitch.org/</a> &nbsp;☞ <a href="http://cluecon.com/">http://cluecon.com/</a> &nbsp;☞ <a href="http://twitter.com/FreeSWITCH">http://twitter.com/FreeSWITCH</a></div>
<div>
<div>☞ <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch&nbsp;☞ <span style="text-decoration: underline;"><a href="http://freeswitch.org/g+">http://freeswitch.org/g+</a></span><br /><br /></div>
<div>ClueCon Weekly Development Call&nbsp;</div>
<div>☎&nbsp;<a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a> &nbsp;☎ +19193869900&nbsp;</div>
<div>&nbsp;</div>
</div>
</div>
</div>
</div>
<br />
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
</body></html>