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-15-2021, 11:35 AM
hvymetal hvymetal is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 143
HOWTO:Unraid Docker Updated Server/Java11/OpenDCT/SageTVTranscoder

I decided to update my SageTV Docker installation so Android Mini Client would work better. Below is a HOWTO for installing everything below in one UnRaid docker container:
  • Unraid Docker image using sagetvopen-sagetv-server-java11
  • OpenDCT with folder to the AppData folder mapped
  • Samba Share for media mapping so Unriad Recycle Plugin Works
  • Updated SageTV Server script for updating
  • jv711_SageTVTranscoder-FFmpeg
  • New Transcoder Profiles
  • MiniClient Settings to for recordings from OpenDCT or Transcoded Copy
  • SageMC procedure for Best Experience on MiniClient
  • Batch Transcode Copy to MKV procedure to fix videos for playback on MiniClient

Code:
###Install sagetvopen-sagetv-server-java11 from UnRaid Apps

###QUOTE FROM jusjoken
###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.

###SSH into Unraid Server and type to get console of docker container
docker exec -it sagetvopen-sagetv-server-java11 /bin/bash

###Make Dir for saving OpenDct in Docker AppData Folder
mkdir /opt/sagetv/opendct
mkdir /opt/sagetv/opendct/etc
mkdir /opt/sagetv/opendct/opt
mkdir /opt/sagetv/opendct/log
mkdir /opt/sagetv/opendct/run

###Make Symbolic Links for Real to files stored elsewhere
ln -s /opt/sagetv/opendct/etc /etc/opendct
ln -s /opt/sagetv/opendct/opt /opt/opendct
ln -s /opt/sagetv/opendct/log /var/log/opendct
ln -s /opt/sagetv/opendct/run /var/run/opendct
ln -s $JAVA_HOME/bin/java /usr/bin/java
ln -s $JAVA_HOME/lib/libjli.so /usr/lib/libjli.so

###Warning this will overwrite your user script in Appdata/sagetv//server/sagetv-user-script.sh back it up before executing echo cmd.  
###ECHO CMD START.  Start Copy Here
echo -e '#!/bin/bash
#Set Permissions for folder/files
chmod -R 777 /opt/sagetv/opendct
chmod -R 777 /etc/opendct
chmod -R 777 /opt/opendct
chmod -R 777 /var/log/opendct
chmod -R 777 /var/run/opendct

#Start OpenDct but do not wait
sudo -u sagetv /opt/opendct/console-only &

#Map Samba Share instead so recycle bin works. If using br0 then Unraid->Settings->Host access to custom networks:Enable
sudo umount /var/media
sudo mkdir /var/media
sudo mount -t cifs //192.168.10.175/sagemedia /var/media -o guest,file_mode=0777,dir_mode=0777 &
#ls file directory or SageTv will not find any files
ls /var/media 
' > /opt/sagetv/server/sagetv-user-script.sh
###ECHO CMD END. End Copy Here

###Set script executable
chmod 777 /opt/sagetv/server/sagetv-user-script.sh

###Stop Sage Server 
sudo -E "PATH=$PATH" -u sagetv /usr/local/bin/stopsage &

###Run Script to create and map dir/files
sh /opt/sagetv/server/sagetv-user-script.sh

###Install OpenDCT
wget https://github.com/enternoescape/opendct/releases/download/0.5.32-Stable/opendct_0.5.32-1_amd64.deb
dpkg -i opendct_0.5.32-1_amd64.deb
rm opendct_0.5.32-1_amd64.deb

###Install jv711_SageTVTranscoder-FFmpeg....This can also be installed as SageTV Plugin which is safer
mv /opt/sagetv/server/ffmpeg /opt/sagetv/server/ffmpeg.org 
wget https://github.com/jvl711/SageTVTranscoder-FFmpeg/releases/download/SageTVTranscoder_v1.0.6/SageTVTranscoderLinux_v1.0.6.zip
unzip -o SageTVTranscoderLinux_v1.0.6.zip -d /opt/sagetv/server
rm SageTVTranscoderLinux_v1.0.6.zip

###Workaround for FFPEG options
mv /opt/sagetv/server/ffmpeg /opt/sagetv/server/ffmpeg.run
echo '/opt/sagetv/server/ffmpeg.run -fflags +genpts "$@"' >  /opt/sagetv/server/ffmpeg
chmod 777 /opt/sagetv/server/ffmpeg

