Installing the Perl module IO::Socket::SSL on NSA325v2 NAS
I'm trying to install the Perl module IO::Socket::SSL on my Zyxel NSA325v2. Reason for this: the Logitech Media Server running on my NAS requires this, otherwise the Spotty Spotify plugin doesn't work. When trying to configure the Spotty plugin, I'm getting the following error :
"Spotty requires the Perl module IO::Socket::SSL. You can NOT use Spotty without this module. Please use your operating system's package manager to install it."So... I performed the following steps on my NAS in order to try and solve the problem:
1. Install Entware-ng software repo on my NAS. I used the web interface for the NSA325v2 to do this. Version is : 20181002zypkg006.
2. Install gcc using opkg package manager : see: https://github.com/Entware/Entware-ng/wiki/Using-gcc-(native-compilation)
3. I then installed openssl libraries using :
opkg install libopenssl and
opkg install openssl (not sure if this was needed, but I got some errors wrt the openssl libraries when I installed the perl modules later on)4. I then downloaded the following 2 perl modules from cpan, and installed them manually : Net-SSLeay-1.90.tar.gz and IO-Socket-SSL-2.072.tar.gz . I installed them on the NAS using the following commands (I installed it manually, so I did not use CPAN) :
I did not get any error messages during installation. I also ran the tests.
5. I restarted the NAS, just to be sure.
However, when going to the web interface of the Logitech Media Server, I still see this error when trying to configure the Spotty plugin : "Spotty requires the Perl module IO::Socket::SSL. You can NOT use Spotty without this module. Please use your operating system's package manager to install it."
I checked that I installed the 2 modules :
opkg list-installed | grep -i socket gives :
perlbase-socket - 5.26.1-2
opkg list-installed | grep -i ssl gives :
libopenssl - 1.0.2n-1 and openssl-util - 1.0.2n-1opkg list-installed | grep -i io gives : perlbase-io - 5.26.1-2, perlbase-meta-notation - 5.26.1-2, perlbase-perlio - 5.26.1-2 and perlbase-version - 5.26.1-2
Is there another way to verify that the 2 perl modules (Net-SSLeay-1.90.tar.gz and IO-Socket-SSL-2.072.tar.gz) were installed correctly?I know that Net-SSLeay needs some openssl libraries, I was able to install it without any errors after installing the openssl libraries using opkg.
What else do I need to check? Perhaps the version of openssl is wrong? Any help is greatly appreciated !
(Edit) Here is some additional information from the Logitech Media server log, when starting it up :
[21-09-12 14:17:24.0412] main::init (354) Starting Logitech Media Server (v7.7.1, r33735, Mon Nov 28 16:49:58 MST 2011) perl 5.010000 [21-09-12 14:17:33.3620] main::changeEffectiveUserAndGroup (967) Warning: Logitech Media Server must not be run as root! Trying user nobody instead. [21-09-12 14:17:38.8106] Slim::Utils::Misc::msg (1305) Warning: [14:17:38.8088] Async::HTTP: Unable to load IO::Socket::SSL, will try connecting to SSL servers in non-SSL mode [21-09-12 14:17:38.8124] Plugins::Spotty::Plugin::initPlugin (43) Spotty requires the Perl module IO::Socket::SSL. You can NOT use Spotty without this module. Please use your operating system's package manager to install it. [21-09-12 14:17:38.8574] Plugins::Spotty::Plugin::initPlugin (119) Please update to Logitech Media Server 7.9.1 if you want to use seeking in Spotify tracks.
So it really looks like it's unable to load the Perl modules....
- 5.8K All Categories
- 1.2K Nebula
- 15 Nebula Ideas
- 12 Nebula Status and Incidents
- 3.3K Security
- 179 Security Ideas
- 584 Switch
- 25 Switch Ideas
- 410 WirelessLAN
- 3 WLAN Ideas
- 4.1K Consumer Product
- 51 Service & License
- 187 New and Release
- 40 Stories
- 24 Security Advisories
- 449 FAQ
- 206 Nebula FAQ
- 99 Security FAQ
- 65 Switch FAQ
- 63 WirelessLAN FAQ
- 20 Nebula Monthly Express
- 31 About Community
- 18 Security Highlight