# Plexamp Raspberry Pi Service Issue

**URL:** <https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525>\
**Category:** Plex Labs\
**Tags:** plexamp\
**Created:** [May 4, 2022, 10:06pm UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525 "2022-05-04T22:06:42Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![JahTut](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jahtut/32/237945_2.png) [@JahTut](https://forums.plex.tv/u/JahTut)\
**Post date:** [May 4, 2022, 10:06pm UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/1 "2022-05-04T22:06:42Z")

</div>

I’ve got Plexamp up and running on a Pi4. Thanks to all who helped.  
I can’t seem to get the plexamp.service to work when rebooting.  
I ran: sudo systemctl status plexamp.service and received the following in case someone call tell what the issue is:

● plexamp.service - Plexamp  
Loaded: loaded (/lib/systemd/system/plexamp.service; enabled; vendor preset: enabled)  
Active: failed (Result: exit-code) since Wed 2022-05-04 17:51:31 EDT; 11min ago  
Process: 632 ExecStart=/usr/bin/node /home/pi/plexamp/js/index.js (code=exited, status=203/EXEC)  
Main PID: 632 (code=exited, status=203/EXEC)  
CPU: 4ms

May 04 17:51:31 pi4Plex systemd[1]: plexamp.service: Scheduled restart job, restart counter is at 5.  
May 04 17:51:31 pi4Plex systemd[1]: Stopped Plexamp.  
May 04 17:51:31 pi4Plex systemd[1]: plexamp.service: Start request repeated too quickly.  
May 04 17:51:31 pi4Plex systemd[1]: plexamp.service: Failed with result ‘exit-code’.  
May 04 17:51:31 pi4Plex systemd[1]: Failed to start Plexamp.

---

<div class="post-metadata">

**Author:** ![CostaHT](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/costaht/32/193414_2.png) [@CostaHT](https://forums.plex.tv/u/CostaHT)\
**Post date:** [May 4, 2022, 10:23pm UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/2 "2022-05-04T22:23:59Z")

</div>

What’s the content of `/lib/systemd/system/plexamp.service`?

---

<div class="post-metadata">

**Author:** ![JahTut](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jahtut/32/237945_2.png) [@JahTut](https://forums.plex.tv/u/JahTut)\
**Post date:** [May 4, 2022, 10:26pm UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/3 "2022-05-04T22:26:46Z")

</div>

[Unit]  
Description=Plexamp  
After=network.target

[Service]  
Type=simple  
User=pi  
ExecStart=/usr/bin/node /home/pi/plexamp/js/index.js  
Restart=on-failure

[Install]  
WantedBy=multi-user.target

---

<div class="post-metadata">

**Author:** ![CostaHT](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/costaht/32/193414_2.png) [@CostaHT](https://forums.plex.tv/u/CostaHT)\
**Post date:** [May 5, 2022, 4:32am UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/4 "2022-05-05T04:32:49Z")

</div>

What errors do you get when you run `/usr/bin/node /home/pi/plexamp/js/index.js` ?

---

<div class="post-metadata">

**Author:** ![pbenzschawel](https://avatars.discourse-cdn.com/v4/letter/p/439d5e/32.png) [@pbenzschawel](https://forums.plex.tv/u/pbenzschawel)\
**Post date:** [May 5, 2022, 4:59am UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/5 "2022-05-05T04:59:40Z")

</div>

are you by chance using RaspberryPi OS lite? Somebody wrote in a different post about changing the target in plexamp.service to make it work on the Lite version. I did that and it worked for me.

> [@Future of Plexamp on Raspberry Pi?](https://forums.plex.tv/t/future-of-plexamp-on-raspberry-pi/717577/219):
>
> Working for me with a pi4 and allo digione HAT (spdif out to an external DAC) slight_smile On a fresh 64 bit install of raspberry pi os lite … Recommended/original plexamp.service didn’t start on reboot … noticed some errors related to node and groups? Changed to a user service (~/.config/systemd/user/plexamp.service) (note, I think this also might help prevent issues related to different user names) Made some changes to the service file … [Unit] Description=Plexamp After=network.targ…

also in that same thread you have to run sudo systemctl enable plexamp.service That step was initially missed on some of the posts.

Hopefully one of those two things will get it working for you.

---

<div class="post-metadata">

**Author:** ![JahTut](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jahtut/32/237945_2.png) [@JahTut](https://forums.plex.tv/u/JahTut)\
**Post date:** [May 5, 2022, 10:39am UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/6 "2022-05-05T10:39:58Z")

</div>

> [@CostaHT](#):
>
> /usr/bin/node /home/pi/plexamp/js/index.js

I get:  
bash: /usr/bin/node: No such file or directory

---

<div class="post-metadata">

**Author:** ![JahTut](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jahtut/32/237945_2.png) [@JahTut](https://forums.plex.tv/u/JahTut)\
**Post date:** [May 5, 2022, 10:40am UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/7 "2022-05-05T10:40:51Z")

</div>

Hi.  
I’m not running the lite version, and I’m pretty sure I’ve done the enable plexamp step.

---

<div class="post-metadata">

**Author:** ![JahTut](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jahtut/32/237945_2.png) [@JahTut](https://forums.plex.tv/u/JahTut)\
**Post date:** [May 5, 2022, 10:52am UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/8 "2022-05-05T10:52:43Z")

</div>

Is there a way to group Raspberry Pi players? i.e. a player in the kitchen and a player in the living room could be grouped as “main floor”.

When I quit the Terminal Plexamp quits playing music. Is that expected? Does the Terminal have to remain open in order for Plexamp to work?

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [May 5, 2022, 10:54am UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/9 "2022-05-05T10:54:25Z")

</div>

> [@JahTut](#):
>
> When I quit the Terminal Plexamp quits playing music. Is that expected?

No. It is a symptom that you did not successfully activate the plexamp daemon.

---

<div class="post-metadata">

**Author:** ![JahTut](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jahtut/32/237945_2.png) [@JahTut](https://forums.plex.tv/u/JahTut)\
**Post date:** [May 5, 2022, 11:06am UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/10 "2022-05-05T11:06:01Z")

</div>

I’m wondering if I wasn’t in the right directory when I performed the commands listed below…  
Before I do them, what should I change the directory to?

$ sudo cp plexamp.service /lib/systemd/system/  
$ sudo systemctl daemon-reload  
$ sudo systemctl enable plexamp  
$ sudo systemctl start plexamp

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [May 5, 2022, 11:10am UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/11 "2022-05-05T11:10:54Z")

</div>

> [@JahTut](#):
>
> I’m wondering if I wasn’t in the right directory when I performed the commands listed below…  
> Before I do them, what should I change the directory to?

After extracting the .tar.gz in your home folder, the primary copy of the `plexamp.service` file is supposed to be located inside of  
`/home/pi/plexamp`. (if your user name is indeed `pi`)  
This is the folder into which you must dive.  
However, the first command should fail if you aren’t in there. As it won’t find the source file to copy into `/lib/systemd/system`.

---

<div class="post-metadata">

**Author:** ![JahTut](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jahtut/32/237945_2.png) [@JahTut](https://forums.plex.tv/u/JahTut)\
**Post date:** [May 5, 2022, 11:34am UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/12 "2022-05-05T11:34:42Z")

</div>

I can’t figure it out.  
I changed the directory to plexamp/  
Ran the commands straight from Elan’s instructions, but whenever I quit Terminal Plexamp quits and when I reboot Plexamp doesn’t boot.  
I’m sure I’m missing something simple, but I can’t figure it out.

---

<div class="post-metadata">

**Author:** ![pjv](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pjv/32/4621_2.png) [@pjv](https://forums.plex.tv/u/pjv)\
**Post date:** [May 5, 2022, 12:24pm UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/13 "2022-05-05T12:24:42Z")

</div>

type this into your terminal: `which node` and paste the output here.

---

<div class="post-metadata">

**Author:** ![Tony\_T](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tony_t/32/311528_2.png) [@Tony\_T](https://forums.plex.tv/u/Tony_T)\
**Post date:** [May 5, 2022, 12:31pm UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/14 "2022-05-05T12:31:02Z")

</div>

I had the same issue, Try using a User Service (not a System Service)

See: [Future of Plexamp on Raspberry Pi? - #219 by tpavey](https://forums.plex.tv/t/future-of-plexamp-on-raspberry-pi/717577/219) (edit: this was already linked above)

And…

See: [Plexamp Raspberry Pi Beta - HDMI Audio was working until I restarted now It does not - #8 by Tony\_T](https://forums.plex.tv/t/plexamp-raspberry-pi-beta-hdmi-audio-was-working-until-i-restarted-now-it-does-not/791520/8)

---

<div class="post-metadata">

**Author:** ![JahTut](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jahtut/32/237945_2.png) [@JahTut](https://forums.plex.tv/u/JahTut)\
**Post date:** [May 5, 2022, 12:45pm UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/15 "2022-05-05T12:45:32Z")

</div>

/home/pi/.config/nvm/versions/node/v12.22.12/bin/node

---

<div class="post-metadata">

**Author:** ![pjv](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/pjv/32/4621_2.png) [@pjv](https://forums.plex.tv/u/pjv)\
**Post date:** [May 5, 2022, 12:57pm UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/16 "2022-05-05T12:57:07Z")

</div>

ok, edit the file `/lib/systemd/system/plexamp.service` and change its contents to this:

```auto
[Unit]
Description=Plexamp
After=network.target

[Service]
Type=simple
User=pi
ExecStart=/home/pi/.config/nvm/versions/node/v12.22.12/bin/node /home/pi/plexamp/js/index.js
Restart=on-failure

[Install]
WantedBy=multi-user.target

```

…and then re-do these commands:

```auto
$ sudo systemctl daemon-reload
$ sudo systemctl enable plexamp
$ sudo systemctl start plexamp

```

---

<div class="post-metadata">

**Author:** ![JahTut](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jahtut/32/237945_2.png) [@JahTut](https://forums.plex.tv/u/JahTut)\
**Post date:** [May 5, 2022, 1:13pm UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/17 "2022-05-05T13:13:20Z")

</div>

I think this did the trick!!!  
But now the audio out doesn’t work properly.  
I’m not using digital out, just the stereo mini.  
Prior to this change the audio was perfect. Now it’s digital interference. Audio from Youtube works fine.

---

<div class="post-metadata">

**Author:** ![JahTut](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/jahtut/32/237945_2.png) [@JahTut](https://forums.plex.tv/u/JahTut)\
**Post date:** [May 5, 2022, 1:25pm UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/18 "2022-05-05T13:25:35Z")

</div>

OK, up and running as expected.  
Thank you all for your help.  
The bad audio was fixed by changing the output in Plexamp to the Headphone output and strict sample rate matching.  
Thanks again for your patience.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [August 3, 2022, 1:26pm UTC](https://forums.plex.tv/t/plexamp-raspberry-pi-service-issue/791525/19 "2022-08-03T13:26:06Z")

</div>

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