This is my first Jessie install, so trying to get my head around systemd. I’ve installed from repos, and it all works fine with ‘service start freeswitch’ as I used to use. However, as update-rc.d doesn’t work for starting on boot, I figured this is due to the startup changes in jessie. So I followed this to the letter: https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video <https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video> But no joy: root@voice:/etc/systemd/system# systemctl start freeswitch Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details. root@voice:/etc/systemd/system# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/lib/systemd/system/freeswitch.service; disabled) Active: failed (Result: start-limit) since Mon 2015-10-19 21:47:53 BST; 26s ago Process: 1215 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp (code=exited, status=1/FAILURE) Oct 19 21:47:53 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1 Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state. Oct 19 21:47:53 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start. Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state. What am I doing wrong?
To my knowledge this is fixed, If you wish to run our bleeding edge packages, WARNING this repo is untested and should NOT be used in production. How to use this repo: 1. New Debian Jessie system 2. Run These Commands: echo "deb http://files.freeswitch.org/repo/deb/debian-unstable/ jessie main" > /etc/apt/sources.list.d/99FreeSWITCH.list echo "deb http://files.freeswitch.org/repo/deb/debian/ jessie main" >> /etc/apt/sources.list.d/99FreeSWITCH.list wget -O - https://files.freeswitch.org/repo/deb/debian/key.gpg |apt-key add - apt-get update apt-get install freeswitch-all 3. To update: apt-get update apt-get dist-upgrade On Mon, Oct 19, 2015 at 3:53 PM, <rick.jarvis@magicmail.mooo.com> wrote:
This is my first Jessie install, so trying to get my head around systemd.
I’ve installed from repos, and it all works fine with ‘service start freeswitch’ as I used to use. However, as update-rc.d doesn’t work for starting on boot, I figured this is due to the startup changes in jessie.
So I followed this to the letter:
https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video
But no joy:
root@voice:/etc/systemd/system# systemctl start freeswitch Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details. root@voice:/etc/systemd/system# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/lib/systemd/system/freeswitch.service; disabled) Active: failed (Result: start-limit) since Mon 2015-10-19 21:47:53 BST; 26s ago Process: 1215 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp (code=exited, status=1/FAILURE)
Oct 19 21:47:53 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1 Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state. Oct 19 21:47:53 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start. Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state.
What am I doing wrong?
_________________________________________________________________________ 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 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) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Thanks Brian. Unfortunately this is for production ;) Is there a fix I can add manually I wonder?
On 19 Oct 2015, at 21:57, Brian West <brian@freeswitch.org> wrote:
To my knowledge this is fixed, If you wish to run our bleeding edge packages,
WARNING this repo is untested and should NOT be used in production.
How to use this repo:
1. New Debian Jessie system 2. Run These Commands:
echo "deb http://files.freeswitch.org/repo/deb/debian-unstable/ <http://files.freeswitch.org/repo/deb/debian-unstable/> jessie main" > /etc/apt/sources.list.d/99FreeSWITCH.list echo "deb http://files.freeswitch.org/repo/deb/debian/ <http://files.freeswitch.org/repo/deb/debian/> jessie main" >> /etc/apt/sources.list.d/99FreeSWITCH.list wget -O - https://files.freeswitch.org/repo/deb/debian/key.gpg <https://files.freeswitch.org/repo/deb/debian/key.gpg> |apt-key add - apt-get update apt-get install freeswitch-all
3. To update:
apt-get update apt-get dist-upgrade
On Mon, Oct 19, 2015 at 3:53 PM, <rick.jarvis@magicmail.mooo.com <mailto:rick.jarvis@magicmail.mooo.com>> wrote: This is my first Jessie install, so trying to get my head around systemd.
I’ve installed from repos, and it all works fine with ‘service start freeswitch’ as I used to use. However, as update-rc.d doesn’t work for starting on boot, I figured this is due to the startup changes in jessie.
So I followed this to the letter:
https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video <https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video>
But no joy:
root@voice:/etc/systemd/system# systemctl start freeswitch Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details. root@voice:/etc/systemd/system# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/lib/systemd/system/freeswitch.service; disabled) Active: failed (Result: start-limit) since Mon 2015-10-19 21:47:53 BST; 26s ago Process: 1215 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp (code=exited, status=1/FAILURE)
Oct 19 21:47:53 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1 Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state. Oct 19 21:47:53 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start. Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state.
What am I doing wrong?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
-- Brian West brian@freeswitch.org <mailto:brian@freeswitch.org>
Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com <http://www.freeswitchbook.com/> http://www.freeswitchcookbook.com <http://www.freeswitchcookbook.com/> 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) iNUM:+883 5100 1420 9001 | ISN:410*543 | 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
Something is preventing fs from starting and systemd keeps trying, but eventually gives up. Can you start it by hand with the same parameters? Can you check the freeswitch.log and see if that says anything? rick.jarvis@magicmail.mooo.com wrote:
This is my first Jessie install, so trying to get my head around systemd.
I’ve installed from repos, and it all works fine with ‘service start freeswitch’ as I used to use. However, as update-rc.d doesn’t work for starting on boot, I figured this is due to the startup changes in jessie.
So I followed this to the letter:
https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video <https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video>
But no joy:
root@voice:/etc/systemd/system# systemctl start freeswitch Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details. root@voice:/etc/systemd/system# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/lib/systemd/system/freeswitch.service; disabled) Active: failed (Result: start-limit) since Mon 2015-10-19 21:47:53 BST; 26s ago Process: 1215 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp (code=exited, status=1/FAILURE)
Oct 19 21:47:53 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1 Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state. Oct 19 21:47:53 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start. Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state.
What am I doing wrong? ---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ 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 -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
Nothing in /var/log/freeswitch/freeswitch.log Results of running it at command line below. I’ve tried running it with ‘c’ instead of ‘ncwait’ as well, but it complains about the pid root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp 1349 Backgrounding. FreeSWITCH[1348] Error starting system! pid:1349 root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -c -nonat -rp Cannot open pid file /var/run/freeswitch/freeswitch.pid.
On 19 Oct 2015, at 22:01, covici@ccs.covici.com wrote:
Something is preventing fs from starting and systemd keeps trying, but eventually gives up. Can you start it by hand with the same parameters? Can you check the freeswitch.log and see if that says anything?
rick.jarvis@magicmail.mooo.com <mailto:rick.jarvis@magicmail.mooo.com> wrote:
This is my first Jessie install, so trying to get my head around systemd.
I’ve installed from repos, and it all works fine with ‘service start freeswitch’ as I used to use. However, as update-rc.d doesn’t work for starting on boot, I figured this is due to the startup changes in jessie.
So I followed this to the letter:
https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video <https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video><https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video <https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video>>
But no joy:
root@voice:/etc/systemd/system# systemctl start freeswitch Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details. root@voice:/etc/systemd/system# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/lib/systemd/system/freeswitch.service; disabled) Active: failed (Result: start-limit) since Mon 2015-10-19 21:47:53 BST; 26s ago Process: 1215 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp (code=exited, status=1/FAILURE)
Oct 19 21:47:53 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1 Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state. Oct 19 21:47:53 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start. Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state.
What am I doing wrong? ---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ 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 -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com <mailto:covici@ccs.covici.com>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
I fixed it in master, and the new 1.6 version is not released yet. You can take a copy of the service file here https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/debian/free... and install it manually as /lib/systemd/system/freeswitch.service Then, systemctl daemon-reload systemctl enable freeswitch this should work with the latest 1.6 (probably with 1.4 too). On Mon, Oct 19, 2015 at 11:14 PM, <rick.jarvis@magicmail.mooo.com> wrote:
Nothing in /var/log/freeswitch/freeswitch.log
Results of running it at command line below. I’ve tried running it with ‘c’ instead of ‘ncwait’ as well, but it complains about the pid
root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp 1349 Backgrounding. FreeSWITCH[1348] Error starting system! pid:1349 root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -c -nonat -rp Cannot open pid file /var/run/freeswitch/freeswitch.pid.
On 19 Oct 2015, at 22:01, covici@ccs.covici.com wrote:
Something is preventing fs from starting and systemd keeps trying, but eventually gives up. Can you start it by hand with the same parameters? Can you check the freeswitch.log and see if that says anything?
rick.jarvis@magicmail.mooo.com wrote:
This is my first Jessie install, so trying to get my head around systemd.
I’ve installed from repos, and it all works fine with ‘service start freeswitch’ as I used to use. However, as update-rc.d doesn’t work for starting on boot, I figured this is due to the startup changes in jessie.
So I followed this to the letter:
But no joy:
root@voice:/etc/systemd/system# systemctl start freeswitch Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details. root@voice:/etc/systemd/system# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/lib/systemd/system/freeswitch.service; disabled) Active: failed (Result: start-limit) since Mon 2015-10-19 21:47:53 BST; 26s ago Process: 1215 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp (code=exited, status=1/FAILURE)
Oct 19 21:47:53 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1 Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state. Oct 19 21:47:53 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start. Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state.
What am I doing wrong? ---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ 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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_________________________________________________________________________ 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
_________________________________________________________________________ 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
Stanislav: I applied this manually as described, but no joy unfortunately. Covici: I created /var/run/freeswitch as a directory just in case Brian: systemctl status freeswitch.service shows: root@voice:/lib/systemd/system# systemctl status freeswitch ● freeswitch.service - freeswitch Loaded: loaded (/etc/systemd/system/freeswitch.service; enabled) Active: failed (Result: start-limit) since Mon 2015-10-19 23:19:25 BST; 4s ago Process: 1546 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait $DAEMON_OPTS (code=exited, status=1/FAILURE) Oct 19 23:19:25 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1 Oct 19 23:19:25 voice systemd[1]: Failed to start freeswitch. Oct 19 23:19:25 voice systemd[1]: Unit freeswitch.service entered failed state. Oct 19 23:19:25 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start. Oct 19 23:19:25 voice systemd[1]: Failed to start freeswitch. Oct 19 23:19:25 voice systemd[1]: Unit freeswitch.service entered failed state.
On 19 Oct 2015, at 22:39, Stanislav Sinyagin <ssinyagin@gmail.com> wrote:
I fixed it in master, and the new 1.6 version is not released yet. You can take a copy of the service file here https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/debian/free...
and install it manually as /lib/systemd/system/freeswitch.service
Then,
systemctl daemon-reload systemctl enable freeswitch
this should work with the latest 1.6 (probably with 1.4 too).
On Mon, Oct 19, 2015 at 11:14 PM, <rick.jarvis@magicmail.mooo.com> wrote:
Nothing in /var/log/freeswitch/freeswitch.log
Results of running it at command line below. I’ve tried running it with ‘c’ instead of ‘ncwait’ as well, but it complains about the pid
root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp 1349 Backgrounding. FreeSWITCH[1348] Error starting system! pid:1349 root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -c -nonat -rp Cannot open pid file /var/run/freeswitch/freeswitch.pid.
On 19 Oct 2015, at 22:01, covici@ccs.covici.com wrote:
Something is preventing fs from starting and systemd keeps trying, but eventually gives up. Can you start it by hand with the same parameters? Can you check the freeswitch.log and see if that says anything?
rick.jarvis@magicmail.mooo.com wrote:
This is my first Jessie install, so trying to get my head around systemd.
I’ve installed from repos, and it all works fine with ‘service start freeswitch’ as I used to use. However, as update-rc.d doesn’t work for starting on boot, I figured this is due to the startup changes in jessie.
So I followed this to the letter:
But no joy:
root@voice:/etc/systemd/system# systemctl start freeswitch Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details. root@voice:/etc/systemd/system# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/lib/systemd/system/freeswitch.service; disabled) Active: failed (Result: start-limit) since Mon 2015-10-19 21:47:53 BST; 26s ago Process: 1215 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp (code=exited, status=1/FAILURE)
Oct 19 21:47:53 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1 Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state. Oct 19 21:47:53 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start. Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state.
What am I doing wrong? ---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ 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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
When you created the directory did you change the owner to the user and group of freeswitch? rick.jarvis@magicmail.mooo.com wrote:
Stanislav: I applied this manually as described, but no joy unfortunately.
Covici: I created /var/run/freeswitch as a directory just in case
Brian: systemctl status freeswitch.service shows:
root@voice:/lib/systemd/system# systemctl status freeswitch ● freeswitch.service - freeswitch Loaded: loaded (/etc/systemd/system/freeswitch.service; enabled) Active: failed (Result: start-limit) since Mon 2015-10-19 23:19:25 BST; 4s ago Process: 1546 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait $DAEMON_OPTS (code=exited, status=1/FAILURE)
Oct 19 23:19:25 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1 Oct 19 23:19:25 voice systemd[1]: Failed to start freeswitch. Oct 19 23:19:25 voice systemd[1]: Unit freeswitch.service entered failed state. Oct 19 23:19:25 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start. Oct 19 23:19:25 voice systemd[1]: Failed to start freeswitch. Oct 19 23:19:25 voice systemd[1]: Unit freeswitch.service entered failed state.
On 19 Oct 2015, at 22:39, Stanislav Sinyagin <ssinyagin@gmail.com> wrote:
I fixed it in master, and the new 1.6 version is not released yet. You can take a copy of the service file here https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/debian/free...
and install it manually as /lib/systemd/system/freeswitch.service
Then,
systemctl daemon-reload systemctl enable freeswitch
this should work with the latest 1.6 (probably with 1.4 too).
On Mon, Oct 19, 2015 at 11:14 PM, <rick.jarvis@magicmail.mooo.com> wrote:
Nothing in /var/log/freeswitch/freeswitch.log
Results of running it at command line below. I’ve tried running it with ‘c’ instead of ‘ncwait’ as well, but it complains about the pid
root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp 1349 Backgrounding. FreeSWITCH[1348] Error starting system! pid:1349 root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -c -nonat -rp Cannot open pid file /var/run/freeswitch/freeswitch.pid.
On 19 Oct 2015, at 22:01, covici@ccs.covici.com wrote:
Something is preventing fs from starting and systemd keeps trying, but eventually gives up. Can you start it by hand with the same parameters? Can you check the freeswitch.log and see if that says anything?
rick.jarvis@magicmail.mooo.com wrote:
This is my first Jessie install, so trying to get my head around systemd.
I’ve installed from repos, and it all works fine with ‘service start freeswitch’ as I used to use. However, as update-rc.d doesn’t work for starting on boot, I figured this is due to the startup changes in jessie.
So I followed this to the letter:
But no joy:
root@voice:/etc/systemd/system# systemctl start freeswitch Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details. root@voice:/etc/systemd/system# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/lib/systemd/system/freeswitch.service; disabled) Active: failed (Result: start-limit) since Mon 2015-10-19 21:47:53 BST; 26s ago Process: 1215 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp (code=exited, status=1/FAILURE)
Oct 19 21:47:53 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1 Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state. Oct 19 21:47:53 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start. Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state.
What am I doing wrong? ---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ 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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_________________________________________________________________________ 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
_________________________________________________________________________ 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
_________________________________________________________________________ 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
---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ 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 -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
Ah, there's one more file to install: https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/debian/free... it should go as /usr/lib/tmpfiles.d/freeswitch.conf
Ok, applied this. Did a chown freeswitch:freeswitch /var/run/freeswitch. Started fine with systemctl! Rebooted, didn’t start, and the /var/run/freeswitch directory had disappeared! Did it all again, and now it’s working! Odd, but all’s well that ends well I guess :) Thank you!
On 19 Oct 2015, at 23:28, Stanislav Sinyagin <ssinyagin@gmail.com> wrote:
Ah, there's one more file to install: https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/debian/free...
it should go as /usr/lib/tmpfiles.d/freeswitch.conf
_________________________________________________________________________ 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
systemctl status freeswitch.service What does this command show? On Mon, Oct 19, 2015 at 4:14 PM, <rick.jarvis@magicmail.mooo.com> wrote:
Nothing in /var/log/freeswitch/freeswitch.log
Results of running it at command line below. I’ve tried running it with ‘c’ instead of ‘ncwait’ as well, but it complains about the pid
root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp 1349 Backgrounding. FreeSWITCH[1348] Error starting system! pid:1349 root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -c -nonat -rp Cannot open pid file /var/run/freeswitch/freeswitch.pid.
On 19 Oct 2015, at 22:01, covici@ccs.covici.com wrote:
Something is preventing fs from starting and systemd keeps trying, but eventually gives up. Can you start it by hand with the same parameters? Can you check the freeswitch.log and see if that says anything?
rick.jarvis@magicmail.mooo.com wrote:
This is my first Jessie install, so trying to get my head around systemd.
I’ve installed from repos, and it all works fine with ‘service start freeswitch’ as I used to use. However, as update-rc.d doesn’t work for starting on boot, I figured this is due to the startup changes in jessie.
So I followed this to the letter:
https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video< https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video>
But no joy:
root@voice:/etc/systemd/system# systemctl start freeswitch Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details. root@voice:/etc/systemd/system# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/lib/systemd/system/freeswitch.service; disabled) Active: failed (Result: start-limit) since Mon 2015-10-19 21:47:53 BST; 26s ago Process: 1215 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp (code=exited, status=1/FAILURE)
Oct 19 21:47:53 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1 Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state. Oct 19 21:47:53 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start. Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state.
What am I doing wrong? ---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ 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
-- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
_________________________________________________________________________ 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
_________________________________________________________________________ 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 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) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Does the directory /var/run/freeswitch exist? rick.jarvis@magicmail.mooo.com wrote:
Nothing in /var/log/freeswitch/freeswitch.log
Results of running it at command line below. I’ve tried running it with ‘c’ instead of ‘ncwait’ as well, but it complains about the pid
root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp 1349 Backgrounding. FreeSWITCH[1348] Error starting system! pid:1349 root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -c -nonat -rp Cannot open pid file /var/run/freeswitch/freeswitch.pid.
On 19 Oct 2015, at 22:01, covici@ccs.covici.com wrote:
Something is preventing fs from starting and systemd keeps trying, but eventually gives up. Can you start it by hand with the same parameters? Can you check the freeswitch.log and see if that says anything?
rick.jarvis@magicmail.mooo.com <mailto:rick.jarvis@magicmail.mooo.com> wrote:
This is my first Jessie install, so trying to get my head around systemd.
I’ve installed from repos, and it all works fine with ‘service start freeswitch’ as I used to use. However, as update-rc.d doesn’t work for starting on boot, I figured this is due to the startup changes in jessie.
So I followed this to the letter:
https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video <https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video><https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video <https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video>>
But no joy:
root@voice:/etc/systemd/system# systemctl start freeswitch Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details. root@voice:/etc/systemd/system# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/lib/systemd/system/freeswitch.service; disabled) Active: failed (Result: start-limit) since Mon 2015-10-19 21:47:53 BST; 26s ago Process: 1215 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp (code=exited, status=1/FAILURE)
Oct 19 21:47:53 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1 Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state. Oct 19 21:47:53 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start. Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state.
What am I doing wrong? ---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ 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 -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com <mailto:covici@ccs.covici.com>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ 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 -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com
It’s a permissions problem most likely. systemd should start FS as root, FS creates any directories and files that it needs, increases runtime priority, and claims ports, then FS drops its own privileges to those specified by the –u and –g switches. It’s worth checking the ownership and permissions of the files and directories that FS has already created (such as freeswitch.pid) to avoid further gnashing of teeth. If you are using systemd, you control processes with the ‘systemctl’ command, not ‘service’. Systemd has the ability to restart FS if it crashes and other useful things so I recommend getting up to speed on it as it seems to be quite robust. Hope this helps. Bote From: rick.jarvis@magicmail.mooo.com Sent: Monday, 19 October, 2015 17:14 Subject: Re: [Freeswitch-users] systemd Nothing in /var/log/freeswitch/freeswitch.log Results of running it at command line below. I’ve tried running it with ‘c’ instead of ‘ncwait’ as well, but it complains about the pid root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp 1349 Backgrounding. FreeSWITCH[1348] Error starting system! pid:1349 root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -c -nonat -rp Cannot open pid file /var/run/freeswitch/freeswitch.pid. On 19 Oct 2015, at 22:01, covici@ccs.covici.com wrote: Something is preventing fs from starting and systemd keeps trying, but eventually gives up. Can you start it by hand with the same parameters? Can you check the freeswitch.log and see if that says anything? <mailto:rick.jarvis@magicmail.mooo.com> rick.jarvis@magicmail.mooo.com wrote: This is my first Jessie install, so trying to get my head around systemd. I’ve installed from repos, and it all works fine with ‘service start freeswitch’ as I used to use. However, as update-rc.d doesn’t work for starting on boot, I figured this is due to the startup changes in jessie. So I followed this to the letter: https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video<https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video> But no joy: root@voice:/etc/systemd/system# systemctl start freeswitch Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details. root@voice:/etc/systemd/system# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/lib/systemd/system/freeswitch.service; disabled) Active: failed (Result: start-limit) since Mon 2015-10-19 21:47:53 BST; 26s ago Process: 1215 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp (code=exited, status=1/FAILURE) Oct 19 21:47:53 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1 Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state. Oct 19 21:47:53 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start. Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state. What am I doing wrong? ---------------------------------------------------- Alternatives: ---------------------------------------------------- _________________________________________________________________________ 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 -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici <mailto:covici@ccs.covici.com> covici@ccs.covici.com _________________________________________________________________________ Professional FreeSWITCH Consulting Services: <mailto:consulting@freeswitch.org> consulting@freeswitch.org <http://www.freeswitchsolutions.com/> http://www.freeswitchsolutions.com Official FreeSWITCH Sites <http://www.freeswitch.org/> http://www.freeswitch.org <http://confluence.freeswitch.org/> http://confluence.freeswitch.org <http://www.cluecon.com/> http://www.cluecon.com FreeSWITCH-users mailing list <mailto:FreeSWITCH-users@lists.freeswitch.org> FreeSWITCH-users@lists.freeswitch.org <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http:// <http://lists.freeswitch.org/mailman/options/freeswitch-users> lists.freeswitch.org/mailman/options/freeswitch-users <http://www.freeswitch.org/> http://www.freeswitch.org
Thanks Bote - systemd certainly sounds like a useful addition. Permissions look ok - this from a fresh reboot: root@voice:~# ls -l /var/run/freeswitch/ total 4 -rw------- 1 freeswitch freeswitch 3 Oct 19 23:52 freeswitch.pid
On 19 Oct 2015, at 23:48, Bote Man <bote_radio@botecomm.com> wrote:
It’s a permissions problem most likely.
systemd should start FS as root, FS creates any directories and files that it needs, increases runtime priority, and claims ports, then FS drops its own privileges to those specified by the –u and –g switches.
It’s worth checking the ownership and permissions of the files and directories that FS has already created (such as freeswitch.pid) to avoid further gnashing of teeth.
If you are using systemd, you control processes with the ‘systemctl’ command, not ‘service’. Systemd has the ability to restart FS if it crashes and other useful things so I recommend getting up to speed on it as it seems to be quite robust.
Hope this helps.
Bote
From: rick.jarvis@magicmail.mooo.com Sent: Monday, 19 October, 2015 17:14 Subject: Re: [Freeswitch-users] systemd
Nothing in /var/log/freeswitch/freeswitch.log
Results of running it at command line below. I’ve tried running it with ‘c’ instead of ‘ncwait’ as well, but it complains about the pid
root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp 1349 Backgrounding. FreeSWITCH[1348] Error starting system! pid:1349 root@voice:/etc/systemd/system# /usr/bin/freeswitch -u freeswitch -g freeswitch -c -nonat -rp Cannot open pid file /var/run/freeswitch/freeswitch.pid.
On 19 Oct 2015, at 22:01, covici@ccs.covici.com <mailto:covici@ccs.covici.com> wrote:
Something is preventing fs from starting and systemd keeps trying, but eventually gives up. Can you start it by hand with the same parameters? Can you check the freeswitch.log and see if that says anything?
rick.jarvis@magicmail.mooo.com <mailto:rick.jarvis@magicmail.mooo.com> wrote:
This is my first Jessie install, so trying to get my head around systemd.
I’ve installed from repos, and it all works fine with ‘service start freeswitch’ as I used to use. However, as update-rc.d doesn’t work for starting on boot, I figured this is due to the startup changes in jessie.
So I followed this to the letter:
https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video <https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video><https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video <https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video>>
But no joy:
root@voice:/etc/systemd/system# systemctl start freeswitch Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details. root@voice:/etc/systemd/system# systemctl status freeswitch.service ● freeswitch.service - freeswitch Loaded: loaded (/lib/systemd/system/freeswitch.service; disabled) Active: failed (Result: start-limit) since Mon 2015-10-19 21:47:53 BST; 26s ago Process: 1215 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp (code=exited, status=1/FAILURE)
Oct 19 21:47:53 voice systemd[1]: freeswitch.service: control process exited, code=exited status=1 Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state. Oct 19 21:47:53 voice systemd[1]: freeswitch.service start request repeated too quickly, refusing to start. Oct 19 21:47:53 voice systemd[1]: Failed to start freeswitch. Oct 19 21:47:53 voice systemd[1]: Unit freeswitch.service entered failed state.
What am I doing wrong? ---------------------------------------------------- Alternatives:
---------------------------------------------------- _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org <http://www.freeswitch.org/> -- Your life is like a penny. You're going to lose it. The question is: How do you spend it?
John Covici covici@ccs.covici.com <mailto:covici@ccs.covici.com>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
participants (5)
-
Bote Man
-
Brian West
-
covici@ccs.covici.com
-
rick.jarvis@magicmail.mooo.com
-
Stanislav Sinyagin