Bug 3308 - Podcast plugin fails to start when slimserver runs as a service
: Podcast plugin fails to start when slimserver runs as a service
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Plugin
: 6.5b1
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Andy Grundman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-04-22 14:47 UTC by Philip Meyer
Modified: 2008-09-15 14:39 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Meyer 2006-04-22 14:47:06 UTC
When I run slimserver interpreted using active perl as a service, the podcast plugin fails to load.  It is not listed in the server settings -> plugins list.

2006-04-22 22:28:41.1258 Requiring Plugins::Podcast::Plugin plugin.
2006-04-22 22:28:41.1273 Podcast Plugin initializing.
2006-04-22 22:28:41.1275 Podcast Feed Info:
2006-04-22 22:28:41.1275 PodcastAlley Top 50, http://podcastalley.com/PodcastAlleyTop50.opml
2006-04-22 22:28:41.1275 PodcastAlley 10 Newest, http://podcastalley.com/PodcastAlley10Newest.opml
2006-04-22 22:28:41.1276 Podcast Pickle Top 25 Newest, http://www.podcastpickle.com/podPlayer/new/opml25Newest.php
2006-04-22 22:28:41.1277 Podcast Pickle Top 25 Favorites, http://www.podcastpickle.com/podPlayer/new/opml25Favorites.php
2006-04-22 22:28:41.1277 
2006-04-22 22:28:41.2869 Initialization of Plugins::Podcast::Plugin failed: Error in tempfile() using \Music\SlimServer\server\Cache\FileCache\5\f\c\XXXXXXXXXX: Parent directory (\Music\SlimServer\server\Cache\FileCache\5\f\c\) is not a directory at P:\Music\SlimServer\trunk\server\CPAN/Cache/FileBackend.pm line 562


I checked; P:\Music\SlimServer\server\Cache\FileCache\5\f\c\ is a directory.  Could it be that it's not looking with the full path specification (ie. needs the "P:" disk in front of the path)?

When I run the plugin from the command line with perl slimserver.pl --d_plugins, the plugin is loaded.  I can see the podcast browser in the web ui, and the podcast pluggin section in server settings.
Comment 1 Andy Grundman 2006-04-22 15:22:52 UTC
Well it looks like it is indeed missing the drive letter here.  Can you find out what your cachedir preference is set to (open up slimserver.pref to see).
Comment 2 Philip Meyer 2006-04-23 03:12:55 UTC
cachedir: P:\Music\SlimServer\server\Cache
Comment 3 Andy Grundman 2006-04-23 06:36:23 UTC
Hmm, I will do some testing under Windows.
Comment 4 KDF 2006-04-23 11:21:23 UTC
problem would seem to be in Cache/Filebackend here:

  my ( $volume, $directory, $filename ) = File::Spec->splitpath( $p_path );

  my ( $temp_fh, $temp_filename ) = tempfile( DIR => $directory );


splitpath parses the volume info, and then the failing line above, tries to write to just the "$directory" portion of the path
Comment 5 Andy Grundman 2006-04-24 06:18:56 UTC
I've fixed this in our custom lib directory.  A fix has also been pending in CPAN RT for several months and should be in Cache::Cache 1.05.