SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux > SageTV for unRAID/Docker

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
  #61  
Old 06-10-2021, 05:35 PM
egeller egeller is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Drexel Hill, PA
Posts: 275
Quote:
Originally Posted by egeller View Post
OK. I am getting smarter. GetMediaFileForName resides in a Javascript file in ../server/sagex/services/plex.js. It is like an add-on to the API, written for the Plex plugin.

For some reason, Java 16 is not accessing / running /including the Javascript code as it is supposed to. The resulting error is "java.lang.NullPointerException: Cannot invoke "javax.script.ScriptEngine.getBindings(int)" because "engine" is null". Since I do Python, and not Java, I need to learn more to figure out if I can fix it. If anyone has any thoughts, let me know.

Meanwhile, investigating.
I wanted to close the loop on this, in case future questions come up.

https://www.oracle.com/java/technolo...ml#JDK-8236933

The javascript engine that allows the Plex scanner to retrieve the data has been removed in Java 16.

To get the Plex scanner working again, in Java 16 or later, will require code modifications in the plugin. I may take a whack at it, as it is Python. However, it looks like it is Python V2, and I moved to Python V3 in the last year. I am not sure which machine I could use to do testing.
__________________
Server:UnRaid;2x Intel Xeon E5; SuperMicro moboard;Also:BM3000 w/ WMC; 2x Ceton ETH 6; OpenDCT
SageTV Extender:3x HD200 1x HD300
Sage TV: 9.2.1, Standard STVi, Comskip Playback, Web Interface, 24 Hour Clock, SRE, YouTube2015, Playon
All in lovely Drexel Hill, PA
Reply With Quote
  #62  
Old 06-10-2021, 07:07 PM
phantomii phantomii is offline
Sage Advanced User
 
Join Date: Mar 2009
Location: North Carolina
Posts: 190
Quote:
Originally Posted by wayner View Post
Once I have OpenDCT running on my unRAID, I am assuming that I can also use these OpenDCT tuners on multiple SageTV servers? I have a backup server running Windows with SageTV as well so I will want to set up my OpenDCT tuners on there.
I would assume you can use these turners with any SageTV server on the same subnet of your network. My experience with my old server was any other temp server I had on the same subnet would see the opendct tuners on that machine. So I have no reason to believe it will not work.
Reply With Quote
  #63  
Old 06-11-2021, 05:08 AM
Madz Madz is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 82
Hey guys - have just finished going through the process of switching from a windows server to running sage on linux dockers - challenging time to do it given the bintray issues....

As part of this I updated the OpenDCT docker image to use GitHub rather than BinTray which you can find here if you need it:
https://hub.docker.com/repository/docker/00madz/opendct
There are 2 tags:
The crazifuzzy tag is basically fuzzy's original image, updated to pull from GitHub instead of BinTray although I did make a change as it seemed to be installing OpenDCT each startup.
The latest tag is my version where I also changed hard-coded user ids etc to suit my system.
If you were previously using crazifuzzy's docker you probably want to stick with the one tagged crazifuzzy.

I'm probably not likely to maintain this much though as I've also forked stuckless' awesome sagetv docker image collection and modified the base image to run OpenDCT as a daemon - this gives me just a single container for sagetv and works nicely for my use case (on a synology) as I run it with a macvlan network so I don't need to use host network option and clash with other services and the sage server box gets its own ip address etc.

@stuckless not sure if you're open to having OpenDCT as part of your docker image if so, let me know and i'll submit changes by PR so you can look them over. I know from a docker purist point of view some will prefer OpenDCT run separately, so if you're in that camp, that's cool.

I've also got a java7 version working again so can submit those changes (though haven't tested OpenDCT running on that yet).

I'm running java8 and I ran into the no such method issues discussed earlier as a result of the jdk9 compile. I ended up copying the jars etc from my v9.1.8 windows install and that works fine so that will do for now, already spent way too long on this (first foray into docker and linux etc).
Reply With Quote
  #64  
