Home of the Squeezebox™ & Transporter® network music players.
Page 50 of 50 FirstFirst ... 40484950
Results 491 to 497 of 497
  1. #491

    PCP Cache prefs from a samba network share?

    Could anyone advise.

    I have PCP on a Pi 3B+, all music is on a NAS (samba) and I'd like the LMS cache/prefs to sit on the NAS too.

    So when I follow these steps I get an error :

    1. Samda mapping is already set
    2. Select "Save LMS Server Cache and Preferences to Mounted Drive" so it's set to "Network Disk"
    3. "Install" "LMS on PCP"
    4. "Start LMS"


    At this point I see the Cache and prefs directories created in /mnt/data/slimserver/ (which is what I expect)

    But LMS has tried to start and terminated.

    Error in server.log shows :

    Code:
    [18-12-08 00:55:43.0293] Slim::Utils::Misc::msg (1252) Warning: [00:55:43.0286] DBD::SQLite::db do failed: database is locked at /usr/local/slimserver/Slim/Utils/DbCache.pm line 230.
    Delete the file /usr/local/slimserver/Cache/cache.db and start from scratch.
    [18-12-08 00:55:43.0399] Slim::Utils::DbCache::_init_db (280) Warning: Unable to read/create /usr/local/slimserver/Cache/cache.db
    Whatever I try I cannot seem to get it to work.

    It seems odd that it's complaining it can't create /usr/local/slimserver/Cache/cache.db this file should be created on the specificied network drive as /mnt/data//slimserver/Cache/cache.db

    Anyone any ideas, perhaps some bug and I should manually adjust some config files to have it work?

    FWIW /home/tc/.slimserver.cfg shows :

    Code:
    CACHE=/mnt/data/slimserver/Cache
    PREFS=/mnt/data/slimserver/prefs
    Last edited by Prime Heretic; 2018-12-07 at 18:04.

  2. #492
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,500
    /usr/local/slimserver/Cache will be a symlink to your Netowork drive. LMS just logging it's location, rather than showing where the link points.

    This looks like you don't have read and write permission on the drive.

    Check on your nas that the user/password used to mount the drive has write permissions. What is the file system on the mapped drive?
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  3. #493
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,118

    ANNOUNCE: piCorePlayer 4.0.0

    > I have PCP on a Pi 3B+, all music is on a NAS (samba) and I'd like the
    > LMS cache/prefs to sit on the NAS too.


    I wouldn't do this. I've been running LMS on a Pi for 18+ months now,
    and haven't had the slightest problem with cache/prefs on the SD card.
    Putting it on the NAS is asking for trouble.

    > [18-12-08 00:55:43.0293] Slim::Utils::Misc::msg (1252) Warning: [00:55:43.0286] DBD::SQLite::db do failed: database is locked at /usr/local/slimserver/Slim/Utils/DbCache.pm line 230.


    For example this: file locking mechanisms can vary from system to
    system, depending on file system, transfer protocol being used etc. Keep
    it simple.


    --

    Michael

  4. #494
    Quote Originally Posted by paul- View Post
    /usr/local/slimserver/Cache will be a symlink to your Netowork drive. LMS just logging it's location, rather than showing where the link points.

    This looks like you don't have read and write permission on the drive.

    Check on your nas that the user/password used to mount the drive has write permissions. What is the file system on the mapped drive?
    Aye would make sense but the Cache and prefs directories (along with contents) are indeed successfully created by PCP which would seem to rule out a permissions issue.

    I thought it may be some locking issue due to it being samba but I assume it is known to work since the network drive location as an option is specifically in PCP.

    The underlying filesystem on the NAS is BTRFS, you're wondering if this could cause an issue? I can try using sqlite to create a test db and make changes if you want, both locally and remotely via a samba mapping.

    From the Pi, writes seem fine :

    Code:
    tc@lms:~$ ls -al /usr/local/slimserver/Ca*
    lrwxrwxrwx    1 tc       staff           26 Dec  8 00:55 /usr/local/slimserver/Cache -> /mnt/data/slimserver/Cache/
    Code:
    tc@lms:~$ touch /usr/local/slimserver/Cache/xxx
    tc@lms:~$ ls /usr/local/slimserver/Cache/
    DownloadedPlugins/            cookies.dat                   stringcache.armv7l-linux.bin
    InstalledPlugins/             plugin-data.yaml              xxx
    Code:
    tc@lms:~$ sudo touch /usr/local/slimserver/Cache/xxx2
    tc@lms:~$ ls -al /usr/local/slimserver/Cache/
    total 3072
    drwxr-xr-x    2 tc       staff            0 Dec  8 07:23 ./
    drwxr-xr-x    2 tc       staff            0 Dec  8 00:55 ../
    drwxr-xr-x    2 tc       staff            0 Dec  8 00:55 DownloadedPlugins/
    drwxr-xr-x    2 tc       staff            0 Dec  8 00:55 InstalledPlugins/
    -rwxr-xr-x    1 tc       staff           17 Dec  8 00:55 cookies.dat
    -rwxr-xr-x    1 tc       staff        26506 Dec  8 00:55 plugin-data.yaml
    -rwxr-xr-x    1 tc       staff       148887 Dec  8 00:55 stringcache.armv7l-linux.bin
    -rwxr-xr-x    1 tc       staff            0 Dec  8 07:21 xxx
    -rwxr-xr-x    1 tc       staff            0 Dec  8 07:23 xxx2
    Code:
    tc@lms:~$ ls -al /mnt/data/slimserver/Cache/
    total 3072
    drwxr-xr-x    2 tc       staff            0 Dec  8 07:23 ./
    drwxr-xr-x    2 tc       staff            0 Dec  8 00:55 ../
    drwxr-xr-x    2 tc       staff            0 Dec  8 00:55 DownloadedPlugins/
    drwxr-xr-x    2 tc       staff            0 Dec  8 00:55 InstalledPlugins/
    -rwxr-xr-x    1 tc       staff           17 Dec  8 00:55 cookies.dat
    -rwxr-xr-x    1 tc       staff        26506 Dec  8 00:55 plugin-data.yaml
    -rwxr-xr-x    1 tc       staff       148887 Dec  8 00:55 stringcache.armv7l-linux.bin
    -rwxr-xr-x    1 tc       staff            0 Dec  8 07:21 xxx
    -rwxr-xr-x    1 tc       staff            0 Dec  8 07:23 xxx2
    Don't worry too much if you're not sure, although I'd prefer it on the NAS where I can quickly recover, given what mherger has said I'm happy to failover to caching/prefs on the sdcard.


    Oh as an aside can I just say PCP is such an excellent bit of work, the whole thing is really well put together, cheers.

    Also mherger, said this before but thanks for LMS and all the work you continue to do gratis. LMS has been my go to for such a long time, and as far as I can see it's still one of the best bits of software of its type out there.
    Last edited by Prime Heretic; 2018-12-08 at 00:40.

  5. #495
    Ok just to update.

    I installed the sqllite binary on the pi and tried manually creating tables in a db on the sambda share.

    database locked

    I'm not entirely sure what the problem is but clearly it's not PCP.

    It may well be that I'm on a BTRFS filesystem, I have no idea, I wasn't aware the file system could make a difference when over CIFS.

    Anyway I added a nolock option into the mount options on the PCP and this resolved the issue.

    When checking on PCP with mount -v this manifested as a nobrl option.

    The mount man page says this about it :

    Code:
    nobrl
    
    Do not send byte range lock requests to the server. This is necessary for certain applications that break with cifs style mandatory byte range locks (and most cifs servers do not yet support requesting advisory byte range locks).
    Not entirely sure if there will be any negative repercussions to using this option, but I'll go with it for now and see.

    Some recent comments here on sqlite/cifs/nobrl https://stackoverflow.com/questions/...ntu-nobrl-risk

    Cheers

  6. #496
    Junior Member
    Join Date
    Dec 2016
    Location
    Copenhagen, Denmark
    Posts
    11

    iptables broken on 4.1.0?

    When I try to install (or info) iptables.tcz, the following message appears:

    + iptables.tcz 307200, 0.29 MB
    ipv6-4.9.10-piCore.tcz Error, not found
    + jansson.tcz 20480, 0.02 MB
    + libmnl.tcz 8192, 0.01 MB
    + libnftnl.tcz 57344, 0.05 MB
    netfilter-4.9.10-piCore.tcz Error, not found

    Total size (bytes) 393216, 0.38 MB
    + Indicates need to download 393216, 0.38 MB
    Error happens on both repositories - message on unofficial a little different.

  7. #497
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    1,500
    kernel modules for our kernels are only hosted on our repo. Install them first and it should workout fine.
    Last edited by paul-; Yesterday at 07:45.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •