What app is this about, and its version: Coturn, 4.6.1.1~ynh3
What YunoHost version are you running: 13.0.4
What type of hardware are you using: Old laptop or computer
Describe your issue
The logrotate service failed to start due to wrong permission setting in /var/log/coturn. The folder is owned by coturn:coturn, but logrotate for this runs as root and throws an error.
I could fix it for me by adding to /etc/logrotate.d/coturn:
su coturn coturn
I checked the history and content of helpers/helpers.v2.1.d/logrotate, there the user is not set.
I found the closed issue: YunoHost-Apps/coturn_ynh/issues/37
which explains why the folder was owned be group coturn, but did not really fix the issue(that logrotate runs as root for logs owned be coturn).
I’m not sure why other applications do not run into this issue, they should.
Logrotate should run as the apps user and that has to be configured in the logrotate helper script …
But if no other app gets into this problem, why?
Did they all fix it in their local install script?
That is why I put this issue here and not into general yunohost issue forum.
Share relevant logs or error messages
× logrotate.service - Rotate log files
Loaded: loaded (/usr/lib/systemd/system/logrotate.service; static)
Active: failed (Result: exit-code) since Sun 2026-07-19 11:42:33 CEST; 3min 0s ago
Invocation: 1010591f7b014e18b739af22b13e4d93
TriggeredBy: ● logrotate.timer
Docs: man:logrotate(8)
man:logrotate.conf(5)
Process: 316573 ExecStart=/usr/sbin/logrotate /etc/logrotate.conf (code=exited, status=1/FAILURE)
Main PID: 316573 (code=exited, status=1/FAILURE)
Mem peak: 3.4M
CPU: 58ms
Jul 19 11:42:33 jwupf_de systemd[1]: Starting logrotate.service - Rotate log files…
Jul 19 11:42:33 jwupf_de logrotate[316573]: error: skipping “/var/log/coturn/*.log” because parent directory has insecure permissions (It’s world writable or writable by group which is not “root”) Set “su” directive in config file to tell >
Jul 19 11:42:33 jwupf_de systemd[1]: logrotate.service: Main process exited, code=exited, status=1/FAILURE
Jul 19 11:42:33 jwupf_de systemd[1]: logrotate.service: Failed with result ‘exit-code’.
Jul 19 11:42:33 jwupf_de systemd[1]: Failed to start logrotate.service - Rotate log files.