Bug 14519 - Debian installer doesn't migrate settings from old squeezecenter
: Debian installer doesn't migrate settings from old squeezecenter
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Debian
: 7.4.0
: PC Debian Linux
: P4 normal (vote)
: 7.4.1
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-02 06:19 UTC by Oliver Lineham
Modified: 2009-10-22 11:23 UTC (History)
3 users (show)

See Also:
Category: Bug


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Lineham 2009-10-02 06:19:20 UTC
Installing the 7.4.0 deb didn't seem to make any attempt to migrate my prefs/ or Plugins/ from the previous SqueezeCenter 7.3.3 installation.

Copying those dirs from /var/lib/squeezecenter to /var/lib/squeezeboxserver seemed to do the trick.

Given how much time can be spent tweaking settings, they really should be migrated between versions.
Comment 1 Ross Levine 2009-10-02 14:58:33 UTC
Perhaps things are different with Ubuntu, but this works OK for me. Could you post specifically what preferences you noticed weren't migrated? Were any preferences migrated? My SN login was migrated perfectly, however the skin setting didn't go so well but that may have been a caching/browser issue.
Comment 2 Oliver Lineham 2009-10-02 17:03:40 UTC
Yes, sorry it was late at night :)  Nothing was migrated.

- Debian Lenny
- dpkg -r squeezecenter (to uninstall squeezecenter but let configuration remain)
- dpkg -i squeezeboxserver_7.4.0_all.deb

At that point /var/lib/squeezeboxserver was empty, and going to the web interface kicks off the config wizard like on a fresh install.

Stopped squeezeboxserver, copied over the dirs from /var/lib/squeezecenter, restarted squeezeboxserver and this time it recognised the configuration.

This is all in a VM, which I snapshotted before the upgrade - so I should be able to reproduce this.

Does 7.4 deb check if squeezecenter package is installed to decide to copy prefs? If so it may be checking for state "installed" rather than "config-files" (see man dpkg). Just a guess.
Comment 3 Ross Levine 2009-10-02 17:35:28 UTC
(In reply to comment #2)
> Does 7.4 deb check if squeezecenter package is installed to decide to copy
> prefs? If so it may be checking for state "installed" rather than
> "config-files" (see man dpkg). Just a guess.

Mark or Matt, can either of you answer this?
Comment 4 Matt Wise 2009-10-02 18:55:15 UTC
There is no code in the Debian package that looks for old config files  
from SqueezeCenter. This only got finished for Windows and OSX  
systems, not our Linux distributions. This bug should be assigned to  
Mark I believe to be taken care of for 7.4.1.
Comment 5 Michael Herger 2009-10-02 23:35:55 UTC
> There is no code in the Debian package that looks for old config files
> from SqueezeCenter.

Oh, there is, in Slim::Utils::OS::migratePrefs or similar. I'll take a  
look at this early next week.

Matt - do you know whether the installation does create the prefs folder  
or not?
Comment 6 Matt Wise 2009-10-03 09:12:20 UTC
I'm almost positive that it does create the prefs folder...
Comment 7 Michael Herger 2009-10-04 00:09:46 UTC
> I'm almost positive that it does create the prefs folder...

That might be it: the SBS internal code doesn't check existence of every file, but only the folder's. We'll need to at least check for server.prefs too.
Comment 8 SVN Bot 2009-10-06 04:20:34 UTC
 == Auto-comment from SVN commit #28782 to the slim repo by michael ==
 == https://svn.slimdevices.com/slim?view=revision&revision=28782 ==

Fixed Bug: 14519 +1
Description: our Linux packages are creating the prefs folder during installation. Thus checking for the existence of that folder is not good enough. We'll check for the existence of the server.prefs too
Comment 9 James Richardson 2009-10-22 11:23:19 UTC
This bug has been marked as fixed in the 7.4.1 release version of SqueezeBox
Server! 

Please see the Release Notes for all the details:
http://wiki.slimdevices.com/index.php/Release_Notes

If you haven't already, please download and install the new version from
http://www.logitechsqueezebox.com/support/download-squeezebox-server.html

If you are still experiencing this problem, feel free to reopen the bug with
your new comments and we'll have another look.