Bug 6216 - Favorites Empty
: Favorites Empty
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Player UI
: 7.0
: PC Ubuntu Linux
: P2 major (vote)
: ---
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-24 04:19 UTC by Stefan Kinell
Modified: 2008-12-18 11:12 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
favorites.opml (656 bytes, text/xml)
2007-11-24 04:20 UTC, Stefan Kinell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Kinell 2007-11-24 04:19:23 UTC
When going to favourites in the player main menu, the favourites are displayed as "Empty". Looking at the favorites.opml-file, it still lists my favourites i had yesterday before going to bed.

The server/computer has been restarted between yesteday evening and now.

/Stefan
Comment 1 Stefan Kinell 2007-11-24 04:20:11 UTC
Created attachment 2444 [details]
favorites.opml

This is the favorites.opml-file.

/Stefan
Comment 2 Stefan Kinell 2007-11-24 04:34:07 UTC
When assigning a new favorite from the player, the favorites-menu displays just that entry. 

Searching through my system, I find a new favorites.opml file in /var/cache/slimserver containing only the just entered favorite.

Why has the server created a new favorites-file and forgetting about the old?

/Stefan
Comment 3 Mark Miksis 2007-11-24 09:54:25 UTC
Does the slimserver user have write access to your playlist dir?  Have you changed that folder's permissions recently?  I believe that slimserver tries to write favorites.opml to the playlist dir, but falls back to the cache dir if it can't write to the playlist dir.  I'm not really sure what it does (or what it should do) if it can read a favorites opml file in both locations...
Comment 4 Stefan Kinell 2007-11-24 09:59:58 UTC
Hi,
I have not myself changed the permissions on the file. ls -la gives the following:

-rw-r--r--   1 slimserver nogroup      656 2007-11-20 14:59 favorites.opml

So slimserver seems to have write and read permissions on the file.

/Stefan
Comment 5 KDF 2007-11-24 16:18:17 UTC
what about permissions on the folder?
Comment 6 Stefan Kinell 2007-11-24 23:12:17 UTC
no change sice before on folder permissions, they are still:

drwxr-xr-x 327 stefan stefan 20480 2007-11-22 10:45 Music


But what difference should that make if the file slimsrver wants to write to has the correct permissions?

/Stefan
Comment 7 KDF 2007-11-25 00:23:56 UTC
The server checks for write permissions to the PLAYLIST dir.  If that fails, then it will write to the cache dir, just as Fletch has pointed out above and basically fitting the symptoms you have mentioned.  Check for slimserver write permissions on the playlist dir, not the music folder.
Comment 8 Stefan Kinell 2007-11-25 00:36:29 UTC
Playlist directory is the same as music folder.

/Stefan
Comment 9 Stefan Kinell 2007-11-25 00:39:01 UTC
Playlist directory is the same as music folder.

/Stefan
Comment 10 Chris Owens 2007-12-10 09:11:09 UTC
QA to try to reproduce
Comment 11 Blackketter Dean 2007-12-26 14:12:06 UTC
Any news, QA?
Comment 12 Michael Herger 2008-01-08 10:17:47 UTC
Stefan - can you still reproduce this with the latest version?
Comment 13 Stefan Kinell 2008-01-09 01:52:34 UTC
Hi!
Currently I run SqueezeCenter-version: 7.0 - 15712 - Debian - SV - utf8. Must have been a week or so since I last upgraded.

With the current install I'm not able to save anything to the favourites.opml file in my music folder. Everything is savd to /var/cache/slimserver/favourites.opml instead. I even deleted the favourites.opml file in my music folder, which resides under /storage/Music/. As before the permissions on the music folder is:

drwxr-xr-x 331 stefan stefan 20480 2008-01-09 10:48 Music

I'll download release 16048 and see if it makes a difference.

/Stefan
Comment 14 Michael Herger 2008-01-09 02:03:16 UTC
Favorites are stored in the playlist folder, which must not be the same as the music folder. If you put that favorites.opml file in your playlist folder, does it work?
Comment 15 Stefan Kinell 2008-01-09 02:29:35 UTC
Hi,
Plalistfolder is the same as music folder. I'll try specify a unique plalistfolder and see if it makes a difference.

/Stefan
Comment 16 Stefan Kinell 2008-01-09 04:19:04 UTC
Uppgraded to 16048. A bit strange instalation when I was told that this installation, since it is now renamed to Squeezecenter was in conflict with Slimserver. If this something that that's going to happen to other users upgrading form slimserver 6.XX to 7.XX  I would argue that is a bug. Now I had to uninstall the previouse version and install clean 16048. Please let me know if you wnat me to file this as a seperate bug.

Back to favourites issue. I have no a seperate plalist directory under /storage/Music/plalists/ . No file is created there when I save favourites. The file at /var/cache/slimserver/ is changed though. And if all the rest is renamed to Squeezecenter, why not change the cache foler as well?

Please let me know if there is anything else you would like to know or me to test.

br
Stefan
Comment 17 Michael Herger 2008-01-09 04:27:51 UTC
> if you wnat me to file this as a seperate bug.

Yes, please do so.

> Back to favourites issue. I have no a seperate plalist directory under
> /storage/Music/plalists/ . No file is created there when I save favourites. The
> file at /var/cache/slimserver/ is changed though. And if all the rest is
> renamed to Squeezecenter, why not change the cache foler as well?

Hmm... it should. This is probably going in the same direction as the aforementioned conflict. Though we want to keep the existing configuration. Please add this comment to the new bug too.

The question here is whether you can use the favorites or not? Do they eventually show up?
Comment 18 Stefan Kinell 2008-01-09 04:38:49 UTC
Ok I'll post a seperate bug.

Yes, the favourites do show up, exactly as stored under /var/cache/slimserver/favourites.opml.

I'm just worried that at some point they will dissapear again, just as they did when the server no longer used the favourites file in my playlistfolder.

/Stefan
Comment 19 Michael Herger 2008-01-09 04:46:26 UTC
> Ok I'll post a seperate bug.

Thanks!

> Yes, the favourites do show up, exactly as stored under
> /var/cache/slimserver/favourites.opml.

Great!

> I'm just worried that at some point they will dissapear again, just as they did
> when the server no longer used the favourites file in my playlistfolder.

Feel free to re-open this bug if it should happen.
Comment 20 Chris Owens 2008-03-07 09:04:28 UTC
This bug is being closed since it was resolved for a version which is now released!  Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html

If you are still seeing this bug, please re-open it and we will consider it for a future release.