Bug 854804

Summary: incorrect permissions on /var/lib/smokeping/images if smokeping installed before httpd
Product: [Fedora] Fedora Reporter: Charles R. Anderson <cra>
Component: smokepingAssignee: Terje Røsten <terje.rosten>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: terje.rosten
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-17 17:37:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Charles R. Anderson 2012-09-06 02:50:49 UTC
Description of problem:

After setting up a brand new install of smokeping on F16, the web interface reports errors creating directories and files under /var/lib/smokeping/images, but only if smokeping is installed before httpd.

Version-Release number of selected component (if applicable):
smokeping-2.4.2-16.fc16.noarch

How reproducible:
always

Steps to Reproduce:
1. Start with a fresh F16 install without httpd, OR:
   yum remove httpd
   userdel apache
2. yum install smokeping
3. yum install httpd
4. systemctl start httpd.service
5. systemctl start smokeping.service
6. Visit http://localhost/smokeping/sm.cgi and click on Fedora
  
Actual results:

Installing : smokeping-2.4.2-16.fc16.noarch 52/52 
warning: user apache does not exist - using root

Then when visiting the website and clicking on Fedora:

Software error:

ERROR: creating  /var/lib/smokeping/images/Ping: No such file or directory
For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.


# ls -l /var/lib/smokeping/
total 8
drwxr-xr-x. 2 root root 4096 Jan 22  2012 images
drwxr-xr-x. 3 root root 4096 Sep  5 22:39 rrd

[root@t /]# ls -l /var/lib/smokeping/images
total 0


Expected results:

Require httpd to be installed first, so the apache user exists before smokeping is installed.

Additional info:

Comment 1 Terje Røsten 2012-09-06 17:13:56 UTC
Thanks for your report.

Comment 2 Fedora Update System 2012-09-06 18:53:49 UTC
smokeping-2.6.8-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/smokeping-2.6.8-1.fc18

Comment 3 Fedora Update System 2012-09-06 18:57:45 UTC
smokeping-2.6.8-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/smokeping-2.6.8-1.fc17

Comment 4 Fedora Update System 2012-09-06 19:01:42 UTC
smokeping-2.4.2-17.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/smokeping-2.4.2-17.fc16

Comment 5 Fedora Update System 2012-09-07 11:24:35 UTC
Package smokeping-2.4.2-17.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing smokeping-2.4.2-17.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-13411/smokeping-2.4.2-17.fc16
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-09-17 17:37:11 UTC
smokeping-2.4.2-17.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2012-09-17 17:43:36 UTC
smokeping-2.6.8-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2012-09-17 23:03:22 UTC
smokeping-2.6.8-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.