###Install New Trancoder Profiles
echo '
transcoder/formats/MKV-H264\superfast\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset superfast -c:v libx264;]
transcoder/formats/MKV-H264\veryfast\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset veryfast -c:v libx264;]
transcoder/formats/MKV-H264\faster\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset faster -c:v libx264;]
transcoder/formats/MKV-H264\fast\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset fast -c:v libx264;]
transcoder/formats/MKV-H264\Medium\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset medium -c:v libx264;]
transcoder/formats/MKV-H264\slow\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset slow -c:v libx264;]
transcoder/formats/MKV-H264\slower\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset slower -c:v libx264;]
transcoder/formats/MKV-H264\veryslow\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset veryslow -c:v libx264;]
transcoder/formats/MKV-Remux\ MKV=f\=matroska;MCompressionDetails\=-c copy;]
' >>  /opt/sagetv/server/Sage.properties

###Wait for 30 after OpenDct to find tunners
sh /opt/sagetv/server/sagetv-user-script.sh
###Start Sage Server 
sudo -E "PATH=$PATH" -u sagetv /usr/local/bin/startsage &

####Use Remote Placeshifer, Extender, or Mini Client to connect.
####Client will give error on installation of some plugins.
####Install the following plugins:
#### SageMC
#### Commerical Detector
#### Comeercial Detector UI
###  SageTV Web Interface
###  SageTVTranscoder (FFmpeg) Linus by jvl711.....Note that if install this you have to reapply from steps above "Workaround for FFPEG options"

####On Client Setup SageMC (PlaceShifter has issuse with SageMC works client and extenders)
##1.  Setup->Detialed Setup->Set Full UI Package(.STV or .XML File)
##2.  Up Directory
##3.  Click SageTV3
##4.  Click SageMC_169.xml
##5.  When asked reload UI click yes
##6.  SageMC UI->My Menu->Settings->SageMC-Setup->Main->Global UI Options->Animation
##7.  Core Animations: Disabled
##8.  Go Home Screen:  PC Client: keyboard {Home} MiniClient: (Hold Select Button->Home Icon)
##9.  Click My Videos->Select Top Left Menu
##10. Use Option Key PC Client: keyboard {ctrl}+O MiniClient: (Hold Select Button->Three Bar Icon)
##11. Display Options->Show Delete for Videos: Disabled

####Android MiniClient Settings (Working With FireTV 4k and Nivida Shield Tube)
##sagetv-miniclient :V1.9.3
##Default Player: ExoPlayer
##Streaming Mode: Fixed
##Fixed Transcodeing Settings (All Other settting work adjust based on network bandwidth)
##  Transcoding Preference: When Needed 
##  Container Format: MKV
##Fixed Remuxin Settings
##  Remuxing Prefenence: Always
##  Remuxing Container Format: MKV
##  Use OpenGl UI: Checked
##Media Key Mappings (For use with SageMC with FireTV and Nvidia Remote)(Comskip Press Up/Down when video playing)
##  Default (Remote Controls)
##    Fast Forward: Skip Fwd #2
##    Fast Rewind:  Skip Bkwd #2
##  Video Playback Active (Smart Remote)
##    Select: Options
##    Up    : Right
##    Down  : Left  
##    
 
###How to fixed broken Recordings/Video with MiniClient that where recorded without OpenDCT. Batch Transcode Copy to MKV
##1.  Connect to SageTV Web Page http://192.168.10..175:8080/sage/Recordings#options
##2.  Click Show Options->Results Per Page: 50 (If you select to many at once webpage will have error)
##3.  Click Select all
##4.  Action on selected: Covert Media File
##5.  Click Execute
##6.  Transcode Format: MKV-Remux MKV
##7.  Delete Original File: Selected
##8.  Original Folder: Selected
##9.  Click Submit Transcode Job
##10  Wait for Webpage to return Recording page
##11  Click Next Page Number
##12  Repeat Steps 3 to 11 until all are submitted for transcode job list

Last edited by hvymetal; 01-05-2022 at 09:36 AM. Reason: Updated for new docker
Reply With Quote
  #2  
Old 12-15-2021, 12:40 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,373
Thanks for this!

I am building a new unRAID server to replace my existing server and this may come in handy.

Why are there so many BASH commands required? Is that due to running OpenDCT?

