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
  #1  
Old 12-30-2021, 09:02 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,593
New docker templates - Work in Progress

I have created a new Github location under OpenSageTV and have updated a number of the stuckless dockers and templates in order to resolve a few issues, make them more current and more maintainable.

These have recently been made available as well under the Community Applications app on Unraid.

This is a work in progress so these dockers will be under construction and changing over the coming days/weeks but so far the Java 11 one seems the most stable.

I will post more on this and update the support thread with current instructions as I move forward with this work.

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #2  
Old 12-30-2021, 10:42 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,396
Thanks Ken - awesome stuff!
__________________
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
  #3  
Old 12-30-2021, 01:03 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,396
I see that there is an update available already. What was updated?
__________________
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 12-30-2021, 03:41 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,593
Quote:
Originally Posted by wayner View Post
I see that there is an update available already. What was updated?
I fixed gentuner and commandir

K.
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #5  
Old 01-04-2022, 07:41 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,593
sagetvopen dockers updated

I have updated all 3 dockers available within unraid under sagetvopen

All 3 now use ubuntu 20.04 internally

Java 8 docker seems to work now since the latest 9.2.7 linux build that resolved some Java 8 specific issues

Java 11 docker still seems solid

Java 16 works well except does not yet support some of the Jetty Web pages. Work in progress to determine how to resolve.

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #6  
Old 01-05-2022, 09:47 AM
hvymetal hvymetal is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 143
@jusjoken Thanks for updating the SageTV dockers. I noticed you also connected to crazifuzzy-opendct to the new repository. The docker is still broken because it using old URL to bintray. See log below. I have resorted to installing OpenDCT directly inside the SageTV docker.

Code:
Dload Upload Total Spent Left Speed
Installing OpenDCT ...
--2022-01-05 09:42:22-- https://dl.bintray.com/opendct/Releases/releases//opendct_-1_amd64.deb
Resolving dl.bintray.com (dl.bintray.com)... 54.70.2.80, 52.39.229.247
Connecting to dl.bintray.com (dl.bintray.com)|54.70.2.80|:443... connected.
HTTP request sent, awaiting response... 502 Bad Gateway
2022-01-05 09:42:22 ERROR 502: Bad Gateway.


dpkg-deb: error: 'opendct_-1_amd64.deb' is not a debian format archive

dpkg: error processing archive opendct_-1_amd64.deb (--install):

subprocess dpkg-deb --control returned error exit status 2
Reply With Quote
  #7  
Old 01-05-2022, 10:46 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,396
edit - This is on Java 11

I seem to have an issue with 9.2.7.1. I tried restarting my docker this morning and it appears to have upgraded from 9.2.6.1 to 9.2.7.1. I can't access Sage via either the web UI or Placeshifter.

It seems that when Sage tries to detect Capture devices it craps out on my HDHR.

Is it possible to roll back to version 9.2.6.1?

In all of my sagetv_X.txt log files I see:

