# Fixing Plex's 'Not authorized' Error

**URL:** <https://community.umbrel.com/t/fixing-plexs-not-authorized-error/10523>\
**Category:** Guides\
**Created:** [December 2, 2022, 2:40am UTC](https://community.umbrel.com/t/fixing-plexs-not-authorized-error/10523 "2022-12-02T02:40:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![nevets963](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/nevets963/32/2688_2.png) [@nevets963](https://community.umbrel.com/u/nevets963)\
**Post date:** [December 2, 2022, 2:40am UTC](https://community.umbrel.com/t/fixing-plexs-not-authorized-error/10523/1 "2022-12-02T02:40:50Z")

</div>

This post is for users who are met with a “Not authorized” error when trying to set up the Plex app. This is a known issue with Plex across all platforms that can arise unexpectedly during the setup process.

## The Issue

After installing Plex and linking your [plex.tv](http://plex.tv) account, you might see this error screen saying that you do not have access to this server:

 ![Screenshot 2022-11-28 at 14 08 23](https://canada1.discourse-cdn.com/flex030/uploads/getumbrel/original/2X/8/8e6c55532aa9db7ce5d6f1385f93e87013614d60.jpeg)

## The Fix: Claiming Your Server

The solution is to claim your server with a specific claim code so that it is linked to your [plex.tv](http://plex.tv) account. Please follow these steps:

1. **Obtain a claim code**

- Go to [https://www.plex.tv/claim](https://www.plex.tv/claim) and copy the claim code provided.

- Plex gives you 4 minutes to claim your server after generating this code. If you don’t claim it in time, don’t worry, you can just refresh the page to get a new code.

1. **Prepare the command**

- In a text editor, copy and paste the following command, and replace `<paste-your-plex-claim-here>` with your actual claim code. Make sure to remove the angle brackets (\< \>) as well.

1. **Open umbrelOS Terminal**

- On your Umbrel, go to Settings \> Advanced Settings \> Terminal \> umbrelOS.

1. **Execute the command**

- Paste your tailored command into your SSH session and press enter.

- If the command runs without feedback, you’ve succeeded. This is what your Terminal will look like:

- If you recieve an error message in the Terminal it means that the command was formatted incorrectly. Please follow the troubleshooting steps below.

1. **Restart Plex**

- Finally, restart the Plex app from your Umbrel’s homescreen by right clicking on the Plex app and selecting “Restart”.

You should now have access to your Plex Server! If you are still met with the “Not authorized” error, it is worth doing a full reboot of the device, otherwise please follow the troubleshooting steps below

## Troubleshooting

If you are still having issues, there are three likely culprits:

1. **Incorrectly formatted command**

- If you receive an error message in your Terminal like this one then the command was formatted incorrectly:

1. **Multiple successful commands to write the claim code to the docker-compose.yml file, but the claim codes weren’t valid or there was a typo**

- You will need to first delete any claim codes that you have already added. To do this, run the following command in your SSH session:

1. **Expired claim code**

- If you took too long to claim your server, the claim code will expire.
- Follow the instructions to remove a claim code shown in Troubleshooting step (2) right above this one.
- Refresh the page at [https://www.plex.tv/claim](https://www.plex.tv/claim) to get a new code.
- Follow the instructions again for adding the new claim code

If you are having difficulties with the above steps, please reach out to us at our official support:  
[https://umbrel.com/support](https://umbrel.com/support)

---

<div class="post-metadata">

**Author:** ![bitcarnicoin](https://avatars.discourse-cdn.com/v4/letter/b/ecb155/32.png) [@bitcarnicoin](https://community.umbrel.com/u/bitcarnicoin)\
**Post date:** [February 19, 2023, 4:39pm UTC](https://community.umbrel.com/t/fixing-plexs-not-authorized-error/10523/2 "2023-02-19T16:39:04Z")

</div>

Nice one thanks

---

<div class="post-metadata">

**Author:** ![cabeoc](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/cabeoc/32/3047_2.png) [@cabeoc](https://community.umbrel.com/u/cabeoc)\
**Post date:** [February 27, 2023, 12:01am UTC](https://community.umbrel.com/t/fixing-plexs-not-authorized-error/10523/3 "2023-02-27T00:01:35Z")

</div>

This does work for me, thank you!. I opted to manually add the `- PLEX_CLAIM=` line below the `- VERSION=docker` line. Worked the same way. Thanks!

---

<div class="post-metadata">

**Author:** ![Shevah](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Shevah](https://community.umbrel.com/u/Shevah)\
**Post date:** [May 30, 2023, 6:27pm UTC](https://community.umbrel.com/t/fixing-plexs-not-authorized-error/10523/4 "2023-05-30T18:27:13Z")

</div>

This works great!

---

<div class="post-metadata">

**Author:** ![razorback18](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@razorback18](https://community.umbrel.com/u/razorback18)\
**Post date:** [November 28, 2023, 12:35pm UTC](https://community.umbrel.com/t/fixing-plexs-not-authorized-error/10523/5 "2023-11-28T12:35:41Z")

</div>

This does not work anymore, at least for me.

---

<div class="post-metadata">

**Author:** ![surfer108](https://avatars.discourse-cdn.com/v4/letter/s/919ad9/32.png) [@surfer108](https://community.umbrel.com/u/surfer108)\
**Post date:** [November 28, 2023, 6:47pm UTC](https://community.umbrel.com/t/fixing-plexs-not-authorized-error/10523/6 "2023-11-28T18:47:18Z")

</div>

Verified working for me last week./

---

<div class="post-metadata">

**Author:** ![pfontez](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/pfontez/32/4899_2.png) [@pfontez](https://community.umbrel.com/u/pfontez)\
**Post date:** [December 1, 2023, 5:47pm UTC](https://community.umbrel.com/t/fixing-plexs-not-authorized-error/10523/7 "2023-12-01T17:47:22Z")

</div>

not work for me.  
“not have access”  
You may be able to claim it by choosing “Open Plex…” from the Plex menu in the macOS menu bar or Windows system tray. For more troubleshooting tips, see our [support article](https://support.plex.tv/articles/204281528-why-am-i-locked-out-of-server-settings-and-how-do-i-get-in/).

---

<div class="post-metadata">

**Author:** ![oi\_yeah](https://avatars.discourse-cdn.com/v4/letter/o/5daacb/32.png) [@oi\_yeah](https://community.umbrel.com/u/oi_yeah)\
**Post date:** [March 14, 2024, 9:24pm UTC](https://community.umbrel.com/t/fixing-plexs-not-authorized-error/10523/8 "2024-03-14T21:24:25Z")

</div>

> [@nevets963](#):
>
> [Claim | Plex](https://www.plex.tv/claim/)

did you find a solution to this?

---

<div class="post-metadata">

**Author:** ![nmfretz](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/nmfretz/32/3631_2.png) [@nmfretz](https://community.umbrel.com/u/nmfretz)\
**Post date:** [March 20, 2024, 7:41pm UTC](https://community.umbrel.com/t/fixing-plexs-not-authorized-error/10523/9 "2024-03-20T19:41:00Z")

</div>

I have updated this guide to provide clarity on how to run the command to add your Plex claim code, as well as added new instructions on how to restart the Plex app from the Umbrel homescreen in umbrelOS 1.x

Let me know if anything is confusing and I can make updates.

---

<div class="post-metadata">

**Author:** ![JohnGDew](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@JohnGDew](https://community.umbrel.com/u/JohnGDew)\
**Post date:** [April 8, 2024, 2:43am UTC](https://community.umbrel.com/t/fixing-plexs-not-authorized-error/10523/10 "2024-04-08T02:43:18Z")

</div>

I used this guide to setup my Plex Server on Umbrel. Very helpful. After this, I ran into the issue of the media server showing up as “indirect” on my PS5. I managed to dig into it and find the solutions and put together a [comprehensive guide](https://johngilldew.com/2024/04/08/plex-server/) for the problems I faced. I’m new here, but I’ll try to make a stand-alone guide here in the community as well! Thanks!

Embedded link:

> **[Setting up Plex Server on Umbrel to Stream Media to Playstation 5 - John Gill...](https://johngilldew.com/2024/04/08/plex-server/)**
>
> Network components: Network Configuration: Step-by-Step Guide: \*\*\*For steps 6-9, reference this GUIDE for more information\*\*\* \*\*\*For steps 12 – 15, reference this COMMENT for more info (disabling IPv6 is NOT required)\*\*\* Hope this helps! If this was...