When I installed the docker version of SageTV 5-6 years ago I just used the web UI without having to do all of this type of config.
__________________
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-15-2021, 12:59 PM
hvymetal hvymetal is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 143
Yes and No....The Docker image is no longer being updated by stuckless. So the latest version in Unraid App is Java-10 and it has the version fixed for SageTV Server 9.25. As shown here

https://github.com/stuckless/sagetv-...upgrade-sagetv

I need the latest version v9.2.6 to get SageTVTranscoder-FFmpeg and MediaFormatParserPlugin which give better performance when using the Andriod Mini App


The other cmd are for installing OpenDCT in the same docker container. The docker container for OpenDCT for unraid is also broken because download is no longer on bintray.com

as shown here
https://github.com/CraziFuzzy/opendc...all-opendct.sh

This merges 2 dockers into one container. The rest of the commands are for all the other things that where listed
Reply With Quote
  #4  
Old 12-15-2021, 01:08 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,373
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
  #5  
Old 12-15-2021, 01:55 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,798
Quote:
Originally Posted by hvymetal View Post
I decided to update my SageTV Docker installation so Android Mini Client would work better. Below is a HOWTO for installing everything below in one UnRaid docker container:
  • Unraid Docker image using stuckless-sagetv-server-java11
  • OpenDCT with folder to the AppData folder mapped
  • Samba Share for media mapping so Unriad Recycle Plugin Works
  • Updated SageTV Server script for updating
  • jv711_SageTVTranscoder-FFmpeg
  • New Transcoder Profiles
  • jv711_MediaFormatParserPlugin
  • MiniClient Settings to for recordings from OpenDCT or Transcoded Copy
  • SageMC procedure for Best Experience on MiniClient
  • Batch Transcode Copy to MKV procedure to fix videos for playback on MiniClient

Code:
###Install stuckless-sagetv-server-java11 from UnRaid Apps
###Use Version 10 App and then template replace 10 with 11 in the following
###Name, Repository, Docker Hub URL
###Can you 16 but it has issuse with the main web page of SagTV Web Interface Plugin 
###Version 8 and lower will no longer work because of old CERT inlcuded in JVM
###Verion 9 and 10 was not tested

###SSH into Unraid Server and type to get console of docker container
docker exec -it stuckless-sagetv-server-java11 /bin/bash

###Make Dir for saving OpenDct in Docker AppData Folder
mkdir /opt/sagetv/opendct
mkdir /opt/sagetv/opendct/etc
mkdir /opt/sagetv/opendct/opt
mkdir /opt/sagetv/opendct/log
mkdir /opt/sagetv/opendct/run

###Make Symbolic Links for Real to files stored elsewhere
ln -s /opt/sagetv/opendct/etc /etc/opendct
ln -s /opt/sagetv/opendct/opt /opt/opendct
ln -s /opt/sagetv/opendct/log /var/log/opendct
ln -s /opt/sagetv/opendct/run /var/run/opendct
ln -s $JAVA_HOME/bin/java /usr/bin/java
ln -s $JAVA_HOME/lib/libjli.so /usr/lib/libjli.so

###Warning this will overwrite your user script in Appdata/sagetv//server/sagetv-user-script.sh back it up before executing echo cmd.  
###ECHO CMD START.  Start Copy Here
echo -e '#!/bin/bash
#Set Permissions for folder/files
chmod -R 777 /opt/sagetv/opendct
chmod -R 777 /etc/opendct
chmod -R 777 /opt/opendct
chmod -R 777 /var/log/opendct
chmod -R 777 /var/run/opendct

#Start OpenDct but do not wait
sudo -u sagetv /opt/opendct/console-only &

#Map Samba Share instead so recycle bin works. If using br0 then Unraid->Settings->Host access to custom networks:Enable
sudo umount /var/media
sudo mkdir /var/media
sudo mount -t cifs //192.168.10.175/sagemedia /var/media -o guest,file_mode=0777,dir_mode=0777 &
#ls file directory or SageTv will not find any files
ls /var/media 
' > /opt/sagetv/server/sagetv-user-script.sh
###ECHO CMD END. End Copy Here

###Set script executable
chmod 777 /opt/sagetv/server/sagetv-user-script.sh

###Stop Sage Server 
sudo -E "PATH=$PATH" -u sagetv /usr/local/bin/stopsage &

###Run Script to create and map dir/files
sh /opt/sagetv/server/sagetv-user-script.sh

###Install OpenDCT
wget https://github.com/enternoescape/opendct/releases/download/0.5.32-Stable/opendct_0.5.32-1_amd64.deb
dpkg -i opendct_0.5.32-1_amd64.deb
rm opendct_0.5.32-1_amd64.deb

###Install lastest SageTV Server and new script for updating 
apt-get update
apt-get -y install jq
rm /etc/my_init.d/20-upgrade-sagetv
wget https://raw.githubusercontent.com/00madz/sagetv-dockers/master/sagetv-base/SYSTEM/etc/my_init.d/20-upgrade-sagetv 
mv 20-upgrade-sagetv /etc/my_init.d
chmod 777 /etc/my_init.d/20-upgrade-sagetv
rm /opt/sagetv/server/.SAGE_CUR_VERSION
bash /etc/my_init.d/20-upgrade-sagetv

###Install jv711_SageTVTranscoder-FFmpeg....This can also be installed as SageTV Plugin which is safer
mv /opt/sagetv/server/ffmpeg /opt/sagetv/server/ffmpeg.org 
wget https://github.com/jvl711/SageTVTranscoder-FFmpeg/releases/download/SageTVTranscoder_v1.0.6/SageTVTranscoderLinux_v1.0.6.zip
unzip -o SageTVTranscoderLinux_v1.0.6.zip -d /opt/sagetv/server
rm SageTVTranscoderLinux_v1.0.6.zip

###Install New Trancoder Profiles
echo '
transcoder/formats/MKV-H264\superfast\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset superfast -c:v libx264;]
transcoder/formats/MKV-H264\veryfast\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset veryfast -c:v libx264;]
transcoder/formats/MKV-H264\faster\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset faster -c:v libx264;]
transcoder/formats/MKV-H264\fast\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset fast -c:v libx264;]
transcoder/formats/MKV-H264\Medium\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset medium -c:v libx264;]
transcoder/formats/MKV-H264\slow\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset slow -c:v libx264;]
transcoder/formats/MKV-H264\slower\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset slower -c:v libx264;]
transcoder/formats/MKV-H264\veryslow\ MKV=f\=matroska;MCompressionDetails\=-c copy -preset veryslow -c:v libx264;]
transcoder/formats/MKV-Remux\ MKV=f\=matroska;MCompressionDetails\=-c copy;]
' >>  /opt/sagetv/server/Sage.properties

###Install jv711_MediaFormatParserPlugin
wget https://github.com/jvl711/MediaFormatParserPlugin/releases/download/0.7/MediaFormatParserPlugin_v0.7.zip
unzip -o MediaFormatParserPlugin_v0.7.zip -d /opt/sagetv/server/JARs
rm MediaFormatParserPlugin_v0.7.zip
sed -i '/mediafile_mediaformat_parser_plugin/d' /opt/sagetv/server/Sage.properties
echo 'mediafile_mediaformat_parser_plugin=jvl.mediaformat.MediaFormatParserPlugin' >>  /opt/sagetv/server/Sage.properties

###Workaround for FFPEG options
mv /opt/sagetv/server/ffmpeg /opt/sagetv/server/ffmpeg.run
echo '/opt/sagetv/server/ffmpeg.run -fflags +genpts "$@"' >  /opt/sagetv/server/ffmpeg
chmod 777 /opt/sagetv/server/ffmpeg

###Wait for 30 after OpenDct to find tunners
sh /opt/sagetv/server/sagetv-user-script.sh
###Start Sage Server 
sudo -E "PATH=$PATH" -u sagetv /usr/local/bin/startsage &

####Use Remote Placeshifer, Extender, or Mini Client to connect.
####Client will give error on installation of some plugins.
####Install the following plugins:
#### SageMC
#### Commerical Detector
#### Comeercial Detector UI
###  SageTV Web Interface
###  SageTVTranscoder (FFmpeg) Linus by jvl711.....Note that if install this you have to reapply from steps above "Workaround for FFPEG options"

####On Client Setup SageMC (PlaceShifter has issuse with SageMC works client and extenders)
##1.  Setup->Detialed Setup->Set Full UI Package(.STV or .XML File)
##2.  Up Directory
##3.  Click SageTV3
##4.  Click SageMC_169.xml
##5.  When asked reload UI click yes
##6.  SageMC UI->My Menu->Settings->SageMC-Setup->Main->Global UI Options->Animation
##7.  Core Animations: Disabled
##8.  Go Home Screen:  PC Client: keyboard {Home} MiniClient: (Hold Select Button->Home Icon)
##9.  Click My Videos->Select Top Left Menu
##10. Use Option Key PC Client: keyboard {ctrl}+O MiniClient: (Hold Select Button->Three Bar Icon)
##11. Display Options->Show Delete for Videos: Disabled

####Android MiniClient Settings (Working With FireTV 4k and Nivida Shield Tube)
##sagetv-miniclient :V1.9.3
##Default Player: ExoPlayer
##Streaming Mode: Fixed
##Fixed Transcodeing Settings (All Other settting work adjust based on network bandwidth)
##  Transcoding Preference: When Needed 
##  Container Format: MKV
##Fixed Remuxin Settings
##  Remuxing Prefenence: Always
##  Remuxing Container Format: MKV
##  Use OpenGl UI: Checked
##Media Key Mappings (For use with SageMC with FireTV and Nvidia Remote)(Comskip Press Up/Down when video playing)
##  Default (Remote Controls)
##    Fast Forward: Skip Fwd #2
##    Fast Rewind:  Skip Bkwd #2
##  Video Playback Active (Smart Remote)
##    Select: Options
##    Up    : Right
##    Down  : Left  
##    
 
###How to fixed broken Recordings/Video with MiniClient that where recorded without OpenDCT. Batch Transcode Copy to MKV
##1.  Connect to SageTV Web Page http://192.168.10..175:8080/sage/Recordings#options
##2.  Click Show Options->Results Per Page: 50 (If you select to many at once webpage will have error)
##3.  Click Select all
##4.  Action on selected: Covert Media File
##5.  Click Execute
##6.  Transcode Format: MKV-Remux MKV
##7.  Delete Original File: Selected
##8.  Original Folder: Selected
##9.  Click Submit Transcode Job
##10  Wait for Webpage to return Recording page
##11  Click Next Page Number
##12  Repeat Steps 3 to 11 until all are submitted for transcode job list
Thanks for this was thinking about moving Sagetv to a Docker ... will try it soon.... OPPS unraid only wanted to put on UBUNTU docker.
__________________
Windows 10 I3 Dual Core 3.0 Server, SageTV9... OpenDCT with 2 HDHRPrimes and 4 HDHRconnects for a total of 14 Tuners.

Last edited by nyplayer; 12-15-2021 at 01:59 PM.
Reply With Quote
  #6  
Old 12-21-2021, 11:11 PM
Zogg's Avatar
Zogg Zogg is offline
Sage Aficionado
 
Join Date: May 2011
Location: Frisco, TX
Posts: 387
@hvymetal, thanks for this info.

I will give this a go very soon as I also want to have the newer functionality for the Android miniclient. I do use SageAlerts though that is somewhat broken in newer versions of Java, so hopefully jusjoken will get that updated as well.
__________________
-----
AMD Ryzen 5 3600, B450 m/b, 32Gig, lots of disks, Unraid, 2x HDPVR2 tuners, HDHomeRun Prime, HDHomeRun HDHR4 OTA, Windows Live Tuner, SageTV docker, OpenDCT docker, Win8.1 VM, EventGhost
Reply With Quote
  #7  
Old 12-26-2021, 09:46 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,562
Update exiting docker to keep with current SageTV versions

Thanks to the work @hvymetal did here I found it easy to just update my current running SageTV docker to update beyond 9.2.5.

I went to my unraid docker, clicked on the docker icon to get the context menu, clicked on console, and then ran each of the below commands at the console prompt and then restarted the docker.

Code:
###Install lastest SageTV Server and new script for updating 
apt-get update
apt-get -y install jq
rm /etc/my_init.d/20-upgrade-sagetv
wget https://raw.githubusercontent.com/00madz/sagetv-dockers/master/sagetv-base/SYSTEM/etc/my_init.d/20-upgrade-sagetv 
mv 20-upgrade-sagetv /etc/my_init.d
chmod 777 /etc/my_init.d/20-upgrade-sagetv
rm /opt/sagetv/server/.SAGE_CUR_VERSION
bash /etc/my_init.d/20-upgrade-sagetv
I am now on 9.2.6 and in theory the docker will now update to the latest with each restart when new versions are released.

At some point I may attempt to update the stuckless dockers but for now this works well to just keep my dockers current.

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #8  
Old 12-27-2021, 08:50 AM
phantomii phantomii is offline
Sage Advanced User
 
Join Date: Mar 2009
Location: North Carolina
Posts: 225
Quote:
Originally Posted by jusjoken View Post
Thanks to the work @hvymetal did here I found it easy to just update my current running SageTV docker to update beyond 9.2.5.

I went to my unraid docker, clicked on the docker icon to get the context menu, clicked on console, and then ran each of the below commands at the console prompt and then restarted the docker.

I am now on 9.2.6 and in theory the docker will now update to the latest with each restart when new versions are released.

At some point I may attempt to update the stuckless dockers but for now this works well to just keep my dockers current.

K
I did this as well and it worked perfectly. Thanks so much for all the work you two have done to get this working! This is awesome!
Reply With Quote
  #9  
Old 01-05-2022, 09:30 AM
hvymetal hvymetal is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 143
Quote:
Originally Posted by jusjoken View Post
Thanks to the work @hvymetal did here I found it easy to just update my current running SageTV docker to update beyond 9.2.5.

I went to my unraid docker, clicked on the docker icon to get the context menu, clicked on console, and then ran each of the below commands at the console prompt and then restarted the docker.

Code:
###Install lastest SageTV Server and new script for updating 
apt-get update
apt-get -y install jq
rm /etc/my_init.d/20-upgrade-sagetv
wget https://raw.githubusercontent.com/00madz/sagetv-dockers/master/sagetv-base/SYSTEM/etc/my_init.d/20-upgrade-sagetv 
mv 20-upgrade-sagetv /etc/my_init.d
chmod 777 /etc/my_init.d/20-upgrade-sagetv
rm /opt/sagetv/server/.SAGE_CUR_VERSION
bash /etc/my_init.d/20-upgrade-sagetv
I am now on 9.2.6 and in theory the docker will now update to the latest with each restart when new versions are released.

At some point I may attempt to update the stuckless dockers but for now this works well to just keep my dockers current.

K
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.

Last edited by hvymetal; 01-05-2022 at 11:05 AM.
Reply With Quote
  #10  
Old 01-05-2022, 09:33 AM
hvymetal hvymetal is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 143
Updated steps to use new docker templates created by jusjoken. Also removed steps for MediaFormatParser because it did not work correctly. Updated steps in main post.

Last edited by hvymetal; 01-05-2022 at 09:36 AM.
Reply With Quote
  #11  
Old 01-05-2022, 09:43 AM
Zogg's Avatar
Zogg Zogg is offline
Sage Aficionado
 
Join Date: May 2011
Location: Frisco, TX
Posts: 387
Quote:
Originally Posted by hvymetal View Post
Updated steps to use new docker templates created by jusjoken. Also removed steps for MediaFormatParser because it did not work correctly. Updated steps in main post.
Does this mean that I can update my older stuckless 9.2.2 docker rather than starting from scratch with the new template, thus saving my customizaions?
__________________
-----
AMD Ryzen 5 3600, B450 m/b, 32Gig, lots of disks, Unraid, 2x HDPVR2 tuners, HDHomeRun Prime, HDHomeRun HDHR4 OTA, Windows Live Tuner, SageTV docker, OpenDCT docker, Win8.1 VM, EventGhost
Reply With Quote
  #12  
Old 01-05-2022, 10:00 AM
hvymetal hvymetal is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 143
Quote:
Originally Posted by Zogg View Post
Does this mean that I can update my older stuckless 9.2.2 docker rather than starting from scratch with the new template, thus saving my customizaions?
If you mean customizations with SageTV.properties all that is required is to stop the existing docker. I Suggest backing up existing APPDATA folder by making copy of folder. Then install docker using new template found in the APPS plugin of Unraid and use same APPDATA folder (Default: "sagetv").

If you mean customizations inside the docker itself you would have follow all the steps again expect creating the sagetv-user-script.sh which is where all the customizations would be anyway.
Reply With Quote
  #13  
Old 01-05-2022, 10:06 AM
Zogg's Avatar
Zogg Zogg is offline
Sage Aficionado
 
Join Date: May 2011
Location: Frisco, TX
Posts: 387
Quote:
Originally Posted by hvymetal View Post
If you mean customizations with SageTV.properties all that is required is to stop the existing docker. I Suggest backing up existing APPDATA folder by making copy of folder. Then install docker using new template found in the APPS plugin of Unraid and use same APPDATA folder (Default: "sagetv").

