Enabling USB card on Raspberry Pi

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Enabling USB card on Raspberry Pi

Post by Sciamano »

Fourdee wrote: If LMS doesnt start after a reboot, try using the DietPi custom service:

Code: Select all

#Remove service
update-rc.d logitechmediaserver remove
rm /etc/init.d/logitechmediaserver

#DietPi-Services init
cp /DietPi/dietpi/conf/squeezeboxserver.service /etc/dietpi/dietpi-software/services/squeezeboxserver.service
I've followed the instructions but it does not work.
It seems that the squeezebox server is not starting even though I've done the required steps above.
Maybe there is something wrong/missing?
If I try launching from the command line, this is the output:
*******

NOTE:

If you're running some unsupported Linux/Unix platform, please use the buildme.sh
script located here:

https://github.com/Logitech/slimserver- ... c/7.8/CPAN

If 7.8 is outdated by the time you read this, Replace "7.8" with the major version
You should never need to do this if you're on Windows or Mac OSX. If the installers
don't work for you, ask for help and/or report a bug.

*******

User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Enabling USB card on Raspberry Pi

Post by Fourdee »

Sciamano wrote:
I've followed the instructions but it does not work.
It seems that the squeezebox server is not starting even though I've done the required steps above.
Maybe there is something wrong/missing?
If I try launching from the command line, this is the output:
Looks like missing CPAN modules. If we install the 7.9 CPAN's :

Code: Select all

wget http://dietpi.com/downloads/binaries/all/logitechmediaserver_7.9.0_CPAN_5.20_armv6hf.tar.gz -O package.tar
tar xvzf package.tar -C /
rm package.tar
We are left with:
root@DietPi:~# squeezeboxserver
The following modules failed to load: DBI JSON::XS
So lets compile those missing CPAN modules:

Code: Select all

apt-get install -y cpanminus build-essential yasm nasm libxml-parser-perl zlib1g-dev libjpeg-dev libpng-dev
cpanm DBI JSON::XS
Copy them over to LMS:

Code: Select all

cp -R /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2/* /usr/share/squeezeboxserver/CPAN/
LMS 7.8 requires a specific version of Audio::Scan:
Audio::Scan object version 0.95 does not match bootstrap parameter 0.93
So lets compile that Audio Scan version 0.93:

Code: Select all

cpanm Audio::Scan@0.93
Copy them over to LMS, again:

Code: Select all

cp -R /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2/* /usr/share/squeezeboxserver/CPAN/
Running fine (minus optional cpan module):

Code: Select all

root@DietPi:~# squeezeboxserver
NOTE: Class::XSAccessor 1.05+ not found, install it for better performance
[16-10-26 18:31:33.3785] main::init (368) Starting Logitech Media Server (v7.8.0, 1395409907, Thu Mar 27 13:20:53 PDT 2014) perl 5.020002
[16-10-26 18:31:33.3883] main::changeEffectiveUserAndGroup (983) Warning: Logitech Media Server must not be run as root!  Trying user squeezeboxserver instead.
[16-10-26 18:31:34.6240] Slim::Utils::SQLiteHelper::postConnect (359) Optimizing DB because of missing or empty sqlite_stat1 table
[16-10-26 18:31:36.1939] main::checkDataSource (1089) Warning: Schema updated or no media found in the database, initiating scan.
NOTE: Class::XSAccessor 1.05+ not found, install it for better performance
[16-10-26 18:31:37.8168] main::main (202) Starting Logitech Media Server scanner (v7.8.0, 1395409907, Thu Mar 27 13:20:53 PDT 2014) perl 5.020002
[16-10-26 18:31:38.8719] Slim::Schema::forceCommit (2130) Warning: Trying to commit transactions before DB is initialized!
[16-10-26 18:31:39.1424] Slim::Music::Import::runImporter (488) Starting Slim::Media::MediaFolderScan scan
[16-10-26 18:31:39.1437] Slim::Music::Import::endImporter (620) Completed Slim::Media::MediaFolderScan Scan in 0 seconds.
[16-10-26 18:31:39.1657] Slim::Music::Artwork::precacheAllArtwork (608) Starting precacheArtwork for 0 albums
[16-10-26 18:31:39.1669] Slim::Music::Import::endImporter (620) Completed precacheArtwork Scan in 0 seconds.
[16-10-26 18:31:39.1805] Slim::Music::Import::runScanPostProcessing (403) Starting Database optimization.
[16-10-26 18:31:39.1843] Slim::Music::Import::endImporter (620) Completed dbOptimize Scan in 0 seconds.
[16-10-26 18:31:39.3909] Carp::carp (168) Warning: Can't locate auto/Compress/Raw/Zlib/autosplit.ix:   ./auto/Compress/Raw/Zlib/autosplit.ix: Permission denied at /usr/share/perl/5.20/AutoLoader.pm line 181.
 at /usr/share/squeezeboxserver/CPAN/Compress/Raw/Zlib.pm line 6.
[16-10-26 18:31:39.4178] Slim::Utils::Misc::msg (1311) Warning: [18:31:39.4173] Can't locate auto/Compress/Raw/Zlib/autosplit.ix:   ./auto/Compress/Raw/Zlib/autosplit.ix: Permission denied at /usr/share/perl/5.20/AutoLoader.pm line 181.
 at /usr/share/squeezeboxserver/CPAN/Compress/Raw/Zlib.pm line 6.
[16-10-26 18:31:39.4834] Slim::Utils::SQLiteHelper::postConnect (359) Optimizing DB because of missing or empty sqlite_stat1 table
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Enabling USB card on Raspberry Pi

Post by Sciamano »

Still not working...
Attachments
Screenshot_2016-10-27-04-37-44-983_org.connectbot.png
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Enabling USB card on Raspberry Pi

Post by Sciamano »

Well, this is funny in an awkward way. After the nth reboot, squeezeboxserver has decided to start.
It's now scanning the library. As soon as it finishes we'll see if the problem was LMS v7.9 :)

EDIT: Artists are now shown correctly. I guess it's a problem with LMS v7.9, then.
Wouldn't it be better to get the version on DietPi back to v7.8?
Attachments
Screenshot_2016-10-28-18-15-07-462_uk.org.ngo.squeezer.png
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Enabling USB card on Raspberry Pi

Post by Fourdee »

Sciamano wrote:Wouldn't it be better to get the version on DietPi back to v7.8?
In the ideal world yes, but all people see is numbers and assume the higher the number, the better something is ;). Had no end of users ask for 7.9, even when it was in beta.

If 7.8 fixes the artists issue, i'll make the change. Have you been able to test with 7.8 and confirmed working?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Enabling USB card on Raspberry Pi

Post by Fourdee »

1 sec, just seen your logs, looks like a permissions issue.

EDIT: LMS runs as root, so this error shouldn't exist.

line 181 of /usr/share/perl/5.20/AutoLoader.pm:

Code: Select all

        if (!$replaced_okay or $@) {
            $path ="auto/$calldir/autosplit.ix";
            eval { require $path; };
        }
File exists, not sure why LMS is throwing that error, possible bug in LMS when trying to use a non-absolute path:

Code: Select all

root@DietPi-JustBoom:~# find / -type f -name autosplit.ix | grep 5.20
/usr/share/squeezeboxserver/CPAN/arch/5.20/arm-linux-gnueabihf-thread-multi-64int/auto/IO/Interface/autosplit.ix
/usr/share/squeezeboxserver/CPAN/arch/5.20/i386-linux-thread-multi-64int/auto/IO/Interface/autosplit.ix
/usr/share/squeezeboxserver/CPAN/arch/5.20/x86_64-linux-thread-multi/auto/IO/Interface/autosplit.ix
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Enabling USB card on Raspberry Pi

Post by Fourdee »

I believe this is a LMS specific bug (or the android client Squeezer) with regards to the artist display.

Your best bet would be to post on the LMS support forum and try to obtain some answers: http://forums.slimdevices.com/forumdisp ... dia-Server

If the artists display works as expected in a standard desktop web browser, the issue may be specific to the Squeezer android app (a bug).
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Enabling USB card on Raspberry Pi

Post by Sciamano »

The problem with the Artists view disappears when using v7.8 of LMS.
It's definitely related to the 7.9 version, and it's not a bug with the Squeezer app, as I have tried different apps (squeeze remote, and others) and they all show the songwriters/composers instead of the actual artists.
I will try to get information on the LMS support forums.

As far as the problem with the LMS starting, I think (but I am not sure) that it was a problem of compatibility between the database (created by LMS v7.9) and the downgraded LMS.

Everything has been working correctly for two days now, even after several reboots.
In my opinion LMS v7.9 has modified something which broke the apps. Maybe DietPi should offer the installation of both LMS versions, leaving the choice to the users.

I'll report back if I find out anything useful on the LMS support forums.
Thanks for the patience and support.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Enabling USB card on Raspberry Pi

Post by Sciamano »

Ok, I have asked on the slimdevices forum for this Artists/Composers problem.
Apparently LMS v7.9 has changed something in these regards, and many apps suffer from this problem (all the free ones). It's not sure whether paid apps are not affected, and I have no means to try because none of them offers any trial versions.

User pippin suggests this solution:
You can configure the way artist lists are shown under "Settings->my music". You can configure not to show all artists but only albumartist.
And yes, Apps which better support 7.9 might give you both an "all artists" and an "albumartist" list
I had tried this, but it did not work. I will try again and report back if this workaround works.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Enabling USB card on Raspberry Pi

Post by Sciamano »

It works.
LMS v7.9 needs to be set as per the following image. This way, squeeze remote apps like Squeezer and Squeeze control will show Artists correctly:
LMS4.png
Post Reply