Library database cache not saved/used in 5.2.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rob Funk

    Library database cache not saved/used in 5.2.1

    Any idea why my music library db cache hasn't been touched since I upgraded
    to 5.2.1? Every time I restart, my disk gets scanned. And telling the
    server to wipe the cache doesn't appear to do anything.

    It doesn't appear to be permissions:

    % grep slimserver /etc/passwd
    slimp3:x:201:201:SliMP3:/etc/slimserver:/bin/sh
    % grep 201: /etc/group
    slimp3:x:201:rfunk
    % cd /etc/slimserver
    % ls -lad . .slimserver.db
    drwxrwxr-x 5 slimp3 slimp3 1024 Jul 9 20:52 .
    -rw-r--r-- 1 slimp3 slimp3 2247903 Jul 7 00:55 .slimserver.db

    --
    ==============================| "A microscope locked in on one point
    Rob Funk <rfunk (AT) funknet (DOT) net> |Never sees what kind of room that it's in"
    http://www.funknet.net/rfunk | -- Chris Mars, "Stuck in Rewind"
  • Rob Funk

    #2
    Library database cache not saved/used in 5.2.1

    Rob Funk wrote:
    > Any idea why my music library db cache hasn't been touched since I

    upgraded
    > to 5.2.1? Every time I restart, my disk gets scanned. And telling the
    > server to wipe the cache doesn't appear to do anything.


    Actually I just found this in the debug log with d_info turned on....
    2004-07-10 22:07:53.4076 saving DB cache: /.slimserver.db
    2004-07-10 22:07:53.4136 could not save DB cache (can't
    create /.slimserver.db: Permission denied at (eval 17) line 27
    )

    So, why is it trying to save in the root directory rather than the home
    directory?

    I'm starting the server like this:

    HOME=/etc/slimserver; export HOME
    /opt/SlimServer/slimserver.pl --daemon \
    --pidfile /var/run/slimserver/slimserver.pid \
    --logfile /var/log/slimserver \
    --prefsfile /etc/slimserver/slimserverrc

    --
    ==============================| "A microscope locked in on one point
    Rob Funk <rfunk (AT) funknet (DOT) net> |Never sees what kind of room that it's in"
    http://www.funknet.net/rfunk | -- Chris Mars, "Stuck in Rewind"

    Comment

    • Rob Funk

      #3
      Library database cache not saved/used in 5.2.1

      Rob Funk wrote:
      > So, why is it trying to save in the root directory rather than the home
      > directory?


      Answer: because I didn't specify what directory to use with the --cachedir
      option, and I'm on Unix (Linux).

      See patch in bug 444.


      --
      ==============================| "A microscope locked in on one point
      Rob Funk <rfunk (AT) funknet (DOT) net> |Never sees what kind of room that it's in"
      http://www.funknet.net/rfunk | -- Chris Mars, "Stuck in Rewind"

      Comment

      Working...