Bug 1707831 - Permissions wrong on /var/opt/rh/rh-varnish6/log/varnish
Summary: Permissions wrong on /var/opt/rh/rh-varnish6/log/varnish
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Software Collections
Classification: Red Hat
Component: rh-varnish6
Version: rh-varnish6
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
: 3.4
Assignee: Luboš Uhliarik
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-08 13:51 UTC by Jeff Voskamp
Modified: 2021-01-14 09:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-26 09:40:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:2262 0 None None None 2020-05-26 09:40:50 UTC

Description Jeff Voskamp 2019-05-08 13:51:53 UTC
Description of problem:
Permissions on log directory won't let varnishncsa start.


Version-Release number of selected component (if applicable):
Package rh-varnish6-varnish-6.0.0-2


How reproducible:
Problem is present "out of the box"


Steps to Reproduce:
1. install rh-varnish6-varnish
2. systemctl start rh-varnish6-varnishncsa.service 

Actual results:
From logs:
systemd: Starting Varnish Cache HTTP accelerator NCSA logging daemon...
varnishncsa: Can't open output file (Permission denied)
systemd: rh-varnish6-varnishncsa.service: control process exited, code=exited status=1
systemd: Failed to start Varnish Cache HTTP accelerator NCSA logging daemon.
systemd: Unit rh-varnish6-varnishncsa.service entered failed state.
systemd: rh-varnish6-varnishncsa.service failed.

Expected results:
from "ps axf":
/opt/rh/rh-varnish6/root/usr/bin/varnishncsa -a -w /var/opt/rh/rh-varnish6/log/varnish/varnishncsa.log -D -P /var/opt/rh/rh-varnish6/run/rh-varnish6-varnish/varnishncsa.pid



Additional info:
Permissions on log and pid directories are wrong" drwx------ root.root" when varnishncsa runs as varnish.varnish
Probably needs a file in /usr/lib/tmpfiles.d/

Comment 11 errata-xmlrpc 2020-05-26 09:40:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:2262


Note You need to log in before you can comment on or make changes to this bug.