I have been using logitechmediaserver for some years without a problem. I recently updated to 7.4 and then to 7.5.2. After the upgrade it seems that logitechmediaserver does not start automatically anymore. Even if I try to start it manually, it still shows as inactive service. Is there a way to resolve this?
hi,
could you share following pls
journalctl -u logitechmediaserver
systemctl status logitechmediaserver
dietpi@DietPi:~ $ sudo journalctl -u logitechmediaserver
-- Logs begin at Thu 2019-02-14 10:12:00 GMT, end at Tue 2021-08-31 00:19:42 BST. --
Aug 31 00:17:44 DietPi systemd[1]: Started Logitech Media Server (DietPi).
Aug 31 00:18:06 DietPi squeezeboxserver[724]: Can't open /var/log/squeezeboxserver/error.log (No such file or
directory) at /usr/share/squeezeboxserver/CPAN/Log/Log4perl/Appender/File.pm line 103.
Aug 31 00:18:06 DietPi systemd[1]: logitechmediaserver.service: Succeeded.
dietpi@DietPi:~ $ sudo systemctl status logitechmediaserver
â—Ź logitechmediaserver.service - Logitech Media Server (DietPi)
Loaded: loaded (/etc/systemd/system/logitechmediaserver.service; disabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/logitechmediaserver.service.d
└─dietpi-process_tool.conf, dietpi-services_edit.conf
Active: inactive (dead)
Aug 31 00:17:44 DietPi systemd[1]: Started Logitech Media Server (DietPi).
Aug 31 00:18:06 DietPi squeezeboxserver[724]: Can't open /var/log/squeezeboxserver/error.log (No such file or
directory) at /usr/share/squeezeboxserver/CPAN/Log/Log4perl/Appender/File.pm line 103.
Aug 31 00:18:06 DietPi systemd[1]: logitechmediaserver.service: Succeeded.
looks like the error.log file is missing and your system is not able to create it
Can't open /var/log/squeezeboxserver/error.log (No such file or directory)
You could try following to fix it
mkdir /var/log/squeezeboxserver
chown squeezeboxserver:nogroup /var/log/squeezeboxserver
systemctl start logitechmediaserver.service
check the status. Service should be active (running) now
systemctl status logitechmediaserver.service
Do a reboot to verify all working fine.
Brilliant! It worked. Thanks for your help.
Hi, @Joulinar
I just installed Dietpi on my RPi4 (RAM 1Gb) and I can’t start LMS either. In dietpi-servisec i see LMS has be status “inactive”. I am an inexperienced Linux user, tell me, is there a simple solution to this problem? Here is my log:
Спойлер
root@DietPi:~# journalctl -u logitechmediaserver
systemctl status logitechmediaserver
Jul 28 14:34:51 DietPi systemd[1]: Started logitechmediaserver.service - Logitech Media Server.
Jul 28 14:34:52 DietPi squeezeboxserver[559]: The following modules failed to load: DBI EV XML::Parser::Expat HTML::Parser JSON::XS Digest::SHA1 YAML::XS Sub::Name
Jul 28 14:34:52 DietPi squeezeboxserver[559]: This is perl 5, version 36, subversion 0 (v5.36.0) built for aarch64-linux-gnu-thread-multi
Jul 28 14:34:52 DietPi squeezeboxserver[559]: (with 52 registered patches, see perl -V for more detail)
Jul 28 14:34:52 DietPi squeezeboxserver[559]: Copyright 1987-2022, Larry Wall
Jul 28 14:34:52 DietPi squeezeboxserver[559]: Perl may be copied only under the terms of either the Artistic License or the
Jul 28 14:34:52 DietPi squeezeboxserver[559]: GNU General Public License, which may be found in the Perl 5 source kit.
Jul 28 14:34:52 DietPi squeezeboxserver[559]: Complete documentation for Perl, including FAQ lists, should be found on
Jul 28 14:34:52 DietPi squeezeboxserver[559]: this system using "man perl" or "perldoc perl". If you have access to the
Jul 28 14:34:52 DietPi squeezeboxserver[559]: Internet, point your browser at https://www.perl.org/, the Perl Home Page.
Jul 28 14:34:52 DietPi squeezeboxserver[559]: *******
Jul 28 14:34:52 DietPi squeezeboxserver[559]: NOTE:
Jul 28 14:34:52 DietPi squeezeboxserver[559]: If you're running some unsupported Linux/Unix platform, please use the buildme.sh
Jul 28 14:34:52 DietPi squeezeboxserver[559]: script located here:
Jul 28 14:34:52 DietPi squeezeboxserver[559]: https://github.com/Logitech/slimserver-vendor/tree/public/8.3/CPAN
Jul 28 14:34:52 DietPi squeezeboxserver[559]: If 8.3 is outdated by the time you read this, Replace "8.3" with the major version
Jul 28 14:34:52 DietPi squeezeboxserver[559]: You should never need to do this if you're on Windows or Mac OSX. If the installers
Jul 28 14:34:52 DietPi squeezeboxserver[559]: don't work for you, ask for help and/or report a bug.
Jul 28 14:34:52 DietPi squeezeboxserver[559]: *******
Jul 28 14:34:52 DietPi squeezeboxserver[559]:
Jul 28 14:34:52 DietPi squeezeboxserver[559]: Exiting..
Jul 28 14:34:52 DietPi systemd[1]: logitechmediaserver.service: Deactivated successfully.
â—‹ logitechmediaserver.service - Logitech Media Server
Loaded: loaded (/lib/systemd/system/logitechmediaserver.service; enabled; preset: enabled)
Active: inactive (dead) since Fri 2023-07-28 14:34:52 BST; 1h 10min ago
Duration: 816ms
Process: 559 ExecStart=/usr/sbin/squeezeboxserver --prefsdir $PREFSDIR --logdir $LOGDIR --cachedir $CACHEDIR --charset $CHARSET $SLIMOPTIONS (code=exited, status=0/SUCCESS)
Main PID: 559 (code=exited, status=0/SUCCESS)
CPU: 283ms
Jul 28 14:34:52 DietPi squeezeboxserver[559]: If you're running some unsupported Linux/Unix platform, please use the buildme.sh
Jul 28 14:34:52 DietPi squeezeboxserver[559]: script located here:
Jul 28 14:34:52 DietPi squeezeboxserver[559]: https://github.com/Logitech/slimserver-vendor/tree/public/8.3/CPAN
Jul 28 14:34:52 DietPi squeezeboxserver[559]: If 8.3 is outdated by the time you read this, Replace "8.3" with the major version
Jul 28 14:34:52 DietPi squeezeboxserver[559]: You should never need to do this if you're on Windows or Mac OSX. If the installers
Jul 28 14:34:52 DietPi squeezeboxserver[559]: don't work for you, ask for help and/or report a bug.
Jul 28 14:34:52 DietPi squeezeboxserver[559]: *******
Jul 28 14:34:52 DietPi squeezeboxserver[559]:
Jul 28 14:34:52 DietPi squeezeboxserver[559]: Exiting..
Jul 28 14:34:52 DietPi systemd[1]: logitechmediaserver.service: Deactivated successfully.
Pls open an own new topic on troubleshooting section. This topic is 2 years old now.
1 Like