freeswitch isn't starting on fresh install on Debian 12

rjunaid

Member
Oct 18, 2019
37
0
6
26
Greetings,
Getting this error tried multiple times.

root@leanrning:/usr/src/fusionpbx-install.sh/debian# cat /etc/debian_version
12.10
root@leanrning:/usr/src/fusionpbx-install.sh/debian# systemctl status freeswitch.service
× freeswitch.service - freeswitch
Loaded: loaded (/lib/systemd/system/freeswitch.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Wed 2025-03-26 23:04:08 UTC; 4min 36s ago
Process: 83437 ExecStartPre=/bin/mkdir -p /var/run/freeswitch (code=exited, status=0/SUCCESS)
Process: 83438 ExecStartPre=/bin/chown -R ${USER}:${GROUP} /var/lib/freeswitch /var/log/freeswitch /etc/freeswitch /usr/share/freeswitch /var/run/freesw>
CPU: 8ms

Mar 26 23:04:08 leanrning systemd[1]: freeswitch.service: Scheduled restart job, restart counter is at 8.
Mar 26 23:04:08 leanrning systemd[1]: Stopped freeswitch.service - freeswitch.
Mar 26 23:04:08 leanrning systemd[1]: freeswitch.service: Start request repeated too quickly.
Mar 26 23:04:08 leanrning systemd[1]: freeswitch.service: Failed with result 'exit-code'.
Mar 26 23:04:08 leanrning systemd[1]: Failed to start freeswitch.service - freeswitch.
root@leanrning:/usr/src/fusionpbx-install.sh/debian# sudo apt-get install -f
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@leanrning:/usr/src/fusionpbx-install.sh/debian# sudo chown -R freeswitch:freeswitch /etc/freeswitch /var/lib/freeswitch /var/log/freeswitch
chown: invalid user: ‘freeswitch:freeswitch’
root@leanrning:/usr/src/fusionpbx-install.sh/debian# sudo groupadd freeswitch
root@leanrning:/usr/src/fusionpbx-install.sh/debian# sudo useradd -r -g freeswitch -d /var/lib/freeswitch -s /bin/false freeswitch
root@leanrning:/usr/src/fusionpbx-install.sh/debian# sudo chown -R freeswitch:freeswitch /etc/freeswitch /var/lib/freeswitch /var/log/freeswitch
chown: cannot access '/var/lib/freeswitch': No such file or directory
chown: cannot access '/var/log/freeswitch': No such file or directory
 
Does it end the installation script? If it does, try this:


First:
  1. Open the service file for editing:

    sudo nano /lib/systemd/system/freeswitch.service


  2. Comment out or remove the IO/CPU scheduling directives:
    # IOSchedulingClass=realtime
    # IOSchedulingPriority=2
#CPUSchedulingPolicy=rr
#CPUSchedulingPriority=89

Second

sudo systemctl daemon-reload
sudo systemctl start freeswitch.service


Lastly in the GUI:

  • Got to Advanced > Default Settings > Switch
  • Select all in the Switch Category > Delete
  • Head to Advanced > Upgrade > App Defaults > Execute
 
Still its same
Job for freeswitch.service failed because the control process exited with error code.
See "systemctl status freeswitch.service" and "journalctl -xeu freeswitch.service" for details.
root@learning:/usr/src/fusionpbx-install.sh/debian#
 
Still its same
Job for freeswitch.service failed because the control process exited with error code.
See "systemctl status freeswitch.service" and "journalctl -xeu freeswitch.service" for details.
root@learning:/usr/src/fusionpbx-install.sh/debian#
Run these 2 suggested commands. One of them will probably provide more details on the issue.