Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#65942 - [coturn] "Cannot open log file for writing"
Attached to Project:
Community Packages
Opened by Randy Heydon (Tempel) - Monday, 23 March 2020, 00:36 GMT
Last edited by freswa (frederik) - Monday, 30 March 2020, 13:58 GMT
Opened by Randy Heydon (Tempel) - Monday, 23 March 2020, 00:36 GMT
Last edited by freswa (frederik) - Monday, 30 March 2020, 13:58 GMT
|
DetailsUsing coturn 4.5.1.1-7. On starting turnserver.service, an error is reported in the status output and no log files are created. I expect this is because turnserver.service runs as user turnserver, but /var/log/turnserver is owned by root with permissions as 755.
# systemctl enable turnserver # systemctl status turnserver ● turnserver.service - STUN and TURN relay server for VoIP and WebRTC Loaded: loaded (/usr/lib/systemd/system/turnserver.service; enabled; vendor preset: disabled) Active: active (running) since Thu 2020-03-19 19:35:37 EDT; 2 days ago Main PID: 39554 (turnserver) Tasks: 9 (limit: 19109) Memory: 9.5M CGroup: /system.slice/turnserver.service └─39554 /usr/bin/turnserver -c /etc/turnserver/turnserver.conf -o -v ... systemd[1]: Starting STUN and TURN relay server for VoIP and WebRTC... ... turnserver[39552]: ERROR: Cannot open log file for writing: /var/log/turnserver/turn_2020-03-19.log ... systemd[1]: Started STUN and TURN relay server for VoIP and WebRTC. # ls -a /var/log/turnserver/ . .. |
This task depends upon
Closed by freswa (frederik)
Monday, 30 March 2020, 13:58 GMT
Reason for closing: Fixed
Additional comments about closing: 4.5.1.1-8
Monday, 30 March 2020, 13:58 GMT
Reason for closing: Fixed
Additional comments about closing: 4.5.1.1-8
The changes have systemd create /var/log/turnserver when the service starts with permissions 0700.
Likewise /run/turnserver. (with default permissions 0755)
Change the pidfile to use /run/turnserver/turnserver.pid without needing the symlink from /var/run to /run.
Applies the fix from
FS#65646warning: directory permissions differ on /etc/turnserver/
filesystem: 700 package: 755
It looks like /etc/turnserver is stored as 755 in the package, but changed to 700 at the end of installation by turnserver.tmpfiles.d, so pacman gives a warning when the install is repeated.