Announcement

Collapse
No announcement yet.

Mount worked on PiCorePlayer (lms) version 5, but now doesn't on version 8...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mount worked on PiCorePlayer (lms) version 5, but now doesn't on version 8...

    I've been running lms on PiCorePlayer v5 for yonks. My music is on a WD MyCloud share, and I mounted it using cifs. As I said, it's been working absolutely fine.

    However, I was only using a 4G SD on my rpi, and I was running into space issues. So I got an 8G card and decided to upgrade to the latest PCP - version 8.2.0

    Starts up fine, LMS working fine. But can I persuade the mount to work? Can I @*&!*

    I've got this setup:-
    Click image for larger version

Name:	Screenshot 2022-11-22 20.29.42.png
Views:	1
Size:	37.7 KB
ID:	1579127

    and it just doesn't work.

    I've tried ssh-ing to the PiCorePlayer, and doing the mount by hand. This is the result:-

    [email protected]:~$ sudo mount -v -t cifs -o username=music,password="music",uid=1001,gid=50 //192.168.1.45/"music" /mnt/mediaserver
    mount: /mnt/mediaserver: special device //192.168.1.45/music does not exist.

    I tried installing the PCP extensions for cifs - cifs-utils and cifs-utils-dev.

    Now, when I try the mount, I get the following:-

    [email protected]:~$ sudo mount -v -t cifs -o username=music,password="music",uid=1001,gid=50 //192.168.1.45/"Music" /mnt/mediaserver
    mount.cifs kernel mount options: ip=192.168.1.45,unc=\\192.168.1.45\Music,uid=1001, gid=50,user=music,pass=********
    mount error(2): No such file or directory
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

    And when I do a dmesg, I get

    [ 1480.044962] CIFS: Attempting to mount \\192.168.1.45\Music
    [ 1480.081123] CIFS: VFS: Could not allocate crypto hmac(sha256)
    [ 1480.207413] CIFS: VFS: Could not allocate crypto hmac(sha256)
    [ 1480.245551] CIFS: VFS: Could not allocate crypto hmac(sha256)
    [ 1480.279685] CIFS: VFS: Could not allocate crypto hmac(sha256)
    [ 1480.313811] CIFS: VFS: Could not allocate crypto hmac(md5)
    [ 1480.313872] CIFS: VFS: Error -2 during NTLMSSP authentication
    [ 1480.313915] CIFS: VFS: \\192.168.1.45 Send error in SessSetup = -2
    [ 1480.314105] CIFS: VFS: cifs_mount failed w/return code = -2


    It's really frustrating. I can't see anything different from any of my other machines, which mount the disk fine; and it worked perfectly on the older version of piCorePlayer.

    Just to confirm - here's a different linux machine on the same network, mounting the disk fine.

    [email protected]:~$ sudo mount -v -t cifs -o username=music,password="music",uid=bensonm,gid=be nsonm //192.168.1.45/Music /mnt/music
    mount.cifs kernel mount options: ip=192.168.1.45,unc=\\192.168.1.45\Music,uid=1000, gid=1000,user=music,pass=********

    Works fine - no errors. So whatever the issue is, it ain't my WD share - that's fine.

    I've run out of ideas. I'd really appreciate some help.

    Thanks.

    #2
    Try telling pCP to use an older version of SMB (CIFS) by adding
    ,vers=2.0
    into the end of the Options field
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

    Comment


      #3
      Never got to the bottom of this, as there is some soft dependency that I was unable to trace, since I could not repeat the error on my end. Read this and see it this helps you out.

      piCorePlayer a small player for the Raspberry Pi in RAM.
      Homepage: https://www.picoreplayer.org

      Please donate if you like the piCorePlayer

      Comment


        #4
        Originally posted by Martin_z View Post
        I've been running lms on PiCorePlayer v5 for yonks. My music is on a WD MyCloud share, and I mounted it using cifs. As I said, it's been working absolutely fine.

        However, I was only using a 4G SD on my rpi, and I was running into space issues. So I got an 8G card and decided to upgrade to the latest PCP - version 8.2.0

        Starts up fine, LMS working fine. But can I persuade the mount to work? Can I @*&!*

        I've got this setup:-
        [ATTACH]39216[/ATTACH]

        and it just doesn't work.

        I've tried ssh-ing to the PiCorePlayer, and doing the mount by hand. This is the result:-

        [email protected]:~$ sudo mount -v -t cifs -o username=music,password="music",uid=1001,gid=50 //192.168.1.45/"music" /mnt/mediaserver
        mount: /mnt/mediaserver: special device //192.168.1.45/music does not exist.

        I tried installing the PCP extensions for cifs - cifs-utils and cifs-utils-dev.

        Now, when I try the mount, I get the following:-

        [email protected]:~$ sudo mount -v -t cifs -o username=music,password="music",uid=1001,gid=50 //192.168.1.45/"Music" /mnt/mediaserver
        mount.cifs kernel mount options: ip=192.168.1.45,unc=\\192.168.1.45\Music,uid=1001, gid=50,user=music,pass=********
        mount error(2): No such file or directory
        Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

        And when I do a dmesg, I get

        [ 1480.044962] CIFS: Attempting to mount \\192.168.1.45\Music
        [ 1480.081123] CIFS: VFS: Could not allocate crypto hmac(sha256)
        [ 1480.207413] CIFS: VFS: Could not allocate crypto hmac(sha256)
        [ 1480.245551] CIFS: VFS: Could not allocate crypto hmac(sha256)
        [ 1480.279685] CIFS: VFS: Could not allocate crypto hmac(sha256)
        [ 1480.313811] CIFS: VFS: Could not allocate crypto hmac(md5)
        [ 1480.313872] CIFS: VFS: Error -2 during NTLMSSP authentication
        [ 1480.313915] CIFS: VFS: \\192.168.1.45 Send error in SessSetup = -2
        [ 1480.314105] CIFS: VFS: cifs_mount failed w/return code = -2


        It's really frustrating. I can't see anything different from any of my other machines, which mount the disk fine; and it worked perfectly on the older version of piCorePlayer.

        Just to confirm - here's a different linux machine on the same network, mounting the disk fine.

        [email protected]:~$ sudo mount -v -t cifs -o username=music,password="music",uid=bensonm,gid=be nsonm //192.168.1.45/Music /mnt/music
        mount.cifs kernel mount options: ip=192.168.1.45,unc=\\192.168.1.45\Music,uid=1000, gid=1000,user=music,pass=********

        Works fine - no errors. So whatever the issue is, it ain't my WD share - that's fine.

        I've run out of ideas. I'd really appreciate some help.

        Thanks.
        Try vers=1.0,uid=1001,gid=50 in the options field.

        Click image for larger version

