Bug 1293 - Prefs.pm 'mkpath $CacheDir' will not allow server to start
: Prefs.pm 'mkpath $CacheDir' will not allow server to start
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Platform Support
: 6.0.0
: Sun Other
: P1 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-02 15:43 UTC by Carl Gadener
Modified: 2011-03-16 04:34 UTC (History)
0 users

See Also:
Category: ---


Attachments
Check for $cacheDir defined. (434 bytes, patch)
2005-04-07 19:21 UTC, Dan Sully
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carl Gadener 2005-04-02 15:43:01 UTC
The statement mkpath $CacheDir if (!-e $CacheDir);
in Prefs.pm will not allow the server to start on a Solaris 5.9 with Perl 5.8.5

FIX = uncomment line
Comment 1 Dan Sully 2005-04-03 15:40:34 UTC
Carl - why won't it allow it to start?

What's the error you're getting?
Comment 2 Carl Gadener 2005-04-03 17:15:17 UTC
Sorry, here is the output of the startup:


Starting SLIMP3 server:
Use of uninitialized value in -e at
/export/tools/sparc/SlimServer_v6.0/Slim/Utils/Prefs.pm line 123.
Use of uninitialized value in -d at /usr/local/lib/perl5/5.8.5/File/Path.pm line
153.
fileparse(): need a valid pathname at /usr/local/lib/perl5/5.8.5/File/Path.pm
line 154
Compilation failed in require at
/export/tools/sparc/SlimServer_v6.0/Slim/Buttons/Plugins.pm line 20.
BEGIN failed--compilation aborted at
/export/tools/sparc/SlimServer_v6.0/Slim/Buttons/Plugins.pm line 20.
Compilation failed in require at
/export/tools/sparc/SlimServer_v6.0/Slim/Buttons/Common.pm line 15.
BEGIN failed--compilation aborted at
/export/tools/sparc/SlimServer_v6.0/Slim/Buttons/Common.pm line 15.
Compilation failed in require at
/export/tools/sparc/SlimServer_v6.0/Slim/Buttons/Settings.pm line 11.
BEGIN failed--compilation aborted at
/export/tools/sparc/SlimServer_v6.0/Slim/Buttons/Settings.pm line 11.
Compilation failed in require at
/export/tools/sparc/SlimServer_v6.0/Slim/Display/Display.pm line 14.
BEGIN failed--compilation aborted at
/export/tools/sparc/SlimServer_v6.0/Slim/Display/Display.pm line 14.
Compilation failed in require at ./slimserver.pl line 205.
BEGIN failed--compilation aborted at ./slimserver.pl line 205. 
Comment 3 Dan Sully 2005-04-04 13:17:26 UTC
And what does your directory structure look like where your CacheDir lives?

Or is this without any cache dir set from a clean install?

Thanks.
Comment 4 Carl Gadener 2005-04-04 13:42:40 UTC
The Cache directory exists already under /.../SlimServer_v6.0/Cache and the
prefs file points to the very same directory. The equivalent prefs setting works
with 5.4.

I even tried an empty Cache directory to try to force the rebuild from scratch,
but I get the same error.

Carl
Comment 5 Dan Sully 2005-04-07 19:21:31 UTC
Created attachment 409 [details]
Check for $cacheDir defined.

Carl - could you try this patch instead?

Thanks
Comment 6 Carl Gadener 2005-04-07 19:31:51 UTC
Patch works. I tried both with an existing Cache directory and without. In the
latter case, the function properly creates the dir.

Thanks,

Carl
Comment 7 Dan Sully 2005-04-07 19:36:07 UTC
Submitted as subversion change 2908.