sjg wrote: 
> 
> I have the same problem as Minscof, but my attempts at "starting
> manually the process" didn't work, perhaps as I wasn't quite sure what
> that meant.  (What I tried was running a script with the same
> environment variables and command line as used by the systemd unit file.
> This didn't work for me.)  I'm on Fedora 20 x86_64 using the
> logitechmediaserver 7.9.0-0.25.20140811git1407759841.fc20 from the
> squeezecommunity.org repo
> 
> It looks like there's a directory missing from the dbname, but I wasn't
> sure how to fix this.  Log extract is:
> 
> Aug 23 21:23:16 atsui squeezeboxserver: DBI
> connect('dbname=/cache.db','',...) failed: unable to open database file
> at /usr/lib64/perl5/vendor_perl/Slim/Utils/DbCache.pm line 213.
> Aug 23 21:23:16 atsui squeezeboxserver: Delete the file /cache.db and
> start from scratch.
> Aug 23 21:23:16 atsui squeezeboxserver: Unable to read/create /cache.db
> 

Well, even if I'm the only one in the whole world suffering from this
problem, if a question has been asked in public, it needs to be answered
in public.  So here's my answer.  For some reason the cachedir is not
being picked up from the preferences correctly.  Instead it is returning
as null.  I'm not sufficiently familiar with the code to fix it
properly, so here's a nasty bodge, which I applied at
/usr/lib64/perl5/vendor_perl/Slim/Utils/DbCache.pm:26

Code:
--------------------
    
        if ( !defined $args->{root} ) {
                require Slim::Utils::Prefs;
                # sjg crass bodge to work-around degenerate cachedir:
                #$args->{root} = 
Slim::Utils::Prefs::preferences('server')->get('cachedir');
                $args->{root} = "/var/lib/squeezeboxserver/cache";
  
--------------------


I'm still interested in a proper solution, but at least I'm listening to
my music again.

cheers,
Simon

PS: In case anyone more knowledgeable is interested in pursuing this,
here's the script I used to hand-start the server (assembled by
stealiing from the systemd unit file)

Code:
--------------------
    
  #!/bin/sh
  
  export SQUEEZEBOX_USER="squeezeboxserver"
  export SQUEEZEBOX_HOME="/usr/libexec"
  export SQUEEZEBOX_CFG_DIR="/var/lib/squeezeboxserver/prefs"
  export SQUEEZEBOX_LOG_DIR="/var/log/squeezeboxserver"
  export SQUEEZEBOX_CACHE_DIR="/var/lib/squeezeboxserver/cache"
  export SQUEEZEBOX_CHARSET="utf8"
  export SQUEEZEBOX_PID_FILE="/var/run/squeezeboxserver/squeezeboxserver.pid"
  export SQUEEZEBOX_OPTIONS="--localfile"
  
  sudo -u squeezeboxserver /usr/libexec/squeezeboxserver\
  --pidfile=${SQUEEZEBOX_PID_FILE}\
  --cachedir=${SQUEEZEBOX_CACHE_DIR}\
  --prefsdir=${SQUEEZEBOX_CFG_DIR}\
  --logdir=${SQUEEZEBOX_LOG_DIR}\
  --charset=${SQUEEZEBOX_CHARSET}\
  ${SQUEEZEBOX_OPTIONS} 
  
--------------------


And I can't see anything wrong with how the cachedir is being passed in.


------------------------------------------------------------------------
sjg's Profile: http://forums.slimdevices.com/member.php?userid=62056
View this thread: http://forums.slimdevices.com/showthread.php?t=101931

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to