Plex has ONE job. to play media. yet it's a F'n crap shoot if it'll do that

Are you using “Custom server access URLs” inside the Plex network settings? If so you must provide the custom URL AND the local IP and then disable remote access.

eg: https://10.0.0.26:32400,https://your.external.domain:32400

Otherwise you’ll have issues. Especially if you’re using Docker.

In Docker you can automatically set this paramater via the CLI when creating your container by including this directive: -e ADVERTISE_IP=“https://10.0.0.26:32400,https://your.external.domain:32400

Disabling remote access doesn’t really disable remote access but it must be disabled if setting the “Custom server access URLs” paramater because manually specifying this conflicts with auto detecting via the remote access feature.

I have custom URL used locally setup through my PFSense firewall that handles my DHCP and a local DNS server for services I host locally. So as far as any apps or services are concerned it’s irrelevant. I dont have any settings configured regarding my plex or my NAS storage using custom URL’s. They’re all configured where applicable to use the LAN IP not my custom URL’s. I have over 30 self-hosted services from Media, 3D printing to home surveillance. Makes it easier to access when accessing through browser than remembering the IP’s. It’s all local and I don’t allow access from outside my network to my services for security.

Right but if you’re in docker using bridge networking then Plex is advertising the local IP inside Docker (172.16.*), not your real local IP assigned to the server (10.0.0.10). Using the Custom server access URLs feature inside Plex while disabling remote access will fix that. Otherwise you need to set up the docker container to use host networking rather than bridge.

Once Plex advertises the correct IP then your external devices like the Roku will be able to access the server without specifying the server information manually in the player apps.

