wernight / docker-plex-media-server

Dockerized Plex Media Server
https://registry.hub.docker.com/u/wernight/plex-media-server/
MIT License
128 stars 34 forks source link

Troubleshooting: "You do not have permission to access this server" #2

Closed bluepuma77 closed 8 years ago

bluepuma77 commented 8 years ago

I am having an issue using my own Plex server, even though I am logged in.

  1. I did a fresh sudo docker pull wernight/plex-media-server
  2. I started up Docker with wernight/plex-media-server on my hosted linux server
  3. I registered and confirmed a new (free) account on plex.tv
  4. I logged in on my server with the new Plex account
  5. But then I got the message "You do not have permission to access this server"

Directories are writable, the container created /plex-config/Plex Media Server, I used this command: sudo docker run -d --restart=always --user www-data --name plex -v /data/download/plex-config:/config -v /data/download:/media -p 32400:32400 wernight/plex-media-server

The Preferences.xml file was automatically created and has this content <Preferences MachineIdentifier="1**f" ProcessedMachineIdentifier="1**f" AnonymousMachineIdentifier="1**f" MetricsEpoch="1" GracenoteUser="1**f"/>

Do I need to configure something else? Does this only work with Plex premium pass?

plex-permissions

bluepuma77 commented 8 years ago

This is how the login screen looks like, it also enables sign-up with plex.tv. plex-login

bluepuma77 commented 8 years ago

Plex version is 2.4.16

bluepuma77 commented 8 years ago

Here is the solution, thanks to Plex forum (and docs), maybe you want to add this to "Troubleshooting".

On a Different Network If you're on a different network than the Server computer, you'll first need to set up a SSH tunnel so that you can access things as if they were local. This is only necessary for the initial setup.

Command line for local SSH tunnel to server: ssh -L 32400:localhost:32400 -N user@remote.server

Then connect with your browser to localhost:32400/web and login with your plex.tv user.

From now on you can connect directly to your remote server with your plex.tv user.

bluepuma77 commented 8 years ago

To be able to connect with phone and tablet apps to the Docker container, you need to go to Settings -> Server -> Remote Access in the web app and activate "Manually specify port", even if you use the default port 32400.

wernight commented 8 years ago

It's already in the FAQ of this docket under troubleshooting I believe.

On Mon, Aug 17, 2015, 00:33 bluepuma77 notifications@github.com wrote:

To be able to connect with phone and tablet apps to the Docker container, you need to go to Settings -> Server -> Remote Access in the web app and activate "Manually specify port", even if you use the default port 32400.

— Reply to this email directly or view it on GitHub https://github.com/wernight/docker-plex-media-server/issues/2#issuecomment-131636058 .

wernight commented 8 years ago

If you think the README should be clarified, please suggest improvements.