# Not authorized on Ubuntu web interface

**URL:** <https://forums.plex.tv/t/not-authorized-on-ubuntu-web-interface/878034>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [May 19, 2024, 11:36pm UTC](https://forums.plex.tv/t/not-authorized-on-ubuntu-web-interface/878034 "2024-05-19T23:36:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwjorders\_gmail\_com](https://avatars.discourse-cdn.com/v4/letter/k/b5e925/32.png) [@kwjorders\_gmail\_com](https://forums.plex.tv/u/kwjorders_gmail_com)\
**Post date:** [May 19, 2024, 11:36pm UTC](https://forums.plex.tv/t/not-authorized-on-ubuntu-web-interface/878034/1 "2024-05-19T23:36:06Z")

</div>

Server Version#:  
Player Version#:4.125.1  
I have been having issues with my new intel Nuc that I had installed Plex Media Server on it and now it says my server is Not Authorized. I have already reinstalled Plex Media Server and that worked until I reboot the unit. I was just using Plex to play music locally present on the Nuc which had Ubuntu 22.04 LTS on it. I have cleared my server on the authorized devices tab but they still do not work.  
-Any help would be great thanks.

---

<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 20, 2024, 12:13am UTC](https://forums.plex.tv/t/not-authorized-on-ubuntu-web-interface/878034/2 "2024-05-20T00:13:22Z")

</div>

Most common issues are:

1. DNS / Connectivity – can’t confirm you’re the admin
2. You’re on a different subnet and it’s not claimed.

This will help reclaim it… run from terminal window., plex stopped, as root.

> **[GitHub - ChuckPa/UserCredentialReset: User Credential Reset utility for Plex](https://github.com/ChuckPa/UserCredentialReset)**
>
> User Credential Reset utility for Plex. Contribute to ChuckPa/UserCredentialReset development by creating an account on GitHub.

See the README for more details

---

<div class="post-metadata">

**Author:** ![kwjorders\_gmail\_com](https://avatars.discourse-cdn.com/v4/letter/k/b5e925/32.png) [@kwjorders\_gmail\_com](https://forums.plex.tv/u/kwjorders_gmail_com)\
**Post date:** [May 25, 2024, 10:16pm UTC](https://forums.plex.tv/t/not-authorized-on-ubuntu-web-interface/878034/3 "2024-05-25T22:16:24Z")

</div>

I ran the ./UserCredentailReset.sh command and got the error “Unrecognized host type. Cannot continue.” I ran it from the folder in the downloads folder of Ubuntu 22.04LTS. I am not sure it was ran in the right folder. I did install plex from the Ubuntu software center.  
-Any help would be great thanks.

---

<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 26, 2024, 12:05am UTC](https://forums.plex.tv/t/not-authorized-on-ubuntu-web-interface/878034/4 "2024-05-26T00:05:54Z")

</div>

Ubuntu is very predictable where they put things.  
Plex from their store is a “Snap” package and Snap packages go as I show below.

Look at these pathnames.

```auto
  # when all else fails, look for SNAP (low usage)
  elif [-f "/snap/plexmediaserver/current/Plex Media Server"] && \
       [-f "/var/snap/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml"]; then

      AppSuppDir="/var/snap/plexmediaserver/Library/Application Support"
      Preferences="/var/snap/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml"
      HostType="Snap (Linux)"
      return 0
  fi

```

Can you check if these exist ?

If they exist, please make a tar.gz of the “Logs” directory and attach it.

---

<div class="post-metadata">

**Author:** ![kwjorders\_gmail\_com](https://avatars.discourse-cdn.com/v4/letter/k/b5e925/32.png) [@kwjorders\_gmail\_com](https://forums.plex.tv/u/kwjorders_gmail_com)\
**Post date:** [May 26, 2024, 12:16am UTC](https://forums.plex.tv/t/not-authorized-on-ubuntu-web-interface/878034/5 "2024-05-26T00:16:32Z")

</div>

I just got it to work using the special usage in the Github site. Any way this could be fixed. Everything is on the subnet in my home. I am assuming it is because I have issues with Internet connectivity on my Nuc the first 15 minutes or so on bootup. I do not know what could be wrong with DNS.  
-Thanks for the help

---

<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 26, 2024, 12:17am UTC](https://forums.plex.tv/t/not-authorized-on-ubuntu-web-interface/878034/6 "2024-05-26T00:17:53Z")

</div>

That was going to be my next check – DNS.

We’ve found, when there are ISP-related problems, set DNS to google.  
Not entirely sure why it’s true but it works

---

<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 26, 2024, 12:19am UTC](https://forums.plex.tv/t/not-authorized-on-ubuntu-web-interface/878034/7 "2024-05-26T00:19:01Z")

</div>

> [@kwjorders\_gmail\_com](#):
>
> Any way this could be fixed.

Which path did you use? (You’re referring to the `-p` option ?  
I support those tools in my free time. (I don’t have every possible config here at home)

---

<div class="post-metadata">

**Author:** ![kwjorders\_gmail\_com](https://avatars.discourse-cdn.com/v4/letter/k/b5e925/32.png) [@kwjorders\_gmail\_com](https://forums.plex.tv/u/kwjorders_gmail_com)\
**Post date:** [May 26, 2024, 12:44am UTC](https://forums.plex.tv/t/not-authorized-on-ubuntu-web-interface/878034/8 "2024-05-26T00:44:36Z")

</div>

Yeah I just change this line to where I found that preferences.xml file.

```auto
/mnt/docker/Plex/Library/Application Support/Plex Media Server/Preferences.xml"

```

---

<div class="post-metadata">

**Author:** ![kwjorders\_gmail\_com](https://avatars.discourse-cdn.com/v4/letter/k/b5e925/32.png) [@kwjorders\_gmail\_com](https://forums.plex.tv/u/kwjorders_gmail_com)\
**Post date:** [May 26, 2024, 12:44am UTC](https://forums.plex.tv/t/not-authorized-on-ubuntu-web-interface/878034/9 "2024-05-26T00:44:57Z")

</div>

So for DNS just change Ubuntu or the Modem?

---

<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 26, 2024, 1:01am UTC](https://forums.plex.tv/t/not-authorized-on-ubuntu-web-interface/878034/10 "2024-05-26T01:01:36Z")

</div>

Your logs will tell you specifically what’s happening.

If it can’t resolve the host `plex.tv` then either the DNS from your host isn’t getting to / forwarded by the modem/router – OR – the ISP configuration is flaky.

In these situations, we usually bypass the ISP entirely and set the host (Ubuntu) DNS to 8.8.8.8 & 8.8.4.4 (or some other public DNS)

---

<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 24, 2024, 1:01am UTC](https://forums.plex.tv/t/not-authorized-on-ubuntu-web-interface/878034/11 "2024-08-24T01:01:57Z")

</div>

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