# Getting PlexAMP to automatically start on Raspberry PI

**URL:** https://forums.plex.tv/t/getting-plexamp-to-automatically-start-on-raspberry-pi/861333
**Category:** Plex Labs
**Tags:** plexamp
**Created:** [December 1, 2023, 12:04am UTC](https://forums.plex.tv/t/getting-plexamp-to-automatically-start-on-raspberry-pi/861333 "2023-12-01T00:04:58Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![kahilzinger](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@kahilzinger](https://forums.plex.tv/u/kahilzinger)
#### Post date: [December 1, 2023, 12:04am UTC](https://forums.plex.tv/t/getting-plexamp-to-automatically-start-on-raspberry-pi/861333/1 "2023-12-01T00:04:58Z")

</div>

Server Version#: 1.32.7.7621  
Player Version#: Latest

I am having a bear of a time getting the PlexAMP on a headless Raspberry PI to automatically start.

I got it installed and it works when I manually start it in the CLI over an SSH session but it just the screen just hangs on the terminal and you can do everything you need to in the PlexAMP on the PI at https://[Raspberry PI IP Address}:32500

I followed these instructions including editing the service file with my username [How to start Plexamp automatically when you power on your Raspberry Pi | How To Hi-Fi](https://howtohifi.com/how-to-start-plexamp-automatically-when-you-power-on-your-raspberry-pi/)

And I rebooted it but the service still does not automatically start. I can manually start it all day.

It seems silly to me not to have this automatically start as you can control it over the web. I want to use this to play my Christmas playlist over an FM transmitter for my Christmas lights. It can run 24/7 for all I care. I just need to not have to manually start it up. I can use the web page over port 32500 to start, stop, or change playlists.

---

<div class="post-metadata">

### Author: ![tgp-2](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tgp-2/32/276306_2.png) [@tgp-2](https://forums.plex.tv/u/tgp-2)
#### Post date: [December 1, 2023, 1:53am UTC](https://forums.plex.tv/t/getting-plexamp-to-automatically-start-on-raspberry-pi/861333/2 "2023-12-01T01:53:21Z")

</div>

after rebooting, what do you see when you enter the following …

```auto
systemctl status plexamp.service

```

and what audio output are you using?

---

<div class="post-metadata">

### Author: ![kahilzinger](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@kahilzinger](https://forums.plex.tv/u/kahilzinger)
#### Post date: [December 1, 2023, 2:04am UTC](https://forums.plex.tv/t/getting-plexamp-to-automatically-start-on-raspberry-pi/861333/3 "2023-12-01T02:04:56Z")

</div>

● plexamp.service - Plexamp  
Loaded: loaded (/lib/systemd/system/plexamp.service; enabled; vendor preset: enabled)  
Active: failed (Result: exit-code) since Thu 2023-11-30 17:39:35 CST; 2h 24min ago  
Process: 595 ExecStart=/home/khilzinger/.nvm/versions/node/v16.20.2/bin/node /home/khilzinger/plexamp/js/index.js (code=exited, status=200/CHDIR)  
Main PID: 595 (code=exited, status=200/CHDIR)  
CPU: 7ms

Nov 30 17:39:34 KAH-OFFICEPI01 systemd[1]: plexamp.service: Scheduled restart job, restart counter is at 4.  
Nov 30 17:39:34 KAH-OFFICEPI01 systemd[1]: Stopped Plexamp.  
Nov 30 17:39:34 KAH-OFFICEPI01 systemd[1]: Started Plexamp.  
Nov 30 17:39:34 KAH-OFFICEPI01 systemd[1]: plexamp.service: Main process exited, code=exited, status=200/CHDIR  
Nov 30 17:39:34 KAH-OFFICEPI01 systemd[1]: plexamp.service: Failed with result ‘exit-code’.  
Nov 30 17:39:35 KAH-OFFICEPI01 systemd[1]: plexamp.service: Scheduled restart job, restart counter is at 5.  
Nov 30 17:39:35 KAH-OFFICEPI01 systemd[1]: Stopped Plexamp.  
Nov 30 17:39:35 KAH-OFFICEPI01 systemd[1]: plexamp.service: Start request repeated too quickly.  
Nov 30 17:39:35 KAH-OFFICEPI01 systemd[1]: plexamp.service: Failed with result ‘exit-code’.  
Nov 30 17:39:35 KAH-OFFICEPI01 systemd[1]: Failed to start Plexamp.

---

<div class="post-metadata">

### Author: ![tgp-2](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tgp-2/32/276306_2.png) [@tgp-2](https://forums.plex.tv/u/tgp-2)
#### Post date: [December 1, 2023, 2:44am UTC](https://forums.plex.tv/t/getting-plexamp-to-automatically-start-on-raspberry-pi/861333/4 "2023-12-01T02:44:27Z")

</div>

thanks … can you also check the following …

```auto
which node

```

and

```auto
node -v

```

---

<div class="post-metadata">

### Author: ![kahilzinger](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@kahilzinger](https://forums.plex.tv/u/kahilzinger)
#### Post date: [December 1, 2023, 3:28am UTC](https://forums.plex.tv/t/getting-plexamp-to-automatically-start-on-raspberry-pi/861333/5 "2023-12-01T03:28:51Z")

</div>

khilzinger@KAH-OFFICEPI01:/lib/systemd/system $ which node  
/home/khilzinger/.nvm/versions/node/v16.20.2/bin/node

khilzinger@KAH-OFFICEPI01:/lib/systemd/system $ node -v  
v16.20.2

---

<div class="post-metadata">

### Author: ![tgp-2](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tgp-2/32/276306_2.png) [@tgp-2](https://forums.plex.tv/u/tgp-2)
#### Post date: [December 1, 2023, 3:53am UTC](https://forums.plex.tv/t/getting-plexamp-to-automatically-start-on-raspberry-pi/861333/6 "2023-12-01T03:53:02Z")

</div>

thanks … not seeing anything obvious yet … sorry to keep asking for more info, what does this show?

```auto
cat /lib/systemd/system/plexamp.service

```

---

<div class="post-metadata">

### Author: ![kahilzinger](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@kahilzinger](https://forums.plex.tv/u/kahilzinger)
#### Post date: [December 1, 2023, 4:05am UTC](https://forums.plex.tv/t/getting-plexamp-to-automatically-start-on-raspberry-pi/861333/7 "2023-12-01T04:05:17Z")

</div>

No, I 100% appreciate it. According to the documentation, I was supposed to replace “pi” with my username and I did verify the paths for “ExecStart”

[Unit]  
Description=Plexamp  
After=network-online.target  
Requires=network-online.target

[Service]  
Type=simple  
User=khilzinger  
WorkingDirectory=/home/pi/plexamp  
! ExecStart=/usr/bin/node /home/pi/plexamp/js/index.js  
ExecStart=/home/khilzinger/.nvm/versions/node/v16.20.2/bin/node /home/khilzinger/plexamp/js/index.js  
Restart=on-failure

[Install]  
WantedBy=multi-user.target

---

<div class="post-metadata">

### Author: ![tgp-2](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tgp-2/32/276306_2.png) [@tgp-2](https://forums.plex.tv/u/tgp-2)
#### Post date: [December 1, 2023, 4:13am UTC](https://forums.plex.tv/t/getting-plexamp-to-automatically-start-on-raspberry-pi/861333/8 "2023-12-01T04:13:31Z")

</div>

ah, this might be it …  
looks like you need to change to your user name in the WorkingDirectory line

---

<div class="post-metadata">

### Author: ![kahilzinger](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@kahilzinger](https://forums.plex.tv/u/kahilzinger)
#### Post date: [December 1, 2023, 12:22pm UTC](https://forums.plex.tv/t/getting-plexamp-to-automatically-start-on-raspberry-pi/861333/9 "2023-12-01T12:22:38Z")

</div>

That was it. THANK YOU!!!

---

<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: [February 29, 2024, 12:23pm UTC](https://forums.plex.tv/t/getting-plexamp-to-automatically-start-on-raspberry-pi/861333/10 "2024-02-29T12:23:27Z")

</div>

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