Community Packages

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!
Tasklist

FS#21639 - [tinyproxy] - cannot start due to missing directories

Attached to Project: Community Packages
Opened by Josef Lusticky (EVRAMP) - Monday, 08 November 2010, 13:45 GMT
Last edited by Lukas Fleischer (lfleischer) - Friday, 06 January 2012, 18:27 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
When I install tinyproxy and try to run it, I'll get error messages:
tinyproxy: Could not create file /var/log/tinyproxy/tinyproxy.log: No such file or directory
tinyproxy: Could not create file /var/run/tinyproxy/tinyproxy.pid: No such file or directory

Unfortunately this message is not shown when using rc.d script.

When I manually create these directories I get "Permission denied" because tinyproxy runs as nobody in default Arch configuration.
So finally changing owner of '/var/run/tinyproxy/' and '/var/log/tinyproxy/' to nobody:nobody helps.


Steps to reproduce:
Install tinyproxy, run as root:
sudo tinyproxy -c /etc/tinyproxy/tinyproxy.conf -d
This task depends upon

Closed by  Lukas Fleischer (lfleischer)
Friday, 06 January 2012, 18:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  See  FS#27836 .
Comment by SanskritFritz (SanskritFritz) - Friday, 30 December 2011, 15:38 GMT
  • Field changed: Percent Complete (100% → 0%)
Now that the /var/run/tinyproxy directory gets deleted upon reboot, a tmpfiles.d method is advisable:
/usr/lib/tmpfiles.d/tinyproxy.conf:
d /var/run/tinyproxy 0770 nobody nobody -
See the stunnel package as reference.
Comment by SanskritFritz (SanskritFritz) - Monday, 02 January 2012, 10:07 GMT
For your convenience: tinyproxy-git package provides aforementioned change. https://aur.archlinux.org/packages.php?ID=44064
Comment by Josef Lusticky (EVRAMP) - Monday, 02 January 2012, 10:58 GMT
You are right.
This bug is not actual anymore.
Comment by SanskritFritz (SanskritFritz) - Monday, 02 January 2012, 12:28 GMT
So, should I open a new bug report then?
Comment by Josef Lusticky (EVRAMP) - Thursday, 05 January 2012, 12:08 GMT
There is also added code in /etc/rc.d/tinyproxy script which changes chown to nobody:nobody - this has fixed the error i was getting with previous versions.

If you feel the method you mention should be used then yes, open new bug please.
Comment by SanskritFritz (SanskritFritz) - Thursday, 05 January 2012, 12:52 GMT
Ok  FS#27836 , thanks.

Loading...