SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux > SageTV for unRAID/Docker
Forum Rules FAQs Community Downloads Today's Posts Search

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.

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #301  
Old 09-13-2016, 04:32 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Hmmm.. looks like I'll need that version tag as well. Restarted the docker tonight, and the new sage version is not liking my wiz.bin at all.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
  #302  
Old 09-13-2016, 04:57 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by Fuzzy View Post
Hmmm.. looks like I'll need that version tag as well. Restarted the docker tonight, and the new sage version is not liking my wiz.bin at all.
Before you restarted and upgraded, did you have the version just prior (9.0.4.287) installed?
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
  #303  
Old 09-13-2016, 04:58 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Fuzzy View Post
Hmmm.. looks like I'll need that version tag as well. Restarted the docker tonight, and the new sage version is not liking my wiz.bin at all.
I'm wondering if this is perhaps related to the shutdown process. I'm not sure how unRAID shuts down the docker container, but if it just kills it, then maybe that is causing the corruption since it's not getting a chance to flush writes to the files.

That being said I've restarted my docker container many times and I've never had an issue... and event his time I didn't have an issue. It wasn't until I started to install the updated plugins that for some reason sagetv failed to install/upgrade all the required files (something that I've seen many times)
  #304  
Old 09-13-2016, 06:19 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by stuckless View Post
In the sagetv/server/ directory there is a file, .SAGE_CUR_VERSION, that holds the currently installed version. If you edit this file and set the version to 9999.0.0.0 it will never update (at least not for a very long time).

Later if you do want to take an update, just delete the file, and it will pull down the latest version.
and FWIW, setting my .SAGE_CUR_VERSION TO 9999.0.0.0 did not prevent downloading the current version. I had to leave it set to 9.0.7.362, and extract the 9.0.4.287 overtop the install to downgrade. Looking at the install script, it looks like it is only comparing the versions, and if they don't match, it downloads the current version. it doesn't do any sort of greater-than comparison.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
  #305  
Old 09-13-2016, 06:28 AM
starfire starfire is offline
Sage Expert
 
Join Date: Mar 2008
Location: England, UK
Posts: 505
Yes, I found that also reported here
__________________
2 X HD300, 2 X HD100 & KVM unRAID Host with SageTV Docker using TBS 6285 Quad DVB-T2 & TBS 6984 Quad DVB-S2 Tuners
  #306  
Old 09-13-2016, 06:29 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by stuckless View Post
I'm wondering if this is perhaps related to the shutdown process. I'm not sure how unRAID shuts down the docker container, but if it just kills it, then maybe that is causing the corruption since it's not getting a chance to flush writes to the files.

That being said I've restarted my docker container many times and I've never had an issue... and event his time I didn't have an issue. It wasn't until I started to install the updated plugins that for some reason sagetv failed to install/upgrade all the required files (something that I've seen many times)
Not sure. Rolling back the old version accesses the wiz.bin just fine, no matter how many time it restarts, so I'm not thinking it's a shutdown issue - if anything, it seems more like it's an issue in the database upgrade process. Don't know. The whole wiz.bin part of the sage code is still a mysterious black box to me.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
  #307  
Old 09-13-2016, 07:57 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Fuzzy View Post
and FWIW, setting my .SAGE_CUR_VERSION TO 9999.0.0.0 did not prevent downloading the current version. I had to leave it set to 9.0.7.362, and extract the 9.0.4.287 overtop the install to downgrade. Looking at the install script, it looks like it is only comparing the versions, and if they don't match, it downloads the current version. it doesn't do any sort of greater-than comparison.
Yeah, I noticed that... The new script does do a greater check... and support supplying a specific version.

Quote:
Originally Posted by Fuzzy View Post
Not sure. Rolling back the old version accesses the wiz.bin just fine, no matter how many time it restarts, so I'm not thinking it's a shutdown issue - if anything, it seems more like it's an issue in the database upgrade process. Don't know. The whole wiz.bin part of the sage code is still a mysterious black box to me.
The last release was in June... and I noticed there are LOTS of changes since june. When my changes were pretty small and were around the plugin system... I'm not sure what all the other changes were for. That being said... I don't get any corruption even on the latest version when I restart my containers... in unRAID or in my test environment (which also uses docker containers).
  #308  
Old 09-14-2016, 04:41 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by Fuzzy View Post
Hmmm.. looks like I'll need that version tag as well. Restarted the docker tonight, and the new sage version is not liking my wiz.bin at all.
Me too. Probably did the same thing you did. Had to figure out how to extract the files in the .deb package for SageTV 9.0.4.287 and then copied them over the top replacing existing files of the server directory.
__________________
"Keep your goals away from the trolls"

Last edited by BobPhoenix; 09-14-2016 at 05:35 PM.
  #309  
Old 09-14-2016, 05:44 PM
seaverd seaverd is offline
Sage Advanced User
 
Join Date: Feb 2005
Posts: 137
Same issue here...wiz.bin corrupt. Any tips on how you extracted the .deb would be greatly appreciated.

Dan
  #310  
Old 09-14-2016, 06:23 PM
seaverd seaverd is offline
Sage Advanced User
 
Join Date: Feb 2005
Posts: 137
Thought I figured this out...with docker started I downloaded the older version to a windows pc and extracted the deb to a tar file then extracted the .tar file and copied the folder over the top of the server folder in the sagetv appdata. When I start the sagetv miniclient I get unable to connect failed to connect at IP address (port 31099) after 30000ms: is connected failed: Econnrefused (connection refused)

Any suggestions?
  #311  
Old 09-14-2016, 06:35 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by seaverd View Post
Same issue here...wiz.bin corrupt. Any tips on how you extracted the .deb would be greatly appreciated.

Dan
This is what I did:

  1. Copied the DEB file to the /appdata/sagetv directory on my cache drive
  2. Opened up a putty screen to my unRAID server
  3. Started the SageTV docker
  4. Issued the following commands
  5. First: "docker exec -ti stuckless-sagetv-server-java8 bash"
  6. Then: "dpkg-deb -x /opt/sagetv/sagetv-server_9.0.4_amd64.deb /opt/sagetv/unzipped"
  7. Now exit Docker bash shell with exit
  8. Stop the SageTV docker
  9. Copy the the /appdata/sagetv/unzipped/opt/sagetv/server directory over the top of the existing /appdata/sagetv/server directory with MC on unRAID replacing ALL files
  10. Edit the ".SAGE_CUR_VERSION" in MC and make sure the version is 9.0.7.362 inside it
  11. Exit the editor and MC
  12. Start the SageTV docker and watch to make sure .corrupt0/1/etc... isn't created.
__________________
"Keep your goals away from the trolls"
  #312  
Old 09-14-2016, 07:05 PM
seaverd seaverd is offline
Sage Advanced User
 
Join Date: Feb 2005
Posts: 137
Bob,

Thanks for the detailed reply. It has me up and running. Just before this update I also updated phoenix core and I notice that I have several plugins that say failed i.e. Gemstone, Jetty Web Server, Pushbullet, sagetv-addons License Server.
  #313  
Old 09-14-2016, 07:21 PM
BobPhoenix BobPhoenix is offline
SageTVaholic
 
Join Date: Oct 2004
Posts: 3,152
Quote:
Originally Posted by seaverd View Post
Bob,

Thanks for the detailed reply. It has me up and running. Just before this update I also updated phoenix core and I notice that I have several plugins that say failed i.e. Gemstone, Jetty Web Server, Pushbullet, sagetv-addons License Server.
Sorry don't use those so can't help with that. Hopefully someone else can help with that.

When I started the updated version of SageTV with NO wiz.bin file it looked like it would work but I didn't have the hours and hours it would take to get through all of my media so I looked for a way to downgrade and came up with my method above.
__________________
"Keep your goals away from the trolls"
  #314  
Old 09-14-2016, 08:30 PM
seaverd seaverd is offline
Sage Advanced User
 
Join Date: Feb 2005
Posts: 137
Thanks again Bob. I removed plugins and reinstalled and everything seems to be functional.

Dan
  #315  
Old 09-14-2016, 10:26 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
The alternative method I did, which seemed easier, was to, with the docker shut down, ssh into my unRAID, and cd to the sagetv/server folder. There I used wget to pull down the .tar.gz from bintray, and then used tar to extract it to the server folder. Since it had already updated to the 9.0.7 version, the .SAGE_CUR_VERSION file was already correct. Then rename the .corrupt copy back to Wiz.bin, and start up the docker.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
  #316  
Old 09-15-2016, 06:37 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Fuzzy View Post
The alternative method I did, which seemed easier, was to, with the docker shut down, ssh into my unRAID, and cd to the sagetv/server folder. There I used wget to pull down the .tar.gz from bintray, and then used tar to extract it to the server folder. Since it had already updated to the 9.0.7 version, the .SAGE_CUR_VERSION file was already correct. Then rename the .corrupt copy back to Wiz.bin, and start up the docker.
Yeah, that's what I would have done as well... The bigger question on my mind is why did the new sagetv binary corrupt wiz.bin for so many, but not everyone. ie, while I experienced a plugin catastrophe after updating, my wiz.bin was in tact... and has been in tact after serveral restarts, etc.

While this thread is related to unRAID, I'm not sure ALL the corrupt wiz.bin issues happened on unRAID... if it was, then maybe unRAID is the key here... I know from testing, I run sagetv in a Docker (have multiple dockers setup with multiple different configurations) and none of those have corrupt wiz.bin issues.

There were 3 separate issues that I've found with this latest release...
1. corrupt wiz.bin
2. massive plugin failures (which I think is related to a a corrupt Sage.properties..ie plugins like sagex that can't be easily uninstalled because of dependencies was basically showing as not install)
3. I noticed this the other day... but a client that I use a lot in testing, when connecting to the server, was forced to go through the client setup, again... which leads me to thing that perhaps the client properties somehow got corrupted??

I've made a change to the Docker container to accept a VERSION variable to prevent upgrades, etc... but I think I'm going to add an auto-backup to the upgrade as well, so that everytime it does an upgrade it backs up the core sagetv files, jars, Sage.properties and wiz.bin, to make it easier to restore it, should you/we need to do so.

While I'm still running the latest.. these corruption issues has me a little concerned.
  #317  
Old 09-15-2016, 07:34 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by stuckless View Post
Yeah, that's what I would have done as well... The bigger question on my mind is why did the new sagetv binary corrupt wiz.bin for so many, but not everyone. ie, while I experienced a plugin catastrophe after updating, my wiz.bin was in tact... and has been in tact after serveral restarts, etc.

While this thread is related to unRAID, I'm not sure ALL the corrupt wiz.bin issues happened on unRAID... if it was, then maybe unRAID is the key here... I know from testing, I run sagetv in a Docker (have multiple dockers setup with multiple different configurations) and none of those have corrupt wiz.bin issues.

There were 3 separate issues that I've found with this latest release...
1. corrupt wiz.bin
2. massive plugin failures (which I think is related to a a corrupt Sage.properties..ie plugins like sagex that can't be easily uninstalled because of dependencies was basically showing as not install)
3. I noticed this the other day... but a client that I use a lot in testing, when connecting to the server, was forced to go through the client setup, again... which leads me to thing that perhaps the client properties somehow got corrupted??

I've made a change to the Docker container to accept a VERSION variable to prevent upgrades, etc... but I think I'm going to add an auto-backup to the upgrade as well, so that everytime it does an upgrade it backs up the core sagetv files, jars, Sage.properties and wiz.bin, to make it easier to restore it, should you/we need to do so.

While I'm still running the latest.. these corruption issues has me a little concerned.
Yeah, when I get some time, I was going to try to assess the wiz.bin corruption a bit. It was a specific error that was showing, but i need to research what that error means. I'm not really sure what changes were made in Wizard.java since the last version, and how that might interact. It could also very well be that my (and other's) Wiz.bin has long had a corruption issue that is just now showing due to changes in Wizard, and it might not be that Wizard is actually corrupting something.

FWIW, the error I'm getting in loading the database is:
Code:
ERROR DB RECORD LENGTH VIOLATION was 2195768 should be 2228856 fp=17281899 length=22928153 opcode=5 typecode=0
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room

Last edited by Fuzzy; 09-15-2016 at 07:49 AM.
  #318  
Old 09-15-2016, 09:59 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by Fuzzy View Post
Yeah, when I get some time, I was going to try to assess the wiz.bin corruption a bit. It was a specific error that was showing, but i need to research what that error means. I'm not really sure what changes were made in Wizard.java since the last version, and how that might interact. It could also very well be that my (and other's) Wiz.bin has long had a corruption issue that is just now showing due to changes in Wizard, and it might not be that Wizard is actually corrupting something.

FWIW, the error I'm getting in loading the database is:
Code:
ERROR DB RECORD LENGTH VIOLATION was 2195768 should be 2228856 fp=17281899 length=22928153 opcode=5 typecode=0
So, the previous build was done on June 23rd.... I see all the rewrite of the SageTV file handling was chagned after that (in july)... so this is the first build that introduces that... and it's the only changeset that I can see that changes the Wizard.java.

Out of curiosity... for the people that have failures... is unicode filenames enabled... Mine is not (and by default I think it is turned off).
  #319  
Old 09-15-2016, 12:12 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Seems to me we need some type of Beta testing process.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
  #320  
Old 09-15-2016, 01:15 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
I was very careful about reviewing the filesystem changes that affected reading/writing the Wiz.bin...but of course I could have missed something. If somebody wants to get me a Wiz.bin file that's loading as corrupt I'm more than happy to look into exactly why that's occurring...that's one of the worst things that can go wrong with SageTV and I always want to understand why it happened when it does so it can be fixed.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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
SageTV on Unraid server JonL SageTV Linux 11 10-27-2019 02:48 PM
Docker Image for unRaid ChaOConnor SageTV Linux 73 05-28-2017 11:57 AM
Interactive Docker Container for building SageTV (Linux) stuckless SageTV Github Development 4 09-04-2016 03:14 PM
Another esxi unraid thread - questions jdc Hardware Support 16 11-14-2012 12:08 PM
New Server - SageTV+unRAID under ESXi 4.1 stanger89 Hardware Support 211 01-07-2012 10:38 PM


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


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