#2811 koji-gc: Fails to create lock file if run under root
Closed: Duplicate by tkopecek. Opened by ignatenkobrain.

[root@koji:/etc/puppet] koji-gc -n
Traceback (most recent call last):
  File "/sbin/koji-gc", line 985, in <module>
    lock_fd = os.open(options.lock_file, os.O_CREAT | os.O_RDWR)
FileNotFoundError: [Errno 2] No such file or directory: '/run/user/0/koji-gc.lock'

I don't think systemd ever creates /run/user/0 so creation of the lock file always fails...


duplicate of #2315

Metadata Update from @tkopecek:
- Custom field Size adjusted to None
- Issue close_status updated to: Duplicate
- Issue status updated to: Closed (was: Open)

mea culpa, should better search for tickets.

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/2811

Please continue any further discussion there.

Metadata