Failed to start coTURN STUN/TURN Server

Nextcloud 24.0.5

Hi,

I have a problem installing coturn. After the installation, I get the following message at “service coturn restart”:

Job for coturn.service failed because the service did not take the steps required by its unit configuration.
See “systemctl status coturn.service” and “journalctl -xe” for details.

After “systemctl status coturn.service” the following error message:

root@nextcloudpi:~# systemctl status coturn.service
● coturn.service - coTURN STUN/TURN Server
Loaded: loaded (/lib/systemd/system/coturn.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/coturn.service.d
└─override.conf
Active: failed (Result: protocol) since Wed 2022-11-30 19:17:28 GMT; 32min ago
Docs: man:coturn(1)
man:turnadmin(1)
man:turnserver(1)
Process: 94543 ExecStart=/usr/bin/turnserver --daemon -c /etc/turnserver.conf --pidfile /run/turnserver/turnserver.pid --no-stdout-log>
Main PID: 94543 (code=exited, status=0/SUCCESS)
CPU: 37ms

Nov 30 19:17:28 nextcloudpi systemd[1]: coturn.service: Scheduled restart job, restart counter is at 5.
Nov 30 19:17:28 nextcloudpi systemd[1]: Stopped coTURN STUN/TURN Server.
Nov 30 19:17:28 nextcloudpi systemd[1]: coturn.service: Start request repeated too quickly.
Nov 30 19:17:28 nextcloudpi systemd[1]: coturn.service: Failed with result ‘protocol’.
Nov 30 19:17:28 nextcloudpi systemd[1]: Failed to start coTURN STUN/TURN Server.

What did I do wrong and how can I correct it?

I think you should take a look at the override.conf - my suspect is that it might contain a line like this:
“ExecStart=/usr/bin/turnserver –daemon -c /etc/turnserver.conf --pidfile…”
try to remove the “–daemon” option, leave everything else unchanged…

Thank you for this tip! Now it works well and the error is gone. I am very happy about it. :grinning: :grinning: :grinning: