SOLVED FreeSwitch installation on Debian 12 is broken

mrtornado

New Member
May 30, 2025
3
0
1
53
I'm trying to install FusionPBX on a server from Hetzner with the Debian 12 Image.
From what I've talked with chatgpt he is saying that FreeSwitch :

Starting 2023 FreeSWITCH moved to a paid subscription model for access to the stable package repositories.
You need a SignalWire Enterprise subscription to access the DEB/RPM packages.

and it seems the installation is dying here: wget -O - https://files.fusionpbx.com/freeswitch-release-bookworm-archive-keyring.gpg
and this also doesn't seem to work: https://files.fusionpbx.com/freeswitch-release-bookworm

Someone suggested on this forum to:
  1. Comment out or remove the IO/CPU scheduling directives:
    # IOSchedulingClass=realtime
    # IOSchedulingPriority=2
Tried that already ... but yea still doesn't works.

Some logs:


JavaScript:
root@Debian-1208-bookworm-amd64-base /usr/src/fusionpbx-install.sh/debian/resources # journalctl -xeu freeswitch.service
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit freeswitch.service has finished with a failure.
░░
░░ The job identifier is 4962 and the job result is failed.
May 31 12:46:33 Debian-1208-bookworm-amd64-base systemd[1]: freeswitch.service: Scheduled restart job, restart counter is at 8.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ Automatic restarting of the unit freeswitch.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
May 31 12:46:33 Debian-1208-bookworm-amd64-base systemd[1]: Stopped freeswitch.service - freeswitch.
░░ Subject: A stop job for unit freeswitch.service has finished
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A stop job for unit freeswitch.service has finished.
░░
░░ The job identifier is 5051 and the job result is done.
May 31 12:46:33 Debian-1208-bookworm-amd64-base systemd[1]: freeswitch.service: Start request repeated too quickly.
May 31 12:46:33 Debian-1208-bookworm-amd64-base systemd[1]: freeswitch.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit freeswitch.service has entered the 'failed' state with result 'exit-code'.
May 31 12:46:33 Debian-1208-bookworm-amd64-base systemd[1]: Failed to start freeswitch.service - freeswitch.
░░ Subject: A start job for unit freeswitch.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit freeswitch.service has finished with a failure.
░░
░░ The job identifier is 5051 and the job result is failed.

JavaScript:
root@Debian-1208-bookworm-amd64-base /usr/src # cat /etc/debian_version
12.11
root@Debian-1208-bookworm-amd64-base /usr/src # systemctl status freeswitch.service
× freeswitch.service - freeswitch
     Loaded: loaded (/lib/systemd/system/freeswitch.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Sat 2025-05-31 04:14:20 CEST; 8h ago
    Process: 15842 ExecStartPre=/bin/mkdir -p /var/run/freeswitch (code=exited, status=0/SUCCESS)
    Process: 15843 ExecStartPre=/bin/chown -R ${USER}:${GROUP} /var/lib/freeswitch /var/log/freeswitch /etc/freeswitch /usr/share/freeswitch /var/run/freeswitch (code=exited,>
        CPU: 13ms

May 31 04:14:20 Debian-1208-bookworm-amd64-base systemd[1]: freeswitch.service: Scheduled restart job, restart counter is at 5.
May 31 04:14:20 Debian-1208-bookworm-amd64-base systemd[1]: Stopped freeswitch.service - freeswitch.
May 31 04:14:20 Debian-1208-bookworm-amd64-base systemd[1]: freeswitch.service: Start request repeated too quickly.
May 31 04:14:20 Debian-1208-bookworm-amd64-base systemd[1]: freeswitch.service: Failed with result 'exit-code'.
May 31 04:14:20 Debian-1208-bookworm-amd64-base systemd[1]: Failed to start freeswitch.service - freeswitch.

and
JavaScript:
root@Debian-1208-bookworm-amd64-base /usr/src/fusionpbx-install.sh/debian/resources # ./finish.sh
ALTER ROLE
ERROR:  role "freeswitch" does not exist
INSERT 0 1
cp: target '/var/www/fusionpbx/app/switch/resources/scripts/wakeup.lua': Not a directory
cp: target '/usr/local/share/freeswitch/languages': No such file or directory


App Defaults Executed
INSERT 0 1
INSERT 0 1

Upgrade
-----------------------------------------

Database
    Schema:            No Change
cp: target '/var/www/fusionpbx/app/switch/resources/scripts/wakeup.lua': Not a directory
cp: target '/usr/local/share/freeswitch/languages': No such file or directory


App Defaults Executed

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.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
cron is already the newest version (3.0pl1-162).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
Last edited:
You aren't using a default install of FusionPBX. That is why it's breaking for you. FusionPBX install uses a compile instead of the package.

The FreeSWITCH repo you are trying to use is saying that you need a Token from them to install their restricted package.

FusionPBX official install uses the commands shown on this page to install. The official install of FusionPBX uses a patched version of FreeSWITCH 1.10.12.
- https://www.fusionpbx.com/download

P.S. Your message showed you were using files.fusionpbx.com, which has never existed. You likely need to update it to use https://files.freeswitch.org/
 
Heya, you are wrong I was using the default install of FusionPBX ... but just to be sure I have tried it one more time.

But by installing it again it seems I found the error:
build-requirements: libtool not found.
You need libtool version 1.5.14 or newer to build FreeSWITCH from source.

I'll trying installing that and see if that works :)


JavaScript:
Cloning into 'freeswitch-1.10.12'...
remote: Enumerating objects: 303683, done.
remote: Counting objects: 100% (54/54), done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 303682 (delta 8), reused 47 (delta 6), pack-reused 303628 (from 2)
Receiving objects: 100% (303682/303682), 129.74 MiB | 38.24 MiB/s, done.
Resolving deltas: 100% (237226/237226), done.
fatal: not a git repository (or any of the parent directories): .git
bootstrap: checking installation...
build-requirements: autoconf version 2.71 (ok)
build-requirements: automake version 1.16.5 (ok)
build-requirements: aclocal version 1.16.5 (ok)
build-requirements: libtool not found.
                    You need libtool version 1.5.14 or newer to build FreeSWITCH from source.
switch/source-release.sh: 146: ./configure: not found
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lsb-release is already the newest version (12.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
switch/source-sounds.sh: 88: ../environment.sh: verbose: not found
make: *** No rule to make target 'sounds-install'.  Stop.
make: *** No rule to make target 'hd-sounds-install'.  Stop.
make: *** No rule to make target 'cd-sounds-install'.  Stop.
mv: cannot stat '/usr/share/freeswitch/sounds/music/*000': No such file or directory
mv: cannot stat '/etc/freeswitch': No such file or directory
chown: cannot access '/var/lib/freeswitch': No such file or directory
chown: cannot access '/var/log/freeswitch': No such file or directory
chown: cannot access '/var/run/freeswitch': No such file or directory
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package freeswitch-systemd
Created symlink /etc/systemd/system/multi-user.target.wants/freeswitch.service → /lib/systemd/system/freeswitch.service.
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.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lsb-release is already the newest version (12.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
So yea I managed to make it work, that was the problem.

FIX: Make sure you guys install the libtool binary -> apt-get install libtool-bin

Seems that debian removed the binary from the libtool package and they moved it to libtool-bin
 
Last edited: