SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux > SageTV for unRAID/Docker
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV for unRAID/Docker Discussion related to SageTV for unRAID/Docker. Questions, issues, problems, suggestions, etc. relating to SageTV for unRAID/Docker should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-24-2017, 05:32 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
How do you keep track of all of the ports used in unRAID

I am just starting to add a few dockers and one thing that is becoming apparent is that you have to be careful so that you don't have multiple dockers trying to use the same ports.

So far I have added SageTV, AirVideoHD, Dockergui-dev, Dolphin, Home-Automation Bridge and Plex.

At least one of these dockers wanted to use 8080 but I am already using that for the Sage Jetty webserver.

When you click Show deployed host ports it shows some, but not all of the ports that are being used. For example it doesn't show the port that Plex is using, which is at least 32400 for the web UI and probably others for streaming if I remember correctly. Nor does it show that HA-bridge is using 3080.

Going to a command line and typing "lsof -Pni |grep LISTEN" does show a list but is there any way to do this in a more organized fashion fro the web GUI?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #2  
Old 01-24-2017, 07:37 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
unRAID needs to be told what ports a given container uses. This is done in the template/docker settings. It does not, however, monitor what ports are opened up by each docker - it's just if a container tries to open up a port that is already open, it will fail.

Show deployed host ports will show what ports are configured for each container.

So really, it comes down to the creator of the template to make sure the right ports are indicated. The plex container I'm using DOES list 32400 as the port used (which really IS the only listening port used by plex).
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #3  
Old 01-24-2017, 08:57 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by Fuzzy View Post
The plex container I'm using DOES list 32400 as the port used (which really IS the only listening port used by plex).
Any opinion on which is the best Plex docker to use. There must be at least 5 that are called Plex or Plex Media Server, plus many other related ones.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #4  
Old 01-24-2017, 09:03 PM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
If there's one by "linuxserver" I've found their things to be good and supported. But I don't have a ton of experience with dockers.
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #5  
Old 01-25-2017, 05:25 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by KarylFStein View Post
If there's one by "linuxserver" I've found their things to be good and supported. But I don't have a ton of experience with dockers.
I tend to use the linuxserver.io dockers as well.
Reply With Quote
  #6  
Old 01-25-2017, 06:46 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Quote:
Originally Posted by Fuzzy View Post
unRAID needs to be told what ports a given container uses. This is done in the template/docker settings. It does not, however, monitor what ports are opened up by each docker - it's just if a container tries to open up a port that is already open, it will fail.

Show deployed host ports will show what ports are configured for each container.