admittingly I’m ignorant when it comes to docker and how they utilize their networking. I only recently started using it to host my media servers. I originally used Windows Server OS on my Rack mount server but wanted to start hosting other services that were only available as dockers and wanted to learn more about it. But havn’t really had much time to research it. But if you’re talking about the issue with my local server not showing up in the apps. That issue kind of resolved itself. I don’t know how or why. Still not able to start something on one device then cast to another device on same network. I did see this in the logs: (Allowed Network (WAN) for my roku and firestick. This all has baffled me. As everything was working just fine how it was suppose to. With no changes from me certain things stopped working. then yesterday day started working again. I’m thinking I changed something and forgot about trying to troubleshoot/resolve the server not showing up on local apps that now it’s working is preventing me from being able to cast to devices on local network. I’ve made no changes to the docker networking config and everything should be default. When I access through browser it shows as local on same network.

I tried to delete it, but it wouldn’t allow me. Shouldn’t be the OS as I’ve noticed this issue randomly happening with different files since I started using Plex back in 08 if I remember right. I agree it could be something with the transcoding or settings regarding transcoding. Admittingly I’m ignorant to transcoding, Limit of my understanding is that it’s a conversion of the audio/video to provide access to media file over network in a way that’ll allow devices to stream in a way that’s not as hardware demanding on the player. I’m completely guessing. but as far as settings I leave at default for the most part as I wouldn’t know what affect changing settings would have. I did try to delete the folder you recommended but I was told I didn’t have permission. Even with Plex not running. I verified with the directory TrueNas Scale stores the app data that I had full permissions, and verified the app has full permissions to read/write. I had played the other videos and looks like they’re transcoding. I’ll include the logs.
Plex Media Server Logs_2022-12-02_16-45-46.zip (3.2 MB)

From your log.

Error creating directory “/mnt/Apps/Transcoding/Plex”: Read-only file system

What? That’s not even a folder PMS uses. Anyways, this playback, the video and audio are not being transcoded but remuxed. The audio is AAC. This sounds like my earlier theory about the audio being the cause.

I tried to delete it, but it wouldn’t allow me.

That’s likely the same thing causing that read-only error in the log. Your permission must be off somewhere.

Even with Plex not running. I verified with the directory TrueNas Scale stores the app data that I had full permissions, and verified the app has full permissions to read/write.

Are you checking for the correct user. I believe it’s the Plex user that needs permissions, not whatever admin user you have.

1
2
The /mnt/apps/transcoding/plex is a folder I created for testing to see if it was something with that folder itself causing issue. So both the folder I created and the default /transcoding folder has correct permissions. I got the same results. and as you see here I included screenshots of the permissions in Truenas scale where Plex is. And both @apps group and apps as a user have full permission for those locations so it’s nothing from TrueNas preventing access. Something with Plex . Also supported by the fact that I’ve made no changes to settings/configurations prior to experiencing these issue therefore everything should still be working. Not to mention to my understanding In this case when a 4K capable smart TV on the same network should not require any transcoding for 1080 or 720. It should be more than capable to utilize direct play streaming instead of trying to transcode. Am I wrong? Not to mention the fact that The same files have successfully played previously with no issues. Also confirming it’s not a settings issue, network issue, or file issue.

Again, If it was something with network or settings, Both of which has not changed in the past year. This has been a intermittent random issue. not affecting specific videos but randomly affecting different videos not consistently the same video’s If it was settings, or network or OS, It would be affecting the same video’s consistently, I’d be experiencing the same issues consistently. That’s not the case. Only thing consistent is Plex. Perhaps new features have been added that require a change in configuration I havn’t made could be a possibility but still, since this hasn’t been consistently affecting the same video’s That’s still unlikely.

I feel you’re just making assumptions based on the little information you’ve gotten looking for easy solutions using user error as escape goat. And Being in the tech support myself I understand in most cases it is ID10T errors caused by user. I’m the last person to try to reach out for assistance and 9 out 10 times I find solutions on my own and hate dealing with any sort of tech support and despise forums where companies force customers to rely on volunteers to support their products. Usually when i’m having to reach out to support it’s going to require an engineer. This issue has been ongoing but a rare occurrence that never persisted beyond a simple power cycle. But since I had to deal with the other issue that occurred out of nowhere and resolved itself out of nowhere, and now multiple video’s I’ve watched within the last week are suddenly not wanting to play on Plex, persisting past restarts and affecting more videos. indicates more is going on here and exceeded my knowledge of what may be the cause.

I don’t know much about Linux or Docker but I’m pretty sure this is a permission issue. PMS does not use the “apps” user for permissions. It will be the “Plex” user. We have this guide to help with permissions, Linux Tips - #22 by ChuckPa.

Yes, Apps is what TrueNAS uses for all the app’s permissions. Tell me this smart one. I’ve been running the same settings within TrueNas Scale, Plex, and my network for over a year now with no issues. I use my plex server consistently daily every day. Why or how would the same successfully working configurations suddenly not work after a year? Yea I’ve experienced similar issues with video’s not playing and sticking at 33% but would be solved after a simple restart. So that’s clearly not the same issue caused by the same thing now, just something different causing similar effects. SO how could the same configurations that has been working suddenly be the issue?

The answer: If it’s been working under this configuration, This configuration IS NOT the problem. The ONLY way my current configuration that hasn’t changed could be to blame is if something has changed within Plex Server version 1.29.2.6364 from the previous version that presented a conflict with something in my configuration that requires an additional change within Plex’s settings
that I’m yet unaware of. I assumed by reaching out to Plex I’d get someone knowledgeable enough to help narrow this down. Or at the very least someone with basic troubleshooting knowledge but doesn’t appear to be the case. You’re too ■■■■■■■ focused looking into ■■■■ that’s been working and hasn’t changed in over a year. First ■■■■■■■ STEP IN TROUBLESHOOTING, What has changed. My network hasn’t changed, My TrueNAS host machine configuration hasn’t changed, TrueNAS Scale version 22.02.4 released September 27.2022 when my host machine was last updated still current version, My firewall PFSense + 22.05 latest version released and updated June 27th 2022. I’ve had no issues. Current version of Plex I’m on was released late October, early November Ish not sure exact date but I didn’t get around to updating till shortly before I started this thread, When I started experiencing issues. But don’t worry about it. It’s obvious You dont have the skill set to assist with this issue. I’ll fix it my damn self.

I already told you that if your Roku connects using manual connection but not the regular way then Plex is advertising the IP inside the docker container instead of the host IP and if this is the case on why it wont connect then it’s your configuration that is wrong, not Plex in general.

Not referring to you, That issue’s with my plex server not showing up through apps already resolved itself. without making any changes further verifying it’s something going on with plex.

moved on from that as after it fixed itself without making changes. Because Nothing was wrong with my configuration as it’s worked the past year. and without making any changes it started to work again. Same configuration as my emby server through TrueNas that hasn’t been giving me issues playing on local server

Dude you need to step back and read what you are writing.

Though, I suspect you aren’t going to, and this message will fall on deaf ears. So i’m going to go watch some shows. On my plex server. It’s going to work great. Because my configuration is right.

Few tips:
You have a permissions issue.
Your codecs are either corrupt or have messy perms as well. I found this in less than 5 min

Anytime I get EAE or EAC3 errors, my first step is to delete the codec folder in Plex's appdata.

    Shutdown plex

    Navigate to Plex's appdata and locate the codec folder (on mine, at /{appdata}/plex/Library/Application Support/Plex Media Server/Codecs )

    Delete the contents of this folder

    Restart plex

    Plex should automatically download required codecs on start. If not, it will download them when needed.

If the above doesn't work, and you're running a Linux based OS, try running on the host machine:

    sudo sysctl fs.inotify.max_user_watches

    Note what value it returns, then double it by running:

    sudo sysctl fs.inotify.max_user_watches=xxxxxx

    Restart plex and retry transcoding an EAC3 movie.

    If it didn't work, double the value again and retry.

    If it -did- work, then make the change permanent by editing /etc/sysctl.conf. Either locate and modify, or add to the end of the sysctl.conf file: "fs.inotify.max_user_watches=xxxxxx" without quotes.

    Apply the changes by running "sudo sysctl -p" or reboot the host machine, then re-test transcoding of the EAC3 movie.

In the event you are unaware, you are intolerably rude and it’s a miracle anyone is trying to help you.

Your logs are literally spamming errors about EAC3 issues and permissions issues. You also admitted you don’t know squat about docker networking and got uppity when someone tried to help you.

admitting I don’t know a lot but I know how to follow tutorials on YouTube to setup from people who are very knowledgeable about dockers and the fact that they’ve worked just fine without issues the past year until plex updated confirms the settings are correct. I Do know how to confirm is a theory is correct and test and based on my tests the explenations presented to be the cause are null as if any explenations presented were the root cause, My plex server would not have worked the past year, The files you claim are corrupt would not play in Emby or other media players. Now would they? Yea,

has it worked fine for the last year? Because you said you’ve been having issues with it not loading and needing a restart to fix.

I’m a senior systems engineer, and brother - you need some humble pie. They are doing basic troubleshooting steps, you’re just refusing to acknowledge the basic truth about this situation. It is an issue with your setup.

Also I didn’t say the videos were corrupt. I said the codecs might be corrupt. The codecs which are specific to plex. Not tied to the media files.

See what i’m saying? You didn’t understand what I was saying, and so threw it out. If you want this fixed - slow down and start listening. The fact is that there is an issue with your setup. If you want help resolving it, we can do that. You attacking everyone and grandstanding isn’t going to get this fixed.

Decide what you want. Acknowledge it is an issue with your setup and learn how to ask for help, and take that help, or just uninstall plex. That is where we are.

2 Likes

Yea, Plex may be giving errors. and cause for errors could be one of two things, Corrupt file, in which case would show corrupt and not play anywhere or the other option something corrupt in the player preventing it from playing that file. and as the files play every ■■■■■■■ where else the issue obviously the file isn’t but more likely the player and in this case would be PLEX. And since Plex has been giving other issues randomly that randomly fix themself’s it’s not too much of a stretch to add all that information. do the math, carry the one over. Find the common denominator and that’s where you find the cause. PLEX.