Showing posts with label server. Show all posts
Showing posts with label server. Show all posts

Thursday, July 23, 2015

Plex Media Server "You do not have permission to access this server" Fix Ubuntu

So I recently changed my password as suggested by Plex after their forums were hacked.  While I was able to successfully change it, when I went to go watch something on my Roku I encountered the following message:

"You do not have permission to access this server"

Well obviously that is annoying, because even with the correct password I was still encountering this message.  Well apparently in order to fix it you have to edit a preferences.xml file on the server.  As I am running my Plex server on a Ubuntu machine the steps below are how I was able to resolve the issue.

First go ahead SSH to your server and stop the Plex service:


sudo service plexmediaserver stop

Next navigate to the preferences.xml file which should be located here:

cd /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/

It's best to make a backup of the file just incase something goes haywire.

sudo cp preferences.xml.backup

You'll then want to edit the preferences.xml file with your preferred editor:

sudo nano preferences.xml

Now we want to look for the following and delete it:

allowedNetworks="127.0.0.1/255.255.255.255"

Once this segment is deleted save the changes.  Now it's time to start your Plex server again:

sudo service plexmediaserver start

Once it is finished loading you should be able to connect to your Plex Media Server through your Roku device.

Monday, August 19, 2013

Update Plex repository in Ubuntu Server

Receiving this error on Ubuntu Server when you run the update?

Failed to fetch http://www.plexapp.com/repo/dists/lucid/main/binary-amd64/Packages 404 Not Found
Fix it below:

Edit the sources.list file:

sudo nano /etc/apt/sources.list

At the bottom add:

deb http://plex.r.worldssl.net/PlexMediaServer/ubuntu-repo lucid main

Add the repository key:

wget http://plexapp.com/plex_pub_key.pub
sudo apt-key add plex_pub_key.pub
rm plex_pub_key.pub

Run the update:

sudo apt-get update

You might receive a duplicate error.  To fix this edit the sources.list.d file.  First list to see the duplicate:

ls /etc/apt/sources.list.d

You should see plex and plexmediaserver.  Delete the plex file.

sudo rm -i /etc/apt/sources.list.d/plex.list

I didn't remove the plex.list.save file but it probably isn't necessary anymore.  You can also go back to the sources.list file and comment out the deb line you added above.  I believe it is only necessary if you are going to install Plex.

Hope this helped.