JoeMod2017 / squeezebox-DisplayTest-Plugin

Squeezebox DisplayTest Plugin to check aging / burn-in status of device displays
1 stars 0 forks source link

Failing to install plugin in linux version of LMS #1

Open southseaboy opened 3 years ago

southseaboy commented 3 years ago

I am attempting to install the plugin under linux (Logitech Media Server (v8.1.1, 1610364019, Thu Jan 14 06:22:21 CET 2021) perl 5.028001 - x86_64-linux-gnu-thread-multi). I have created the required DisplayTest folder in '/var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins' - which is the directory that contains all the other plugin folders. I have also checked that the folder and file ownership and permissions match those used for other plugins.

After restarting LMS, the plugin appears in the list of plugins as 'Display Test (v0.2)' in the settings ui, but is marked 'Plugin failed to load' - when I tick the box to load and 'apply', the list comes back again with 'Plugin failed to load'.

The server log shows the following:

[21-05-22 15:54:18.2678] Slim::bootstrap::tryModuleLoad (286) Warning: Module [Slim::Plugin::DisplayTest::Plugin] failed to load:
Can't locate Slim/Plugin/DisplayTest/Plugin.pm in @INC (you may need to install the Slim::Plugin::DisplayTest::Plugin module) (@INC contains: /var/lib/squeezeboxserver/cache/InstalledPlugins /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/BBCiPlayer/lib /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/BBCSounds/lib /var/lib/squeezeboxserver/cache/InstalledPlugins /usr/share/squeezeboxserver/CPAN/arch/5.28/x86_64-linux-thread-multi /usr/share/squeezeboxserver/CPAN/arch/5.28/x86_64-linux-thread-multi/auto /usr/share/squeezeboxserver/CPAN/arch/5.28.1/x86_64-linux-gnu-thread-multi /usr/share/squeezeboxserver/CPAN/arch/5.28.1/x86_64-linux-gnu-thread-multi/auto /usr/share/squeezeboxserver/CPAN/arch/5.28/x86_64-linux-gnu-thread-multi /usr/share/squeezeboxserver/CPAN/arch/5.28/x86_64-linux-gnu-thread-multi/auto /usr/share/squeezeboxserver/CPAN/arch/x86_64-linux-gnu-thread-multi /usr/share/squeezeboxserver/CPAN/arch/5.28 /usr/share/squeezeboxserver/lib /usr/share/squeezeboxserver/CPAN /usr/share/squeezeboxserver /usr/sbin /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at (eval 989) line 1.
BEGIN failed--compilation aborted at (eval 989) line 1.

[21-05-22 15:54:18.2681] Slim::Utils::PluginManager::load (323) Error: Couldn't load Slim::Plugin::DisplayTest::Plugin

Do you have any suggestions as to what I might have done incorrectly?

I'm very grateful for your articles on both Boom VFD and SB3 maintenance. It's nice to be able to keep these devices running.

JoeMod2017 commented 3 years ago

Hi there,

I'm sorry that you have trouble installing the plguin. There is good and bad news about this. The good is that I can reproduce this on my own Linux system, but it's just a test setup. The LMS I'm regularly using is on a Synology NAS and works like a charm, even with the plugin. The bad news is that so far I could not find the reason for this failing in Linux. A part of the problem is that the CR/LF control characters in strings.txt are Windows style (0x0D 0x0A) so the parser fails to read the file properly unless the 0x0D 0x0A sequence was reduced to just 0x0A. But even after that, the plugin will still fail. I think I'll have to dive deeper into this and will create a fork for Linux eventually. Don't hold your breath though, it could take a while. I will post whatever I can find here so you'll be notified.

Cheers, Joe