Installation failed Debian : SETSCHEDULER
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, --
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@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@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
It looks like you installed the package (not that there’s anything wrong with that) and I always compile the Master source code, so I can offer you troubleshooting advice since I have also had trouble with systemd. First, try running that exact same command line as systemd uses to start FS as user ‘root’: /usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonat -rp This will show you what systemd is seeing. You might find that FreeSWITCH can’t run for whatever reason that it reports in its own log. Fix that and everything might start to work. It’s possible that it can’t write its PID file in /run/freeswitch as that directory might not exist because it is destroyed on each boot; I’m not sure about that, though. There might also be permissions problems, although I doubt that as well, because the package should set up all that stuff for you, but it’s worth checking permissions and file ownership to be certain. During troubleshooting you might want to comment that Restart= line so that when FS fails to start, systemd won’t try to restart it needlessly. I know some of the guys have been working on this part of the package to get it perfect so I don’t know the current state of things there. The problems that I have seen with systemd and FS involved the PID file directory and the WorkingDirectory, as well as starting FS with a bare command line so it never drops privileges to the freeswitch user, resulting in permissions getting set for root; then when it is run with the –u switch it can’t access its logs and databases. I know the package uses different directory locations than the compiled source code installation, which is what gave me problems early on. I have never seen an error message relating to SETSCHEDULER before. Hope this helps. --- Bote FreeSWITCH Docs Janitor <http://freeswitch.org/confluence> http://freeswitch.org/confluence From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of pgoergler@gmail.com Sent: Tuesday, 17 November, 2015 13:33 To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] Installation failed Debian : SETSCHEDULER 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, --
Hi all, just because this issue hit my just in a new container: the container running freeswitch has to be privileged. Running an unprivileged container (in my case, it's with proxmox) won't have the necessary permissions to set the required CPU scheduler. Making the container privileged solved the problem and freeswitch starts as expected. Starting freeswitch manually worked before, because the scheduler is set by systemd (defined in the unit file). Hope that helps if anyone else finds that message via your favorite search engine ;) Regards Nico On 11/17/15 19:32, pgoergler@gmail.com wrote:
# 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.
participants (4)
-
Bote Man
-
JT Bock
-
Nicola von Thadden
-
pgoergler@gmail.com