# Can't install Plex

**URL:** <https://forums.plex.tv/t/cant-install-plex/879007>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [May 31, 2024, 8:31pm UTC](https://forums.plex.tv/t/cant-install-plex/879007 "2024-05-31T20:31:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bparone](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bparone](https://forums.plex.tv/u/bparone)\
**Post date:** [May 31, 2024, 8:31pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/1 "2024-05-31T20:31:01Z")

</div>

Server Version#: latest  
Player Version#: latest  
I’ve installed a new Plex LXC container in Proxmox, but if I try and access the web interface, as soon as I sign in with my Plex account, I get the error that I’m not authorized. I do have a couple other Plex servers but I shut them down before I installed the container. What am I missing?

 ![Studio Snippet 2024-05-31 at 15.26.34](https://global.discourse-cdn.com/plex/original/4X/8/4/3/8437a4af3b63194eea5164449745bf7166bd0f2a.jpeg)

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [May 31, 2024, 8:44pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/2 "2024-05-31T20:44:05Z")

</div>

If the container IP is on a different subnet as your computer  
then you will get this.

PMS does not allow setting up “remote” without some kind of authentication

- SSH tunnel into the box  
or
- SSH into the box and claim using a claim token.

---

<div class="post-metadata">

**Author:** ![bparone](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bparone](https://forums.plex.tv/u/bparone)\
**Post date:** [May 31, 2024, 9:21pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/3 "2024-05-31T21:21:24Z")

</div>

Yeah that must be it. I’ve SSh’d in, but how do I claim it via the command line?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [May 31, 2024, 9:40pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/4 "2024-05-31T21:40:34Z")

</div>

1. SSH into the box.
2. make certain you have `curl` installed (not all have it by default)
3. With PMS running
4. [https://plex.tv/claim](https://plex.tv/claim)
5. COPY the claim token from the browser
6. Switch to the SSH session
7. `curl -X POST 'http://127.0.0.0.1:32400/myplex/claim?token=PASTE_TOKEN_HERE'`
8. Hit enter.
9. After 15-30 seconds, you’ll get a flood of XML from “MyPlex”.
10. The server will now be claimed.

BE ADVISED: The claim token is valid for 5 minutes and only 1-time use.

If you’re on-task and not wasting time, you’ll be fine.

_EDIT_

```auto
[chuck@lizum ~.2006]$ curl -X POST 'http://127.0.0.1:32400/myplex/claim?token=claim-19hczxFsmqKiKTeht9cA'

```

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [May 31, 2024, 9:45pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/5 "2024-05-31T21:45:34Z")

</div>

supplemental,

being in the LXC, if you stop plex, given the LXC runs as ‘root’ user inside,  
you can use my claim script if you wish.

---

<div class="post-metadata">

**Author:** ![bparone](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bparone](https://forums.plex.tv/u/bparone)\
**Post date:** [May 31, 2024, 9:46pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/6 "2024-05-31T21:46:10Z")

</div>

I did it slightly differently but it worked. Since I used the Proxmox Helper Script there is no way to edit the container to edit the paths so it’s useless for me. I’ll reinstall with good ole Docker and use this. Thanks for the guidance.

---

<div class="post-metadata">

**Author:** ![bparone](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bparone](https://forums.plex.tv/u/bparone)\
**Post date:** [May 31, 2024, 9:46pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/7 "2024-05-31T21:46:48Z")

</div>

Didin’t even know you had that. Will definitely bookmark that.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [May 31, 2024, 9:48pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/8 "2024-05-31T21:48:31Z")

</div>

for me, (lxd / lxc environment), i go direct

```auto
| plexdev | STOPPED | | | CONTAINER | 0 |
+---------------+---------+---------------------+---------------------------------------------+-----------+-----------+
| testbed | STOPPED | | | CONTAINER | 0 |
+---------------+---------+---------------------+---------------------------------------------+-----------+-----------+
| ubuntu22 | STOPPED | | | CONTAINER | 0 |
+---------------+---------+---------------------+---------------------------------------------+-----------+-----------+
[chuck@lizum ~.2013]$ lxc start debian11
[chuck@lizum ~.2014]$ lxc exec debian11 bash
root@debian11:~# whoami
root
root@debian11:~# hostname
debian11
root@debian11:~# 

```

might you be able to do that from proxmox CLI ?

---

<div class="post-metadata">

**Author:** ![bparone](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bparone](https://forums.plex.tv/u/bparone)\
**Post date:** [June 1, 2024, 10:37pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/9 "2024-06-01T22:37:08Z")

</div>

Not sure what’s happening in that, so no. I think I have to do something like mount IPaddress:/share/name and see if that will mount it to the container. Never done it before with a remote NAS though so I don’t know.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [June 1, 2024, 10:59pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/10 "2024-06-01T22:59:00Z")

</div>

For me, when dealing with LXC.

1. NFS mount the share on the host.

2. I then share the NFS-mounted directory into the LXC  
(LXC does not permit network mounts inside the container)

3. `lxc config device add ContainerName ShareName disk source="/host/path" path="/inside/container/path"`

---

<div class="post-metadata">

**Author:** ![bparone](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bparone](https://forums.plex.tv/u/bparone)\
**Post date:** [June 2, 2024, 1:07am UTC](https://forums.plex.tv/t/cant-install-plex/879007/11 "2024-06-02T01:07:01Z")

</div>

I’ll try that. I ended up installing it on Ubuntu and mounting the drives into the VM, which worked fine. However, even though when I cd into the plexmedia directory and subdirectories I created for the media and do an ls and can see all the media, Plex can’t see it. I thought it might be a permissioning issue, but when I look at the permissions, it doesn’;t seem like it’s a permissioning issue. Any idea what I could be missing that won’t allow Plex to see the plexmedia folder and subfolders?

 ![Studio Snippet 2024-06-01 at 20.00.05](https://global.discourse-cdn.com/plex/original/4X/d/5/f/d5ffbff753390e933b5762e2fe8c363d8e3c6562.jpeg)

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [June 2, 2024, 1:19am UTC](https://forums.plex.tv/t/cant-install-plex/879007/12 "2024-06-02T01:19:47Z")

</div>

Remember the rules of mounting

1. Create the mount point directory
2. Set ‘755’ permissions for the mount point directory
3. Mount the directory
4. Check the permissions again AFTER mounting. Adjust as needed.
5. Now confirm user `plex` (or the user you’re running as) can see the contents
6. If not, go to the network source and relax the permissions.

I use NFS, `sec=sys` mount option for this reason.  
It tells the NFS server to trust the client host to verify security (system level trust)

---

<div class="post-metadata">

**Author:** ![bparone](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bparone](https://forums.plex.tv/u/bparone)\
**Post date:** [June 2, 2024, 6:41pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/13 "2024-06-02T18:41:49Z")

</div>

As soon as I learn what “set 755” means" and how to check and set permissions I will remember it! 🙂

---

<div class="post-metadata">

**Author:** ![bparone](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bparone](https://forums.plex.tv/u/bparone)\
**Post date:** [June 2, 2024, 7:01pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/14 "2024-06-02T19:01:14Z")

</div>

I can’t tell what the user is. Just seems like it’s a bunch of random numbers. I tried sudo chown nobody:nogroup -R /plexmedia/ and it came back with an error that the movies file has a stale file handle. Not sure if that’s important or not. Made no difference anyways for the rest of the folders.

 ![Studio Snippet 2024-06-02 at 13.47.54](https://global.discourse-cdn.com/plex/original/4X/b/6/a/b6a57b8cafcf1243ce177a4fa262996c7c6ce014.jpeg)

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [June 2, 2024, 7:32pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/15 "2024-06-02T19:32:02Z")

</div>

Where did you get your Linux driver’s license from? 🤔🤣 🤣

Did you give a read of my tutorials

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/5):
>
> Mounting NFS network shares for Plex use The basic checklist Prepare the NAS: Create a ‘mount point’ directory structure on your Linux machine which will be where all your media shares are grafted and made available for Plex use. Create an entry in /etc/fstab for each share you wish to mount. Mount and debug as needed A. Prepare the NAS. This is unique to each NAS. In general, you only need grant read permission. Should you desire Read/Write for yourself, we will allow for it On Lin…

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247/4):
>
> Mounting CIFS + SMB network shares for Plex use The basic checklist Prepare the NAS Create the CIFS/SMB credentials file for use in /etc/fstab Create a ‘mount point’ directory structure on your Linux machine which will be where all your media shares are grafted and made available for Plex use. Create an entry in /etc/fstab for each share you wish to mount. Mount and debug as needed A. Prepare the NAS. This is unique to each NAS. In general, you only need grant read permission. Should …

The entire collection is here:

> [@Linux Tips](https://forums.plex.tv/t/linux-tips/276247):
>
> Tips & Tricks of the Linux trade. Below, you’ll find a collection of tips, tricks, and how-to’s to help make setting up, administrating, and using Plex Media Server on Linux a little easier. [Reporting problems](https://forums.plex.tv/t/linux-tips/276247/20)[Using other hard drives (Windows or Linux) with PMS](https://forums.plex.tv/t/linux-tips/276247/2)[Customizing your Plex configuration on systemd based systems](https://forums.plex.tv/t/linux-tips/276247/3)[Using other EXT4, NTFS, or other drives (internal or USB)](https://forums.plex.tv/t/linux-tips/276247/2)[Mounting CIFS + SMB network shares for Plex use](https://forums.plex.tv/t/linux-tips/276247/4)[Mounting NFS network shares for Plex use](https://forums.plex.tv/t/linux-tips/276247/5)[Moving…](https://forums.plex.tv/t/linux-tips/276247/6)

---

<div class="post-metadata">

**Author:** ![bparone](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bparone](https://forums.plex.tv/u/bparone)\
**Post date:** [June 2, 2024, 10:28pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/16 "2024-06-02T22:28:31Z")

</div>

Still on chapter 1 of The Linux Command Line 2nd Edition! I’ll check these out. I got it working. Now I need to get my head around installing all the arrs in Docker, on top of Ubuntu with remote shares. Bit of a headwrecker that one.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [June 2, 2024, 11:02pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/17 "2024-06-02T23:02:32Z")

</div>

> [@bparone](#):
>
> Now I need to get my head around installing all the arrs in Docker, on top of Ubuntu with remote shares. Bit of a headwrecker that one.

“arrs” ?

In the container:

1. You mount the remote share(s) on the host.
2. you MAP the host directory (which now has the remote share mounted to it into the container.
3. Magic happens

---

<div class="post-metadata">

**Author:** ![bparone](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bparone](https://forums.plex.tv/u/bparone)\
**Post date:** [June 2, 2024, 11:04pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/18 "2024-06-02T23:04:48Z")

</div>

Prowlarr, Lidarr, Bazarr, Sonarr, Radarr. The tricky bit is trying to understand GUIS, PUID, ownership and permission for each of the services mapped to each of the folders.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [June 2, 2024, 11:17pm UTC](https://forums.plex.tv/t/cant-install-plex/879007/19 "2024-06-02T23:17:37Z")

</div>

1. each of them is their own docker container.

2. I recommend a parent ‘docker’ directory  
`/top-level-path/docker`

3. Subdirectories for each app  
`/top-level-path/docker/sonarr`  
`/top-level-path/docker/nzbget`  
etc

4. using `network=host` so they all talk to each other easily as that same host

5. Once you have the first one, the rest are copy/cookie-cutter

This is something I could use for `docker run` for nzbget

```auto
sudo docker run \
  -d \
  --name nzbget \
  --network=host \
  -e TZ="EST" \
  -h usenet \
  -e PUID=1000 \
  -e PGID=1000 \
  -v /sata/config/nzbget:/config \
  -v /sata/usenet:/usenet \
  -v /sata/download:/download \
   linuxserver/nzbget

sudo docker update --restart=unless-stopped nzbget
sudo docker start nzbget

```

this configuration allows me to delete the container, change config, or pull, without losing anything in `/config`

---

<div class="post-metadata">

**Author:** ![bparone](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bparone](https://forums.plex.tv/u/bparone)\
**Post date:** [June 3, 2024, 12:16am UTC](https://forums.plex.tv/t/cant-install-plex/879007/20 "2024-06-03T00:16:12Z")

</div>

You’re the best Chuck. Quick question though; I use Portainer for container management and it creates a top level directory. Do you think there would be any issue using that?

[Next page](https://forums.plex.tv/t/cant-install-plex/879007.md?page=2)
