|
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 |
#21
|
||||
|
||||
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 |
#22
|
||||
|
||||
I'm not sure SIGINT is actually hitting the script. Though I do agree that I like having the real log there like that. That was the other thing missing. The logs are under /var/log/opendct, this would be a folder worth mapping so users can easily get logs via SMB.
__________________
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 |
#23
|
||||
|
||||
There is a more in the jsw docs regarding shutdowns that there is no difference between service or console on Unix environments, so I'm not sure there's much off a difference here. In either case, I will try a test build as a service and see if it closes smoothly. I think we'll still be able to get the log to the ui if the script tail's the log file.
I'll also see if the log can be redirected to the share.
__________________
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 |
#24
|
||||
|
||||
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 |
#25
|
|||
|
|||
I am am trying to test the Sagetv docker in unRAID but I am having a similar issue as Ugadata with the docker Opendct not detecting my HDHR Prime tuners. I do not have an alternate Opendct properties file to replace with as he did. Is there a work around for those of us without another version running on the network? My main Server is running Sagedct.
|
#26
|
||||
|
||||
Quote:
I think the 'cleanest' fix would be to call the java executable directly from the docker, not using the wrapper and/or scripts - but I don't know how to do that, or if it's even feasible with the way opendct is built. Alternatively, I'm testing using supervisord as PID 1 and having it launch opendct. supervisord will relay signals to child processes, so hopefully this will work - but doing so definitely will kill the ability to monitor the log from opendct's UI (which is why I'd rather launch opendct.Main directly from a java command, if possible). I'm not really familiar enough with java bundling and such to know if/how to launch it that way though - appreciate some pointers if possible.
__________________
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 |
#27
|
||||
|
||||
The command line used to launch OpenDCT is actually in wrapper.log:
Code:
INFO | wrapper | 2016/10/24 16:11:40.071 | Command[0] : /usr/bin/java INFO | wrapper | 2016/10/24 16:11:40.071 | Command[1] : -Dopendct_log_root=/var/log/opendct INFO | wrapper | 2016/10/24 16:11:40.071 | Command[2] : -Dconfig_dir=/etc/opendct/conf INFO | wrapper | 2016/10/24 16:11:40.071 | Command[3] : -Ddaemon_mode=true INFO | wrapper | 2016/10/24 16:11:40.071 | Command[4] : -XX:ErrorFile=/var/log/opendct/hs_err_pid%p.log INFO | wrapper | 2016/10/24 16:11:40.071 | Command[5] : -verbose:gc INFO | wrapper | 2016/10/24 16:11:40.071 | Command[6] : -XX:+UseG1GC INFO | wrapper | 2016/10/24 16:11:40.071 | Command[7] : -Xms128m INFO | wrapper | 2016/10/24 16:11:40.071 | Command[8] : -Xmx768m INFO | wrapper | 2016/10/24 16:11:40.071 | Command[9] : -Djava.library.path=/opt/opendct/jsw/lib:/opt/opendct/lib INFO | wrapper | 2016/10/24 16:11:40.071 | Command[10] : -classpath INFO | wrapper | 2016/10/24 16:11:40.071 | Command[11] : /opt/opendct/jsw/lib/wrapper.jar:/opt/opendct/lib/opendct-0.5.11.jar:/opt/opendct/lib/cling-core-2.1.0.jar:/opt/opendct/lib/log4j-api-2.5.jar:/opt/opendct/lib/log4j-core-2.5.jar:/opt/opendct/lib/jna-4.2.1.jar:/opt/opendct/lib/jna-platform-4.2.1.jar:/opt/opendct/lib/nanohttpd-2.3.0.jar:/opt/opendct/lib/nanohttpd-nanolets-2.3.0.jar:/opt/opendct/lib/gson-2.6.2.jar:/opt/opendct/lib/javacpp-1.2.jar:/opt/opendct/lib/ffmpeg-3.1.2-1.2.jar:/opt/opendct/lib/ffmpeg-3.1.2-1.2-linux-x86_64.jar:/opt/opendct/lib/seamless-util-1.1.1.jar:/opt/opendct/lib/seamless-http-1.1.1.jar:/opt/opendct/lib/seamless-xml-1.1.1.jar INFO | wrapper | 2016/10/24 16:11:40.071 | Command[12] : -Dwrapper.key=QqYNQ_89M9BlxBYL INFO | wrapper | 2016/10/24 16:11:40.071 | Command[13] : -Dwrapper.port=32000 INFO | wrapper | 2016/10/24 16:11:40.071 | Command[14] : -Dwrapper.jvm.port.min=31000 INFO | wrapper | 2016/10/24 16:11:40.071 | Command[15] : -Dwrapper.jvm.port.max=31999 INFO | wrapper | 2016/10/24 16:11:40.071 | Command[16] : -Dwrapper.pid=82 INFO | wrapper | 2016/10/24 16:11:40.071 | Command[17] : -Dwrapper.version=3.2.3 INFO | wrapper | 2016/10/24 16:11:40.071 | Command[18] : -Dwrapper.native_library=wrapper INFO | wrapper | 2016/10/24 16:11:40.071 | Command[19] : -Dwrapper.service=TRUE INFO | wrapper | 2016/10/24 16:11:40.071 | Command[20] : -Dwrapper.cpu.timeout=10 INFO | wrapper | 2016/10/24 16:11:40.071 | Command[21] : -Dwrapper.jvmid=1 INFO | wrapper | 2016/10/24 16:11:40.071 | Command[22] : org.tanukisoftware.wrapper.WrapperSimpleApp INFO | wrapper | 2016/10/24 16:11:40.071 | Command[23] : opendct.Main
__________________
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 |
#28
|
||||
|
||||
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 |
#29
|
||||
|
||||
Something else to consider... Bash supports "trap" for trapping sigterm, so you could catch the sigterm in the script and forward it.
http://unix.stackexchange.com/questi...-child-in-bash
__________________
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 |
#30
|
||||
|
||||
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 |
#31
|
||||
|
||||
Quote:
Quote:
https://github.com/phusion/baseimage...tional_daemons I don't use this for sagetv since sagetv has it's startup script and that script manages keeping it alive (among other things). But this discussion has me thinking... how does sagetv handle the SIGTERM (ie, does it gracefully shut down)
__________________
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 |
#32
|
||||
|
||||
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 |
#33
|
||||
|
||||
Quote:
The issue I had was after configuring the tuner, I would get No Signal when I tried to tune a channel. One of your options is to wait, watch this thread, and once the OpenDCT Docker install issues are worked out, try installing it again. Another option would be to change from SageDCT to OpenDCT. Once OpenDCT is working with your existing Sage setup, you have can point the Sage Docker to use the existing (non-docker) OpenDCT instance for testing (Keep in mind both systems can't use the same tuner concurrently). This would then give you an OpenDCT properties file to copy (keep in mind your mileage may vary). I am not recommending you do this, just that is is a possible path for testing.
__________________
"Unencumbered by the thought process" The only constant in the Universe is change. |
#34
|
||||
|
||||
There are a few key issues that need to be worked out. The one that's most likely affecting people is that upload ID isn't enabled by default and the script that's supposed to set it isn't actually doing that. If you don't want to fiddle with that, I recommend waiting for the container to be updated.
__________________
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 |
#35
|
||||
|
||||
The phusion container appears to send SIGTERM to all process during shutdown, and waits... (from what I can tell in the code). Whether or not makes it to the java process... not sure. I do know that when I run docker locally there is a significant pause when I stop the container, which leads me to think that it's waiting for stuff to shut down.
__________________
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 |
#36
|
|||
|
|||
Quote:
|
#37
|
||||
|
||||
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 |
#38
|
||||
|
||||
That's not cool Hopefully SageTV has finished writing to the Wiz.bin before then
__________________
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 |
#39
|
||||
|
||||
I was hoping there was a setting to extend that time. The docker stop command DOES have a -time option to set how long it will wait after SIGTERM before it sends SIGKILL, but I don't see an option in unraid to set the default for that.
__________________
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 |
#40
|
||||
|
||||
I've seen times when SageTV got in it's own way at completing that task even with a "clean" shutdown, but I agree. If it's possible to ensure that all pending writes are written, it is strongly preferred. I can say because I worked around some of that, there is up to a 128k window of unwritten data that might be dangling at any given moment. The exception would be when the database is being rebuilt/compacted, but there are safeguards for that situation. The write mode used for the database causes writes to be immediately committed to disk, so you're likely safe in regards to everything SageTV intended to write.
__________________
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 |
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 |