|
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
|
||||
|
||||
Updated Docker Container
I just updated the Docker container. If you are running unRAID, you can probably force the update, if you want.... I only recommend updating IF you are interesting in LIRC or have issues mounting.... Just in case this new image introduces some issues. (Note sagetv updates are independent of the docker image).
The primary updates with this new image include.... 1. It now uses the Phusion base image (still Ubuntu 16.04) and the sagetv startup has been refactored into multiple startup scripts which makes it easier to add new scripts and makes it easier to maintain the existing ones. 2. LIRC has been added. (See the OPT_LIRC section in the Options doc) 3. More permissions have been extended... ie, (mount, lirc, irsend, etc should now run as root as well)
__________________
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 |
#2
|
|||
|
|||
Stuckless, I did the upgrade and the OPT_LIRC didn't show up on the docker configuration. It did upgrade the docker.
I put in the variable manually, copied the files to the right location (I think) and it still didn't work. No files copied, no LIRC startup. I quite likely made a mistake or two. When you say SAGE_HOME, is that equal to /opt/sagetv/ for the lirc.d directory? I see some of the lirc files like lircd, mode2, and lircrcd, so the upgrade seems to have taken place. Quote:
Last edited by mibsy; 10-10-2016 at 06:20 PM. |
#3
|
||||
|
||||
Quote:
so the lirc files should be in /opt/sagetv/server/lirc.d/
__________________
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 |
#4
|
|||
|
|||
Dang, that's what I tried first... Will move them and try again.
Any idea why the variable is not showing up on the docker configuration page? |
#5
|
||||
|
||||
sadly, unraid templates do no upgrade So, either you have to remove it completely and then re-add it, or just do as you did, and just manually add the OPT_LIRC environment variable.
__________________
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 |
#6
|
||||
|
||||
This is the lirc initialization script... for reference..
https://github.com/stuckless/sagetv-...init.d/40-lirc
__________________
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
|
||||
|
||||
btw... in unRAID after you start the container, you can view the logs (right click and view log). You should see this script output in there... ie, the cp command use -v so you should it copying the files, etc.
__________________
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 |
#8
|
|||
|
|||
Can you just clarify that, I thought we would pick up new SageTV builds as part of the container being updated ?
__________________
2 X HD300, 2 X HD100 & KVM unRAID Host with SageTV Docker using TBS 6285 Quad DVB-T2 & TBS 6984 Quad DVB-S2 Tuners |
#9
|
||||
|
||||
Unless you have told the docker container not to (using the VERSION variable), it will always check for and update to the newest build of sagetv on each start of the container. The only reason to update the container itself is to get new container capabilities (like the aforementioned VERSION variable added a couple weeks ago, or the LIRC capabilities added yesterday). So under normal use, if you want to upgrade sagetv, all you have to do is restart the SageTV Docker Container, and you'll be on the newest sage release.
__________________
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 |
#10
|
|||
|
|||
Yes, that's what I thought.
I just thought stuckless post implied that SageTV would not be upgraded, when it is, on every restart unless you use the version system.
__________________
2 X HD300, 2 X HD100 & KVM unRAID Host with SageTV Docker using TBS 6285 Quad DVB-T2 & TBS 6984 Quad DVB-S2 Tuners |
#11
|
||||
|
||||
Stuckless,
I started the research phase on testing/implementing USB-UIRT in the docker post-these-changes, and it looks like step one will be to get a udev rule into the docker to map the usb-uirt to a symlink, since the sage USB-UIRT implementation doesn't currently handle detecting the device, simply using it assuming it is at /dev/remoted. I'm not entirely sure where the best place to do this would be in the docker (whether baked into an image, or in a script, etc), but all it should take is the following file: /etc/udev/rules.d/99-usb-serial.rules Code:
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="f850", SYMLINK+="remoted"
__________________
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-11-2016 at 06:01 AM. |
#12
|
||||
|
||||
Quote:
I see this post talking about udev... We might be able to use the monitor/tigger approach to automatically setup the device node when usb-uirt is attached/detached. http://stackoverflow.com/questions/3...cker-container
__________________
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 |
#13
|
||||
|
||||
Without the udev rule... does it get autodetected as /dev/ttyUSB0 ? (ie, is it just a matter that we want to simlink /dev/remoted to /dev/ttyUSB0?)
__________________
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 |
#14
|
||||
|
||||
Quote:
Yeah, it could easily be done using a volume mapping mapping /dev/ttyUSB0 on the host to /dev/remoted on the container... or, we could scan the usb devices using a script and create the symlink on the container start.
__________________
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 stuckless; 10-11-2016 at 08:04 AM. |
#15
|
||||
|
||||
Quote:
I think part of the issue is that it gets brought in as /dev/ttyUSB?, and it can potentially change every time it is plugged/unplugged. That's the purpose of the udev rule tied to the vender and device id's. I'm just giong off the various USB-UIRT on linux guides I've found out there, trying to handle the various possible problems.
__________________
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 |
#16
|
|||
|
|||
So I deleted and added the template to get the revised templates. I wasn't aware that didn't update as well. I didn't have the version variable either...
So I found a few issues: You are copying files to the /etc/lirc.d directory, but it doesn't exist in the container so the copy never happens unless you manually create the directory and reboot Even when you create the directory, lirc won't start since the /etc/init.d/lirc startup script looks for /etc/lirc by default I'd suggest that to solve both, you copy the files to the default /etc/lirc directory. The startup script could be adjusted and the /etc/lirc.d directory manually created if there is a reason for moving it. When lirc starts, in many configurations it creates a socket under /var/run/lirc/lircd1 (or 0) as specified in the hardware configuration file. Is it possible to create that directory to use the socket? I see that you are adjusting the permissions for /dev/lirc[0-4], but for USB-UIRT, it uses the serial to USB devices ttyUSB[0-X]. Since you setuid on irsend, I suspect it should fix the issue with gentuner. Should the permissions on ttyUSB be adjusted? Thanks for putting LIRC in the docker. If anyone wants the hardware.conf and lirc.conf I have working for my USB-UIRT, I can post them. The lircd.conf is really specific to what you are trying to control (a DISH VIP 211 receiver in my case), but the hardware.conf is more tied to the USB-UIRT and a few other configuration items. Quote:
|
#17
|
||||
|
||||
Quote:
As for the permissions... I can set /dev/ttyUSB* to be root:sagetv as well... the irsend will work because of the suid bit, but, if other things that don't use the irsend command try to access them, then they should be owned by sagetv. My wife is travelling, so I can probably do this work tonight
__________________
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 |
#18
|
||||
|
||||
Updated the image...
As per Fuzzy's suggestion, i'm making the chown/chmod command quieter...
I also fixed the lirc stuff (I hope).
__________________
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 |
#19
|
||||
|
||||
Quote:
Will try to check on this soon.
__________________
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 |
#20
|
||||
|
||||
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Docker Image for unRaid | ChaOConnor | SageTV Linux | 73 | 05-28-2017 11:57 AM |
SageTV Docker/unRAID now has a sub-forum | stuckless | SageTV for unRAID/Docker | 0 | 10-10-2016 07:20 AM |
Interactive Docker Container for building SageTV (Linux) | stuckless | SageTV Github Development | 4 | 09-04-2016 03:14 PM |
Docker container | coppit | SageTV Github Development | 20 | 09-06-2015 06:26 PM |
NASs? Docker? | ThePaladinTech | SageTV Github Development | 10 | 08-16-2015 02:34 PM |