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
  #101  
Old 06-18-2022, 08:59 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,649
Quote:
Originally Posted by technazz View Post
I tried 2.0.6 and the server loaded fine.

But when I load the MiniClient the text is all garbled. Switch back to 2.0.2 and back to normal.

I use SageMC as my UI.
Likely the fonts are different between Java versions.

Try deleting or renaming the fontcache folder and restart sage and it will rebuild the font cache.

You may also need to clear the cache on your android device for the miniclient app if that is the client u r using

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #102  
Old 06-19-2022, 10:46 AM
egeller egeller is offline
Sage Aficionado
 
Join Date: Feb 2006
Location: Drexel Hill, PA
Posts: 324
Quote:
Originally Posted by jusjoken View Post
Likely the fonts are different between Java versions.

Try deleting or renaming the fontcache folder and restart sage and it will rebuild the font cache.

You may also need to clear the cache on your android device for the miniclient app if that is the client u r using

K
I had this problem myself. The solution is to clear the cache on the android device, however you do that on your device.
__________________
Server:UnRaid;2x Intel Xeon E5; SuperMicro moboard;Also:BM3000 w/ WMC; 2x Ceton ETH 6; OpenDCT
SageTV Extender:3x HD200 1x HD300 1xFireTV
Sage TV: 9.2 on Java 11, Standard STVi, Comskip Playback, Web Interface, 24 Hour Clock, SRE, Playon
All in lovely Drexel Hill, PA
Reply With Quote
  #103  
Old 06-20-2022, 12:31 PM
Zogg's Avatar
Zogg Zogg is offline
Sage Aficionado
 
Join Date: May 2011
Location: Frisco, TX
Posts: 426
I'm running the Java 8 docker and UnRaid is reporting that an update is available, which I wasn't expecting since I'm not on Java 11. Should I just ignore the update or let it proceed with the update?
__________________
-----
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
  #104  
Old 06-20-2022, 02:15 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,649
Quote:
Originally Posted by Zogg View Post
I'm running the Java 8 docker and UnRaid is reporting that an update is available, which I wasn't expecting since I'm not on Java 11. Should I just ignore the update or let it proceed with the update?
Either...as nothing changed. Someday I may find a way to only change the version number on the dockers that changed...but right now they all get new version numbers.

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #105  
Old 06-20-2022, 05:07 PM
Zogg's Avatar
Zogg Zogg is offline
Sage Aficionado
 
Join Date: May 2011
Location: Frisco, TX
Posts: 426
Quote:
Originally Posted by jusjoken View Post
Either...as nothing changed. Someday I may find a way to only change the version number on the dockers that changed...but right now they all get new version numbers.

K
Roger that, 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
  #106  
Old 06-23-2022, 10:14 PM
texneus texneus is offline
Sage Aficionado
 
Join Date: Nov 2009
Location: DFW
Posts: 279
@jusjoken - I updated my docker container to 2.0.5 but was experiencing intermittent live TV issues. Saw the 2.0.6 update so updated to that. Now the docker container starts but it SageTV itself does not. It simply is not reachable from a client or via Jetty web server. The container itself is still active, but SageTV logs simply show the last shutdown (no messages associated with trying to start).

Docker logs:
Code:
# docker logs sagetv
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/10-adduser...
*** Running /etc/my_init.d/10_syslog-ng.init...
Jun 24 03:55:28 marvin syslog-ng[36]: syslog-ng starting up; version='3.25.1'
*** Running /etc/my_init.d/20-upgrade-sagetv...
SageTV Home: /opt/sagetv/server
Finding latest stable version...
9.2.8.1 is the lastest matching version on OpenSageTV/sagetv-linux
Finding download URL for version 9.2.8.1...
SageTV Server binary (.tar.gz) for 9.2.8.1 can be installed from https://github.com/OpenSageTV/sagetv-linux/releases/download/9.2.8.1/sagetv-server_9.2.8_amd64.tar.gz
SageTV Already At Version: 9.2.8.1, exiting...
*** Running /etc/my_init.d/25-add-license...
*** Running /etc/my_init.d/25-sagetv-docker-env...
Updating Java Mem 2048
*** Running /etc/my_init.d/25-upgrade-commandir...
*** Running /etc/my_init.d/25-upgrade-comskip...
*** Running /etc/my_init.d/25-upgrade-gentuner...
*** Running /etc/my_init.d/30-setperms...
changed ownership of '/var/run' from root:root to root:sagetv
mode of '/var/run/' changed from 0755 (rwxr-xr-x) to 0775 (rwxrwxr-x)
mode of '/bin/mountpoint' changed from 0755 (rwxr-xr-x) to 4755 (rwsr-xr-x)
*** Running /etc/my_init.d/40-lirc...
changed ownership of '/usr/bin/irsend' from root:root to root:sagetv
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...
sudo: /etc/sudoers.d is world writable
Changing to SageTV directory /opt/sagetv/server
sudo: /etc/sudoers.d is world writable
#
NOTE: If I start SageTV manually it seems to start and is now reachable by both client and web...
Code:
# docker exec sagetv /etc/my_init.d/90-sagetv
sudo: /etc/sudoers.d is world writable
Changing to SageTV directory /opt/sagetv/server
sudo: /etc/sudoers.d is world writable
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
Executing pre-scripts
Starting server mode
Main is starting
#
I cannot find any recent instructions for deploying the SageTV container, this is what I've been using since the original Stuckless containers...did anything change?
Code:
docker create \
                  --name sagetv \
                  --net host \
                  --privileged \
                  --restart on-failure:5 \
                  -e OPT_GENTUNER=N \
                  -e OPT_COMMANDIR=N \
                  -e OPT_COMSKIP=N \
                  -e PUID=1006 \
                  -e PGID=100 \
                  -e VIDEO_GUID=44 \
                  -e JAVA_MEM_MB=2048 \
                  -v /mnt/Slartibartfast/RecordedTV:/var/media \
                  -v /mnt/SubEtha/RecordedTV:/var/media2 \
                  -v /mnt/DontPanic/Docker/sagetv/TVFanart:/var/mediaext \
                  -v /mnt/DontPanic/Docker/sagetv/data:/opt/sagetv \
                  -t -i "sagetvopen/sagetv-server-java11"
__________________
Server: Xeon E3-1225, 32GB RAM, Open Media Vault 5, SageTV Docker
Tuners: HD Homerun Quatro (OTA)
Clients: NVidia SheildTV x3
Reply With Quote
  #107  
Old 06-25-2022, 06:06 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,649
Are you certain you are running latest or 2.0.6?

Here are my logs (under unraid) when the docker starts...

Code:
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/10-adduser...
*** Running /etc/my_init.d/10_syslog-ng.init...
Jun 25 06:01:02 956045a5063b syslog-ng[36]: syslog-ng starting up; version='3.25.1'
*** Running /etc/my_init.d/20-upgrade-sagetv...
SageTV Home: /opt/sagetv/server
Finding latest stable version...
9.2.8.1 is the lastest matching version on OpenSageTV/sagetv-linux
Finding download URL for version 9.2.8.1...
SageTV Server binary (.tar.gz) for 9.2.8.1 can be installed from https://github.com/OpenSageTV/sagetv-linux/releases/download/9.2.8.1/sagetv-server_9.2.8_amd64.tar.gz
SageTV Already At Version: 9.2.8.1, exiting...
*** Running /etc/my_init.d/25-add-license...
*** Running /etc/my_init.d/25-sagetv-docker-env...
Updating Java Mem 1024
*** 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...
changed ownership of '/var/run' from root:root to root:sagetv
mode of '/var/run/' changed from 0755 (rwxr-xr-x) to 0775 (rwxrwxr-x)
mode of '/bin/mountpoint' changed from 0755 (rwxr-xr-x) to 4755 (rwsr-xr-x)
*** Running /etc/my_init.d/40-lirc...
changed ownership of '/usr/bin/irsend' from root:root to root:sagetv
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...
sudo: /etc/sudoers.d is world writable
Changing to SageTV directory /opt/sagetv/server
sudo: /etc/sudoers.d is world writable
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
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: 2.0.6) 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 -
*** Booting runit daemon...
*** Runit started as PID 106
Jun 25 06:01:06 956045a5063b cron[109]: (CRON) INFO (pidfile fd = 3)
Jun 25 06:01:06 956045a5063b cron[109]: (CRON) INFO (Running @reboot jobs)
Starting server mode
Main is starting
Here is the docker run command that unraid runs (less the unraid specific parts I removed)...

Code:
docker run -d 
--name='sagetvopen-sagetv-server-java11-1' 
--net='host' 
--privileged=true 
-e 'VERSION'='latest' 
-e 'TCP_PORT_8080'='8080' 
-e 'TCP_PORT_42024'='42024' 
-e 'TCP_PORT_7818'='7818' 
-e 'UDP_PORT_8270'='8270' 
-e 'UDP_PORT_31100'='31100' 
-e 'TCP_PORT_31099'='31099' 
-e 'UDP_PORT_16867'='16867' 
-e 'UDP_PORT_16869'='16869' 
-e 'TCP_PORT_16881'='16881' 
-e 'OPT_GENTUNER'='Y' 
-e 'OPT_COMMANDIR'='N' 
-e 'OPT_COMSKIP'='Y' 
-e 'OPT_SETPERMS'='Y' 
-e 'OPT_LIRC'='N' 
-e 'JAVA_MEM_MB'='1024' 
-v '/mnt/user/sagemedia/':'/var/media':'rw' 
-v '/mnt/user/media/videos/':'/var/mediaext':'rw' 
-v '/mnt/user/appdata/sagetv11b/':'/opt/sagetv':'rw' 
-v '/mnt/user':'/unraid':'rw' 
'sagetvopen/sagetv-server-java11'
Perhaps that may point you in the right direction...

K
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #108  
Old 06-25-2022, 08:12 AM
texneus texneus is offline
Sage Aficionado
 
Join Date: Nov 2009
Location: DFW
Posts: 279
Sage will be recording something soon but I will tinker a bit later. In the mean time...

Quote:
Originally Posted by jusjoken View Post
Are you certain you are running latest or 2.0.6?
Yes. Docker is pulled using the 'latest' tag, and:
Code:
# docker exec sagetv /etc/my_init.d/99-zmessage

************************************************
SageTV unRAID/Docker (Container Version: 2.0.6) 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 -

Quote:
Originally Posted by jusjoken View Post
Here are my logs (under unraid) when the docker starts...
Interesting because mine just seems to abort midway through #90. There is no indication in the SageTV logs that SageTV even tries to start. Based on the log comparison it looks like the init script itself is failing. Do you know of a way to figure out where/why it's failing?

Quote:
Originally Posted by jusjoken View Post
Here is the docker run command that unraid runs (less the unraid specific parts I removed)...
Thanks for this, I will experiment. I see some obvious differences but will need to get back to this later. A couple questions in the mean time -

Code:
-v '/mnt/user/media/videos/':'/var/mediaext':'rw'
Interesting, I map the same path to Fanart. Of course that was way to long ago for me to remember why I did that, but what is the intended use of /var/mediaext? Are there any issues if it is repurposed?

Code:
-v '/mnt/user':'/unraid':'rw'
This is entirely new...what does it do? I'm not running this on Unraid, but rather Open Media Vault 5 which has Debian underpinnings.

***Edit***
Another observation, I notice in 90-sagetv you are running sageTV as user 'sagetv'. UID 1006 in my docker script is also 'sagetv', as is the docker name. Is there any reason to think this would cause a conflict?
A: I don't think so but I removed these lines from the script anyway and found SageTV running as userid 99, which is a non-user on my system. I will probably leave it this way.

***Edit 2***
Just discovered another variable, Docker itself also updated about the same time all my issues started hapening. I am at Docker version 20.10.17 build 100c701, the latest available it seems. What version of Docker does Unraid run?
A: Maybe, there is definitely an incompatibility with the sudoer.d permissions though, see fix.

***Edit 3***
I think I have found the problem, although don't know a fix yet. The init script is running, but the startsage script that it calls is hanging on the sudo command near the end, so SageTV never starts.
A: See fix.

Code:
# docker exec sagetv ps af
  PID TTY      STAT   TIME COMMAND
    1 pts/0    Ss+    0:00 /usr/bin/python3 -u /sbin/my_init
   36 pts/0    S      0:00 /usr/sbin/syslog-ng --pidfile /var/run/syslog-ng.pid -F --no-caps
   90 pts/0    S+     0:00 /bin/sh /etc/my_init.d/90-sagetv
   91 pts/0    S+     0:00  \_ sudo -E PATH=/usr/lib/jvm/openlogic-openjdk-11.0.15+10-linux-x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -u sagetv /usr/local/bin/startsage
   92 pts/0    S+     0:00      \_ /bin/bash /usr/local/bin/startsage
   96 pts/0    S+     0:00          \_ sudo chmod 755 /usr/local/bin/startsage /usr/local/bin/startsagecore /usr/local/bin/stopsage
Code:
# docker exec sagetv cat /usr/local/bin/startsage
...

chmod 777 /var/media/videos
chmod 777 /var/media/pictures
chmod 777 /var/media/music
sudo chmod 755 /usr/local/bin/*

/usr/local/bin/startsagecore <&- &
exit 0
Thanks again!
__________________
Server: Xeon E3-1225, 32GB RAM, Open Media Vault 5, SageTV Docker
Tuners: HD Homerun Quatro (OTA)
Clients: NVidia SheildTV x3

Last edited by texneus; 06-25-2022 at 10:14 AM.
Reply With Quote
  #109  
Old 06-25-2022, 10:31 AM
texneus texneus is offline
Sage Aficionado
 
Join Date: Nov 2009
Location: DFW
Posts: 279
Solution:

It turns out this non-warning in the container log is very relevant.

Code:
sudo: /etc/sudoers.d is world writable
It seems to ignoring the contents of the sudoers.d directory in this state.

Note: sudoers.d directory "." is entirely unrestricted.

Code:
# docker exec sagetv ls -al /etc/sudoers.d
total 20
drwxrwxrwx 1 root root 4096 Mar 27 07:29 .
drwxrwxrwx 1 root root 4096 Jun 25 11:04 ..
-r--r----- 1 root root  958 Jan 19  2021 README
-r--r----- 1 root root  288 Mar 27 07:29 sagetv-sudo
With the container still in an abended state:

Code:
docker exec sagetv chmod -R 440 /etc/sudoers.d
now...
Code:
# docker exec sagetv ls -al /etc/sudoers.d         
total 24
dr--r----- 1 root root 4096 Mar 27 07:29 .
drwxrwxrwx 1 root root 4096 Jun 25 11:04 ..
-r--r----- 1 root root  958 Jan 19  2021 README
-r--r----- 1 root root  288 Mar 27 07:29 sagetv-sudo
and...

Code:
# docker stop sagetv
# docker start sagetv
# docker logs sagetv

<previous aborted run logged here>

*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/10-adduser...
*** Running /etc/my_init.d/10_syslog-ng.init...
Jun 25 11:08:00 marvin syslog-ng[22]: syslog-ng starting up; version='3.25.1'
*** Running /etc/my_init.d/20-upgrade-sagetv...
SageTV Home: /opt/sagetv/server
Finding latest stable version...
9.2.8.1 is the lastest matching version on OpenSageTV/sagetv-linux
Finding download URL for version 9.2.8.1...
SageTV Server binary (.tar.gz) for 9.2.8.1 can be installed from https://github.com/OpenSageTV/sagetv-linux/releases/download/9.2.8.1/sagetv-server_9.2.8_amd64.tar.gz
SageTV Already At Version: 9.2.8.1, exiting...
*** Running /etc/my_init.d/25-add-license...
*** Running /etc/my_init.d/25-sagetv-docker-env...
Updating Java Mem 2048
*** Running /etc/my_init.d/25-upgrade-commandir...
*** Running /etc/my_init.d/25-upgrade-comskip...
*** Running /etc/my_init.d/25-upgrade-gentuner...
*** 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...
dos2unix: converting file /opt/sagetv/server/sagetv-user-script.sh to Unix format...
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
Sat 25 Jun 2022 11:08:02 AM CDT
cat: /etc/sudoers.d/sagetv-sudo: Permission denied
uid=99(sagetv) gid=100(users) groups=100(users),18(video)
uid=99(sagetv) gid=100(users) groups=100(users),18(video)
*** 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: 2.0.6) 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 -
*** Booting runit daemon...
*** Runit started as PID 101
Jun 25 11:08:02 marvin cron[105]: (CRON) INFO (pidfile fd = 3)
Jun 25 11:08:02 marvin cron[105]: (CRON) INFO (Running @reboot jobs)
Starting server mode
Main is starting
Jun 25 11:17:01 marvin CRON[621]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
(Note: I took advantage of the external script capability to aid troubleshooting, the output is included above)

I need to do some testing to make sure everything is OK but I'll post back the final docker command for future reference.

Edit to add - I have no clue why the container apparently works as-is for everyone else...
__________________
Server: Xeon E3-1225, 32GB RAM, Open Media Vault 5, SageTV Docker
Tuners: HD Homerun Quatro (OTA)
Clients: NVidia SheildTV x3

Last edited by texneus; 06-25-2022 at 10:33 AM.
Reply With Quote
  #110  
Old 07-15-2022, 05:48 PM
texneus texneus is offline
Sage Aficionado
 
Join Date: Nov 2009
Location: DFW
Posts: 279
Any word on an update to correct this or am I doing something "wrong" in Docker?

Also, as promised, my final Docker command:

docker create \
--name=sagetv \
--net=host \
--privileged=true \
--restart no \
-e VERSION=latest \
-e TZ=America/Chicago \
-e TCP_PORT_7818=7818 \
-e TCP_PORT_8080=8080 \
-e UDP_PORT_8270=8270 \
-e UDP_PORT_16869=16869 \
-e UDP_PORT_16867=16867 \
-e TCP_PORT_16881=16881 \
-e TCP_PORT_31099=31099 \
-e UDP_PORT_31100=31100 \
-e TCP_PORT_42024=42024 \
-e OPT_GENTUNER=N \
-e OPT_COMMANDIR=N \
-e OPT_COMSKIP=N \
-e OPT_LIRC=N \
-e OPT_SETPERMS=Y \
-e JAVA_MEM_MB=2048 \
-v RecordedTV:/var/media \
-v TVFanart:/var/mediaext \
-v data:/opt/sagetv \
-t -i "sagetvopen/sagetv-server-java11"
__________________
Server: Xeon E3-1225, 32GB RAM, Open Media Vault 5, SageTV Docker
Tuners: HD Homerun Quatro (OTA)
Clients: NVidia SheildTV x3
Reply With Quote
  #111  
Old 07-16-2022, 08:39 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,649
Quote:
Originally Posted by texneus View Post
Any word on an update to correct this or am I doing something "wrong" in Docker?

Also, as promised, my final Docker command:

docker create \
--name=sagetv \
--net=host \
--privileged=true \
--restart no \
-e VERSION=latest \
-e TZ=America/Chicago \
-e TCP_PORT_7818=7818 \
-e TCP_PORT_8080=8080 \
-e UDP_PORT_8270=8270 \
-e UDP_PORT_16869=16869 \
-e UDP_PORT_16867=16867 \
-e TCP_PORT_16881=16881 \
-e TCP_PORT_31099=31099 \
-e UDP_PORT_31100=31100 \
-e TCP_PORT_42024=42024 \
-e OPT_GENTUNER=N \
-e OPT_COMMANDIR=N \
-e OPT_COMSKIP=N \
-e OPT_LIRC=N \
-e OPT_SETPERMS=Y \
-e JAVA_MEM_MB=2048 \
-v RecordedTV:/var/media \
-v TVFanart:/var/mediaext \
-v data:/opt/sagetv \
-t -i "sagetvopen/sagetv-server-java11"
Sorry. I have not had any time to look into this further. Added to my todo list.

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #112  
Old 08-28-2022, 08:11 AM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,649
Quote:
Originally Posted by texneus View Post
Any word on an update to correct this or am I doing something "wrong" in Docker?

Also, as promised, my final Docker command:

docker create \
--name=sagetv \
--net=host \
--privileged=true \
--restart no \
-e VERSION=latest \
-e TZ=America/Chicago \
-e TCP_PORT_7818=7818 \
-e TCP_PORT_8080=8080 \
-e UDP_PORT_8270=8270 \
-e UDP_PORT_16869=16869 \
-e UDP_PORT_16867=16867 \
-e TCP_PORT_16881=16881 \
-e TCP_PORT_31099=31099 \
-e UDP_PORT_31100=31100 \
-e TCP_PORT_42024=42024 \
-e OPT_GENTUNER=N \
-e OPT_COMMANDIR=N \
-e OPT_COMSKIP=N \
-e OPT_LIRC=N \
-e OPT_SETPERMS=Y \
-e JAVA_MEM_MB=2048 \
-v RecordedTV:/var/media \
-v TVFanart:/var/mediaext \
-v data:/opt/sagetv \
-t -i "sagetvopen/sagetv-server-java11"
This issue is now fixed in container version 2.07. Thanks for your assist in finding the issue.

https://forums.sagetv.com/forums/sho...1&postcount=11

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #113  
Old 09-14-2022, 08:27 PM
texneus texneus is offline
Sage Aficionado
 
Join Date: Nov 2009
Location: DFW
Posts: 279
Confirmed, your fix worked. Sorry for the delay in getting back to you on this, I noticed the update only earlier today. Thank you for all that you do!!!!
__________________
Server: Xeon E3-1225, 32GB RAM, Open Media Vault 5, SageTV Docker
Tuners: HD Homerun Quatro (OTA)
Clients: NVidia SheildTV x3
Reply With Quote
  #114  
Old 11-09-2022, 09:36 PM
Zogg's Avatar
Zogg Zogg is offline
Sage Aficionado
 
Join Date: May 2011
Location: Frisco, TX
Posts: 426
One problem I've had that I am just getting back to is that external subtitles don't play on a Windows client from my Docker-based server. They work fine from a Windows server to the Windows client, and also they work fine with the Android Miniclient from the Docker.

I enabed debugging on my laptop and get these errors, so apparently it's a problem opening the SRT file:

Code:
Wed 11/9 20:54:05.433 [SRTSubtitleMonitor@64e7be4a] Sending request to server for access to file:\unraid\Media\Recordings\GoodBones-S07E13-Episode13-37262412-0.srt
Wed 11/9 20:54:05.487 [SRTSubtitleMonitor@64e7be4a] Sending request to server for access to file:\unraid\Media\Recordings\GoodBones-S07E13-Episode13-37262412-0.srt
Wed 11/9 20:54:05.501 [SRTSubtitleMonitor@64e7be4a] ERROR loading subtitle file from Subpic[SRT path=/unraid/Media/Recordings/GoodBones-S07E13-Episode13-37262412-0.srt] of java.io.IOException: Error opening remote file of:NON_MEDIA
Wed 11/9 20:54:05.503 [SRTSubtitleMonitor@64e7be4a] java.io.IOException: Error opening remote file of:NON_MEDIA
Wed 11/9 20:54:05.504 [SRTSubtitleMonitor@64e7be4a] 	at sage.io.RemoteSageFile.connect(RemoteSageFile.java:207)
Wed 11/9 20:54:05.504 [SRTSubtitleMonitor@64e7be4a] 	at sage.io.RemoteSageFile.<init>(RemoteSageFile.java:161)
Wed 11/9 20:54:05.504 [SRTSubtitleMonitor@64e7be4a] 	at sage.io.RemoteSageFile.<init>(RemoteSageFile.java:142)
Wed 11/9 20:54:05.504 [SRTSubtitleMonitor@64e7be4a] 	at sage.IOUtils.openReaderDetectCharset(IOUtils.java:1422)
Wed 11/9 20:54:05.504 [SRTSubtitleMonitor@64e7be4a] 	at sage.media.sub.SRTSubtitleHandler.loadSubtitlesFromFiles(SRTSubtitleHandler.java:248)
Wed 11/9 20:54:05.504 [SRTSubtitleMonitor@64e7be4a] 	at sage.media.sub.SRTSubtitleHandler.access$200(SRTSubtitleHandler.java:31)
Wed 11/9 20:54:05.505 [SRTSubtitleMonitor@64e7be4a] 	at sage.media.sub.SRTSubtitleHandler$1.run(SRTSubtitleHandler.java:158)
Wed 11/9 20:54:05.505 [SRTSubtitleMonitor@64e7be4a] 	at sage.Pooler$PooledThread.run(Pooler.java:254)
The file path is correct and matches what SageTV is using for the media file. Any suggestions on what is wrong?
__________________
-----
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
  #115  
Old 11-14-2022, 01:54 PM
Zogg's Avatar
Zogg Zogg is offline
Sage Aficionado
 
Join Date: May 2011
Location: Frisco, TX
Posts: 426
@jusjoken, any idea on this subtitle playback issue?

BTW I am running the Java 8 Docker, latest version. I checked the permissions and the recording, .EDL, and .SRT are all -rw-r--r-- so I don't think it's a Linux file permission error.

Also, to be clear, this is using a Windows client with Docker server, and does not occur if I use a Windows server.

Lastly, the version of CCextractor is kind of old, 0.79, and 0.88 is more common and the latest is 0.94. Any chance of getting an update? I've been trying to build a static image of 0.94 on Slackware but have been unable to so far due to my out of date software skills.

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
  #116  
Old 11-14-2022, 03:58 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,910
Quote:
Originally Posted by Zogg View Post
@jusjoken, any idea on this subtitle playback issue?

BTW I am running the Java 8 Docker, latest version. I checked the permissions and the recording, .EDL, and .SRT are all -rw-r--r-- so I don't think it's a Linux file permission error.

Also, to be clear, this is using a Windows client with Docker server, and does not occur if I use a Windows server.

Lastly, the version of CCextractor is kind of old, 0.79, and 0.88 is more common and the latest is 0.94. Any chance of getting an update? I've been trying to build a static image of 0.94 on Slackware but have been unable to so far due to my out of date software skills.

Thanks!
Sounds like a sharing and Permissions issue. The server serves up the Video but it does not serve up the srt. Windows Clients need direct access to them. I bet any other Client like firetv android etc ...the subtitles will work.

Mine do not work either on a Windows Client connecting to Docker 11 Server.... the only way they will work is if you have the server on a Windows PC with UNC paths.
__________________
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; 11-14-2022 at 04:25 PM.
Reply With Quote
  #117  
Old 11-14-2022, 07:58 PM
Zogg's Avatar
Zogg Zogg is offline
Sage Aficionado
 
Join Date: May 2011
Location: Frisco, TX
Posts: 426
Quote:
Originally Posted by nyplayer View Post
Sounds like a sharing and Permissions issue. The server serves up the Video but it does not serve up the srt. Windows Clients need direct access to them. I bet any other Client like firetv android etc ...the subtitles will work.

Mine do not work either on a Windows Client connecting to Docker 11 Server.... the only way they will work is if you have the server on a Windows PC with UNC paths.
Yes, that's the only way I can get them to work. And looking at the log file, you can see that the path is different. So it looks like there is a mismatch in the file path when using a Windows client and Linux (or Docker) server.

Windows client to Windows server:
Code:
[SRTSubtitleMonitor@7888f952] Sending request to server for access to file:\\TOWER\Media\Recordings\90DayFianceHappilyEverAfter-PillowTalkIsntSheLovely-37023861-0.srt
Windows client to Docker server:
Code:
[SRTSubtitleMonitor@64e7be4a] Sending request to server for access to file:\unraid\Media\Recordings\GoodBones-S07E13-Episode13-37262412-0.srt
I'm not sure why forced subtitles in the recording won't play either though.
__________________
-----
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
  #118  
Old 11-14-2022, 10:17 PM
jusjoken jusjoken is offline
SageTVaholic
 
Join Date: Dec 2005
Location: Strathmore, AB
Posts: 2,649
Quote:
Originally Posted by Zogg View Post
@jusjoken, any idea on this subtitle playback issue?

BTW I am running the Java 8 Docker, latest version. I checked the permissions and the recording, .EDL, and .SRT are all -rw-r--r-- so I don't think it's a Linux file permission error.

Also, to be clear, this is using a Windows client with Docker server, and does not occur if I use a Windows server.

Lastly, the version of CCextractor is kind of old, 0.79, and 0.88 is more common and the latest is 0.94. Any chance of getting an update? I've been trying to build a static image of 0.94 on Slackware but have been unable to so far due to my out of date software skills.

Thanks!
I will create a test case and see if I can find the issue. Not sure how soon but its on my todo list.

k
__________________
If you wish to see what I am up to and support my efforts visit my Patreon page
Reply With Quote
  #119  
Old 11-15-2022, 07:08 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,910
Quote:
Originally Posted by Zogg View Post
Yes, that's the only way I can get them to work. And looking at the log file, you can see that the path is different. So it looks like there is a mismatch in the file path when using a Windows client and Linux (or Docker) server.

Windows client to Windows server:
Code:
[SRTSubtitleMonitor@7888f952] Sending request to server for access to file:\\TOWER\Media\Recordings\90DayFianceHappilyEverAfter-PillowTalkIsntSheLovely-37023861-0.srt
Windows client to Docker server:
Code:
[SRTSubtitleMonitor@64e7be4a] Sending request to server for access to file:\unraid\Media\Recordings\GoodBones-S07E13-Episode13-37262412-0.srt
I'm not sure why forced subtitles in the recording won't play either though.

Remember a while back the only way Comskip would work was with UNC paths ... and Then John I believe put a fix in for this ... maybe they can use something similar with srt files.
__________________
Windows 10 I3 Dual Core 3.0 Server, SageTV9... OpenDCT with 2 HDHRPrimes and 4 HDHRconnects for a total of 14 Tuners.
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
Running multiple SageTV dockers on one server wayner SageTV for unRAID/Docker 4 12-26-2021 10:04 AM
New dockers for Java 9 and 10 wayner SageTV for unRAID/Docker 1 09-02-2019 05:29 AM
What other dockers are you using? wayner SageTV for unRAID/Docker 11 02-25-2018 02:08 PM
250gb SSD cache big enough for sage, dockers, VMs? Pool? btrcp2000 SageTV for unRAID/Docker 2 08-13-2017 11:57 AM
Can you run multiple SageTV Dockers on one unRAID server? wayner SageTV for unRAID/Docker 5 06-20-2017 10:16 PM


All times are GMT -6. The time now is 03:22 PM.


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