Bug 894364 - Necessary folder/files are not created for mpdscribble to run properly
Summary: Necessary folder/files are not created for mpdscribble to run properly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: mpdscribble
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Lemenkov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-11 15:18 UTC by Andrew G. Dunn
Modified: 2013-02-02 04:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-02 04:22:09 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Andrew G. Dunn 2013-01-11 15:18:03 UTC
Description of problem:
The necessary folder and file is not created by default at install time by this package to run the packaged config file. There needs to be a /var/run/mpdscribble folder and a /var/run/mpdscribble/mpdscribble.pid file with the ownership of mpdscribble:mpdscribble for this service not to error out and crash.

Version-Release number of selected component (if applicable):
Name        : mpdscribble
Arch        : x86_64
Version     : 0.22
Release     : 2.fc18

How reproducible:
Should be on every single install


Steps to Reproduce:
1. sudo yum install mpdscribble
2. sudo service start mpdscribble
3. sudo systemctl status mpdscribble
4. view the error
  
Actual results:
mpdscribble[5351]: Failed to create pidfile /var/run/mpdscribble/mpdscribble.pid: No such file or directory


Expected results:
mpdscribble.service - Mpdscribble
	  Loaded: loaded (/usr/lib/systemd/system/mpdscribble.service; enabled)
	  Active: active (running) since Fri, 2013-01-11 10:13:21 EST; 3s ago
	Main PID: 5874 (mpdscribble)
	  CGroup: name=systemd:/system/mpdscribble.service
		  └ 5874 /usr/bin/mpdscribble --no-daemon --pidfile /var/run/mpdscribble/mpdscribble.pid

Comment 1 Andrew G. Dunn 2013-01-23 02:02:10 UTC
After a reboot the /var/run/mpdscribble folder is removed

Comment 2 Andrew G. Dunn 2013-01-23 02:13:43 UTC
After talking on IRC #freenode the user Fenris02 suggested to modify the /etc/tmpfiles.d/mpdscribble file and add "d /var/run/mpdscribble 0755 mpdscribble mpdscribble"

This persists the folder after reboot.

I noticed that there is already a line in there for /var/cache/mpdscribble which doesn't appear to be necessary as /var/cache is not a temp fs.

I would suggest patching to incorporate the line "d /var/run/mpdscribble 0755 mpdscribble mpdscribble"

Comment 3 Peter Lemenkov 2013-01-23 09:29:45 UTC
(In reply to comment #2)
> After talking on IRC #freenode the user Fenris02 suggested to modify the
> /etc/tmpfiles.d/mpdscribble file and add "d /var/run/mpdscribble 0755
> mpdscribble mpdscribble"
> 
> This persists the folder after reboot.
> 
> I noticed that there is already a line in there for /var/cache/mpdscribble
> which doesn't appear to be necessary as /var/cache is not a temp fs.
> 
> I would suggest patching to incorporate the line "d /var/run/mpdscribble
> 0755 mpdscribble mpdscribble"

Thanks for the report. It looks like I copypasted /var/cache from somewhere and made a nasty typo. A new build will be available shortly.

Comment 4 Fedora Update System 2013-01-23 10:02:16 UTC
mpdscribble-0.22-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/mpdscribble-0.22-3.fc18

Comment 5 Peter Lemenkov 2013-01-23 10:06:17 UTC
I wonder if it still works. Could you please test it?

Comment 6 Fedora Update System 2013-01-24 22:41:18 UTC
Package mpdscribble-0.22-3.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing mpdscribble-0.22-3.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-1450/mpdscribble-0.22-3.fc18
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2013-02-02 04:22:11 UTC
mpdscribble-0.22-3.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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