Hi all
I have just installed Plex Server on a fresh Ubuntu 22.04. As I am new to Linux, I installed the Snap package through the GUI (not knowing the difference between Snap and Deb yet).
After the initial Plex installation, the setup page was hanging and I could not complete the setup. I uninstalled Plex, rebooted the machine, and reinstalled Plex.
This time the setup completed without problems.
However, after every restart of the machine, the Plex Server now shows as unclaimed. Once I claim it, everything works fine - but it is a bit annoying having to do that.
Any suggestions on how to fix this?
Thanks in advance !
Yes, I put these in a long time ago on my old server because some of the clients with fixed IP could not access the server
Have removed it now
No, am using a different PC to post here
The only things I have done on my new server after fresh installation was NFS mounts to my Synology and Ubiquity Unifi network application. I have not changed any network settings (fixed IP assigned by router)
I am running a pfSense router with VPN and DNS Resolver. Firewall rules for server to connect straight to internet (bypass VPN) and Google DNS set for server in DHCP server
Could this have something to do with it?
Should I start over again and do another clean Ubuntu install? And is it better to install PMS via Snap or terminal?
Plex wonât work with VPNs unless you hand craft a bunch of static routes so
All stop there.
The reason it wonât work is because Plex sees the real WAN IP at the pfSense. (what the SSDP query reports).
The VPN makes your exit IP different than you real IP. Remote access will not work.
Regarding DNS
Any Ubiquity equipment here should be as switches. You donât want routers behind routers ⊠Thereâs no need â especially with a pfSense which can create those different subnets easily through one interface ( I have two subnets coming from mine)
In the Linux box,
Default gateway should be the box closest to the WAN (Internet). I presume this is the pfSense.
DNS should also point to the pfSense box.
Here, you see both subnets coming from the trusted (LAN) side of the pfsense and how I did it.
ixl0 = WAN
ixl1 = LAN
IXL1.1003 = wIfi (1003 is used for apple guest network devices).
my Netgear switches use tag 1003 to control the switching / visibility. Guest devices can only see the internet.
You donât need to reinstall it. Just get into the GUI (static) or, if it has a DHCP reservation in pfSense, configure it to point to the pfSense for everything. (The DHCP reservation page in pfSense allows you full control over everything for the host.)
Given you have a new and powerful machine, I wouldnât use SNAP.
â Too restrictive: For the NFS and for the awesome transcoding power of the UHD 770 QSV.
â sudo snap remove --purge plexmediaserver (remove and purge it all)
Yes, I have also realized that this is not an easy task. I did previously try this with my older server, put in a bunch of static routes, but still struggled. Remote Access in PMS would go green for about 3 seconds and then revert back to red.
But I am fine without Remote Access and have it disabled in PMS
Yes, I only have Unify switches and APs. Only pfSense set up as router, no double NAT or so. Multiple WLANs, everything correctly configures both on pfSense as well on the switches. The rest of my network runs fine
Thanks for these details. This is the first time that I am playing around with Linux, so I donât know these tricks
One other question on this: How do I keep my server settings and the episode markings (which ones are watched and unwatched)? Where do I find these files in the Snap version and where do I have to put them afterwards?
Keeping preferences requires manually copying them out of the old server , saving them, then putting in place in the new server (changing ownership/permissions as required after placement)
If you want to keep the watch history, you have two choices
â Let PMS upload to Plex.tv (cloud sync watch status)
â Import the watch history directly from the desired database into the new server.
( I have a tool which assists with this should you wish it)
Multi-WAN
Not sure why your switches need configuring but then I never understood Ubiquityâs (everything in the cloud philosophy)
PMS will work with it but, as you well know, Remote Access is no-go.
I do not know what will happen if plex.tv sees the same host at two different WAN addresses. Itâs likely to start blocking (ignoring) both
PMS itself will arbitrarily grab the first it sees. Thereâs no guarantee how it will work.
( it was not designed to work in a multi-wan environment. Almost everyone has only one WAN address )
Let me start with Cloud Sync. If I canât get that to work, I would appreciate your tool
EDIT: I just realized that I probably need to run your tool over the existing database before I remove the Snap version of PMS - correct? In that case, I would appreciate your tool please
This is more about VLAN tagging
And sorry - my earlier post should have also read VLANs, not WLAN. I only have 1 WAN (but multiple VPNs on it). But pfSense is configured that the machine with PMS on it is directly attached to WAN (not via VPNs)
Yeah, Iâve also started tracing the error messages - they also seem to be non-errors. But they cause a serious delay sometimes both in shutdown as well as boot process. I donât know if I just was not patient enough or if the system really did not want to boot across several hard restartsâŠ
But thanks again for all your help here I have learned a lot
Thanks - donât have any experience with XFS but will look into it
For me the system is hanging on an ACPI error on both shutdown as well as start-up. On shutdown sometimes around 10s, on start up I had it hanging for more than 2 mins. I will need to google a bit more to see if I can better suppress / speed up those error messages
EDIT:
Oh, and the cloud synching of the watch history worked like a charm. Thanks again for that tip
Other than mounting a RAM disk for the temp transcoder directory, are there any other good PMS tweaks that I am missing?