|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Need a guide...
Seeing as this appears to be the most recommended method going forward (I know, I'm the one recommending it to everyone, but I'll just say that means the whole community is ), I think we need a proper start to finish guide for getting unRAID, SageTV, and perhaps some of the other likely candidates set up on a fresh server, as well as some tips on transition to that setup from an existing windows machine. I don't currently have the ability to do a build from scratch to capture of the step-by-step at this time, but hope to within a few weeks, but if someone does have some test gear and wants to assist at least compiling a bunch of screengrabs of the process, I can finalize a write-up for it.
__________________
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 |
#2
|
||||
|
||||
My test attempt at setting up SageTV under Unraid using the Docker
Over the last week, as time permitted, I attempted to setup SageTV using the Unraid docker and the OpenDCT docker. I was eventually successful.
I am comfortable in the Windows/DOS enviroment. I don't have a problem with Command Line (as long as I know the commands). I am not really versed with using Linux, either GUI or Command Line. As such I am still struggling with editing the Sage properties file (not that I need to, at this time). I was able to replace the OpenDCT properties file (it is in a freely shared folder/directory) The hardware I used for this was an older Proliant ML110, Pentium D 3 GHz, 8 GB ram, 1 - 80 GB HD (used for cache drive), 3 – 1 TB WD Green drives (1 for parity, 2 for data). The cablecard tuner is a Ceton Infinity ETH6. The following is a very general and rudimentary set of steps I went through for installing Unraid then installing the dockers for OpenDCT and SageTV. I had tried to setup Unraid several years ago, but was unsuccessful. Download Unraid zip file and prepare USB drive. Follow the instructions from the Unraid website https://lime-technology.com/getting-started/There are several videos and text descriptions on setting up Unraid. After formating the USB drive, copy the Unraid files to the USB and run the “Make Bootable” file, the USB drive should be ready to boot from. Once Unraid is booted up for the first time, a few configurations need to be done before installing a Docker container. (Unraid can be booted to a GUI screen and/or accessed through a web browser) A storage array needs to be created and started. This is done under the “Main” tab Set a static IP address (recomended). This Is “Network Settings” under the “Settings” tab. Change the Unraid Server name (optional). This is “Identification” under the “Settings” tabOnce the array is created and started, the docker tab should appear. (you need to create the array but you should be able to continue while parity is being sync’d) Click on the “Docker” tab, paste the following URLs into the “Template Repository” and click SAVE. https://github.com/stuckless/sagetv-...uckless-sagetv https://github.com/crazifuzzy/opendct-docker Next, click the “Add Container” button, and click the “Select Template” list box to show available container templates. If the above URLs were added to the repository, then the templates for OpenDCT and SageTV should be there. Obviously, at least one of the Sage containers will need to be chosen, follow the same process to install the OpenDCT container (if it will be used, otherwise skip installing OpenDCT). Suggest installing/starting OpenDCT first then SageTV. Sage can now be accessed through a client, extender, or placeshifter using the IP address of the Unraid server. Configure SageTV as usual. I have a Ceton Infinity Eth6 tuner. Sage saw the tuners from the Unraid instance (and others) upon first run, but I couldn’t tune any channels, just got No Signal using any tuner from the Unraid/OpenDCT instance. Sage also saw the OpenDCT exposed tuners from my Windows systems (I was able to successfully tune channels through the Docker using the Windows based OpenDCT sessions). I ended making a copy of the OpenDCT properties file from the Windows system, make a few small edits, and replaced the OpenDCT.properties file on the Unraid server. This gave me a working SageTV instance on the Unraid server using OpenDCT also running on the Unraid server. Unfortunately, if you don't already have a working OpenDCT instance, this insn't much help. I haven't used the Docker instance of SageTV for any recording, as yet. this was more of a practice/test install for doing it again later. I didn't copy over any recordings to the Unraid server, although doing so shouldn't be difficult. There seems to be a share readily accessible for media. My purpose for doing this was to verify that I could setup Unraid and use the OpenDCT and SageTV Dockers.
__________________
"Unencumbered by the thought process" The only constant in the Universe is change. Last edited by UgaData; 10-17-2016 at 06:16 AM. |
#3
|
||||
|
||||
FWIW, on your future endeavors, you really shouldn't need to get to the command line at all. The way the docker containers are setup, the configuration files are all in the \\[unRAID]\apps share, so you can edit the files from windows (I like to use notepad++ for this). Rules still apply for sage/opendct being shutdown to make the changes to the properties file. So you stop the docker container from the unRAID ui, then open and edit the file, save it, and start the container.
__________________
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 |
#4
|
||||
|
||||
regarding your issues with the openDCT configuration... do you happen to have a copy of the non-functioning and the functioning opendct.properties files, so I can figure out why it wasn't working out of the box?
__________________
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 |
#5
|
||||
|
||||
Quote:
My real issue now is getting to the SageTV folder/Directory so I can modify the Sage properties file, this isn't in a readily accessible share ( at least not yet.) Quote:
When setting up OpenDCT under Windows, the OpenDCT properties file adds the tuners it finds to it's property file, It doesn't appear that happened under unRaid for me.
__________________
"Unencumbered by the thought process" The only constant in the Universe is change. |
#6
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#7
|
||||
|
||||
Quote:
The real issue here is my ignorance of unRaid and Linux in general. Although I have tried to setup unRaid in the past, this is the first time it was successful. I will say that having stumbled through it once, it is rather easy and simple (at least in hind site).
__________________
"Unencumbered by the thought process" The only constant in the Universe is change. |
#8
|
||||
|
||||
Actually, at some point, the container definition changed to pointing to /mnt/user/appdata/sagetv instead of /mnt/user/apps/sagetv. In either case, /mnt/user/appdata/sagetv should be shared at \\<unRAID>\appdata\sagetv.
__________________
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 |
#9
|
||||
|
||||
I will check again, but I don't think it is shared (at least not for me).
__________________
"Unencumbered by the thought process" The only constant in the Universe is change. |
#10
|
||||
|
||||
That is correct (my personal setup still uses apps) but apparently "appdata" is the preferred unRAID area, so I updated the template some time ago to point to appdata instead of apps.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#11
|
||||
|
||||
I should probably change the OpenDCT one as well.
__________________
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 |
#12
|
||||
|
||||
I have uploaded the 2 OpenDCT property files as well as the upgrade file.
I have included the sagetv_.txt files as well. I am also including some screen shots from some of the unRaid Tabs. I now have the \AppData folder shared out and I can now find the SageTV folder from Windows. It wasn't shared by default but I now see how to share it. The unRaid server is 10.0.3.55 (this was 10.0.3.205 from DHCP before making IP static) The Windows SageTV is 10.0.3.52 & 10.0.3.51 A test SageTV server is at 10.0.3.7 (I don't thnk this one shows up anymore, but in case)
__________________
"Unencumbered by the thought process" The only constant in the Universe is change. Last edited by UgaData; 10-17-2016 at 02:12 PM. |
#13
|
||||
|
||||
Quote:
__________________
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 |
#14
|
||||
|
||||
Quote:
When I try to configure tuners from Sage, Sage sees the tuners from the docker, as well as all the other instances of OpenDCT on the network. The original file was renamed Dot Old before coping the properties file over. I can retrieve whatever remains of the log, provided I know where it is, if that would help.
__________________
"Unencumbered by the thought process" The only constant in the Universe is change. Last edited by UgaData; 10-17-2016 at 03:20 PM. |
#15
|
||||
|
||||
Adding a Share for Windows in unRaid
I shared the \AppData folder by going to the Shares Tab
Clicking on the share name to open the Share Settings Going to the lower portion of the screen titled SMB Security Settings Change the list box for Export to YES Change Security to PUBLIC Click apply. This should now make that share available to Windows (without prompting or username/password challenges).
__________________
"Unencumbered by the thought process" The only constant in the Universe is change. |
#16
|
||||
|
||||
What's happening, at least from what I'm seeing is the container doesn't stop OpenDCT in a clean manner. That's why nothing is being saved. I ran it myself and it found all of my capture devices that are exposed to the network, but nothing was saved. This would not necessarily prevent everything from working, but there is a key thing that's not being set, that I believe was scripted to be set for this container and that's to use upload id which is fairly important.
__________________
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 |
#17
|
||||
|
||||
Quote:
__________________
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 Last edited by Fuzzy; 10-17-2016 at 06:05 PM. |
#18
|
||||
|
||||
Based on some testing I just did (trying docker stop), openDCT is not handling SIGTERM, so it is getting SIGKILL'ed after a 10 second timeout when the docker is told to shutdown.
__________________
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 |
#19
|
||||
|
||||
Quote:
__________________
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 |
#20
|
||||
|
||||
Quote:
Edit: I know that you need to tie the docker container up with something to keep it from shutting down immediately, but I think the solution should be to start OpenDCT like the service is actually is. When the the container gets SIGTERM on PID 1, it should trigger the service to stop gracefully. I believe this is what the SageTV container does and to tie the initial process up, it just sleeps for infinity.
__________________
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 Last edited by EnterNoEscape; 10-17-2016 at 06:33 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
bringing up guide should return to last known guide position (channel) | sflamm | Phoenix | 1 | 08-02-2011 04:34 AM |
Step-by-step guide for setting up the XMLTV plug-in for UK guide data | dspreadbury | SageTV United Kingdom | 32 | 08-17-2010 12:27 PM |
STV Import: Alternative Program Guide & Mini Guide for Default STV | wado1971 | SageTV Customizations | 24 | 09-13-2009 01:32 PM |
Any way to make it so if you press Guide button twice it closes open guide? | vorius | SageTV Software | 9 | 09-08-2006 12:27 PM |
Setting the Default Guide in a Multi-Guide Configuration | kkoz | SageTV Software | 1 | 12-29-2005 10:28 PM |