freeswitch icon indicating copy to clipboard operation
freeswitch copied to clipboard

freeswitch[8729]: ERROR: Failed to set SCHED_FIFO scheduler (Operation not permitted)

Open YJiWei opened this issue 2 years ago • 3 comments

CentOS7 freeswitch-1.10.6

systemctl start freeswitch.service && systemctl status freeswitch.service ● freeswitch.service - FreeSWITCH Loaded: loaded (/usr/lib/systemd/system/freeswitch.service; enabled; vendor preset: disabled) Active: active (running) since Wed 2023-09-20 19:30:14 CST; 13min ago Main PID: 17259 (freeswitch) Tasks: 55 Memory: 46.1M CGroup: /system.slice/freeswitch.service └─17259 /usr/bin/freeswitch -nc -nf -nonat

Sep 20 19:30:14 10-150-166-11 systemd[1]: Started FreeSWITCH. Sep 20 19:30:14 10-150-166-11 freeswitch[17259]: ERROR: Failed to set SCHED_FIFO scheduler (Operation not permitted)

How can you solve this problem? Have tried setcap 'cap_sys_nice=+ep' /usr/bin/freeswitch is invalid.

YJiWei avatar Sep 20 '23 11:09 YJiWei

Starting with the root account is the same error. freeswitch[17259]: ERROR: Failed to set SCHED_FIFO scheduler (Operation not permitted)

YJiWei avatar Sep 20 '23 11:09 YJiWei

Permissions are too strict. Needs permission usually reserved for root to change scheduler. You can use -u and -g to drop privilege once it starts.

anthmFS avatar Sep 21 '23 23:09 anthmFS

I've seen this error, as root, when running on a kernel that did not have CONFIG_PREEMPT enabled.

jstangroome avatar Feb 20 '25 05:02 jstangroome