Old 06-11-2021, 10:03 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,675
Quote:
Originally Posted by Madz View Post
Hey guys - have just finished going through the process of switching from a windows server to running sage on linux dockers - challenging time to do it given the bintray issues....

As part of this I updated the OpenDCT docker image to use GitHub rather than BinTray which you can find here if you need it:
https://hub.docker.com/repository/docker/00madz/opendct
There are 2 tags:
The crazifuzzy tag is basically fuzzy's original image, updated to pull from GitHub instead of BinTray although I did make a change as it seemed to be installing OpenDCT each startup.
The latest tag is my version where I also changed hard-coded user ids etc to suit my system.
If you were previously using crazifuzzy's docker you probably want to stick with the one tagged crazifuzzy.

I'm probably not likely to maintain this much though as I've also forked stuckless' awesome sagetv docker image collection and modified the base image to run OpenDCT as a daemon - this gives me just a single container for sagetv and works nicely for my use case (on a synology) as I run it with a macvlan network so I don't need to use host network option and clash with other services and the sage server box gets its own ip address etc.

@stuckless not sure if you're open to having OpenDCT as part of your docker image if so, let me know and i'll submit changes by PR so you can look them over. I know from a docker purist point of view some will prefer OpenDCT run separately, so if you're in that camp, that's cool.

I've also got a java7 version working again so can submit those changes (though haven't tested OpenDCT running on that yet).

I'm running java8 and I ran into the no such method issues discussed earlier as a result of the jdk9 compile. I ended up copying the jars etc from my v9.1.8 windows install and that works fine so that will do for now, already spent way too long on this (first foray into docker and linux etc).
I think it would make sense to have an ENV var to start opendct from the same container. If you want to create a PR I can review that and merge it in, and, try to rebuild the containers sometime over the next couple of weeks.
Reply With Quote
  #65  
Old 06-11-2021, 01:22 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,103
Thanks guys!
__________________
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
  #66  
Old 06-11-2021, 05:13 PM
Madz Madz is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 82
Quote:
Originally Posted by stuckless View Post
I think it would make sense to have an ENV var to start opendct from the same container. If you want to create a PR I can review that and merge it in, and, try to rebuild the containers sometime over the next couple of weeks.
Great, thanks!

