Announcement

Collapse
No announcement yet.

Possibility to downgrade LMS to 8.2.1 on RPi piCorePlayer ?

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

    #31
    Interesting. Did not spot this in the change list for 8.3. Would have saved me the trouble of creating the build for Media_Scan that I had been postponing for years for my target system.

    Comment


      #32
      Hello everyone,
      I wanted to advise that I believe I have been able to downgrade my existing RPi pCP build LMS version from 8.4.0 to 8.2.1 by using the files kindly supplied by Kev.
      I am going to do some more thorough testing later on. All being well, it will have returned to it's prior functionality.

      I would like to thank everyone who helped me, the speed of the support and for everyone who maintains the LMS software across all the platforms.

      I remember buying my first Squeezebox (SB1, no WiFi) directly from Slim Devices in Mountain View, CA soon after it's release. They had a small office and I believe they took cash! I was often in Silicon Valley for work. That SB is still working 100% today, I always kept the display brightness at a low default and never had the display on when the device was 'off'. That SB1 must have been powered up for around 18 years. Original power supply also.

      Ever since then, I built a collection of the various Slim Devices and Logitech products. Everything still works super. I like the Booms for their 'all-in-one' functionality and these are placed around the house in rooms without Hi Fi gear. One in the garage also. What I also like is other apps that you can use to control the SB's, like iPeng etc.

      All the best to everyone. Best Regards Phil

      Comment


        #33
        Originally posted by sc1pzb View Post
        Hello everyone,
        I wanted to advise that I believe I have been able to downgrade my existing RPi pCP build LMS version from 8.4.0 to 8.2.1 by using the files kindly supplied by Kev. I am going to do some more thorough testing later on. All being well, it will have returned to it's prior functionality.
        Cool. So under LMS Basic Settings, can you select Video and Pictures again? And does the scanner pick up video's and pictures?
        | LMS 8.3.2 on Linux Mint | Squeezebox Boom | RPi0W + pCP 8.2.0 + HiFiBerry DAC Zero | ESP Muse Luxe |

        Comment


          #34
          Originally posted by sc1pzb View Post
          Hello everyone,
          I wanted to advise that I believe I have been able to downgrade my existing RPi pCP build LMS version from 8.4.0 to 8.2.1 by using the files kindly supplied by Kev.
          I am going to do some more thorough testing later on. All being well, it will have returned to it's prior functionality.

          I would like to thank everyone who helped me, the speed of the support and for everyone who maintains the LMS software across all the platforms.

          I remember buying my first Squeezebox (SB1, no WiFi) directly from Slim Devices in Mountain View, CA soon after it's release. They had a small office and I believe they took cash! I was often in Silicon Valley for work. That SB is still working 100% today, I always kept the display brightness at a low default and never had the display on when the device was 'off'. That SB1 must have been powered up for around 18 years. Original power supply also.

          Ever since then, I built a collection of the various Slim Devices and Logitech products. Everything still works super. I like the Booms for their 'all-in-one' functionality and these are placed around the house in rooms without Hi Fi gear. One in the garage also. What I also like is other apps that you can use to control the SB's, like iPeng etc.

          All the best to everyone. Best Regards Phil
          Good work Phil, hopefully your testing will show you are back where you want to be.

          I'm also a long term Squeezebox user/fan - albeit a young 'un compared to your SB1, two SB3 & one Boom bought in 2009 for me. I also love the Boom, beautiful piece of kit, I've got my original, another brand new in box and 2x 2nd user ones that I've picked up cheap on eBay, repaired and refurbished. Also Love Philippe44's SqueezeAMPs, great little devices - problem I have, is not enough rooms in the house to utilise my ever-growing collection. Been using pCP for LMS for a while, but have just got into playing around with the Squeezelite/Jivelite side of pCP - what an awesome job the pCP boys have done with that.
          If you love iPeng, for just controlling devices, try Material Skin Plugin - another superb piece of work by Craig from the community. We are so lucky, some very, very clever contributors here and loads of very knowledgeable and helpful people.

          Cheers

          Kev

          Comment


            #35
            Hello Kev, CJS,

            I hope all is good with you. Many thanks for your replies. Sadly, the patched LMS (8.4.0 to 8.2.1) doesn't function as expected.

            On the 'Basic Settings' tab, the check-boxes for pictures and video are restored! This is what I noted yesterday. However, scanning of the connected HDD with all the media, does not complete. More details posted below.

            It is also not possible to control the players from the LMS Home Page, like turning them on and off, or playing a stream on them (which does not require locally stored music files).

            Hence from what I can see, the downgrade from 8.4.0 to 8.2.0/8.2.1 seems to need additional software/file elements to restore it, or alternate actions are also needed to the patched LMS to restore the actual operation, as well as the check-boxes on the basic settings.

            Some extracts follow.


            Logitech Media Server Version: 8.2.1 - 1644703015 @ Sun 13 Feb 2022 01:08:32 AM CET

            Hostname: piCoreLMS

            IP: 192.168.1.64

            HTTP Port: 9000

            OS: piCore - EN - utf8

            Platform: armv8l-linux

            Perl Version: 5.28.2 - arm-linux-gnueabihf-thread-multi-64int

            Audio::Scan: 1.02

            IO::Socket::SSL: 2.066

            Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)

            Total Players Recognized: 6


            Discovering files/directories: /mnt/LMSfiles/Music (9413 of 9413) Complete 00:00:16

            Scanning new music files: /mnt/LMSfiles/Music (1 of 8161) Complete 00:00:00

            Media scan terminated unexpectedly (Scanning Progress)
            Total Time: 00:00:16 (Friday, February 3, 2023 / 10:08 AM)

            ​The scanning error seems to note that it can 'see' the mounted HDD music directory, but when it actually comes to scan the individual contents, the scan fails.

            The scan log file is not that big and I can send it. I just didn't know whether I should post it here or it needs to be DM'd.

            I sincerely appreciate the support and patience of the folks here. I don't know if I can be helped further.

            Have a great weekend. Best Regards Phil

            Comment


              #36
              Hello Phil,
              It should be OK to upload the scan log file to a forum post. If it is big, zip the log file and upload the zip file.

              If we can't figure out what is going wrong, you could start from scratch with a fresh install of pCP, and then replace the slimserver.tcz files. Apparantly this is what KeBul did as a test, see this post. But that would involve more configuration work from your side.
              Last edited by CJS; 2023-02-03, 11:37.
              | LMS 8.3.2 on Linux Mint | Squeezebox Boom | RPi0W + pCP 8.2.0 + HiFiBerry DAC Zero | ESP Muse Luxe |

              Comment


                #37
                Many thanks CJS, I appreciate the speedy reply. Here is the scanner log file at the bottom of message.

                I have tried the fresh install approach for both 32 and 64 bit pCP latest versions (8.2.0). The web site is very helpful to work you through the steps needed. In both cases I ended up with with a functional result for 8.3.0, but once the 'slimserver.tcz' files noted were overwritten in the correct folder with the 'older' versions, the LMS did not function as anticipated. I don't give up easily, so I will have another attempt tonight. I don't know if the pCP version used for the fresh install makes a difference.

                I don't know if a complete SD Card img file of Kev's working LMS 8.2.1 install would work for me, once I made all the local changes needed, mount the HDD etc, set up Samba access etc.

                I'm really sorry for all of the trouble. I was looking at alternate means to support the photos and videos for the family. The huge benefit of the RPi and pCP with the photos and videos DLNA option is the really low power consumption of the RPi (4W) and it's rock solid reliability. A windows PC running LMS or a NAS is going to consume more power for this permanently powered item. This is why I'm highly motivated to fix it.
                All the best in the meantime and thanks so much for the help. Best Regards Phil


                [23-02-03 11:45:11.0730] main::main (206) Starting Logitech Media Server scanner (v8.2.1, 1644703015, Sun 13 Feb 2022 01:08:32 AM CET) perl 5.028002
                [23-02-03 11:45:11.3642] Slim::Schema::forceCommit (2177) Warning: Trying to commit transactions before DB is initialized!
                [23-02-03 11:45:13.7438] Slim::Music::Import::runImporter (578) Starting Slim::Media::MediaFolderScan scan
                [23-02-03 11:45:13.7447] Slim::Utils::Scanner::Local::rescan (179) Discovering audio files in /mnt/LMSfiles/Music
                [23-02-03 11:45:31.4317] Slim::Utils::Scanner::Local::__ANON__ (191) Start processing found tracks
                [23-02-03 11:45:31.4323] Slim::Utils::Scanner::Local::__ANON__ (199) Connect do DB
                [23-02-03 11:45:31.4327] Slim::Utils::Scanner::Local::__ANON__ (202) Get latest ID
                [23-02-03 11:45:31.4334] Slim::Utils::Scanner::Local::__ANON__ (224) Delete temporary table if exists
                [23-02-03 11:45:31.4338] Slim::Utils::Scanner::Local::__ANON__ (227) Re-build temporary table
                [23-02-03 11:45:31.4645] Slim::Utils::Scanner::Local::__ANON__ (276) Get deleted tracks count
                [23-02-03 11:45:31.4649] Slim::Utils::Scanner::Local::__ANON__ (283) Get new tracks count
                [23-02-03 11:45:31.4654] Slim::Utils::Scanner::Local::__ANON__ (288) Get changed tracks count
                [23-02-03 11:45:31.4657] Slim::Utils::Scanner::Local::deleteTracks (519) Removing deleted audio files (0)
                [23-02-03 11:45:31.4659] Slim::Utils::Scanner::Local::__ANON__ (301) Scanning new audio files (8162)
                [23-02-03 11:45:31.4958] Slim::Schema::Storage::throw_exception (121) Error: DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: tracks_persistent [for Statement "
                SELECT *
                FROM tracks_persistent
                WHERE urlmd5 = ?
                "]
                [23-02-03 11:45:31.4963] Slim::Schema::Storage::throw_exception (121) Backtrace:

                frame 0: Slim::Utils::Log::logBacktrace (/usr/local/slimserver/Slim/Schema/Storage.pm line 121)
                frame 1: Slim::Schema::Storage::throw_exception (/usr/local/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 1007)
                frame 2: DBIx::Class::Storage:BI::__ANON__ (/usr/local/slimserver/Slim/Schema/TrackPersistent.pm line 95)
                frame 3: Slim::Schema::TrackPersistent::findhash (/usr/local/slimserver/Slim/Schema.pm line 1417)
                frame 4: Slim::Schema::_createTrack (/usr/local/slimserver/Slim/Schema.pm line 1668)
                frame 5: Slim::Schema::_newTrack (/usr/local/slimserver/Slim/Schema.pm line 1874)
                frame 6: Slim::Schema::updateOrCreateBase (/usr/local/slimserver/Slim/Utils/Scanner/Local.pm line 878)
                frame 7: Slim::Utils::Scanner::Local::__ANON__ (/usr/local/slimserver/Slim/Utils/Scanner/Local.pm line 943)
                frame 8: Slim::Utils::Scanner::Local::new (/usr/local/slimserver/Slim/Utils/Scanner/Local.pm line 341)
                frame 9: Slim::Utils::Scanner::Local::__ANON__ (/usr/local/slimserver/Slim/Utils/Scanner/Local.pm line 374)
                frame 10: Slim::Utils::Scanner::Local::__ANON__ (/usr/local/slimserver/Slim/Utils/Scanner/Local/Async.pm line 86)
                frame 11: Slim::Utils::Scanner::Local::Async::__ANON__ (/usr/local/slimserver/Slim/Utils/Scanner/Local/Async.pm line 169)
                frame 12: Slim::Utils::Scanner::Local::Async::find (/usr/local/slimserver/Slim/Utils/Scanner/Local.pm line 104)
                frame 13: Slim::Utils::Scanner::Local::find (/usr/local/slimserver/Slim/Utils/Scanner/Local.pm line 490)
                frame 14: Slim::Utils::Scanner::Local::rescan (/usr/local/slimserver/Slim/Media/MediaFolderScan.pm line 65)
                frame 15: Slim::Media::MediaFolderScan::startScan (/usr/local/slimserver/Slim/Music/Import.pm line 580)
                frame 16: Slim::Music::Import::runImporter (/usr/local/slimserver/Slim/Music/Import.pm line 402)
                frame 17: Slim::Music::Import::runScan (/usr/local/slimserver/scanner.pl line 333)
                frame 18: (eval) (/usr/local/slimserver/scanner.pl line 327)
                frame 19: main::main (/usr/local/slimserver/scanner.pl line 499)

                [23-02-03 11:45:31.4969] main::main (338) Error: Failed when running main scan: [Carp::Clan::__ANON__(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: tracks_persistent [for Statement "
                SELECT *
                FROM tracks_persistent
                WHERE urlmd5 = ?
                "] at /usr/local/slimserver/Slim/Schema/Storage.pm line 125
                ]
                [23-02-03 11:45:31.4972] main::main (339) Error: Skipping post-process & Not updating lastRescanTime!

                Comment


                  #38
                  I don't run pCP, but it seems to me you might be missing something. From what I understand this slimserver.tcz only contains the base LMS perl files (i.e. the -noCPAN release) which hints that there should be a second tcz archive that contains the arch specific 'CPAN' files. If you start with an installation of 8.3.0 this second archive will not contain Media::Scan which is what you need to be able to scan images and videos for the UPnP plugin.

                  Comment


                    #39
                    Originally posted by CJS View Post
                    Hello Phil,
                    It should be OK to upload the scan log file to a forum post. If it is big, zip the log file and upload the zip file.

                    If we can't figure out what is going wrong, you could start from scratch with a fresh install of pCP, and then replace the slimserver.tcz files. Apparantly this is what KeBul did as a test, see this post. But that would involve more configuration work from your side.
                    Yeah ,but I didn't test any deeper than LMS starting and showing as 8.2.1

                    I've checked my live 8.2.1 system and the "fudge downgrade" from a fresh 8.3.1 instal (I think) and both are:
                    Platform Architecture: aarch64-linux
                    Perl Version: 5.32.0 - aarch64-linux-thread-multi
                    Audio::Scan: 1.02
                    IO::Socket::SSL: 2.068
                    Database Version: DBD::SQLite 1.58 (sqlite 3.22.0)​

                    Phil, can you let me know typically what content the pictures and videos are?? (eg jpg photos, avi videos etc), I have the downgraded pi back up and running here, I can add some similar content and try a scan on it.

                    Cheers

                    Kev

                    Comment


                      #40
                      I don't have experience with running LMS on pCP, so hopefully others can assist you with this problem.

                      I don't intend to steer you away from piCorePlayer, but if you want to use your RPi 4 as LMS and media server, an alternative could be to install Raspberry Pi OS on your Pi, and install the appropriate LMS package for Raspberry Pi OS (I suppose this would be the ARM Linux Tarball). Then next to LMS you could install a separate DLNA media server to make video's and pictures available for streaming to smart TV's. I am sure there are forum users that can advise you on which DLNA server software to use. If you can't resolve the issue with downgrading LMS 8.2.1, this could be an alternative solution.
                      | LMS 8.3.2 on Linux Mint | Squeezebox Boom | RPi0W + pCP 8.2.0 + HiFiBerry DAC Zero | ESP Muse Luxe |

                      Comment


                        #41
                        Could it be that the replacement files have been installed with the wrong permissions or into the wrong place?
                        Jim



                        VB2.4 storage QNAP TS419p (NFS)
                        Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
                        Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
                        Dining Room SB Radio
                        Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
                        Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
                        Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes

                        Comment


                          #42
                          OK some progress...

                          I had a fresh build of 8.4 sitting in a pi I''ve been playing around with, so "Fudge downgraded" it to 8.2.1 by copying over slimserver.tcz and it's md5 file.

                          First of all the permissions of the copied files were different to the overwritten files - no group write, probably no big deal but I changed the permissions to match the original files

                          Restart of pCP and thus LMS and it showed as an 8.2.1 system with all the other components (perl audio:scan etc) remaining as was under 8.4. Installed uPNP plugin and restarted LMS, Added a pictures folder and copied some of my pictures into it.
                          Ran a clear all and scan - it failed in pretty much the same manner as Phil saw.

                          Stopped LMS, tried Update Libs in pCP LMS tab - scan still failed.

                          Stopped LMS, Remove cache from pCP LMS tab, reboot pCP

                          As expected got the initial configure page for LMS, configured file locations, installed uPNP plugin, restart LMS, Scan now works...

                          So my guess is the Db created in 8.4 has some incompatibilities with 8.2.1 (no surprises since the picture and video stuff has been removed).

                          My TV can see instance of LMS as a media server and I can see and display the pictures, so looks good on that front, going to try to add some videos next...

                          Yep, m4v/mp4 videos scan and play fine.

                          Kev

                          PS I'm now stuck here watching a video of a female kingfisher fishing that I made a few years back - nice!!
                          Last edited by KeBul; 2023-02-03, 14:37.

                          Comment


                            #43
                            Originally posted by KeBul View Post
                            OK some progress...

                            I had a fresh build of 8.4 sitting in a pi I''ve been playing around with, so "Fudge downgraded" it to 8.2.1 by copying over slimserver.tcz and it's md5 file.

                            First of all the permissions of the copied files were different to the overwritten files - no group write, probably no big deal but I changed the permissions to match the original files

                            Restart of pCP and thus LMS and it showed as an 8.2.1 system with all the other components (perl audio:scan etc) remaining as was under 8.4. Installed uPNP plugin and restarted LMS, Added a pictures folder and copied some of my pictures into it.
                            Ran a clear all and scan - it failed in pretty much the same manner as Phil saw.

                            Stopped LMS, tried Update Libs in pCP LMS tab - scan still failed.

                            Stopped LMS, Remove cache from pCP LMS tab, reboot pCP

                            As expected got the initial configure page for LMS, configured file locations, installed uPNP plugin, restart LMS, Scan now works...

                            So my guess is the Db created in 8.4 has some incompatibilities with 8.2.1 (no surprises since the picture and video stuff has been removed).

                            My TV can see instance of LMS as a media server and I can see and display the pictures, so looks good on that front, going to try to add some videos next...

                            Yep, m4v/mp4 videos scan and play fine.

                            Kev

                            PS I'm now stuck here watching a video of a female kingfisher fishing that I made a few years back - nice!!
                            Suggestion. Copy your entire working image and make it available for download. You have done all of the hard bit.
                            Jim



                            VB2.4 storage QNAP TS419p (NFS)
                            Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
                            Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
                            Dining Room SB Radio
                            Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
                            Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
                            Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes

                            Comment


                              #44
                              Originally posted by d6jg View Post

                              Suggestion. Copy your entire working image and make it available for download. You have done all of the hard bit.
                              Yep I can do that if the OP wants me to, but as he stands if he's already rebuilt it all and copied over the 8.2.1 slimserver files, I think he can leave all his pCP config alone (HDD config, Samba shares etc) and just clear his LMS config "Remove Cache" (Remove LMS Cache and preferences from pCP) and then just setup LMS again from the initial wizard...

                              But just in case I'll tidy up this build and take an image of it.

                              Kev

                              PS Although thinking about this, if I was to prepare him an entire image it would be better to use a copy of my "pure" 8.2.1 system cleaned up. I'll add that to the todo list - just got to get the filesystem reduced in size to make it easier to move across the net.
                              Last edited by KeBul; 2023-02-03, 15:52.

                              Comment


                                #45

                                hi all am new to picoreplayer and have a problem: same errors when trying to install lmsClick image for larger version  Name:	LMSERROR.png Views:	0 Size:	6.1 KB ID:	1629038

                                Comment

                                Working...
                                X