poldek -O cachedir still attempts to lock unwritable system dir

Bug #1187401 reported by Elan Ruusamäe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
poldek
Fix Released
Undecided
Unassigned

Bug Description

# grep cachedir /etc/poldek/poldek.conf
# Cache directory for downloaded files. NOTE that parent directory of cachedir
cachedir = /var/cache/poldek

# la -d /var/cache/poldek/
drwxr-xr-x 19 root root 4096 Jun 4 17:00 /var/cache/poldek//

# rpm -q poldek
poldek-0.30.0-1.rc7.2.x86_64

which such setup, i can't use different cachedir with non-root:

# sudo -H -u http poldek -O cachedir='/var/cache/dokuwiki/poldek' --up

error: open /var/cache/poldek/http_distrib.pld.pld.th.noarch/.vflock__var.cache.poldek.http.distrib.pld.pld.th.noarch: Permission denied
error: /var/cache/poldek/http_distrib.pld.pld.th.noarch: unable to obtain lock

error: open /var/cache/poldek/http_distrib.pld.pld.th.x86.64/.vflock__var.cache.poldek.http.distrib.pld.pld.th.x86.64: Permission denied
error: /var/cache/poldek/http_distrib.pld.pld.th.x86.64: unable to obtain lock
...

Revision history for this message
Elan Ruusamäe (glen666) wrote :

even --skip-installed workaround does not help:

# sudo -H -u http poldek -O cachedir='/var/cache/dokuwiki/poldek' --up --skip-installed

error: open /var/cache/poldek/http_..../.vflock__var.cache.poldek.....noarch: Permission denied

Revision history for this message
Elan Ruusamäe (glen666) wrote :

i workarounded the problem with own config until this bug gets fixed
https://github.com/glensc/dokuwiki-plugin-poldek/commit/4716c00b3c30ccf3dc2c41e6b2ce8593c00e6e1d

Revision history for this message
Marcin Banasiak (megabajt) wrote :

Did you try --cachedir option, i.e.:

# sudo -H -u http poldek --cachedir='/var/cache/dokuwiki/poldek' --up

Revision history for this message
Elan Ruusamäe (glen666) wrote :

ahaa. ok. thanks. didn't know --cachedir existed

Elan Ruusamäe (glen666)
Changed in poldek:
status: New → Fix Released
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.