FS#65646 - [coturn] Fresh install of coturn; error in "Creating temporary files"

Attached to Project: Community Packages
Opened by bobpaul (bobpaul) - Thursday, 27 February 2020, 21:01 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 30 March 2020, 23:23 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
/etc/turnserver/turnserver.conf and /run/turnserver/ both exist after install, so I'm not sure why there's an error.

Steps to reproduce:
```
$ sudo pacman -S coturn
[...snip ...]
:: Running post-transaction hooks...
(1/4) Creating system user accounts...
(2/4) Reloading system manager configuration...
(3/4) Creating temporary files...
error: command failed to execute correctly
(4/4) Arming ConditionNeedsUpdate...
$ sudo ls -dlah /run/turnserver/
drwx------ 2 turnserver turnserver 40 Feb 27 20:52 /run/turnserver/
$ sudo ls -lah /etc/turnserver/
total 36K
drwx------ 2 turnserver turnserver 4.0K Feb 27 20:56 .
drwxr-xr-x 45 root root 4.0K Feb 27 20:56 ..
-rw-r--r-- 1 root root 26K Jan 31 22:23 turnserver.conf
```
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 30 March 2020, 23:23 GMT
Reason for closing:  Fixed
Comment by loqs (loqs) - Tuesday, 03 March 2020, 11:12 GMT
What is the full output from running the following as root:
SYSTEMD_LOG_LEVEL=debug /usr/bin/systemd-tmpfiles --create
Comment by bobpaul (bobpaul) - Tuesday, 03 March 2020, 16:57 GMT

Failed to determine whether '/etc/turnserver/turnserver.conf' is below autofs, ignoring: Permission denied
Running create action for entry z /etc/turnserver/turnserver.conf
Comment by loqs (loqs) - Tuesday, 03 March 2020, 18:22 GMT
Is / or /etc or /etc/turnserver configured with autofs?
Comment by bobpaul (bobpaul) - Tuesday, 03 March 2020, 22:02 GMT
No.

$ grep autofs /proc/mounts
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13771 0 0
Comment by bobpaul (bobpaul) - Tuesday, 03 March 2020, 22:04 GMT
This is happening on all 3 archlinux systems I've tested it on. One was a fresh install. Does it not happen when you install the package?
Comment by loqs (loqs) - Tuesday, 03 March 2020, 23:24 GMT
I can reproduce it only I get different output from systemd-tmpfiles
Detected unsafe path transition /etc/turnserver → /etc/turnserver/turnserver.conf during canonicalization of /etc/turnserver/turnserver.conf.

Changing the tmpfiles.d entry to use Z instead of z resolved the issue locally.
The attached is a diff of the change.
Comment by bobpaul (bobpaul) - Wednesday, 04 March 2020, 03:14 GMT
derp. The AUFs issue was from not running as root.
I do get the same unsafe path transition on all 3 systems.

I can confirm the attached patch fixes the issue.

Sorry for not following instructions :-/
Comment by Dominik Schrempf (dschrempf) - Tuesday, 17 March 2020, 11:43 GMT
I also encountered this error. Has the package been fixed already?

coturn 4.5.1.1-7
Comment by Dominik Schrempf (dschrempf) - Saturday, 28 March 2020, 12:19 GMT
I am really sorry to bump this thread, but the error pops up every time I upgrade my systems.

pacman -Syu

...
( 6/10) Creating temporary files...
error: command failed to execute correctly
...
Comment by Sergej Pupykin (sergej) - Sunday, 29 March 2020, 20:54 GMT
please try coturn-4.5.1.1-8
Comment by Dominik Schrempf (dschrempf) - Monday, 30 March 2020, 07:05 GMT
Thank you very much! Works perfectly!

Loading...