Squeezelite inactive Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
djudju
Posts: 4
Joined: Thu May 07, 2020 4:02 pm

Squeezelite inactive

Post by djudju »

Hi there,

I've recently updated to the latest version of Dietpi and have had some issues with getting LMS running alongside Squeezelite on a RPI 3b where I have a HiFiBerry DAC+. I thought something went wrong with the installation so I created a new image from scratch but although LMS is running find, squeezelite is showing as inactive under the dietpi-services.

I have been trying to activate it but without any luck unfortunately.

Anyone has any idea what I could try?

many thanks in advance for your help.

Jules
squeezelite.service - SqueezeLite (DietPi) │
│ Loaded: loaded (/etc/systemd/system/squeezelite.service; disabled; vendor preset: enabled) │
│ Drop-In: /etc/systemd/system/squeezelite.service.d │
│ └─dietpi-services_edit.conf │
│ Active: inactive (dead) │
│ │
│ May 07 14:22:40 DietPi-livingroom systemd[1]: Started SqueezeLite (DietPi). │
│ May 07 14:22:40 DietPi-livingroom systemd[1]: squeezelite.service: Succeeded. │
│ May 07 14:22:42 DietPi-livingroom systemd[1]: Started SqueezeLite (DietPi). │
│ May 07 14:22:42 DietPi-livingroom systemd[1]: squeezelite.service: Succeeded. │
│ May 07 14:23:35 DietPi-livingroom systemd[1]: Started SqueezeLite (DietPi). │
│ May 07 14:23:35 DietPi-livingroom systemd[1]: squeezelite.service: Succeeded. │
│ May 07 14:23:38 DietPi-livingroom systemd[1]: Started SqueezeLite (DietPi). │
│ May 07 14:23:38 DietPi-livingroom systemd[1]: squeezelite.service: Succeeded. │
│ May 07 14:23:46 DietPi-livingroom systemd[1]: Started SqueezeLite (DietPi). │
│ May 07 14:23:46 DietPi-livingroom systemd[1]: squeezelite.service: Succeeded.
User avatar
Joulinar
Posts: 2581
Joined: Sat Nov 16, 2019 12:49 am

Re: Squeezelite inactive

Post by Joulinar »

Hi,

many thanks for your report. Pls can you poist your service config file

Code: Select all

systemctl cat squeezelite.service
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
djudju
Posts: 4
Joined: Thu May 07, 2020 4:02 pm

Re: Squeezelite inactive

Post by djudju »

No problem and thanks for offering your help!

Here's the output:
[Unit]
Description=SqueezeLite (DietPi)

[Service]
ExecStart=/usr/bin/squeezelite -a 4096:1024:16:0 -C 5 -n 'LivingRoom' -f /var/lo
g/squeezelite.log

[Install]
WantedBy=multi-user.target

# /etc/systemd/system/squeezelite.service.d/dietpi-services_edit.conf
[Unit]
#Description=SqueezeLite (DietPi)

[Service]
#ExecStart=/usr/bin/squeezelite -a 4096:1024:16:0 -C 5 -n 'LivingRoom' -f /var/l
og/squeezelite.log

[Install]
#WantedBy=multi-user.target
By the way, the squeezelite I have installed on a raspberry pi zero (so another install) is not outputting any music from the server and this stopped working since I updated to the latest version of DietPi so I wonder of something happened on the latest recent releases.
User avatar
Joulinar
Posts: 2581
Joined: Sat Nov 16, 2019 12:49 am

Re: Squeezelite inactive

Post by Joulinar »

Hi,

can you try running /usr/bin/squeezelite manually on command level? Does it give any error message?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
djudju
Posts: 4
Joined: Thu May 07, 2020 4:02 pm

Re: Squeezelite inactive

Post by djudju »

Hi,

there you go:

Code: Select all

root@DietPi-livingroom:~# /usr/bin/squeezelite
[08:47:45.387926] test_open:281 playback open error: No such file or directory
[08:47:45.388070] output_init_common:382 unable to open output device
User avatar
Joulinar
Posts: 2581
Joined: Sat Nov 16, 2019 12:49 am

Re: Squeezelite inactive

Post by Joulinar »

Pls can you have a look to dietpi-config if audio device is correctly setup? May you can have it deactivate, reboot, activate it again and do one more reboot.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
djudju
Posts: 4
Joined: Thu May 07, 2020 4:02 pm

Re: Squeezelite inactive

Post by djudju »

Ok all good. In the end what was wrong in my end was that I had the wrong sound card selected. Bit confusing was that I have a dac+ from hifiberry but had to select hifiberry-dac in the options selected.

In any case many many thanks for your help that's been much appreciated.

best
User avatar
Joulinar
Posts: 2581
Joined: Sat Nov 16, 2019 12:49 am

Re: Squeezelite inactive

Post by Joulinar »

Ok cool that we have it fixed now.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply