Announcement

Collapse
No announcement yet.

PCP 8.2.0 on Pi4: very slow access to LMS tab

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

    PCP 8.2.0 on Pi4: very slow access to LMS tab

    > How do I run the command ?
    > Via command line ?


    You'd have to use something like Putty to connect over SSH to the
    device. Then run the command on the shell there. I don't think there's a
    way to run a command through the web UI.

    #2
    PCP 8.2.0 on Pi4: very slow access to LMS tab

    I have a Pi4 which runs PCP 8.2 64bit as a player/server. The Pi is connected via ethernet to an internal Wifi mesh. For the last couple of days the LMS tab on the PCP web interface is essentially unobtainable (once the header is loaded it then spins for minutes at a time before loading almost each line).

    I have swapped the ethernet cable and done a new install on a fresh SD card with no change in speed. All of the other tabs seem to work properly.

    Any ideas what could be happening or what logs to check?

    Comment


      #3
      I have the same problem but mine is connected via WIFI, if that matters.
      I had the 8.3 version installed and the same happened.
      My library consists of 300000+ tracks and 28000 albums if that matters.

      Thank You for Your attention.

      Comment


        #4
        SSH into the RPi and take a look at the LMS logs and also use "top" to see if something is using all CPU.
        LMS logs can be seen via /var/log/slimserver/server.log
        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


          #5
          Having similar problems. On my PI it takes around 20 seconds to load the LMS tab. Always loads, but always has been very slow.

          Comment


            #6
            Originally posted by cramcram View Post
            Having similar problems. On my PI it takes around 20 seconds to load the LMS tab. Always loads, but always has been very slow.
            Same here, slow to load (10-20 secs) been like this a goodish while now, 12 months? Used to be fairly instant.
            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
              Just to be 100% clear ... is this discussion about the tab at the very top of the pCP screen that has a tab for each pCP player plus the LMS tab?
              Not the pCP LMS settings page that is underneath the piCorePlayer banner.

              If yes (the tab at the top) then do you also find the LMS web interface to be slow to load then you access it via your own new connection in your browser by opening a new tab and requesting the LMS default web interface directly?
              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


                #8
                Originally posted by Paul Webster View Post
                Just to be 100% clear ... is this discussion about the tab at the very top of the pCP screen that has a tab for each pCP player plus the LMS tab?
                Not the pCP LMS settings page that is underneath the piCorePlayer banner.

                If yes (the tab at the top) then do you also find the LMS web interface to be slow to load then you access it via your own new connection in your browser by opening a new tab and requesting the LMS default web interface directly?
                I don't use the LMS links in the pCP web GUI, for me it's the pCP LMS web page that's slow to load.

                Click image for larger version

Name:	LMS tab.jpg
Views:	1
Size:	25.9 KB
ID:	1575742
                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


                  #9
                  RPi4 with pCP running LMS 8.2.1 (server only) here and LMS page opens immediately.
                  Lounge: Transporter>Audio Synthesis DAX Decade>Audio Research LS22>Krell FPB300>Wilson Benesch Act 1's + 2 x Velodyne SPL1000 sub's
                  Kitchen: Touch>Topping DAC>Arcam Solo>Anthony Gallo Micro's+Sub, Joggler controller
                  Office: DAC32>Acoustic Energy AE1 Active's, Joggler controller
                  Garage: Boom>QAcoustics 7000s subwoofer
                  Bedroom: Radio
                  Shed: Radio
                  Workshop: Boom
                  Garden 1: SB3>JVC amp>Rock outdoor speakers
                  Garden 2: SB3>JVC amp>Rock outdoor speakers

                  Comment


                    #10
                    Originally posted by Heuer View Post
                    RPi4 with pCP running LMS 8.2.1 (server only) here and LMS page opens immediately.
                    On mine it does so on a fresh installation before music scanning, but then ...

                    Comment


                      #11
                      You could try using the browser developer tools to trace the network activity to see if there is a request that takes a very long time to be responded to etc etc.

                      On pCP 8 - the script that is being run is
                      /var/www/cgi-bin/lms.cgi

                      It does a bunch of things and then calls pcp_lms_status to see if LMS is running.
                      You could put something in there to see if that is taking for ever.
                      Otherwise you could put some diagnostics in various places in lms.cgi to see if you can work out where it is spending its time.
                      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


                        #12
                        I'm running PcP LMS 8.2 server and player on an Rpi 4B attached to router through ethernet. I access the PCP page using a 2017 macbook pro on 5G wifi and Chrome browser. The pcp page opens immediately. The LMS tab took 2 seconds upon 'waking', after that clicking that tab the response was immediate.

                        Comment


                          #13
                          I have seen something like that before. Please go to tweaks page and untick the picore controls and the LMS panels.
                          Hit save.
                          piCorePlayer a small player for the Raspberry Pi in RAM.
                          Homepage: https://www.picoreplayer.org

                          Please donate if you like piCorePlayer

                          Comment


                            #14
                            Originally posted by sbp View Post
                            I have seen something like that before. Please go to tweaks page and untick the picore controls and the LMS panels.
                            Hit save.
                            RPI4 8Gb.
                            Picoreplayer 8.2.
                            350000 Tracks mostly Mp3 & Flac.
                            WIFI.
                            Server & Player installed.

                            Makes no difference...7 min for loading.
                            I had version 8.3 installed but had the same behavior.
                            Don't want to try with Ethernet, since I have to reinstall PCP again from scratch and wait one night for the music scan, but I will try on another card.
                            Last edited by MAAC; 2022-09-25, 02:40.

                            Comment


                              #15
                              Skimming lms.cgi (takes 5s+ here) I'm seeing this candidate:

                              Code:
                              # logic to activate/inactivate buttons depending upon whether LMS cache is present or not
                              TMP=$(find /mnt -type d -maxdepth 3 | grep slimserver/Cache)
                              If you've mounted a (slow) external drive, or a share over a slow connection (wifi) this might take a while. Even more so if you have many folders at the top level of that mount. In my case find is listing all artist folders from /mnt/music. And it takes a few seconds on a "cold" system (quicker when repeated).

                              I have two systems with identical collection (541 folders in the top level), both connecting to a NAS using NFS:
                              • Pi3B+, pCP, mounting a Synology DS218j: 2-3s.
                              • Pi4/2GB, Raspbian, mounting a DS1517+: <1s.
                              Michael

                              "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
                              (LMS: Settings/Information)

                              Comment

                              Working...
                              X