Plexamp on Headless Pi Issue

Hi

I’m trying to get Plexamp up & running on a Raspberry Pi Zero W with a JustBoom Digi hat for digital audio output and have got it configured as per these guidelines -

The service appears to be running OK on the Pi and is available as a player in the Windows Plex app. It connects when I select it from the Windows app but when I play any music file I get the following error -

May 07 14:28:29 raspberrypi node[621]: debug: PlayQueue: Play queue: 14757,14758
May 07 14:28:29 raspberrypi node[621]: debug: PlayQueue: Audio queue:
May 07 14:28:29 raspberrypi node[621]: debug: PlayQueue: Adding both current and next track.
May 07 14:28:29 raspberrypi node[621]: debug: PlayQueue: Stop.
May 07 14:28:29 raspberrypi node[621]: debug: PlayQueue: no offset for track.
May 07 14:28:29 raspberrypi node[621]: debug: PlayQueue: Adding track 14757 to audio player (gapless: true).
May 07 14:28:29 raspberrypi node[621]: error: Got exception playing media: Cannot read property ‘substr’ of undefined
May 07 14:28:29 raspberrypi node[621]: error: TypeError: Cannot read property ‘substr’ of undefined
May 07 14:28:29 raspberrypi node[621]: at Function.BuildPlexHostname (/home/pi/plexamp/server/server.prod.js:1:2953)
May 07 14:28:29 raspberrypi node[621]: at /home/pi/plexamp/server/server.prod.js:1:736720
May 07 14:28:29 raspberrypi node[621]: at Array.map ()
May 07 14:28:29 raspberrypi node[621]: at /home/pi/plexamp/server/server.prod.js:1:736662
May 07 14:28:29 raspberrypi node[621]: at Generator.next ()
May 07 14:28:29 raspberrypi node[621]: at r (/home/pi/plexamp/server/server.prod.js:1:731025)
May 07 14:28:29 raspberrypi node[621]: at /home/pi/plexamp/server/server.prod.js:1:731119
May 07 14:28:29 raspberrypi node[621]: at
May 07 14:28:29 raspberrypi node[621]: at process._tickCallback (internal/process/next_tick.js:182:7)

Is there something I’ve overlooked?

Server - Synology NAS Plex ver 1.19.2.2737
Client - Plex for Windows ver1.9.0.1203-00f2b4d9
Plexamp Pi - Raspbian Buster Desktop February 2020 (started with Lite and got same error rebuilt with Desktop in case there was a dependency I wasn’t aware of)

Did you read the last post in that release notes thread?

Yes, as I said I followed the instructions therefore I’ve got node v9.11.2 running. Is that what you’re referring to or have I overlooked something else?

If you followed all of these, then I have no idea. It might just be that it won’t work on a Pi zero.

I should have thought of that, I’d seen Pi Zero mentioned in other Plexamp threads and assumed it worked. Just put the SD card in an old Pi 3 I’ve got and it’s working. Likely beyond my capabilities to work out why it doesn’t work on the Zero.

My assumption (but please don’t quote me on this :sweat: ): I think the Zero has a slightly different cpu and therefore needs at least binaries compiled for a different “target” (if that makes sense).

1 Like

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