Bugzilla – Bug 1293
Prefs.pm 'mkpath $CacheDir' will not allow server to start
Last modified: 2011-03-16 04:34:08 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
Carl - why won't it allow it to start? What's the error you're getting?
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.
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.
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
Created attachment 409 [details] Check for $cacheDir defined. Carl - could you try this patch instead? Thanks
Patch works. I tried both with an existing Cache directory and without. In the latter case, the function properly creates the dir. Thanks, Carl
Submitted as subversion change 2908.