coturn cannot open log file

Bug #1948769 reported by Sven Dörflinger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
coturn (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello,

I want to save my coturn logfiles in the follow directory:
/var/log/turnserver

In the config /etc/turnserver.conf I set this:
log-file=/var/log/turnserver/turn.log

Follow log entry I can see in journalctl -u coturn:
ERROR: Cannot open log file for writing: /var/log/turnserver/turn.log

The directory has the rights:
drwxr-xr-x 2 root root

The package coturn has this version:
4.5.1.1-1.1ubuntu0.20.04.2

I use Ubuntu-Server:
Description: Ubuntu 20.04.3 LTS
Release: 20.04

My expectation is that coturn wright the logfile which like set in the configfile

Revision history for this message
Patel (gp451ly) wrote :

Err, on this Ubuntu version coturn runs as the user 'turnserver'.
chgrp turnserver /var/log/turnserver should fix it.
And no, coturn should not create a directory in /var/log.
So this bug is not valid IMO.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.