Plex Media Server

Just back in the flat there, so can confirm the port is 32400 and both the uid and gud are 1000, (just uninstalled/reinstalled it there and reset the access rights to the folders) still the same reacting as a client to a plex server rather than a host application (which is why I suspect it’s to do with the current docker image)

Ill look into this tonight.

EDIT: i have done a full retest (deleted docker files and config folder, reloaded rockon list to have latest JSON and reinstall), and I cant reproduce the error.

This could be caused by a lot,i.e. firewalls, routing tables or a bug in the Docker bridge itself. and I dont have the technical skills to work that one out.

Does any other Rock-ons work as intended?

I’m pretty new to Docker containers myself, I checked my firewall settings on the router, looking at the forums with plex it shouldn’t need a portforward though I had set a few up for testing still no joy. Trying sickbeard at the moment however it seems to be having an issue using the onboard storage which interestingly enough looking again at the docker image shell access, it detects a space of 62G used and 4.1t available, which suggests that the rockstor config settings for TV and Downloads isn’t saving to the docker config file (again pretty new to the whole docker side of things so could be going down the wrong wabbit hole)

ok interesting, just manually pullted the docker image via cli and built it with the following setup:
[root@homenas tmp]# docker create \

–name=plex
–net=host
-e VERSION=latest
-e PUID=1000 -e PGID=1000
-v /mnt2/plex-transcoding:/transcode
-v /mnt2/plex-config:/config
-v /mnt2/plex-data:/data
linuxserver/plex

and it seems to of created the server no problems… so the question is is there an issue with the Rock-on scripts which is preventing the dockerimages to be created successfully

1 Like

This option is the only thing not part of the JSON script. Instead we use the port mapping, which you can read about on the bottom of the linuxserver/plex page. Appart for that, the script is just the same as the one you have manually used. Which leaves me even more curious of what is happening.

Im glad it worked out to start Plex, however this is not how it is supposed to be, from a user perspective.

1 Like

@karimicus first and a little late: Welcome to the Rockstor community. Just wanted to link back to a post I just made in another similar threat where I’m pretty sure I replicated your original findings linked forum post. Also used plex and 1001 and latest.

Thanks for helping to look into this one, I’m afraid I can’t contribute much else just for a bit but it looks like the problem is narrowing down a tad and is already in hand by the looks of it. @bug11 thanks for your efforts on this one; upon a resolution I’ll update my doc pull request against the plex howto.

@bug11 from the linuxserver.io plex link we do have:
" --net=host - Shares host networking with container, required."
and
"Special note - If you’d like to run Plex without requiring --net=host then you will need the following ports in your docker create command:

-p 32400:32400
-p 32400:32400/udp
-p 32469:32469
-p 32469:32469/udp
-p 5353:5353/udp
-p 1900:1900/udp
"

So maybe we are just missing the 5353 port mapping.

thanks @phillxnet :slight_smile:

just been doing a quick experiment, again running docker through the command line, so setting up the port forwarding interesting enough when setting up with -p 5353:5353/udp \ it does throw up an error:

Cannot start container ples: failed to create endpoint ples on network bridge: Error starting userland proxy: listen udp 0.0.0.0:5353: bind: address already in use

it would be interesting to see whats already utilising this port on the docker/rockstor side of things

(i’ve intentionally called this one ples to seperate it out from the normal plex :slight_smile: )

@karimicus and @bug11
netstat -plunt | grep 5353
udp 0 0 0.0.0.0:5353 0.0.0.0:* 4101/avahi-daemon:

cat /etc/services | grep 5353
mdns 5353/tcp # Multicast DNS
mdns 5353/udp # Multicast DNS

And here I think is the core of the problem.

Plex wants to use the port to let everyone know it is here, I.e. “here I am, please contact me on port 32400.”

If not allowed to use port 5353, it will change to another port for this service, but that port is not automatically forwarded through the container. So we will have no contact.

I will submit a JSON with the net-host tonight, and get rid of this portmapping we are doing for Plex. And see if this solves it. If solved, then all is good, and we know where the issue is.

There,

pullrequest #32 added. First test, works for me, and should solve port conflict.

I cross my fingers that i have created a OK pullrequest for @suman and not messed up again.

I had to use --net=host to get this to work as the other thread said. I gave up after a lot of tries, it just won’t connect to the Plex Media Server but running it straight on the CLI worked fine with --net=host

Please find not approved rockons here (my play-ground): https://github.com/tronder88/rockons-extra

Here you will find the plex rockon with -net=host option. The rest are the same as in rock-ons at the moment, as they are not updated since the pull request

Hello,

it seems the Plex Rock-ons has been updated recently to a newer version as there is new input required during install as also dicussed above. I’ve used the following parameters and I get always the error, that there is no Plex Server found even by being at the WebGui interface of Plex itself. Any quick help or trick you can provide?

Thank you-BR,
Roland

are you using the standard one in Rock-on library?

I do think that you are, due to all ports being listed, please uninstall and use my plex, as you can find linc and installation way in this thread: Plexpass and problems? - #19 by bug11

Yes I’m using the standard Plex from the Rock-ons libaryas it worked last time before I’ve done a complete new install of Rockstor itself due to new set of HDD’s, but meanwhile this newer version seems to make problems. Has it not been enough tested before going online or is there a mistake on my side? :slight_smile:

Meanwhile I’ve found your reference post…

Not a mistake,

the official plex plugin has a port conflict and thus shuts down. so the reason for you not finding the plexserver is because it is not running. (the simple explanation, i have not been digging, it is in the reference post).

Just download and add my plex JSON, as described, and it should work as intended.

@bug11 tried to uninstall (org. plex rock-ons), created directory (opt/rockstor/rockstor-metadata), downloaded plex.json from your liink (https://github.com/rockstor/rockon-registry/blob/master/plex.json), pushed the refresh button and installed again the plug-in. Same parameters have been asked like PUID/PGID and same error in not finding the plex server afterwards :frowning:

What could be the reason - it seems the uploaded plex.json has not been used for install isn’t it?

Thanks for any continued support!

folder is not named correctly, ill edit that other text.

correct is /rockons-metastore/ instead of metadata… Sorry about that, if using winscp its just rename folder. Im unsure of how via SSH.

@bug11 thanks again for quick reply - I’m a newbie on Rockstor, but maybe my “stupid” questions will help others :slight_smile:
by using the following link and its file I get belows error after refreshing the webGui?

https://github.com/tronder88/rockons-extra/blob/master/plexnethost.json