Bug 6288 - plugin-data.yaml not rewritten when SC location changes
: plugin-data.yaml not rewritten when SC location changes
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: 7.0
: Macintosh MacOS X 10.4
: P2 normal (vote)
: ---
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-12-07 10:55 UTC by Ben Klaas
Modified: 2008-12-18 11:12 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Klaas 2007-12-07 10:55:41 UTC
I could not get the web UI to load on my OS X SC checkout. I had not yet gone through the wizard.

I got this error on the console:

[12:40:24.1772] Slim::Networking::Select::select (245) Error: Select task failed: Can't locate object method "canUseiTunesLibrary" via package "Slim::Plugin::iTunes::Common" (perhaps you forgot to load "Slim::Plugin::iTunes::Common"?) at /Users/bklaas/svk/slim/branches/mainMenuRework/Slim/Web/Settings/Server/Wizard.pm line 157.


So I commented line 157 out of Wizard.pm and then restarted

/Users/bklaas/svk/slim/branches/mainMenuRework: ./slimserver.pl 
[12:46:03.5410] Slim::Networking::Select::select (245) Error: Select task failed: Undefined subroutine &Slim::Plugin::MusicMagic::Plugin::canUseMusicMagic called at /Users/bklaas/svk/slim/branches/mainMenuRework/Slim/Web/Settings/Server/Wizard.pm line 158.

then I commented 158 and the wizard came up
Comment 1 Ben Klaas 2007-12-07 12:34:55 UTC
The problem here is that my Cache/plugin-data.yaml file was not rewritten when I moved/restarted SC from a different directory, so the path to Plugins were incorrect. This caused the Web UI to fail completely whenever it hit any part of the SC code that queried PluginManager.

This might be a WONTFIX, but I'm not sure it should be...I'd like to see the plugin-data.yaml file get rewritten on restart. What do we gain by staying with the cached version?
Comment 2 KDF 2007-12-07 16:20:04 UTC
it used to contain state data.  "to be disabled", "to be enabled" and "to be removed". Otherwise, it's there as a cache of the processed install.xml information.  If we want to rebuild it every time the server starts, I should think it would then be no point in creating it anyway.
Comment 3 Michael Herger 2007-12-12 03:15:34 UTC
Ben - do you still consider this issue major or rather wontfix? As Kevin mentions, checking the file for it's validity at every startup would render it rather useless.
Comment 4 Ben Klaas 2007-12-12 06:43:15 UTC
Sorry, this definitely shouldn't be a major once the root cause was determined.

There needs to be a fix for this eventually, IMO, but it's not a typical bug to hit.

moving to normal
Comment 5 Michael Herger 2008-01-04 01:57:03 UTC
change 15864 - add SC installation folder to plugin cache and rebuild cache if path changed
Comment 6 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.