Intermittent startup failures with TLS-enabled profiles
I have TLS enabled in my internal and internal-ipv6 profiles as per the stock configuration. When FreeSWITCH is started, sometimes either of the profiles fails to initialize, with an "Unable to create SIP UA for profile" error in the log. If I then start the profile manually sofia profile <profile-name> start from fs_cli, the profile starts up as it should. So far, this has only occurred with the profiles for which I have TLS enabled. I can do more testing to see whether that's part of the problem. Meanwhile, has anyone else seen this? It's revision 12701 from svn.
You didn't include enough info ... Distro, OS or sofia log... It could be many things... socket lingering is my best guess. /b On Mar 23, 2009, at 1:31 AM, Jason White wrote:
I have TLS enabled in my internal and internal-ipv6 profiles as per the stock configuration.
When FreeSWITCH is started, sometimes either of the profiles fails to initialize, with an "Unable to create SIP UA for profile" error in the log. If I then start the profile manually sofia profile <profile-name> start from fs_cli, the profile starts up as it should.
So far, this has only occurred with the profiles for which I have TLS enabled. I can do more testing to see whether that's part of the problem.
Meanwhile, has anyone else seen this?
It's revision 12701 from svn.
Here's a log. OS: Debian Sid, kernel 2.6.26. This happens when FreeSWITCH is started during the boot process from the init scripts, as well as subsequently if it is shut down and restarted. Sometimes it is the internal profile that fails, rather than internal-ipv6, as here. tport_tls_init_master(0x18f6bd0): tls key = /opt/freeswitch/conf/ssl/agent.pem tls_init_context: 140a90a1:SSL routines:(null):(null) tport_listen(0x7fedc0006960): tls_init_master(pf=10 tls/[2001:470:801f::2]:5061): Input/output error nta: bind([2001:470:801f::2]:5061;transport=tls): Input/output error nua: initializing SIP stack failed nua: nua_stack_deinit: entering tport_destroy(0x7fedc0006960) su_epoll_port_deinit(0x18fa810) called 2009-03-24 10:42:12 [ERR] sofia.c:750 sofia_profile_thread_run() Error Creating SIP UA for profile: internal-ipv6 It looks like an operating system issue to me.
Jason White <jason@jasonjgw.net> wrote:
It looks like an operating system issue to me.
Furthermore, the following message on linux-kernel appears relevant. http://linux.derkeiler.com/Mailing-Lists/Kernel/2005-03/3988.htm
From what I have been able to ascertain, Red Hat/Fedora kernels don't seem to give rise to this issue, whereas Debian kernels do. I haven't yet tested with a mainline kernel.org kernel.
I've read the ipv6(7) manual page now. Unfortunately echo 1 > /proc/sys/net/ipv6/bindv6only doesn't solve the problem as the manual page suggests it should:
participants (2)
-
Brian West
-
Jason White