drachtio / ansible-role-fsmrf

ansible role for building a Freeswitch to use with drachtio-fsmrf
MIT License
5 stars 32 forks source link

Freeswitch Service not starting #13

Open hrosx opened 2 years ago

hrosx commented 2 years ago

Hello the ansible script ran well on Debian buster (10). No errors:

PLAY RECAP localhost : ok=53 changed=32 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0

But when starting the Freeswitch service it throw this error:

freeswitch.service - freeswitch Loaded: loaded (/etc/systemd/system/freeswitch.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2022-03-30 19:33:22 UTC; 4s ago Process: 28303 ExecStart=/usr/local/freeswitch//bin/freeswitch -nc -nonat (code=exited, status=0/SUCCESS) Main PID: 28305 (code=exited, status=255/EXCEPTION)

Mar 30 19:33:22 ip-172-31-39-62 systemd[1]: freeswitch.service: Service RestartSec=100ms expired, scheduling restart. Mar 30 19:33:22 ip-172-31-39-62 systemd[1]: freeswitch.service: Scheduled restart job, restart counter is at 5. Mar 30 19:33:22 ip-172-31-39-62 systemd[1]: Stopped freeswitch. Mar 30 19:33:22 ip-172-31-39-62 systemd[1]: freeswitch.service: Start request repeated too quickly. Mar 30 19:33:22 ip-172-31-39-62 systemd[1]: freeswitch.service: Failed with result 'exit-code'. Mar 30 19:33:22 ip-172-31-39-62 systemd[1]: Failed to start freeswitch.

any idea? Thanks

davehorton commented 2 years ago

check the /usr/local/freeswitch/log/freeswitch.log to see if it logs any errors.

Or, start it from the command line and see what happens:

# as root
LD_LIBRARY_PATH=/usr/local/bin:$LD_LIBRARY_PATH /usr/local/freeswitch/bin/freeswitch