[FreeBSD 11] FS 1.8.0 needs -KILL signal to stop after shutdown issued
Hi, I'm planning to upgrade an existing home FS setup to the latest available version. Version used : FreeSWITCH Version 1.8.0+git~20170802T153919Z~417639a1b1~64bit (git 417639a 2017-08-02 15:39:19Z 64bit) local_ip_v4 is setup in vars.xml as it seems autodetection doesn't fully work. When stopping FS by running "shutdown", FS goes through the whole stop sequence but doesn't exit in the end, I have to send -KILL signal to the process to stop it. freeswitch.log doesn't show any immediate reason. ptrace of the FS process while stopping shows what seems to be a loop : 17589 freeswitch RET select 0 17589 freeswitch CALL select(0,0,0,0,0x7fffdfeccf00) 17589 freeswitch RET _umtx_op -1 errno 60 Operation timed out 17589 freeswitch CALL _umtx_op(0x80062e098,UMTX_OP_WAIT_UINT_PRIVATE,0,0x18,0x7fffdfe8fe28) 17589 freeswitch RET select 0 17589 freeswitch CALL select(0,0,0,0,0x7fffdfffdf10) 17589 freeswitch RET _umtx_op -1 errno 60 Operation timed out 17589 freeswitch CALL _umtx_op(0x80062e098,UMTX_OP_WAIT_UINT_PRIVATE,0,0x18,0x7fffdfe8fe28) 17589 freeswitch RET select 0 17589 freeswitch CALL select(0,0,0,0,0x7fffdfeccf00) 17589 freeswitch RET _umtx_op -1 errno 60 Operation timed out 17589 freeswitch CALL _umtx_op(0x80062e098,UMTX_OP_WAIT_UINT_PRIVATE,0,0x18,0x7fffdfe8fe28) Supplemental information : - 1.6.19 shows the same issue. - FS installed and ran as root or unprivileged user shows the same issue. Should I file a JIRA, please ? Thanks Éric Masson
You should NEVER set local_ip_v4 in vars.xml, You should use an arbitrary variable for whatever config option you're trying to tweak in vars.xml and use that elsewhere in your configs. Try without setting local_ip_v4 in vars.xml. If the issue goes away file a JIRA either way. /b On Thu, Aug 10, 2017 at 7:03 AM, Eric Masson <emss@free.fr> wrote:
Hi,
I'm planning to upgrade an existing home FS setup to the latest available version.
Version used : FreeSWITCH Version 1.8.0+git~20170802T153919Z~417639a1b1~64bit (git 417639a 2017-08-02 15:39:19Z 64bit)
local_ip_v4 is setup in vars.xml as it seems autodetection doesn't fully work.
When stopping FS by running "shutdown", FS goes through the whole stop sequence but doesn't exit in the end, I have to send -KILL signal to the process to stop it.
freeswitch.log doesn't show any immediate reason.
ptrace of the FS process while stopping shows what seems to be a loop : 17589 freeswitch RET select 0 17589 freeswitch CALL select(0,0,0,0,0x7fffdfeccf00) 17589 freeswitch RET _umtx_op -1 errno 60 Operation timed out 17589 freeswitch CALL _umtx_op(0x80062e098,UMTX_OP_W AIT_UINT_PRIVATE,0,0x18,0x7fffdfe8fe28) 17589 freeswitch RET select 0 17589 freeswitch CALL select(0,0,0,0,0x7fffdfffdf10) 17589 freeswitch RET _umtx_op -1 errno 60 Operation timed out 17589 freeswitch CALL _umtx_op(0x80062e098,UMTX_OP_W AIT_UINT_PRIVATE,0,0x18,0x7fffdfe8fe28) 17589 freeswitch RET select 0 17589 freeswitch CALL select(0,0,0,0,0x7fffdfeccf00) 17589 freeswitch RET _umtx_op -1 errno 60 Operation timed out 17589 freeswitch CALL _umtx_op(0x80062e098,UMTX_OP_W AIT_UINT_PRIVATE,0,0x18,0x7fffdfe8fe28)
Supplemental information : - 1.6.19 shows the same issue. - FS installed and ran as root or unprivileged user shows the same issue.
Should I file a JIRA, please ?
Thanks
Éric Masson
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com Book a phone call (CST) <https://freeswitch.com/appointment> Allison prompts for FreeSWITCH: *https://www.gofundme.com/allison-prompts-for-freeswitch* <https://www.gofundme.com/allison-prompts-for-freeswitch> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *Skype:*briankwest
On Thu, Aug 10, 2017 at 7:03 AM, Eric Masson <emss@free.fr> wrote:
Hi,
I'm planning to upgrade an existing home FS setup to the latest available version.
Version used : FreeSWITCH Version 1.8.0+git~20170802T153919Z~417639a1b1~64bit (git 417639a 2017-08-02 15:39:19Z 64bit)
local_ip_v4 is setup in vars.xml as it seems autodetection doesn't fully work.
This doesn't surprise me, this code probably needs modification for bsd. I'm happy to review contributions along these lines but don't have any plans to look into this issue myself.
When stopping FS by running "shutdown", FS goes through the whole stop sequence but doesn't exit in the end, I have to send -KILL signal to the process to stop it.
After you do a shutdown and logs stop doing anything, let it settle for a second and pull a core file of the process, inspect the core file t see what exactly is stuck.
freeswitch.log doesn't show any immediate reason.
ptrace of the FS process while stopping shows what seems to be a loop : 17589 freeswitch RET select 0 17589 freeswitch CALL select(0,0,0,0,0x7fffdfeccf00) 17589 freeswitch RET _umtx_op -1 errno 60 Operation timed out 17589 freeswitch CALL _umtx_op(0x80062e098,UMTX_OP_WAIT_UINT_PRIVATE,0,0x18,0x7fffdfe8fe28) 17589 freeswitch RET select 0 17589 freeswitch CALL select(0,0,0,0,0x7fffdfffdf10) 17589 freeswitch RET _umtx_op -1 errno 60 Operation timed out 17589 freeswitch CALL _umtx_op(0x80062e098,UMTX_OP_WAIT_UINT_PRIVATE,0,0x18,0x7fffdfe8fe28) 17589 freeswitch RET select 0 17589 freeswitch CALL select(0,0,0,0,0x7fffdfeccf00) 17589 freeswitch RET _umtx_op -1 errno 60 Operation timed out 17589 freeswitch CALL _umtx_op(0x80062e098,UMTX_OP_WAIT_UINT_PRIVATE,0,0x18,0x7fffdfe8fe28)
Supplemental information : - 1.6.19 shows the same issue. - FS installed and ran as root or unprivileged user shows the same issue.
Should I file a JIRA, please ?
Thanks
Éric Masson
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Book a phone call (CST) <https://freeswitch.com/appointment>
Allison prompts for FreeSWITCH:
*https://www.gofundme.com/allison-prompts-for-freeswitch* <https://www.gofundme.com/allison-prompts-for-freeswitch>
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *Skype:*briankwest _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Le 10/08/2017 à 15:57, Brian West a écrit : Hi Brian,
You should NEVER set local_ip_v4 in vars.xml, You should use an arbitrary variable for whatever config option you're trying to tweak in vars.xml and use that elsewhere in your configs.
Ok, I was setting this var to overcome an issue in the ip v4 address detection that leads to the following error : 2017-08-10 18:47:52.414234 [ERR] sofia.c:3220 Error Creating SIP UA for profile: internal (sip:mod_sofia@:5060;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC) 2017-08-10 18:47:52.414234 [ERR] sofia.c:3230 Error Creating SIP UA for profile: internal (sip:mod_sofia@:5060;transport=udp,tcp) The likely causes for this are: 1) Another application is already listening on the specified address. 2) The IP the profile is attempting to bind to is not local to this system. local_ip_v4 is not set : freeswitch@newsrv.interne.associated-bears.org> eval ${local_ip_v4} freeswitch@newsrv.interne.associated-bears.org> Setting local_ip_v4 was suggested in the following thread : http://freeswitch-users.2379917.n2.nabble.com/Error-Creating-SIP-UA-for-prof...
Try without setting local_ip_v4 in vars.xml. If the issue goes away file a JIRA either way.
Nope, the issue is still present. JIRA filed as https://freeswitch.org/jira/browse/FSCOMM-20 Hope I created it in the right section. Éric Masson
Never set it file a JIRA On Thu, Aug 10, 2017 at 1:52 PM Eric Masson <emss@free.fr> wrote:
Le 10/08/2017 à 15:57, Brian West a écrit :
Hi Brian,
You should NEVER set local_ip_v4 in vars.xml, You should use an arbitrary variable for whatever config option you're trying to tweak in vars.xml and use that elsewhere in your configs.
Ok, I was setting this var to overcome an issue in the ip v4 address detection that leads to the following error : 2017-08-10 18:47:52.414234 [ERR] sofia.c:3220 Error Creating SIP UA for profile: internal (sip:mod_sofia@:5060;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC) 2017-08-10 18:47:52.414234 [ERR] sofia.c:3230 Error Creating SIP UA for profile: internal (sip:mod_sofia@:5060;transport=udp,tcp) The likely causes for this are: 1) Another application is already listening on the specified address. 2) The IP the profile is attempting to bind to is not local to this system.
local_ip_v4 is not set : freeswitch@newsrv.interne.associated-bears.org> eval ${local_ip_v4}
freeswitch@newsrv.interne.associated-bears.org>
Setting local_ip_v4 was suggested in the following thread :
http://freeswitch-users.2379917.n2.nabble.com/Error-Creating-SIP-UA-for-prof...
Try without setting local_ip_v4 in vars.xml. If the issue goes away file a JIRA either way.
Nope, the issue is still present.
JIRA filed as https://freeswitch.org/jira/browse/FSCOMM-20 Hope I created it in the right section.
Éric Masson
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com Book a phone call (CST) <https://freeswitch.com/appointment> Allison prompts for FreeSWITCH: *https://www.gofundme.com/allison-prompts-for-freeswitch* <https://www.gofundme.com/allison-prompts-for-freeswitch> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *Skype:*briankwest
Le 10/08/2017 à 20:57, Brian West a écrit : Hi Brian,
Never set it file a JIRA
https://freeswitch.org/jira/browse/FS-10581 FSCOMM-20 has been closed, issue recreated as : https://freeswitch.org/jira/browse/FS-10580 Thanks again for your support. Éric Masson
participants (3)
-
Brian West
-
Eric Masson
-
Michael Jerris