Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236795 - media-sound/squeezecenter-7.2.0 forgets rss feeds and podcasts when restarted
Summary: media-sound/squeezecenter-7.2.0 forgets rss feeds and podcasts when restarted
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Joe Peterson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-05 15:51 UTC by Gerben Vos
Modified: 2009-07-26 19:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerben Vos 2008-09-05 15:51:40 UTC
I am using a Squeezebox Duet. When I edit the RSS feeds or podcasts and then restart the server, the edits are gone.

This is due to a nonwritable directory. This fixes the problem when executed as root:

chown squeezecenter.squeezecenter /var/lib/squeezecenter/prefs/plugin

I originally reported this at http://bugs.slimdevices.com/show_bug.cgi?id=9403 , but on second thought, this bug is probably Gentoo-specific.

Reproducible: Always

Steps to Reproduce:
1. Add some RSS feeds or podcasts to squeezecenter using the web interface.
2. See that they show up on the Controller.
3. /etc/init.d/squeezecenter restart

Actual Results:  
RSS feeds and podcasts are reset to the factory defaults.

Expected Results:  
Still see the self-configured RSS feeds and podcasts.
Comment 1 Gerben Vos 2008-09-05 15:57:39 UTC
It would actually also be a good idea to move all directories that squeezecenter writes to to a more appropriate place, like /var or maybe /etc . As far as I understand, /usr/share is not supposed to be a place where applications write to.
Comment 2 Gerben Vos 2008-09-05 16:11:24 UTC
(In reply to comment #1)

D'oh! It's already in /var . Sorry, was mixing it up with something else.
Comment 3 Joe Peterson (RETIRED) gentoo-dev 2008-09-05 21:04:35 UTC
I'm away over the weekend, but I'll look into this after - thanks!
Comment 4 Joe Peterson (RETIRED) gentoo-dev 2008-09-08 19:11:53 UTC
Stuart,

Does this issue ring any bells with you?

Comment 5 Stuart Hickinbottom 2008-09-08 20:08:52 UTC
That's odd - on my test system, a fresh installation of the squeezecenter ebuild on a clean machine creates /var/lib/squeezecenter/prefs/plugin with the permissions you suggest when you start SqueezeCenter (this directory isn't created by the ebuild, but is created the first time SqueezeCenter is run).

I've tried a clean installation, added a plugin, restarted squeezecenter and can see that the directory still has the right permissions and the plugin I've added has successfully saved its preferences in there.

However, if you already had that directory created with the wrong permissions (say, because you managed to run SqueezeCenter as root rather than 'squeezecenter'), then it will remain with those permissions and exhibit the failure you identified.

Do you think this is what happened?

Joe: I could easily add a step to the ebuild to force the permissions under /var/lib/squeezecenter/{cache,prefs}, but as these shouldn't really be there unless put there through the ebuild, and I think the ebuild creates them correctly at the moment, I'm not sure that's the right thing to do. What do you reckon?
Comment 6 Joe Peterson (RETIRED) gentoo-dev 2008-09-08 20:13:43 UTC
(In reply to comment #5)
> Joe: I could easily add a step to the ebuild to force the permissions under
> /var/lib/squeezecenter/{cache,prefs}, but as these shouldn't really be there
> unless put there through the ebuild, and I think the ebuild creates them
> correctly at the moment, I'm not sure that's the right thing to do. What do you
> reckon?

Let's see what the reporter says about this theory.  Gerben, can you try a fresh install like Stuart tried and see if your system maintains the state correctly?  Do you think the dir could have gotten the wrong perms somehow?

-Thanks
Comment 7 Stuart Hickinbottom 2008-09-08 21:16:23 UTC
Remember, if you're doing a fresh install to test this to remove the /var/lib/squeezecenter directory and subdirectories first (or, rename it if you don't want to lose the contents, of course), as they won't be removed by an unmerge operation.

(In reply to comment #6)
> (In reply to comment #5)
> > Joe: I could easily add a step to the ebuild to force the permissions under
> > /var/lib/squeezecenter/{cache,prefs}, but as these shouldn't really be there
> > unless put there through the ebuild, and I think the ebuild creates them
> > correctly at the moment, I'm not sure that's the right thing to do. What do you
> > reckon?
> 
> Let's see what the reporter says about this theory.  Gerben, can you try a
> fresh install like Stuart tried and see if your system maintains the state
> correctly?  Do you think the dir could have gotten the wrong perms somehow?
> 
> -Thanks
> 

Comment 8 Gerben Vos 2008-09-08 22:06:09 UTC
I don't remember ever having run squeezecenter as root, at least not willingly. I have had problems several times when stopping or (re)starting the service, though (service didn't start properly, had to zap or remove pidfile by hand, etc.).

I'll try a clean install as you indicated, probably tomorrow or Wednesday.
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2009-07-26 19:07:05 UTC
(In reply to comment #8)
> I'll try a clean install as you indicated, probably tomorrow or Wednesday.

Right. It's been a year now. Closing this old bug. Reopen if you still have same issues with latest.