[lxc-users] Freeswitch refuses to start in Debian Jessie
Stéphane Graber
stgraber at ubuntu.com
Mon Jan 8 04:41:38 UTC 2018
On Sun, Jan 07, 2018 at 08:46:40PM -0500, Stéphane Graber wrote:
> Anything weird going on with your /var/run?
>
> Looks like what's failing is:
>
> /bin/mkdir -p /var/run/freeswitch/
>
> On Sun, Jan 07, 2018 at 10:35:20AM -0600, Rajil Saraswat wrote:
> > Hello,
> >
> > I am trying to setup freeswitch in Debian Jessie. The host is Gentoo
> > linux running lxc-2.0.9
> >
> > Error is,
> >
> > # systemctl status freeswitch.service
> > ● freeswitch.service - freeswitch
> > Loaded: loaded (/lib/systemd/system/freeswitch.service; enabled)
> > Active: failed (Result: start-limit) since Sun 2018-01-07 16:28:38
> > UTC; 1s ago
> > Process: 7900 ExecStartPre=/bin/mkdir -p /var/run/freeswitch/
> > (code=exited, status=214/SETSCHEDULER)
> >
> > Jan 07 16:28:38 jessie systemd[1]: Failed to start freeswitch.
> > Jan 07 16:28:38 jessie systemd[1]: Unit freeswitch.service entered
> > failed state.
> > Jan 07 16:28:38 jessie systemd[1]: freeswitch.service holdoff time over,
> > scheduling restart.
> > Jan 07 16:28:38 jessie systemd[1]: Stopping freeswitch...
> > Jan 07 16:28:38 jessie systemd[1]: Starting freeswitch...
> > Jan 07 16:28:38 jessie systemd[1]: freeswitch.service start request
> > repeated too quickly, refusing to start.
> > Jan 07 16:28:38 jessie systemd[1]: Failed to start freeswitch.
> > Jan 07 16:28:38 jessie systemd[1]: Unit freeswitch.service entered
> > failed state.
> >
> > #journalctl -xe
> >
> > Jan 07 16:28:38 jessie systemd[1]: Starting freeswitch...
> > -- Subject: Unit freeswitch.service has begun with start-up
> > -- Defined-By: systemd
> > -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
> > --
> > -- Unit freeswitch.service has begun starting up.
> > Jan 07 16:28:38 jessie systemd[7900]: Failed at step SETSCHEDULER
> > spawning /bin/mkdir: Operation not permitted
> > -- Subject: Process /bin/mkdir could not be executed
> > -- Defined-By: systemd
> > -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
> > --
> > -- The process /bin/mkdir could not be executed and failed.
> > --
> > -- The error number returned while executing this process is 1.
> > Jan 07 16:28:38 jessie systemd[1]: freeswitch.service: control process
> > exited, code=exited status=214
> > Jan 07 16:28:38 jessie systemd[1]: Failed to start freeswitch.
> > -- Subject: Unit freeswitch.service has failed
> > -- Defined-By: systemd
> > -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
> > --
> > -- Unit freeswitch.service has failed.
> > --
> > -- The result is failed.
> >
> > The startup script is,
> >
> >
> > # cat /lib/systemd/system/freeswitch.service
> >
> > [Unit]
> > Description=freeswitch
> > After=syslog.target network.target local-fs.target postgresql.service
> >
> > [Service]
> > ; service
> > Type=forking
> > PIDFile=/run/freeswitch/freeswitch.pid
> > Environment="DAEMON_OPTS=-nonat"
> > EnvironmentFile=-/etc/default/freeswitch
> > ExecStartPre=/bin/mkdir -p /var/run/freeswitch/
> > ExecStartPre=/bin/chown -R www-data:www-data /var/run/freeswitch/
> > ExecStart=/usr/bin/freeswitch -u www-data -g www-data -ncwait $DAEMON_OPTS
> > TimeoutSec=45s
> > Restart=always
> > ; exec
> > User=root
> > Group=daemon
> > LimitCORE=infinity
> > LimitNOFILE=100000
> > LimitNPROC=60000
> > LimitSTACK=250000
> > LimitRTPRIO=infinity
> > LimitRTTIME=infinity
> > IOSchedulingClass=realtime
> > IOSchedulingPriority=2
> > CPUSchedulingPolicy=rr
> > CPUSchedulingPriority=89
Given that it's reporting a scheduler problem, it's likely that one (or more)
of the 4 keys above at the problem as some of those actions won't be
allowed in a container.
You could edit the unit and comment those, then run "systemctl daemon-reload"
and try starting the service again.
If that does the trick, then you should be able to make this cleaner by
using a systemd unit override file instead.
> > UMask=0007
> >
> > [Install]
> > WantedBy=multi-user.target
> >
> > Any idea how to fix this?
> >
> > Thanks
> >
> > _______________________________________________
> > lxc-users mailing list
> > lxc-users at lists.linuxcontainers.org
> > http://lists.linuxcontainers.org/listinfo/lxc-users
>
> --
> Stéphane Graber
> Ubuntu developer
> http://www.ubuntu.com
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20180107/356f43c2/attachment.sig>
More information about the lxc-users
mailing list