Yes its mostly hidden behind a OPT_OPENDCT env variable, similar to GENTUNER and COMSKIP, but the only thing that is a bit of an issue is the extra volume mappings needed - I wasn't sure how to have those as optional? If you don't map them and nothing uses them not sure if the anonymous volumes will still be created in docker? (or if it's a big deal if they do)

I'm having trouble generating PRs that have (just) the relevant changes, I'll try and figure out how to do it, but in the meantime stuckless do you want to maybe look through my branches and pick what you'd like or pull everything into a branch your side and pick out what you feel comfortable incorporating?
https://github.com/00madz/sagetv-dockers/branches/all

I notice you have the 9.2.5.168 download link hard-coded at the moment, I spent a fair bit of time trying to replace the upgrade script so it still supports the VERSION env variable (LASTEST, BETA, specific version etc) so that stuff might be some use?

I also have a TV recordings share/folder that sits outside my media folder so I put a separate volume mapping in for that (although haven't tested backwards compatibility if pointed back inside the media volume).

I also made some changes with the how the set permissions option works so it always updates core/critical perms but the option controls whether it goes nuts on your media and tv files or not
Coming over from windows my media folders are named Videos, Pictures, Music etc and so set perms now checks for either casing.

Plus fixes for the java7 and 8 containers - although for 7 i actually included some (pre-downloaded) libraries not sure if okay/acceptable to do that or should perhaps just download them on the fly like you've done for java8? The URLs where I got them are in the comments I believe.

Anyway I don't want to make a lot of work for you - i think we are all so grateful you continue to maintain these great resources so I'd just like to contribute however I can to that - would have liked to be giving you just a couple of different PRs to simply accept/decline, but although I've made changes in branches it's branching git style I guess so not as segregated as one might like...
Reply With Quote
  #67  
Old 06-12-2021, 04:53 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,675
Quote:
Originally Posted by Madz View Post
Great, thanks!

Yes its mostly hidden behind a OPT_OPENDCT env variable, similar to GENTUNER and COMSKIP, but the only thing that is a bit of an issue is the extra volume mappings needed - I wasn't sure how to have those as optional? If you don't map them and nothing uses them not sure if the anonymous volumes will still be created in docker? (or if it's a big deal if they do)
I think the columns are fine, and, eventually if we update the unRAID template you we can default them to sane defaults (like we do for the column mappings)

Quote:
Originally Posted by Madz View Post
I'm having trouble generating PRs that have (just) the relevant changes, I'll try and figure out how to do it, but in the meantime stuckless do you want to maybe look through my branches and pick what you'd like or pull everything into a branch your side and pick out what you feel comfortable incorporating?
https://github.com/00madz/sagetv-dockers/branches/all
I think you can do the following
1. your master branch is behind mine by 2 commits, so you should use the "fetch upstream" link and just update and resolve conflicts (even if you don't intend to use the changes), otherwise it will be hard to create a PR.
2. merge whatever branches your want to into your master
3. open the PR

I compared your master to mine to see what you changed, and it all looked fine.

Alternatively, you can could also post your docker images to dockerhub, if you didn't want to merge with mine, etc.

Quote:
Originally Posted by Madz View Post
I notice you have the 9.2.5.168 download link hard-coded at the moment, I spent a fair bit of time trying to replace the upgrade script so it still supports the VERSION env variable (LASTEST, BETA, specific version etc) so that stuff might be some use?
Yeah that's just sloppy updating on my part I went through the effort to find the version but then I didn't use it in the URL

Your way is much cleaner (I didn't notice, but you add jq to the container?)

Quote:
Originally Posted by Madz View Post
I also have a TV recordings share/folder that sits outside my media folder so I put a separate volume mapping in for that (although haven't tested backwards compatibility if pointed back inside the media volume).

I also made some changes with the how the set permissions option works so it always updates core/critical perms but the option controls whether it goes nuts on your media and tv files or not
Coming over from windows my media folders are named Videos, Pictures, Music etc and so set perms now checks for either casing.
Sounds reasonable.

Quote:
Originally Posted by Madz View Post
Plus fixes for the java7 and 8 containers - although for 7 i actually included some (pre-downloaded) libraries not sure if okay/acceptable to do that or should perhaps just download them on the fly like you've done for java8? The URLs where I got them are in the comments I believe.
The reason to download them on the fly is really just that so I need to check them into the git repo (or have some some script outside the docker container to download them). My guess is that you did this to speed up the container building? Since you are copying those files into the container (the .debs), I'd have a command to remove them after install to reduce the container size. (maybe you are doing that and I missed it).

Quote:
Originally Posted by Madz View Post
Anyway I don't want to make a lot of work for you - i think we are all so grateful you continue to maintain these great resources so I'd just like to contribute however I can to that - would have liked to be giving you just a couple of different PRs to simply accept/decline, but although I've made changes in branches it's branching git style I guess so not as segregated as one might like...
I try to find small windows of time to make sure things are still working. So, if you make the changes, and create the PRs, I'll find some time to push updates to the containers.

btw, does your containers work with the latest Linux build of sagetv? I ran into some issues where the build was compiled with Java 9 and thus having some issues running in the java8 container.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Looking to install SageTV again (Docker, HDHR, SageTV Miniplayer) dinki SageTV Software 1 08-10-2020 06:43 AM
Docker Configuration via Synology Docker GUI Carlton Bale SageTV for unRAID/Docker 15 06-02-2020 12:00 PM
Docker Containers updated to 1.0.4 stuckless SageTV for unRAID/Docker 24 03-27-2018 09:57 PM
Docker Containers updated to 1.0.3 stuckless SageTV for unRAID/Docker 10 03-20-2018 12:56 PM
Updated Docker Container stuckless SageTV for unRAID/Docker 42 10-31-2016 05:22 PM


All times are GMT -6. The time now is 09:43 AM.


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