If you mean customizations inside the docker itself you would have follow all the steps again expect creating the sagetv-user-script.sh which is where all the customizations would be anyway.
Specifically, I have a custom gentuner script (I guess they are all custom though) and some SageAlert scripting that I think will require Java 8 instead of Java 11 for now, as it broke when I tried using the Java 11 docker previously. I don't have a custom sagetv-user-script.sh that I recall, but I do have backups if something breaks.
__________________
-----
AMD Ryzen 5 3600, B450 m/b, 32Gig, lots of disks, Unraid, 2x HDPVR2 tuners, HDHomeRun Prime, HDHomeRun HDHR4 OTA, Windows Live Tuner, SageTV docker, OpenDCT docker, Win8.1 VM, EventGhost
Reply With Quote
  #14  
Old 01-05-2022, 10:24 AM
hvymetal hvymetal is offline
Sage Advanced User
 
Join Date: Nov 2007
Posts: 143
Quote:
Originally Posted by Zogg View Post
Specifically, I have a custom gentuner script (I guess they are all custom though) and some SageAlert scripting that I think will require Java 8 instead of Java 11 for now, as it broke when I tried using the Java 11 docker previously. I don't have a custom sagetv-user-script.sh that I recall, but I do have backups if something breaks.
Based on jusjoken he updated the Java8 Docker which fixes problems with Stuckless version. Also he made modifications to the SageTV linux compile to fix issues with Java8.

My suggestion is install the new template in a different APPDATA folder and use br0 custom for network(Give it a unique IP). Once you get it working with all your customizations you can rename it and make it your working one.

This will allow you run both until you get it back in working state.
Reply With Quote
  #15  
Old 01-05-2022, 10:29 AM
Zogg's Avatar
Zogg Zogg is offline
Sage Aficionado
 
Join Date: May 2011
Location: Frisco, TX
Posts: 387
Quote:
Originally Posted by hvymetal View Post
Based on jusjoken he updated the Java8 Docker which fixes problems with Stuckless version. Also he made modifications to the SageTV linux compile to fix issues with Java8.

My suggestion is install the new template in a different APPDATA folder and use br0 custom for network(Give it a unique IP). Once you get it working with all your customizations you can rename it and make it your working one.

This will allow you run both until you get it back in working state.
It's in a working state now, but I had to manually change the template to Java 7 to get it to work. And it actually was working even with Java 11, it was just the configuration web i/f that broke. I'll try updating as I do have a backup to restore if needed. I really don't want to start from scratch again.

Thanks!
__________________
-----
AMD Ryzen 5 3600, B450 m/b, 32Gig, lots of disks, Unraid, 2x HDPVR2 tuners, HDHomeRun Prime, HDHomeRun HDHR4 OTA, Windows Live Tuner, SageTV docker, OpenDCT docker, Win8.1 VM, EventGhost
Reply With Quote
  #16  
Old 01-05-2022, 12:03 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,562
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.
As info, 9.2.8 which should release soon will again allow SageTV to run on 18.05.

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-05-2022, 01:43 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,373
Quote:
Originally Posted by jusjoken View Post
As info, 9.2.8 which should release soon will again allow SageTV to run on 18.05.

K
What do you mean by 18.05? The Ubuntu version in the docker?
__________________
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
  #18  
Old 01-05-2022, 03:35 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,562
Quote:
Originally Posted by wayner View Post
What do you mean by 18.05? The Ubuntu version in the docker?
Should have been 18.04...and yes... That would be the version of Ubuntu in the container or if running directly in linux
__________________
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
Docker/OpenDCT/Ubuntu technazz SageTV for unRAID/Docker 3 07-30-2019 08:17 AM
SageTV Unraid/Docker install - log file errors, server not found poto SageTV for unRAID/Docker 4 09-03-2018 04:16 PM
OpenDCT on unRaid Docker failing amg SageTV for unRAID/Docker 4 03-27-2017 09:41 AM
Need help with OpenDCT on Docker willieb SageTV for unRAID/Docker 5 03-07-2017 07:36 AM
SageTV Server Linux with Comskip for Docker (and unRAID) Support Thread stuckless SageTV for unRAID/Docker 409 10-10-2016 07:22 AM


All times are GMT -6. The time now is 05:10 PM.


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