Code:
Wed 1/5 8:59:01.814 [main@3567135c] MMC calling detectCaptureDevices on sage.HDHomeRunCaptureManager@68c9133c
Wed 1/5 8:59:01.814 [main@3567135c] MAIN THREW AN EXCEPTION: java.lang.UnsatisfiedLinkError: sage.HDHomeRunCaptureManager.getDeviceList0()[Ljava/lang/String;
Wed 1/5 8:59:01.815 [main@3567135c] java.lang.UnsatisfiedLinkError: sage.HDHomeRunCaptureManager.getDeviceList0()[Ljava/lang/String;
Wed 1/5 8:59:01.815 [main@3567135c] 	at sage.HDHomeRunCaptureManager.getDeviceList0(Native Method)
Wed 1/5 8:59:01.815 [main@3567135c] 	at sage.HDHomeRunCaptureManager.detectCaptureDevices(HDHomeRunCaptureManager.java:62)
Wed 1/5 8:59:01.815 [main@3567135c] 	at sage.MMC.init(MMC.java:89)
Wed 1/5 8:59:01.815 [main@3567135c] 	at sage.MMC.prime(MMC.java:65)
Wed 1/5 8:59:01.815 [main@3567135c] 	at sage.SageTV.<init>(SageTV.java:410)
Wed 1/5 8:59:01.815 [main@3567135c] 	at sage.Sage.startup(Sage.java:1172)
Wed 1/5 8:59:01.815 [main@3567135c] 	at sage.Sage.main(Sage.java:952)
Wed 1/5 8:59:01.815 [main@3567135c] Exception in thread "main" Wed 1/5 8:59:01.815 [main@3567135c] java.lang.UnsatisfiedLinkError: sage.HDHomeRunCaptureManager.getDeviceList0()[Ljava/lang/String;
Wed 1/5 8:59:01.815 [main@3567135c] 	at sage.HDHomeRunCaptureManager.getDeviceList0(Native Method)
Wed 1/5 8:59:01.815 [main@3567135c] 	at sage.HDHomeRunCaptureManager.detectCaptureDevices(HDHomeRunCaptureManager.java:62)
Wed 1/5 8:59:01.815 [main@3567135c] 	at sage.MMC.init(MMC.java:89)
Wed 1/5 8:59:01.815 [main@3567135c] 	at sage.MMC.prime(MMC.java:65)
Wed 1/5 8:59:01.815 [main@3567135c] 	at sage.SageTV.<init>(SageTV.java:410)
Wed 1/5 8:59:01.815 [main@3567135c] 	at sage.Sage.startup(Sage.java:1172)
Wed 1/5 8:59:01.815 [main@3567135c] 	at sage.Sage.main(Sage.java:952)
My docker log doesn't have much of interest.

Code:
*** Running /etc/my_init.d/20-upgrade-sagetv...
SageTV Home: /opt/sagetv/server
Finding latest stable version...
9.2.7.1 is the lastest matching version on OpenSageTV/sagetv-linux
Finding download URL for version 9.2.7.1...
SageTV Server binary (.tar.gz) for 9.2.7.1 can be installed from https://github.com/OpenSageTV/sagetv-linux/releases/download/9.2.7.1/sagetv-server_9.2.7_amd64.tar.gz
SageTV Already At Version: 9.2.7.1, exiting...
*** Running /etc/my_init.d/25-add-license...
*** Running /etc/my_init.d/25-sagetv-docker-env...
Updating Java Mem 2500
*** Running /etc/my_init.d/25-upgrade-commandir...
*** Running /etc/my_init.d/25-upgrade-comskip...
Comskip already installed
*** Running /etc/my_init.d/25-upgrade-gentuner...
Generic Tuner Plugin already installed
*** Running /etc/my_init.d/30-setperms...
*** Running /etc/my_init.d/40-lirc...
mode of '/usr/bin/irsend' changed from 0755 (rwxr-xr-x) to 4755 (rwsr-xr-x)
*** Running /etc/my_init.d/85-user-script...
*** Running /etc/my_init.d/90-sagetv...
Changing to SageTV directory /opt/sagetv/server
Executing pre-scripts
*** Running /etc/my_init.d/95-jstatd...
JSTATD Remote Java Debugging is disabled.
*** Running /etc/my_init.d/99-zmessage...

************************************************
SageTV unRAID/Docker (Container Version: 1.1.0) is running
If this is your first time, install the Windows/Mac/Linux Placeshifter or the Android MiniClient and complete the configuration
Setting up tuners, scheduling recordings, installing plugins, etc, requires using the Placeshifter or MiniClient
To gain browser access, install the Jetty WebServer Plugin
- The SageTV Team -
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 92
Jan 5 16:18:04 120ca6c882ca cron[95]: (CRON) INFO (pidfile fd = 3)
Jan 5 16:18:04 120ca6c882ca cron[95]: (CRON) INFO (Skipping @reboot jobs -- not system startup)
Starting server mode
Main is starting
__________________
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
  #8  
Old 01-05-2022, 11:02 AM
hvymetal hvymetal is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 143
Quote:
Originally Posted by wayner View Post
edit - This is on Java 11

I seem to have an issue with 9.2.7.1. I tried restarting my docker this morning and it appears to have upgraded from 9.2.6.1 to 9.2.7.1. I can't access Sage via either the web UI or Placeshifter.

It seems that when Sage tries to detect Capture devices it craps out on my HDHR.

Is it possible to roll back to version 9.2.6.1?
Quote:
Originally Posted by hvymetal View Post
With version 9.2.7 above this will break current docker cofinguartions because the older dockers were using ubuntu 18.04 that has an older GLIBC required for the newer build to run. GBLIC is not easy to upgrade with replacing OS. There are two options:

1. Fix the version in the docker to template to 9.2.6.1
2. Use an updated docker template created by jusjoken
https://forums.sagetv.com/forums/showthread.php?t=66879
Also next Post will have updated steps as the update script is not longer needed if new template is used.

https://forums.sagetv.com/forums/sho...31&postcount=9
Reply With Quote
  #9  
Old 01-05-2022, 11:27 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,396
Thanks. Regarding fix # 1, how do you change the docker to use 9.2.6.1 - can we do that ourselves? Or do we need Jusjoken to do that?

Regarding fix #2, I am using the new updated docker template the jusjoken created. I am using sagetvopen/sagetv-server-java11 . Or is there now a newer one?
__________________
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
  #10  
Old 01-05-2022, 11:56 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,593
Quote:
Originally Posted by hvymetal View Post
@jusjoken Thanks for updating the SageTV dockers. I noticed you also connected to crazifuzzy-opendct to the new repository. The docker is still broken because it using old URL to bintray. See log below. I have resorted to installing OpenDCT directly inside the SageTV docker.

Code:
Dload Upload Total Spent Left Speed
Installing OpenDCT ...
--2022-01-05 09:42:22-- https://dl.bintray.com/opendct/Releases/releases//opendct_-1_amd64.deb
Resolving dl.bintray.com (dl.bintray.com)... 54.70.2.80, 52.39.229.247
Connecting to dl.bintray.com (dl.bintray.com)|54.70.2.80|:443... connected.
HTTP request sent, awaiting response... 502 Bad Gateway
2022-01-05 09:42:22 ERROR 502: Bad Gateway.


dpkg-deb: error: 'opendct_-1_amd64.deb' is not a debian format archive

dpkg: error processing archive opendct_-1_amd64.deb (--install):

subprocess dpkg-deb --control returned error exit status 2
Thanks for the note. I have not had time to review this but will and correct/update what I can.

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #11  
Old 01-05-2022, 12:00 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,593
Quote:
Originally Posted by wayner View Post
Thanks. Regarding fix # 1, how do you change the docker to use 9.2.6.1 - can we do that ourselves? Or do we need Jusjoken to do that?

Regarding fix #2, I am using the new updated docker template the jusjoken created. I am using sagetvopen/sagetv-server-java11 . Or is there now a newer one?
In unraid, stop your sagetvopen docker and then click force update. This will pull down the new docker that uses Ubuntu 20.04 and will work with Sagetv 9.2.7

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #12  
Old 01-05-2022, 12:45 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,396
Excellent - that worked. Thanks!
__________________
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
  #13  
Old 01-06-2022, 10:25 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,593
Quote:
Originally Posted by hvymetal View Post
@jusjoken Thanks for updating the SageTV dockers. I noticed you also connected to crazifuzzy-opendct to the new repository. The docker is still broken because it using old URL to bintray. See log below. I have resorted to installing OpenDCT directly inside the SageTV docker.

Code:
Dload Upload Total Spent Left Speed
Installing OpenDCT ...
--2022-01-05 09:42:22-- https://dl.bintray.com/opendct/Releases/releases//opendct_-1_amd64.deb
Resolving dl.bintray.com (dl.bintray.com)... 54.70.2.80, 52.39.229.247
Connecting to dl.bintray.com (dl.bintray.com)|54.70.2.80|:443... connected.
HTTP request sent, awaiting response... 502 Bad Gateway
2022-01-05 09:42:22 ERROR 502: Bad Gateway.


dpkg-deb: error: 'opendct_-1_amd64.deb' is not a debian format archive

dpkg: error processing archive opendct_-1_amd64.deb (--install):

subprocess dpkg-deb --control returned error exit status 2
I believe I fixed this. In unraid and on Docker Hub you will see a new docker under sagetvopen/opendct

This should contain fixes others have applied in the past and some other changes to clean things up.

However, I do not know how to test this. It runs but I only have an OTA HDHR and do not see any new sources when I try to configure sources. Perhaps this is normal as the OTA HDHR may not be supported and I have no other devices. Perhaps I am missing a post install step...not sure.

Can someone advise on my thinking above and if anyone can test out the updated docker please let me know the results.

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #14  
Old 01-06-2022, 11:55 AM
technazz's Avatar
technazz technazz is offline
Sage Aficionado
 
Join Date: Jul 2004
Location: Hamilton, ON, CA
Posts: 498
Quote:
Originally Posted by jusjoken View Post
I believe I fixed this. In unraid and on Docker Hub you will see a new docker under sagetvopen/opendct

This should contain fixes others have applied in the past and some other changes to clean things up.

However, I do not know how to test this. It runs but I only have an OTA HDHR and do not see any new sources when I try to configure sources. Perhaps this is normal as the OTA HDHR may not be supported and I have no other devices. Perhaps I am missing a post install step...not sure.

Can someone advise on my thinking above and if anyone can test out the updated docker please let me know the results.

K
I use HDHR OTA through OpenDCT through a separate OpenDCT container though.

Do you have network discovery on in your Sage.properties?

network_encoder_discovery=true
__________________
SageTV V9.xx 2 x HD300's, 2 x Nvidia Shields Running Mini Client
Reply With Quote
  #15  
Old 01-06-2022, 02:33 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,593
Quote:
Originally Posted by technazz View Post
I use HDHR OTA through OpenDCT through a separate OpenDCT container though.

Do you have network discovery on in your Sage.properties?

network_encoder_discovery=true
I checked that setting and it is true (seems to be true on a new install).

I am using a separate OpenDCT container (separate from the SageTV container). Do I need to run the containers both in Host mode ? Currently I have each running as br0 with a different IP for each.

Any other thoughts ?
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #16  
Old 01-06-2022, 02:46 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,593
Quote:
Originally Posted by jusjoken View Post
I checked that setting and it is true (seems to be true on a new install).

I am using a separate OpenDCT container (separate from the SageTV container). Do I need to run the containers both in Host mode ? Currently I have each running as br0 with a different IP for each.

Any other thoughts ?
Nevermind...I got it working. I needed to restart the SageTV docker once the OpenDCT docker was running and that worked fine. I now see the tunners showing as "on sagetvopen-opendct".

So in theory users should be able to use this OpenDCT docker.

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #17  
Old 01-06-2022, 06:17 PM
technazz's Avatar
technazz technazz is offline
Sage Aficionado
 
Join Date: Jul 2004
Location: Hamilton, ON, CA
Posts: 498
Quote:
Originally Posted by jusjoken View Post
Nevermind...I got it working. I needed to restart the SageTV docker once the OpenDCT docker was running and that worked fine. I now see the tunners showing as "on sagetvopen-opendct".

So in theory users should be able to use this OpenDCT docker.

K
Great Ill have to give it a try soon.
Thx
__________________
SageTV V9.xx 2 x HD300's, 2 x Nvidia Shields Running Mini Client
Reply With Quote
  #18  
Old 01-06-2022, 10:30 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,593
I should soon have a new docker with opendct included in the server docker.

I haven't determined yet if I will just make opendct an option in the current set of dockers or have a second set that include opendct...hmmm

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #19  
Old 01-07-2022, 07:17 AM
hvymetal hvymetal is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 143
Quote:
Originally Posted by jusjoken View Post
I should soon have a new docker with opendct included in the server docker.

I haven't determined yet if I will just make opendct an option in the current set of dockers or have a second set that include opendct...hmmm

K
Thanks for the fork of updating the docker images. My opinion is that since OpenDCT is only being used for SageTV why have it in a separate docker. Also having it in one docker guarantees that OpenDCT start first which is required for SageTV to find tuners. Why not but it as a template option?
Reply With Quote
  #20  
Old 01-07-2022, 03:47 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,593
Quote:
Originally Posted by hvymetal View Post
Thanks for the fork of updating the docker images. My opinion is that since OpenDCT is only being used for SageTV why have it in a separate docker. Also having it in one docker guarantees that OpenDCT start first which is required for SageTV to find tuners. Why not but it as a template option?
I agree... but I also like options so I think what I can do is update the docker build process I am using so when I build updated dockers it will just build the extra ones. So we would have dockers like...

sagetvopen/sagetv-opendct
sagetvopen/sagetv-server-java8
sagetvopen/sagetv-server-opendct-java8
sagetvopen/sagetv-server-java11
sagetvopen/sagetv-server-opendct-java11
sagetvopen/sagetv-server-java16
sagetvopen/sagetv-server-opendct-java16

That way users just pick the docker they want rather than searching for an option amongst all the other options that are typically just the default.

I will review the code needed to make this happen but likely easiest to support and may cause less confusion...but we will see

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 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
Can't get comskip to work with docker on Synology rsteele SageTV for unRAID/Docker 0 11-25-2021 12:18 PM
Docker Configuration via Synology Docker GUI Carlton Bale SageTV for unRAID/Docker 15 06-02-2020 12:00 PM
Work in Progress convert folder.jpegs/thumbnails to fanart. PLUCKYHD SageMC Custom Interface 16 06-06-2010 08:53 AM
Theme Work in Progress: SageMCouchPotato himay SageMC Custom Interface 7 06-13-2009 07:17 AM
Menu templates: an idea for organizing STV code GKusnick SageTV Studio 0 01-27-2006 01:55 PM


All times are GMT -6. The time now is 11:46 PM.


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