logitechmediaserver service inactive Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
blazingice
Posts: 3
Joined: Sun Aug 29, 2021 7:12 pm

logitechmediaserver service inactive

Post by blazingice »

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?
Attachments
Screenshot 2021-08-29 at 18.05.53.png
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: logitechmediaserver service inactive

Post by Joulinar »

hi,

could you share following pls

Code: Select all

journalctl -u logitechmediaserver
systemctl status logitechmediaserver
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
blazingice
Posts: 3
Joined: Sun Aug 29, 2021 7:12 pm

Re: logitechmediaserver service inactive

Post by blazingice »

Code: Select all

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.

Code: Select all

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.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: logitechmediaserver service inactive

Post by Joulinar »

looks like the error.log file is missing and your system is not able to create it

Code: Select all

Can't open /var/log/squeezeboxserver/error.log (No such file or directory)
You could try following to fix it

Code: Select all

mkdir /var/log/squeezeboxserver
chown squeezeboxserver:nogroup /var/log/squeezeboxserver
systemctl start logitechmediaserver.service
check the status. Service should be active (running) now

Code: Select all

systemctl status logitechmediaserver.service
Do a reboot to verify all working fine.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
blazingice
Posts: 3
Joined: Sun Aug 29, 2021 7:12 pm

Re: logitechmediaserver service inactive

Post by blazingice »

Brilliant! It worked. Thanks for your help.
Post Reply