[Freeswitch-users] FS service issues (systemd)

Mundkowsky, Robert rmundkowsky at ets.org
Wed Jun 28 13:52:19 UTC 2017


Check the XML anyways, there are some free online validators.

Might see if there is any info on these pages that might help:

# See https://freeswitch.org/confluence/display/FREESWITCH/Troubleshooting+Debugging
# See https://wiki.freeswitch.org/wiki/Troubleshooting_Freeswitch

Robert

From: FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Rick Jarvis
Sent: Wednesday, June 28, 2017 9:43 AM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Subject: Re: [Freeswitch-users] FS service issues (systemd)

I’ve tried deleting the db files but no difference unfortunately. Starting manually or even just restarting the service works, so I believe the XML is all as it should be. This is my output from systemctl when it’s in this ‘hung' state:

● freeswitch.service - freeswitch
   Loaded: loaded (/etc/systemd/system/freeswitch.service; enabled)
   Active: active (running) since Wed 2017-06-28 14:36:23 BST; 3min 27s ago
  Process: 452 ExecStart=/usr/bin/freeswitch -ncwait -nonat (code=exited, status=0/SUCCESS)
 Main PID: 472 (freeswitch)
   CGroup: /system.slice/freeswitch.service
           └─472 /usr/bin/freeswitch -ncwait -nonat

Jun 28 14:36:20 server systemd[1]: Starting freeswitch...
Jun 28 14:36:20 server freeswitch[452]: 472 Backgrounding.
Jun 28 14:36:23 server freeswitch[452]: FreeSWITCH[452] Waiting for background process pid:472 to be ready.....
Jun 28 14:36:23 server freeswitch[452]: FreeSWITCH[452] System Ready pid:472
Jun 28 14:36:23 server systemd[1]: Started freeswitch.

On 28 Jun 2017, at 14:18, Mundkowsky, Robert <rmundkowsky at ets.org<mailto:rmundkowsky at ets.org>> wrote:

Yes. I think we had a similar problem in ,I think, two situations.

1)      The file system database can get messed up.
a.       Stop FS
b.      You can clear then via rm /export/Apps/freeswitch/var/lib/freeswitch/db/*
c.       Restart FS
2)      If there is an error in the configuration files.
a.       Take a look at /export/Apps/freeswitch/var/log/freeswitch/freeswitch.xml.fsxml to see if there are any errors in XML.

You can get more details of start problem via:
                journalctl -xn
                systemctl status freeswitch.service

                if you do not get enough details, try starting FS directly and you might get more details via:

                /…/bin/freeswitch


Robert Mundkowsky

From: FreeSWITCH-users [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Rick Jarvis
Sent: Wednesday, June 28, 2017 7:44 AM
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org<mailto:freeswitch-users at lists.freeswitch.org>>
Subject: [Freeswitch-users] FS service issues (systemd)


Got a weird issue where FS isn’t starting up correctly. Looking at the logs, it appears just to be attempting to restart SIP profiles (and failing), and that’s about it. There’s no socket for fs_cli, and a simple ‘systemctl restart’ fixes it. Anyone had something like this? I’ve tried fixing it with systemd after / requires, but it hasn’t helped.

Here’s my .service file (not sure if this is the issue, I'd welcome any comments / better versions?)

[Unit]
Description=freeswitch
After=syslog.target network-online.target local-fs.target

[Service]
; service
Type=forking
PIDFile=/run/freeswitch/freeswitch.pid
PermissionsStartOnly=true
ExecStart=/usr/bin/freeswitch -ncwait -nonat
ExecStop=/usr/bin/fs_cli -x shutdown
TimeoutSec=45s
Restart=always
; exec
RuntimeDirectory=freeswitch
RuntimeDirectoryMode=0755
User=freeswitch
Group=freeswitch
LimitCORE=infinity
LimitNOFILE=100000
LimitNPROC=60000
;LimitSTACK=240
LimitRTPRIO=infinity
LimitRTTIME=7000000
IOSchedulingClass=realtime
IOSchedulingPriority=2
CPUSchedulingPolicy=rr
CPUSchedulingPriority=89
UMask=0007

[Install]









________________________________
This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited.


Thank you for your compliance.
________________________________
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitchsolutions.com%2F&data=02%7C01%7Crmundkowsky%40ets.org%7C6d7b62a680e44e55cbdd08d4be2c3044%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636342544403832473&sdata=5Sxm3KfF0340UKqFumMEi8ZfZpWsWCRoISeHxuoGKA8%3D&reserved=0>

Official FreeSWITCH Sites
http://www.freeswitch.org<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitch.org%2F&data=02%7C01%7Crmundkowsky%40ets.org%7C6d7b62a680e44e55cbdd08d4be2c3044%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636342544403832473&sdata=u3fYr3vIrdJlweRNHiBEzYM6t6VECg9S1oXSOTCV%2FzI%3D&reserved=0>
http://confluence.freeswitch.org<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fconfluence.freeswitch.org%2F&data=02%7C01%7Crmundkowsky%40ets.org%7C6d7b62a680e44e55cbdd08d4be2c3044%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636342544403832473&sdata=DkI%2BNKX1iYV%2FPsiGq2BKQyY8%2BrEyoxJVs2uFjq2VEjo%3D&reserved=0>
http://www.cluecon.com<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cluecon.com%2F&data=02%7C01%7Crmundkowsky%40ets.org%7C6d7b62a680e44e55cbdd08d4be2c3044%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636342544403832473&sdata=qYMyPbo9GXbRw%2FzV1Tqonh5b2HDbY72JfW0WYxhqbM0%3D&reserved=0>

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.freeswitch.org%2Fmailman%2Flistinfo%2Ffreeswitch-users&data=02%7C01%7Crmundkowsky%40ets.org%7C6d7b62a680e44e55cbdd08d4be2c3044%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636342544403832473&sdata=EGFV22phxsWI1QwDAJsRzrX70856MiOOujN%2B0UbCKvw%3D&reserved=0>
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.freeswitch.org%2Fmailman%2Foptions%2Ffreeswitch-users&data=02%7C01%7Crmundkowsky%40ets.org%7C6d7b62a680e44e55cbdd08d4be2c3044%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636342544403832473&sdata=HISb2F1wmaS%2BmvlqiXEBTL6oRvA%2B3zVKIlk4g8qe530%3D&reserved=0>
http://www.freeswitch.org<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.freeswitch.org%2F&data=02%7C01%7Crmundkowsky%40ets.org%7C6d7b62a680e44e55cbdd08d4be2c3044%7C0ba6e9b760b34fae92f37e6ddd9e9b65%7C0%7C0%7C636342544403832473&sdata=u3fYr3vIrdJlweRNHiBEzYM6t6VECg9S1oXSOTCV%2FzI%3D&reserved=0>


________________________________

This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited.


Thank you for your compliance.

________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170628/ed49f7a0/attachment-0001.html>


More information about the FreeSWITCH-users mailing list