Name:	vers.jpg
Views:	1
Size:	13.7 KB
ID:	1576091
        Server - LMS 8.4.0 RPi4B 4GB/NanoSound ONE case/pCP 8.1.0 - 75K library, playlists & LMS cache on Sata SSD (ntfs)

        Lounge - DAC32 - AudioEngine B2
        Office - RPi 3B+/HiFiBerry DAC HAT/RPi screen - Edifier D12
        Bedroom - Echo Show 8

        Spares - 1xSB Touch, 1xSB3, 4xRPi, AVI DM5 speakers

        Comment


          #5
          Nope - I tried vers=2.0, vers=2.1 and even vers=1.0

          Tried on the command line too. The "vers" is working, as when I tried 1.0, the dmesg complained that I shouldn't use it because it's insecure. But it still whinged about "could not allocate crypto".

          Comment


            #6
            Originally posted by Martin_z View Post
            Nope - I tried vers=2.0, vers=2.1 and even vers=1.0

            Tried on the command line too. The "vers" is working, as when I tried 1.0, the dmesg complained that I shouldn't use it because it's insecure. But it still whinged about "could not allocate crypto".
            Sorry, can't help further, mines a WD MyCloud, works no problem, pCP v8.2.0.
            Server - LMS 8.4.0 RPi4B 4GB/NanoSound ONE case/pCP 8.1.0 - 75K library, playlists & LMS cache on Sata SSD (ntfs)

            Lounge - DAC32 - AudioEngine B2
            Office - RPi 3B+/HiFiBerry DAC HAT/RPi screen - Edifier D12
            Bedroom - Echo Show 8

            Spares - 1xSB Touch, 1xSB3, 4xRPi, AVI DM5 speakers

            Comment


              #7
              Originally posted by paul- View Post
              Never got to the bottom of this, as there is some soft dependency that I was unable to trace, since I could not repeat the error on my end. Read this and see it this helps you out.

              https://forums.slimdevices.com/showt...=1#post1029399
              Well, nothing worked. So I've changed to a newer rPi - and now everything is just working.

              It's a mystery. But heigh-ho - at least I've got my music back now.

              Comment


                #8
                Newer pies have different crypto chains. So it’s not a huge mystery. Just a mystery as how to fix the older one.

                You’ll be happier running LMS on the newer pi anyway
                piCorePlayer a small player for the Raspberry Pi in RAM.
                Homepage: https://www.picoreplayer.org

                Please donate if you like the piCorePlayer

                Comment

                Working...
                X