So really, it comes down to the creator of the template to make sure the right ports are indicated. The plex container I'm using DOES list 32400 as the port used (which really IS the only listening port used by plex).
I was under the impression (and maybe this is what you're saying) that Docker inbound ports only "work" if you specify them when you start the container:
https://docs.docker.com/engine/userg...twork/binding/

In other words I thought that if the template didn't specify 8080, you wouldn't be able to connect to that container on that port from the outside world, even if something inside the container was trying to listen on it.
Reply With Quote
  #7  
Old 01-25-2017, 07:14 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by stanger89 View Post
I was under the impression (and maybe this is what you're saying) that Docker inbound ports only "work" if you specify them when you start the container:
https://docs.docker.com/engine/userg...twork/binding/

In other words I thought that if the template didn't specify 8080, you wouldn't be able to connect to that container on that port from the outside world, even if something inside the container was trying to listen on it.
That's only if the container isn't running in host mode.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #8  
Old 01-25-2017, 07:20 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by stanger89 View Post
I was under the impression (and maybe this is what you're saying) that Docker inbound ports only "work" if you specify them when you start the container:
https://docs.docker.com/engine/userg...twork/binding/

In other words I thought that if the template didn't specify 8080, you wouldn't be able to connect to that container on that port from the outside world, even if something inside the container was trying to listen on it.
That is true if you are running in bridged mode...but in host mode (which most things shouldn't run in), the container can open as many ports as needed.

SageTV runs in host mode.. so it uses 8080. Running sagetv in bridged more makes it appear as if it is "remote" to the netowk, so even local LAN clients get the placeshifter login.
Reply With Quote
  #9  
Old 01-25-2017, 08:50 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by wayner View Post
Any opinion on which is the best Plex docker to use. There must be at least 5 that are called Plex or Plex Media Server, plus many other related ones.
Plex has their own Docker now. It is available as PMS-Docker.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #10  
Old 01-25-2017, 09:00 AM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
Quote:
Originally Posted by Taddeusz View Post
Plex has their own Docker now. It is available as PMS-Docker.
I hear it's pretty temperamental, lol.
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #11  
Old 01-25-2017, 10:19 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by KarylFStein View Post
I hear it's pretty temperamental, lol.
In what way? I've not had any trouble since moving to it.

I was running the linuxserver.io one for only a short time. But I can say that the Lime Technology Plex docker is not great. Apparently they have to manually update the docker every time there's a new PMS version and the lag is sometimes not acceptable.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #12  
Old 01-25-2017, 10:51 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by Taddeusz View Post
In what way? I've not had any trouble since moving to it.

I was running the linuxserver.io one for only a short time. But I can say that the Lime Technology Plex docker is not great. Apparently they have to manually update the docker every time there's a new PMS version and the lag is sometimes not acceptable.
I believe it was intended to be a joke. While the acronym is accurate for the software title. I still think they could have chosen more wisely or just picked a different name all together.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #13  
Old 01-25-2017, 10:52 AM
Taddeusz Taddeusz is offline
SageTVaholic
 
Join Date: Nov 2004
Location: Yukon, OK
Posts: 3,919
Quote:
Originally Posted by EnterNoEscape View Post
I believe it was intended to be a joke. While the acronym is accurate for the software title. I still think they could have chosen more wisely or just picked a different name all together.
Oh, duh.
__________________
Server: i5 8400, ASUS Prime H370M-Plus/CSM, 16GB RAM, 15TB drive array + 500GB cache, 2 HDHR's, SageTV 9, unRAID 6.6.3
Client 1: HD300 (latest FW), HDMI to an Insignia 65" 1080p LCD and optical SPDIF to a Sony Receiver
Client 2: HD200 (latest FW), HDMI to an Insignia NS-LCD42HD-09 1080p LCD
Reply With Quote
  #14  
Old 01-25-2017, 12:13 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
I was using the limetech plex template - just installing the plexinc one now - we'll see how it goes.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #15  
Old 02-03-2017, 02:00 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Tangentially related....

One of my Dockers is Logitech Media Server, which so far has worked great. However I discovered there's a built in UPnP/DLNA server, so I was trying to get it to work. The Docker is setup in bridged mode with a number of ports exposed by default (TCP: 3483, 9000, 9090, UDP: 3483).

Through my research, I found a number of ports listed that need to (UDP: 1900, 1901, 2698; TCP: 50001, 50002), so I tried adding those to the container, however nothing would see it as a DLNA server. 1900 is supposedly the key port, as that's for SSDP discovery.

As a last stitch effort, I changed the container over to Host mode networking and it showed right up to DLNA clients. So the question is, anyone have any ideas how to either find whatever ports are missing, or if there's some other configuration I need to do to get it to work in Bridge mode?
Reply With Quote
  #16  
Old 02-03-2017, 02:31 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Maybe you could do a port scan from within the docker on localhost using something like nmap? Perhaps that could work.

I just realized an additional issue with Sage if you are running other plugins like SageTCPServer as it uses a whole whack of additional ports.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #17  
Old 02-03-2017, 02:36 PM
KarylFStein KarylFStein is offline
Sage Fanatic
 
Join Date: Apr 2006
Location: Westland, Michigan, USA
Posts: 999
Quote:
Originally Posted by stanger89 View Post
Tangentially related....

One of my Dockers is Logitech Media Server, which so far has worked great. However I discovered there's a built in UPnP/DLNA server, so I was trying to get it to work. The Docker is setup in bridged mode with a number of ports exposed by default (TCP: 3483, 9000, 9090, UDP: 3483).

Through my research, I found a number of ports listed that need to (UDP: 1900, 1901, 2698; TCP: 50001, 50002), so I tried adding those to the container, however nothing would see it as a DLNA server. 1900 is supposedly the key port, as that's for SSDP discovery.

As a last stitch effort, I changed the container over to Host mode networking and it showed right up to DLNA clients. So the question is, anyone have any ideas how to either find whatever ports are missing, or if there's some other configuration I need to do to get it to work in Bridge mode?
The discovery uses a multicast IP and I'm guessing unRAID won't act as a network translator for the containers.
__________________
Home Network: https://karylstein.com/technology.html
Reply With Quote
  #18  
Old 02-03-2017, 03:50 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by KarylFStein View Post
The discovery uses a multicast IP and I'm guessing unRAID won't act as a network translator for the containers.
This is correct, and is the reason sage is also run in host mode. UDP broadcasts are not sent to the docker subnet.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #19  
Old 02-06-2017, 06:37 AM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
Well, that makes sense I guess. Turns out the functionality is kind of useless to me anyway, as playlists aren't exposed by the LMS UPnP server.
Reply With Quote
  #20  
Old 02-06-2017, 08:41 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by stanger89 View Post
Well, that makes sense I guess. Turns out the functionality is kind of useless to me anyway, as playlists aren't exposed by the LMS UPnP server.
What are you trying to do with LMS over UPnP?
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB ports and HD-PVR dadof4 Hardware Support 4 01-27-2010 11:15 AM
COM Ports jredwine2857 Hardware Support 2 07-22-2008 04:56 AM
USB-UIRT's different ports... npereira Hardware Support 3 03-30-2008 08:21 AM
what might the STX-HD100's usb ports be used for? reboot_this SageTV Media Extender 36 03-06-2008 04:04 PM
Installation - COM ports mike1961 SageTV Software 8 03-05-2006 02:26 AM


All times are GMT -6. The time now is 05:22 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.