[Freeswitch-users] Installation failed Debian : SETSCHEDULER

JT Bock jtbock at synacktics.com
Wed Nov 18 07:46:48 MSK 2015


Hi,

I had the same problem. The suggested unit file doesn't seem to work, I 
believe due to a problem creating the directory/pid file in /run. I do 
have a working unit file, but I don't currently have access to the 
machine which has it. I believe I based it on info I found here: 
http://lists.freeswitch.org/pipermail/freeswitch-users/2015-May/113013.html

Hope this helps...

Tim

On 11/17/2015 11:32 AM, pgoergler at gmail.com wrote:
>
> Hello,
>
> I try to install Freeswitch on a proxmox container with debian 8, 
> following 
> https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video
> But it does not work
>
>
> Here what i did:
>
> # cat /etc/debian_version
>
> 8.2
>
>
> # cat /etc/apt/sources.list.d/99FreeSWITCH.test.list
>
> deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main
>
> # apt-get update
>
> [...]
>
> Hit http://files.freeswitch.org jessie InRelease
>
> Hit http://files.freeswitch.org jessie/main amd64 Packages
>
> Ign http://files.freeswitch.org jessie/main Translation-en
>
> Fetched 367 B in 1s (279 B/s)
>
> Reading package lists... Done
>
>
>
> Now i follow the document and install freeswitch-all
>
> # apt-get install freeswitch-all
>
> [...]
>
> Job for freeswitch.service failed. See 'systemctl status 
> freeswitch.service' and 'journalctl -xn' for details.
>
> invoke-rc.d: initscript freeswitch, action "start" failed.
>
> dpkg: error processing package freeswitch-all (--configure):
>
>  subprocess installed post-installation script returned error exit 
> status 1
>
> Setting up libmtp-runtime (1.1.8-1+b1) ...
>
> Setting up va-driver-all:amd64 (1.4.1-1) ...
>
> Processing triggers for libc-bin (2.19-18+deb8u1) ...
>
> Processing triggers for systemd (215-17+deb8u2) ...
>
> Processing triggers for python-support (1.0.15) ...
>
> Errors were encountered while processing:
>
>  freeswitch-all
>
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>
> # tail /var/log/syslog
>
> Nov 17 16:50:15 freeswitch systemd[20020]: Failed at step SETSCHEDULER 
> spawning /usr/bin/freeswitch: Operation not permitted
>
> Nov 17 16:50:15 freeswitch systemd[1]: freeswitch.service: control 
> process exited, code=exited status=214
>
> Nov 17 16:50:15 freeswitch systemd[1]: Failed to start freeswitch.
>
> Nov 17 16:50:15 freeswitch systemd[1]: Unit freeswitch.service entered 
> failed state.
>
> Nov 17 16:50:15 freeswitch systemd[1]: freeswitch.service holdoff time 
> over, scheduling restart.
>
> Nov 17 16:50:15 freeswitch systemd[1]: Stopping freeswitch...
>
> Nov 17 16:50:15 freeswitch systemd[1]: Starting freeswitch...
>
> Nov 17 16:50:15 freeswitch systemd[1]: freeswitch.service start 
> request repeated too quickly, refusing to start.
>
> Nov 17 16:50:15 freeswitch systemd[1]: Failed to start freeswitch.
>
> Nov 17 16:50:15 freeswitch systemd[1]: Unit freeswitch.service entered 
> failed state.
>
>
>
> Ok the document said it could happen, i have to replace 
> /lib/systemd/system/freeswitch.service
> I did it
>
> # cat /lib/systemd/system/freeswitch.service
>
> [Unit]
>
> Description=freeswitch
>
> After=syslog.target network.target local-fs.target
>
>
> [Service]
>
> ; service
>
> Type=forking
>
> PIDFile=/run/freeswitch/freeswitch.pid
>
> PermissionsStartOnly=true
>
> ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait 
> -nonat -rp
>
> TimeoutSec=45s
>
> Restart=on-failure
>
> ; exec
>
> WorkingDirectory=/usr/bin
>
> User=root
>
> Group=daemon
>
> LimitCORE=infinity
>
> LimitNOFILE=100000
>
> LimitNPROC=60000
>
> ;LimitSTACK=240
>
> LimitRTPRIO=infinity
>
> LimitRTTIME=7000000
>
> IOSchedulingClass=realtime
>
> IOSchedulingPriority=2
>
> CPUSchedulingPolicy=rr
>
> CPUSchedulingPriority=89
>
> UMask=0007
>
>
> [Install]
>
> WantedBy=multi-user.target
>
>
> # systemctl daemon-reload && systemctl start freeswitch
>
> Job for freeswitch.service failed. See 'systemctl status 
> freeswitch.service' and 'journalctl -xn' for details.
>
>
> Hum still not working
>
> # systemctl status freeswitch.service
>
> * freeswitch.service - freeswitch
>
>    Loaded: loaded (/lib/systemd/system/freeswitch.service; disabled)
>
>    Active: failed (Result: start-limit) since Tue 2015-11-17 16:52:08 
> CET; 15s ago
>
>   Process: 20069 ExecStart=/usr/bin/freeswitch -u freeswitch -g 
> freeswitch -ncwait -nonat -rp (code=exited, status=214/SETSCHEDULER)
>
>
> Nov 17 16:52:07 freeswitch systemd[1]: Failed to start freeswitch.
>
> Nov 17 16:52:07 freeswitch systemd[1]: Unit freeswitch.service entered 
> failed state.
>
> Nov 17 16:52:08 freeswitch systemd[1]: freeswitch.service holdoff time 
> over, scheduling restart.
>
> Nov 17 16:52:08 freeswitch systemd[1]: Stopping freeswitch...
>
> Nov 17 16:52:08 freeswitch systemd[1]: Starting freeswitch...
>
> Nov 17 16:52:08 freeswitch systemd[1]: freeswitch.service start 
> request repeated too quickly, refusing to start.
>
> Nov 17 16:52:08 freeswitch systemd[1]: Failed to start freeswitch.
>
> Nov 17 16:52:08 freeswitch systemd[1]: Unit freeswitch.service entered 
> failed state.
>
>
>
> And with the same error:
>
> # tail /var/log/syslog
>
> Nov 17 16:52:07 freeswitch systemd[20069]: Failed at step SETSCHEDULER 
> spawning /usr/bin/freeswitch: Operation not permitted
>
> Nov 17 16:52:07 freeswitch systemd[1]: freeswitch.service: control 
> process exited, code=exited status=214
>
> Nov 17 16:52:07 freeswitch systemd[1]: Failed to start freeswitch.
>
> Nov 17 16:52:07 freeswitch systemd[1]: Unit freeswitch.service entered 
> failed state.
>
> Nov 17 16:52:08 freeswitch systemd[1]: freeswitch.service holdoff time 
> over, scheduling restart.
>
> Nov 17 16:52:08 freeswitch systemd[1]: Stopping freeswitch...
>
> Nov 17 16:52:08 freeswitch systemd[1]: Starting freeswitch...
>
> Nov 17 16:52:08 freeswitch systemd[1]: freeswitch.service start 
> request repeated too quickly, refusing to start.
>
> Nov 17 16:52:08 freeswitch systemd[1]: Failed to start freeswitch.
>
> Nov 17 16:52:08 freeswitch systemd[1]: Unit freeswitch.service entered 
> failed state.
>
>
>
> What can i do to make it start correctly ?
>
>
> Thanks,
> -- 
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20151117/9d1e17f6/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list