Headless Pi plexamp player - interfering ghost players?

When my player works, it works great.

But sometimes, it gets in a funk where it doesn’t want to do anything. I think there’s some ghost players showing up causing interference.

So today at 3:30ish I take a ride to run some errands:

  • Start my car, Pi powers on
  • Start phone hotspot - Pi joins it
  • Start plexamp - select TaurusX player - play tunes
  • works great
  • Get to destination, power down Pi, power off car

After my errand, at 4ish, I get back in the car

  • start car, pi powers on, rejoins hotspot
  • go to plexamp, it shows the player cycling through songs without playing them - doing like a dance of “can’t play that one, what’s next? can’t play that one, what’s next?”…

What unfolded was a series of restarts, and an inability to get it to play anything. I could only ever get it to do the constant skipping/cycling, or not connect to the player, or appear to be playing but not.

Confirmed plexamp app on phone could play from my device.

What I observed that is a red flag to me is that when I powered off the pi, and force stopped the plexamp app on my phone, and then restarted the plexamp app on the phone, when viewing devices to cast to, the TaurusX player would never disappear, despite it being powered off.

Even 15 minutes later when it was still off, it still showed as a device to try and connect to.

I suspect for some reason plex is hanging onto the Pi after it turns off, and it requires some time for something to cycle for the ghost player to disappear, otherwise it’ll try to play to the ghost player and fail, and not see the real restarted player.

Now it is 4:41, Pi is still off, and when I open the app it only shows this device - ghost is gone.

I pulled the SD card and grabbed the logs, which I have attached. Not sure if Pi player logs will be adequate, or if you’ll need other logs. Let me know.

I haven’t been able to completely figure everything out with this issue - but I don’t think the “ghost players” is the issue.

I put the Pi back in the car, and couldn’t get sound out of it again - it would appear to playback, show it playing in the app, but no sound out the Pi. After a few reboots, I gave up and brought the Pi into the house. Booted it up - worked with no issue. Ugh.

Brought it back into the car, booted it up, no issue.

For troubleshooting purposes, I turned it off, turned off the hotspot, turned it on, let it boot up, and after time turned on the hotspot. It connected to the hotspot, but that brought me back to the first problematic presentation - skipping through tracks unable to play/start any of them.

At least this time I was able to shut down, make sure the hotspot was still on, turn it back on, and it was back to working again.

So while I don’t think I’ve fully found the quirks, I think plexamp doesn’t like starting up without a network connection present, and isn’t always or ever able to recover from that state without a clean start. And perhaps can get stuck in a cycle.

Not sure - but that’s where I’m at currently.

In the logs, I see:

Jun 05, 2025 15:48:07.415 [0xde8af080] ERROR - BASS: Error initializing device 1 with sample rate 48000 and flags 00004000 (3).

That error is:

#define BASS_ERROR_DRIVER	3	// can't find a free/valid driver

So it seems like something bad happened to audio subsystem, and subsequently it can’t play anything.

How is the music leaving the PI? Is it USB out or is it a hat?

If it’s a hat you might just need to add drivers.

IT’s a hat, hifiberry DAC8X. But it has drivers, and it works much of the time. It just seems there are some times I boot it up, and it fights me. I’m probably going to modify things so that it doesn’t start plexamp until a wifi connection has been established, since some of my troubleshooting indicates starting up without wifi and then connecting can cause issues. But if a problem there could be detected, it would be great if plexamp could be improved upon to handle situations like that better.

FWIW, I never had good reliability with the hats, hence why I strongly prefer USB DACs.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.