Plex server Remote Access problem

Server Version#: 4.147.1

I would really like for plex server to work continuously without any intervention every once a while. Newest problem I got is plex not available remotely. Everything was correctly configured, port opened on router, remote access enabled on the plex server etc.. but suddenly it stopped working.

After clicking on button Retry i get this:

the green arrow is fake, it still doesn’t work, after new login red arrow gets back and the remote access still doesn’t work. Disable / enable remote access gets the same behaviour.

Tried turn off “Manually specify port” - no luck - connecting to server forever

UpNP is on, aditional port 29716 is redirected to 32400; I can open and play normally outside network from http://myCurrentIP:32400/ and http://myCurrentIP:29716/, but form mobile, app, TV app and https://app.plex.tv/ reporting server offline.

What is the problem?

Only tick the above checkbox if you have created a manual port forwarding in your router. (this is not the same as “opening a port” in the firewall)
When creating a port forwarding, I recommend you to use a semi-random port number for the WAN side of the router.
That same number must then go into the input field after the above check box.
Only forward TCP packets, not UDP.

Particularly when using manual port forwardings, you need to keep the internal (private) IP address of your server machine stable. Use the “DHCP address reservation” feature of your router, or assign your server an IP manually.

It is also very much recommended not NOT use a wireless network connection between the server and the router.
If the network adapters have a feature which allows the network link to renegotiate its link speed when idle, disable it. The handshake is often too slow when it is expected to go back into full action and Plex clients time out.

https is only usable with a security certificate. There are no certificates which are bound to IP adresses. Which is why you automatically get a domain name and a fitting certificate as soon as you claim your server into your plex.tv user account.
However, to actually use these, your devices must be able to resolve host names on the domain plex.direct. Let your external clients use a commonly working DNS resolver, like 1.1.1.1 or 8.8.8.8.
For your internal clients, you must also ensure that your local DNS resolver does not block resolution of the plex.direct domain.
For forther information about this, please see https://support.plex.tv/articles/206225077-how-to-use-secure-server-connections/

Thank you Otto for your advices. I agree with most of the things you wrote, but regardless of all this the plex was configured as I described and was in working condition. I don’t know what happened at the Plex side to be unable to detect my server which is perfectly accessible at configured port.

Let’s analyze the facts:

  • Does the server has turned on remote access: yes
  • Does the server has specified port at witch is accessible: yes
  • Is the server actually accessible at this port: yes

According to the plex documentation this should be enough - and it was since it was working ok until a few days ago I assume something else is wrong.

After further more investigation of Plex logs i would say the problem could be this:


Seems that plex cert form my server has expired. Great job Plex (:

Certificate creation was halted for your account, because somehow your server requested almost daily new certificates.
Sometimes several times per day. For over a month.

I will notify someone who can reset this.

In the meantime,

  1. ensure that your server has “write” privileges to the plex data folder (check both your container config, as well as the file system of the host OS)
  2. please stop removing the server from your account and claiming it anew any more

Our resident Linux expert just confirmed that:

He probably has a permission problem in the Caches directory where the certificate is stored.

He should recheck all of /var/lib/plexmediaserver ownership and perms to make certain they are right

Wait a few hours, verify the access permissions (ownership AND permission mask), then restart your server.

My Linux server was out of storage few days ago. Maybe that generated a problem?

This has been going on for over a month. So, no.
Verify permissions and ownership.

Well, whatever you did it works now without any intervention from my side.
Thank you!

I did checked the permission, they are ok.

While that may be, this situation will repeat.
Unless you investigate and solve the underlying issue

Ensure UID:GID and permissions.
Directories get 755, files get 644, all owned by the plex (or customized) UID:GID

Well,
things sorted out by itself without changing the permissions, if the permissions were insufficient it wouldn’t solve it by itself don’t you think?

I did run commands to change ownership and permissions after that just in case, but it has already been fixed and new certificate has been issued.

I’m closing this discussion, I will mark your answer as solution.

Thx for support.
Best Regards,
Zeljko

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