SageTV Community  

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

Notices

SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-28-2009, 12:04 AM
madtrader madtrader is offline
Sage User
 
Join Date: Aug 2009
Location: Memphis, TN
Posts: 27
Attempting something different... FreeBSD

Hi Folks,

A little background -- I'm new to SageTV. I've been a BeyondTV user for probably about 5 years now. It's a good TV platform, but development seems to have stagnated, and I'm starting to miss the whole TV + Movies + Pictures package that was promised with their Beyond Media integration. So, after a lot of reading I decided to pick up SageTV Linux (I really dislike Windows; my BTV server and link client are the only Windows boxes I have) and an HD-200. Well, they've sat for a while now as I've been too busy with work and some travel. I did manage to play with the HD-200 a bit in stand-alone mode and it's OK, but that's just a bonus to me. If all goes well with this setup, I'll pick up several more and just attach one to each of my TV's.

In starting to finally try and hash things out I'm jumping in the deep end of the pool. One thing I really want to use is ZFS. I've used and administered hundreds of BSD (Open, Net, and Free), Solaris, and Linux boxes for a decade now. I've always been a BSD guy, so it's my first choice when I have a chance, but I'm not tied to it. In this case, though, FreeBSD may fit the bill. It has ZFS support and runs most Linux binaries. Additionally, I plan to just use HDHomeRun tuners (I have 3) so I don't think I have to worry about kernel capture card drivers. So, I've started turning the crank. I've installed FreeBSD 8.0 beta 3. I have 1 drive dedicated to the OS and 3 1TB drives in a RAIDZ pool. I setup the new default Linux base package set (linux_base-f10, which is based on Fedora 10). Then, I installed the Sun Java 1.6u15 JDK (32-bit Linux version). So far, so good. I downloaded the SageTV 6.6.2.1 server.tar.gz and extracted the contents to /opt/sagetv/server/ . Then, I created /var/media/(tv|videos|pictures|music) . Next, I ran keygen.sh and I think I got my keyfile. I was pleasantly surprised that I didn't have to do any magic at that point. So, I have this 144 byte key file and my next step is to try and start the server up. I took a look at startsage and stopsage. They required a simple change. The ps calls had incompatible options on them, so I fixed it to the FreeBSD equivalent (ps -p $pid instead of ps --pid $pid). So, I run startsage and it appears to start. At the prompt I get:

Code:
Changing to SageTV directory /opt/sagetv/server
Executing pre-scripts
Starting server mode
I looked for logs and all I see having been written is a sagetv_0.txt. It contains:

Code:
Thu 8/27 23:32:12.829 [main@c09554] detect 3
Thu 8/27 23:32:13.314 [SageTV@b51c29] Couldn't start MiniServer, no valid server address
Thu 8/27 23:32:13.314 [SageTV@b51c29] java.net.SocketException: Cannot assign requested address
That doesn't seem right, but I fired up my HD-200 anyway. When I go to "SageTV Servers", sure enough, the IP of my server is listed. I select it and get a black screen. At that point I don't know what to do. No button on the remote seems to do anything except for power. I tried a few times. I don't see any other logging by SageTV. So, I tried the stopsage command and got this output:

Code:
Changing to SageTV directory /opt/sagetv/server
.
.
.
.
.
.
sagetv_0.txt got a few more lines:

Code:
Thu 8/27 23:37:11.346 [SageTVMiniDiscoveryServer@afae4a] Error w/SageTV client connection:java.net.SocketException: Socket closed
Thu 8/27 23:37:16.449 [SageTV Shutdown@1f78040] Error calling finishWatch from VF goodbye:java.lang.NullPointerException
Thu 8/27 23:37:16.475 [SageTV Shutdown@1f78040] Error calling finishWatch from VF goodbye:java.lang.NullPointerException
So, I'm looking to see if you guys have any ideas. I've never run SageTV before this, so I don't know what to expect. Appendix P of the manual says that the Placeshifter client is the UI, so I thought I'd be able to configure Sage from the HD-200. I just haven't gotten there yet. Is there a way for me to turn on more logging or something to help me figure out what the sagetv_0.txt messages mean?
Reply With Quote
  #2  
Old 08-28-2009, 06:00 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Did you register your Linux version with Sage's license server?

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #3  
Old 08-28-2009, 07:09 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
You should have two key files

activkey and key

I think your problem may be incompatibilities in command syntax. I am not overly familiar with BSD, so please excuse

On my Mac (BSD right?) ethernet adapters are referenced as en0/en1, etc. SageTV is likely looking for linux formatting instead. Is this something you can fix/fake?

Not that this is ideal, but can you run linux in a chroot or vm? Since you are using network tuners this shouldn't be an issue.

For debug logging see here

hih

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #4  
Old 08-28-2009, 08:12 AM
madtrader madtrader is offline
Sage User
 
Join Date: Aug 2009
Location: Memphis, TN
Posts: 27
My apologies, I do have both activekey and key. Having those, and the positive output from when I ran keygen.sh makes me believe I have registered my license.

I just turned on debugging and ran startsage. After 1.4MB I ran stopsage. I've got to go to work, so I'll have to analyze tonight, but a quick glance and there certainly seems to be a lot to look at. A couple of lines make me wonder if I will be able to make this work on FreeBSD.

For the network adapter, I'm unsure if I can fake an eth0. On this particular box, my network adapter is msk0, but it seems to me "standard" network setup in Java is usually OS independent. If not it may be another show stopper. We'll see. Tinkering can be enjoyable and rewarding.
Reply With Quote
  #5  
Old 08-28-2009, 05:19 PM
madtrader madtrader is offline
Sage User
 
Join Date: Aug 2009
Location: Memphis, TN
Posts: 27
It's looking bleak from some of the errors here, but I thought I'd post the debug logs in case some one else is looking. It seems like a lot is working, certainly more than I thought. I've stripped out the "Carny waiting for awhile..." messages that post every 25ms or so. What is "Carny" anyway?

Here's the log:

Code:
Fri 8/28 9:03:51.199 [main@1815859] user.dir2=/opt/sagetv/server
Fri 8/28 9:03:51.200 [main@1815859] classpath=Sage.jar:.:/:JARs/commons-jxpath-1.1.jar:JARs/commons-logging-api.jar:JARs/commons-logging.jar:JARs/jcifs-1.1.6.jar:JARs/mx4j-impl.jar:JARs/mx4j-jmx.jar:JARs/mx4j-remote.jar:JARs/mx4j-tools.jar:JARs/sbbi-jmx-1.0.jar:JARs/sbbi-upnplib-1.0.3.jar
Fri 8/28 9:03:51.209 [main@1815859] JVM version=1.6.0_15
Fri 8/28 9:03:51.209 [main@1815859] OS=Linux 2.6.16
Fri 8/28 9:03:51.209 [main@1815859] locale=en_US
Fri 8/28 9:03:51.214 [main@1815859] SageTV V6.6.2.1
Fri 8/28 9:03:56.790 [main@1815859] hostname=dagobah.test.org
Fri 8/28 9:03:57.867 [main@1815859] Wizard starting to load database info...
Fri 8/28 9:03:57.870 [main@1815859] DBFile at version 65 FileSize=2009
Fri 8/28 9:03:57.870 [main@1815859] Wizard allocating table for Year of size 0
Fri 8/28 9:03:57.871 [main@1815859] Wizard allocating table for Network of size 0
Fri 8/28 9:03:57.871 [main@1815859] Wizard allocating table for Title of size 1
Fri 8/28 9:03:57.871 [main@1815859] Wizard loading main index for Title
Fri 8/28 9:03:57.872 [main@1815859] Wizard building alt. index 0 for Title
Fri 8/28 9:03:57.872 [main@1815859] Wizard allocating table for Channel of size 0
Fri 8/28 9:03:57.872 [main@1815859] Wizard allocating table for People of size 1
Fri 8/28 9:03:57.872 [main@1815859] Wizard loading main index for People
Fri 8/28 9:03:57.872 [main@1815859] Wizard building alt. index 0 for People
Fri 8/28 9:03:57.873 [main@1815859] Wizard allocating table for SubCategory of size 0
Fri 8/28 9:03:57.873 [main@1815859] Wizard allocating table for Rated of size 0
Fri 8/28 9:03:57.873 [main@1815859] Wizard allocating table for ParentalRating of size 0
Fri 8/28 9:03:57.873 [main@1815859] Wizard allocating table for ExtendedRating of size 0
Fri 8/28 9:03:57.873 [main@1815859] Wizard allocating table for Category of size 0
Fri 8/28 9:03:57.873 [main@1815859] Wizard allocating table for PrimeTitle of size 0
Fri 8/28 9:03:57.874 [main@1815859] Wizard allocating table for Bonus of size 0
Fri 8/28 9:03:57.874 [main@1815859] Wizard allocating table for Show of size 1
Fri 8/28 9:03:57.874 [main@1815859] Wizard loading main index for Show
Fri 8/28 9:03:57.876 [main@1815859] Wizard building alt. index 0 for Show
Fri 8/28 9:03:57.876 [main@1815859] Wizard allocating table for Airing of size 0
Fri 8/28 9:03:57.877 [main@1815859] Wizard allocating table for ManualRecord of size 0
Fri 8/28 9:03:57.877 [main@1815859] Wizard allocating table for MediaFile of size 9
Fri 8/28 9:03:57.877 [main@1815859] Wizard loading main index for MediaFile
Fri 8/28 9:03:57.880 [main@1815859] Wizard building alt. index 0 for MediaFile
Fri 8/28 9:03:57.880 [main@1815859] Wizard building alt. index 1 for MediaFile
Fri 8/28 9:03:57.881 [main@1815859] Wizard allocating table for Watched of size 0
Fri 8/28 9:03:57.881 [main@1815859] Wizard allocating table for Agent of size 0
Fri 8/28 9:03:57.881 [main@1815859] Wizard allocating table for Wasted of size 0
Fri 8/28 9:03:57.881 [main@1815859] Wizard allocating table for Playlist of size 0
Fri 8/28 9:03:57.881 [main@1815859] Wizard allocating table for TVEditorial of size 0
Fri 8/28 9:03:57.882 [main@1815859] Wizard allocating table for SeriesInfo of size 0
Fri 8/28 9:03:57.882 [main@1815859] Wizard performing validation on database objects...
Fri 8/28 9:03:57.883 [main@1815859] Wizard DONE loading database info. loadTime=0.016 sec
Fri 8/28 9:03:57.954 [main@1815859] Increased Thread pool to size=1
Fri 8/28 9:03:57.958 [main@1815859] MMC calling detectCaptureDevices on sage.ce@76ab2f
Fri 8/28 9:03:57.959 [main@1815859] devices detected=[]
Fri 8/28 9:03:57.959 [main@1815859] EncoderMap={}
Fri 8/28 9:03:57.959 [main@1815859] MMC calling detectCaptureDevices on sage.HDHomeRunCaptureManager@7a1576
Fri 8/28 9:03:57.959 [main@1815859] HDHomeRun: Detecting devices...
Fri 8/28 9:03:58.991 [main@1815859] New HDHomeRun device discovered (id = 1013e569, ip = c0a88015)
Fri 8/28 9:03:58.994 [main@1815859] New HDHomeRun device discovered (id = 1013c141, ip = c0a88016)
Fri 8/28 9:03:58.995 [main@1815859] HDHomeRun: Done detecting.
Fri 8/28 9:03:58.995 [main@1815859] Checking encoder key:243234182
Fri 8/28 9:03:59.000 [main@1815859] Created HDHomeRunCaptureDevice object for:HDHomeRun 1013c141 Tuner 0
Fri 8/28 9:03:59.000 [main@1815859] Checking encoder key:243234183
Fri 8/28 9:03:59.001 [main@1815859] Created HDHomeRunCaptureDevice object for:HDHomeRun 1013c141 Tuner 1
Fri 8/28 9:03:59.001 [main@1815859] Checking encoder key:-64232049
Fri 8/28 9:03:59.002 [main@1815859] Created HDHomeRunCaptureDevice object for:HDHomeRun 1013e569 Tuner 1
Fri 8/28 9:03:59.002 [main@1815859] Checking encoder key:-64232050
Fri 8/28 9:03:59.003 [main@1815859] Created HDHomeRunCaptureDevice object for:HDHomeRun 1013e569 Tuner 0
Fri 8/28 9:03:59.003 [main@1815859] EncoderMap1={HDHomeRun 1013c141 Tuner 0=HDHomeRun 1013c141 Tuner 0, HDHomeRun 1013c141 Tuner 1=HDHomeRun 1013c141 Tuner 1, HDHomeRun 1013e569 Tuner 1=HDHomeRun 1013e569 Tuner 1, HDHomeRun 1013e569 Tuner 0=HDHomeRun 1013e569 Tuner 0}
Fri 8/28 9:03:59.003 [main@1815859] Saving properties file to Sage.properties
Fri 8/28 9:03:59.029 [main@1815859] Saving properties file to Sage.properties
Fri 8/28 9:03:59.037 [main@1815859] Saving properties file to Sage.properties
Fri 8/28 9:03:59.046 [main@1815859] Saving properties file to Sage.properties
Fri 8/28 9:03:59.054 [main@1815859] Processing new system dev:HDHomeRun 1013e569 Tuner 0
Fri 8/28 9:03:59.054 [main@1815859] Device already has been processed
Fri 8/28 9:03:59.054 [main@1815859] Processing new system dev:HDHomeRun 1013e569 Tuner 1
Fri 8/28 9:03:59.055 [main@1815859] Device already has been processed
Fri 8/28 9:03:59.055 [main@1815859] Processing new system dev:HDHomeRun 1013c141 Tuner 0
Fri 8/28 9:03:59.055 [main@1815859] Device already has been processed
Fri 8/28 9:03:59.055 [main@1815859] Processing new system dev:HDHomeRun 1013c141 Tuner 1
Fri 8/28 9:03:59.055 [main@1815859] Device already has been processed
Fri 8/28 9:03:59.055 [main@1815859] devices detected=[HDHomeRun 1013c141 Tuner 0, HDHomeRun 1013c141 Tuner 1, HDHomeRun 1013e569 Tuner 1, HDHomeRun 1013e569 Tuner 0]
Fri 8/28 9:03:59.056 [main@1815859] EncoderMap={HDHomeRun 1013c141 Tuner 0=HDHomeRun 1013c141 Tuner 0, HDHomeRun 1013c141 Tuner 1=HDHomeRun 1013c141 Tuner 1, HDHomeRun 1013e569 Tuner 0=HDHomeRun 1013e569 Tuner 0, HDHomeRun 1013e569 Tuner 1=HDHomeRun 1013e569 Tuner 1}
Fri 8/28 9:03:59.056 [main@1815859] MMC calling detectCaptureDevices on sage.LinuxIVTVCaptureManager@11ca803
Fri 8/28 9:03:59.056 [main@1815859] videoDevices=[]
Fri 8/28 9:03:59.057 [main@1815859] Checking encoder key:243234182
Fri 8/28 9:03:59.058 [main@1815859] Checking encoder key:243234183
Fri 8/28 9:03:59.058 [main@1815859] Checking encoder key:-64232049
Fri 8/28 9:03:59.058 [main@1815859] Checking encoder key:-64232050
Fri 8/28 9:03:59.060 [main@1815859] EncoderMap1={}
Fri 8/28 9:03:59.060 [main@1815859] devices detected=[]
Fri 8/28 9:03:59.060 [main@1815859] EncoderMap={HDHomeRun 1013c141 Tuner 0=HDHomeRun 1013c141 Tuner 0, HDHomeRun 1013c141 Tuner 1=HDHomeRun 1013c141 Tuner 1, HDHomeRun 1013e569 Tuner 0=HDHomeRun 1013e569 Tuner 0, HDHomeRun 1013e569 Tuner 1=HDHomeRun 1013e569 Tuner 1}
Fri 8/28 9:03:59.061 [main@1815859] MMC calling detectCaptureDevices on sage.bc@5a67c9
Fri 8/28 9:03:59.061 [main@1815859] WARNING - MissingResource: "Linux_DVB_Capture_Manager"
Fri 8/28 9:03:59.061 [main@1815859] videoDevices=[]
Fri 8/28 9:03:59.061 [main@1815859] detect 3
Fri 8/28 9:03:59.062 [main@1815859] Checking encoder key:243234182
Fri 8/28 9:03:59.062 [main@1815859] Device is already accounted for.
Fri 8/28 9:03:59.062 [main@1815859] Checking encoder key:243234183
Fri 8/28 9:03:59.062 [main@1815859] Device is already accounted for.
Fri 8/28 9:03:59.062 [main@1815859] Checking encoder key:-64232049
Fri 8/28 9:03:59.062 [main@1815859] Device is already accounted for.
Fri 8/28 9:03:59.062 [main@1815859] Checking encoder key:-64232050
Fri 8/28 9:03:59.063 [main@1815859] Device is already accounted for.
Fri 8/28 9:03:59.063 [main@1815859] EncoderMap1={}
Fri 8/28 9:03:59.063 [main@1815859] devices detected=[]
Fri 8/28 9:03:59.063 [main@1815859] EncoderMap={HDHomeRun 1013c141 Tuner 0=HDHomeRun 1013c141 Tuner 0, HDHomeRun 1013c141 Tuner 1=HDHomeRun 1013c141 Tuner 1, HDHomeRun 1013e569 Tuner 0=HDHomeRun 1013e569 Tuner 0, HDHomeRun 1013e569 Tuner 1=HDHomeRun 1013e569 Tuner 1}
Fri 8/28 9:03:59.095 [main@1815859] Checking video directories for new files
Fri 8/28 9:03:59.100 [SageTV@15a6029] CARNY Processing 0 Agents & 0 Airs
Fri 8/28 9:03:59.101 [SageTV@15a6029] CARNY Negative Energy Size: 0
Fri 8/28 9:03:59.101 [SageTV@15a6029] CARNY Traitors:[]
Fri 8/28 9:03:59.102 [FSManager@1774b9b] FSManager is running...
Fri 8/28 9:03:59.107 [Seeker@19bb25a] Verifying existence of all TV media files in database fixDurs=true avoidArchive=false
Fri 8/28 9:03:59.170 [EPG@32060c] EPG needs an update in 819 minutes
Fri 8/28 9:03:59.261 [EPG@32060c] EPG's works is done. Waiting...
Fri 8/28 9:03:59.262 [Scheduler@1f4e571] Scheduler.updateSchedule() called time=Fri 8/28 9:03:59.262 manual=[] schedules={} scheduleRandSize=0
Fri 8/28 9:03:59.406 [Seeker@19bb25a] Saving properties file to Sage.properties
Fri 8/28 9:03:59.420 [Seeker@19bb25a] Checking video directories for new files
Fri 8/28 9:03:59.424 [Seeker@19bb25a] Diskspace checking is running
Fri 8/28 9:03:59.424 [Seeker@19bb25a] Verifying existence of all TV media files in database fixDurs=false avoidArchive=true
Fri 8/28 9:03:59.424 [Seeker@19bb25a] Enforcing keep at most limits for the files...
Fri 8/28 9:03:59.425 [Seeker@19bb25a] Seeker clearing unwanted and partial files...
Fri 8/28 9:03:59.426 [Seeker@19bb25a] Seeker waiting for 153722846423108 mins.
Fri 8/28 9:03:59.426 [LibraryImporter@17f11fb] Checking video directories for new files
Fri 8/28 9:03:59.429 [Seeker@19bb25a] Seeker awoken
Fri 8/28 9:03:59.429 [Seeker@19bb25a] MemStats: Used=12MB Total=14MB Max=258MB
Fri 8/28 9:03:59.430 [Seeker@19bb25a] Seeker waiting for -20857803 mins.
Fri 8/28 9:03:59.430 [SageTVServer@1db9852] SageTVServer was instantiated.
Fri 8/28 9:03:59.433 [SageTV@15a6029] Trying to find lan network interface
Fri 8/28 9:03:59.433 [SageTVMiniDiscoveryServer@6504bc] SageTVMiniDiscoveryServer was instantiated.
Fri 8/28 9:03:59.434 [SageTVDiscoveryServer@ecb67f] SageTVDiscoveryServer was instantiated.
Fri 8/28 9:03:59.474 [SageTV@15a6029] Couldn't start MiniServer, no valid server address
Fri 8/28 9:03:59.474 [SageTV@15a6029] java.net.SocketException: Cannot assign requested address
Fri 8/28 9:03:59.497 [Seeker@19bb25a] Seeker awoken
Fri 8/28 9:03:59.498 [SageTV@15a6029] Loading locator keys from filesystem since they already exist.
Fri 8/28 9:03:59.499 [Seeker@19bb25a] MemStats: Used=3MB Total=17MB Max=258MB
Fri 8/28 9:03:59.499 [Seeker@19bb25a] Checking video directories for new files
Fri 8/28 9:03:59.501 [MiniUIServer@137d4a4] MiniUI ServerSocket died from:java.io.IOException: Function not implemented
Fri 8/28 9:03:59.502 [MiniUIServer@137d4a4] Waiting to try to open MiniUIServer socket again...
Fri 8/28 9:03:59.502 [Seeker@19bb25a] Diskspace checking is running
Fri 8/28 9:03:59.502 [Seeker@19bb25a] Verifying existence of all TV media files in database fixDurs=false avoidArchive=true
Fri 8/28 9:03:59.502 [Seeker@19bb25a] Enforcing keep at most limits for the files...
Fri 8/28 9:03:59.503 [Seeker@19bb25a] Seeker clearing unwanted and partial files...
Fri 8/28 9:03:59.503 [Seeker@19bb25a] Seeker waiting for 153722846423108 mins.
Fri 8/28 9:03:59.505 [PSNATMGR@4310d0] Starting UPnP NAT Manager...
Fri 8/28 9:03:59.506 [HotplugStorage@1c18a4c] StorageDeviceDetector started...
Fri 8/28 9:03:59.938 [LibraryImporter@17f11fb] Seeker is starting the library import scan...
Fri 8/28 9:03:59.938 [LibraryImporter@17f11fb] Starting to scan lib import root: /var/media/videos
Fri 8/28 9:03:59.960 [LibraryImporter@17f11fb] Starting to scan lib import root: /var/media/pictures
Fri 8/28 9:03:59.983 [LibraryImporter@17f11fb] Starting to scan lib import root: /var/media/music
Fri 8/28 9:04:00.005 [LibraryImporter@17f11fb] Seeker has finished the library import scan.
Fri 8/28 9:04:04.356 [Ministry@45e228] Ministry is starting
Fri 8/28 9:04:04.356 [Ministry@45e228] Ministry is waiting for 180 sec
Fri 8/28 9:04:14.802 [MiniUIServer@137d4a4] MiniUI ServerSocket died from:java.io.IOException: Function not implemented
Fri 8/28 9:04:14.802 [MiniUIServer@137d4a4] Waiting to try to open MiniUIServer socket again...
Fri 8/28 9:04:30.104 [MiniUIServer@137d4a4] MiniUI ServerSocket died from:java.io.IOException: Function not implemented
Fri 8/28 9:04:30.104 [MiniUIServer@137d4a4] Waiting to try to open MiniUIServer socket again...
Fri 8/28 9:04:45.410 [MiniUIServer@137d4a4] MiniUI ServerSocket died from:java.io.IOException: Function not implemented
Fri 8/28 9:04:45.410 [MiniUIServer@137d4a4] Waiting to try to open MiniUIServer socket again...
Fri 8/28 9:05:00.716 [MiniUIServer@137d4a4] MiniUI ServerSocket died from:java.io.IOException: Function not implemented
Fri 8/28 9:05:00.716 [MiniUIServer@137d4a4] Waiting to try to open MiniUIServer socket again...
Fri 8/28 9:05:16.023 [MiniUIServer@137d4a4] MiniUI ServerSocket died from:java.io.IOException: Function not implemented
Fri 8/28 9:05:16.023 [MiniUIServer@137d4a4] Waiting to try to open MiniUIServer socket again...
Fri 8/28 9:05:31.326 [MiniUIServer@137d4a4] MiniUI ServerSocket died from:java.io.IOException: Function not implemented
Fri 8/28 9:05:31.326 [MiniUIServer@137d4a4] Waiting to try to open MiniUIServer socket again...
Fri 8/28 9:05:46.634 [MiniUIServer@137d4a4] MiniUI ServerSocket died from:java.io.IOException: Function not implemented
Fri 8/28 9:05:46.634 [MiniUIServer@137d4a4] Waiting to try to open MiniUIServer socket again...
Fri 8/28 9:06:01.939 [MiniUIServer@137d4a4] MiniUI ServerSocket died from:java.io.IOException: Function not implemented
Fri 8/28 9:06:01.939 [MiniUIServer@137d4a4] Waiting to try to open MiniUIServer socket again...
Fri 8/28 9:06:17.247 [MiniUIServer@137d4a4] MiniUI ServerSocket died from:java.io.IOException: Function not implemented
Fri 8/28 9:06:17.247 [MiniUIServer@137d4a4] Waiting to try to open MiniUIServer socket again...
Fri 8/28 9:06:23.330 [SageTV Shutdown@13e58d4] SageTV SHUTDOWN is activating!
Fri 8/28 9:06:23.330 [SageTV Shutdown@13e58d4] Sage.exit() called.
Fri 8/28 9:06:23.330 [SageTV Shutdown@13e58d4] Cleaning up servers
Fri 8/28 9:06:23.333 [SageTVMiniDiscoveryServer@6504bc] Error w/SageTV client connection:java.net.SocketException: Socket closed
Fri 8/28 9:06:28.433 [SageTV Shutdown@13e58d4] Cleaning up PM
Fri 8/28 9:06:28.433 [SageTV Shutdown@13e58d4] Killed Carny.
Fri 8/28 9:06:28.433 [SageTV Shutdown@13e58d4] Killed Scheduler.
Fri 8/28 9:06:28.434 [SageTV Shutdown@13e58d4] Error calling finishWatch from VF goodbye:java.lang.NullPointerException
Fri 8/28 9:06:28.434 [Ministry@45e228] Ministry is shutting down....destroying the converts in progress
Fri 8/28 9:06:28.434 [SageTV Shutdown@13e58d4] FSManager goodbye()
Fri 8/28 9:06:28.434 [SageTV Shutdown@13e58d4] Killed Seeker.
Fri 8/28 9:06:28.435 [SageTV Shutdown@13e58d4] Killed EPG.
Fri 8/28 9:06:28.435 [EPG@32060c] Saving properties file to Sage.properties
Fri 8/28 9:06:28.436 [SageTV Shutdown@13e58d4] Freeing HDHomeRun capture device (HDHomeRun 1013c141 Tuner 0)
Fri 8/28 9:06:28.447 [SageTV Shutdown@13e58d4] stopEncoding for HDHomeRun 1013c141 Tuner 0
Fri 8/28 9:06:28.447 [SageTV Shutdown@13e58d4] HDHR_destroyEncoder0((nil))
Fri 8/28 9:06:28.447 [SageTV Shutdown@13e58d4] Freeing HDHomeRun capture device (HDHomeRun 1013c141 Tuner 1)
Fri 8/28 9:06:28.448 [SageTV Shutdown@13e58d4] stopEncoding for HDHomeRun 1013c141 Tuner 1
Fri 8/28 9:06:28.448 [SageTV Shutdown@13e58d4] HDHR_destroyEncoder0((nil))
Fri 8/28 9:06:28.448 [SageTV Shutdown@13e58d4] Freeing HDHomeRun capture device (HDHomeRun 1013e569 Tuner 1)
Fri 8/28 9:06:28.448 [SageTV Shutdown@13e58d4] stopEncoding for HDHomeRun 1013e569 Tuner 1
Fri 8/28 9:06:28.448 [SageTV Shutdown@13e58d4] HDHR_destroyEncoder0((nil))
Fri 8/28 9:06:28.448 [SageTV Shutdown@13e58d4] Freeing HDHomeRun capture device (HDHomeRun 1013e569 Tuner 0)
Fri 8/28 9:06:28.448 [SageTV Shutdown@13e58d4] stopEncoding for HDHomeRun 1013e569 Tuner 0
Fri 8/28 9:06:28.448 [SageTV Shutdown@13e58d4] HDHR_destroyEncoder0((nil))
Fri 8/28 9:06:28.448 [SageTV Shutdown@13e58d4] Killed MMC.
Fri 8/28 9:06:28.449 [SageTV Shutdown@13e58d4] Killing UIMgr UIManager:localhost@@SAGETV_PROCESS_LOCAL_UI-1aaf0b3
Fri 8/28 9:06:28.449 [SageTV Shutdown@13e58d4] Error calling finishWatch from VF goodbye:java.lang.NullPointerException
Fri 8/28 9:06:28.449 [SageTV Shutdown@13e58d4] Killed VideoFrame
Fri 8/28 9:06:28.449 [SageTV Shutdown@13e58d4] Disposed Window
Fri 8/28 9:06:28.449 [SageTV Shutdown@13e58d4] Killed UIManager.
Fri 8/28 9:06:28.449 [SageTV Shutdown@13e58d4] Killed Wizard.
Fri 8/28 9:06:28.450 [SageTV Shutdown@13e58d4] Saving properties file to Sage.properties
Fri 8/28 9:06:28.461 [SageTV Shutdown@13e58d4] Bye-bye.
Reply With Quote
  #6  
Old 08-28-2009, 11:13 PM
madtrader madtrader is offline
Sage User
 
Join Date: Aug 2009
Location: Memphis, TN
Posts: 27
Also, I found these in my dmesg:

Code:
linux: pid 9263 (java): syscall epoll_create not implemented
linux: pid 9580 (java): syscall epoll_create not implemented
linux: pid 11083 (java): syscall epoll_create not implemented
After some further reading it looks like the linuxulator (as the Linux subsystem is called in FreeBSD) doesn't support the epoll_* syscalls. This has affected others running the linux java on FreeBSD. As I believe epoll_* came with the Linux 2.6 series kernels I'm trying to setup and use the Linux 2.4.2 linuxulator. That was the default linuxulator for FreeBSD < 8.0. I want to see if the JDK will not try to use epoll when it thinks it's on a 2.4 series kernel. I've been unsuccessful in building out the package set yet, but I'm working on it.
Reply With Quote
  #7  
Old 08-29-2009, 01:07 AM
madtrader madtrader is offline
Sage User
 
Join Date: Aug 2009
Location: Memphis, TN
Posts: 27
I don't think I like the new linux_base stuff in the FreeBSD ports tree. It's got some assumptions to it that take some hackish work-arounds to do what I wanted to do. In fact, I'm not sure if the work-arounds actually were the right thing to do, but I do seem to have some progress. I might have to go back to FreeBSD 7.2 to be sure. Still, I managed to get the linuxulator setup as a 2.4.2 kernel w/ a Fedora Core 4 base system (yes, it's ancient, but it hopefully gets me out of needing epoll_*). Now when I start with the debugging enabled, sagetv_0.txt doesn't get a log message every 25ms. In fact, I started up SageTV, I had a tail -f going and messages came in at a reasonable rate (with no more "Carny waiting for awhile..." lines). Things looked a lot better, so I fired up the HD-200 and tried to connect. I don't know what it's supposed to do, but after telling it to connect I would get the SageTV logo on a black background for about 20 seconds. Then the whole screen would go black again. Then after about another 10 seconds, the HD-200 would boot up like I had just turned it on. I take that to mean it crashed. It did it 3 times on me. Then I used stopsage.

I see in there that it still can't start "MiniServer". Right before that it's looking for LAN interfaces. What is "MiniServer"? Can anyone tell me how it tries to locate LAN interfaces? Is it looking for something matching, say, eth[0-9] in /dev, or is it calling ifconfig and parsing output, or something entirely different? It's hard to fake or work around without knowing what Sage is doing.

Here's the whole sagetv_0.txt contents:

Code:
Sat 8/29 1:33:27.913 [main@1764be1] user.dir2=/opt/sagetv/server
Sat 8/29 1:33:27.914 [main@1764be1] classpath=Sage.jar:.:/:JARs/commons-jxpath-1.1.jar:JARs/commons-logging-api.jar:JARs/commons-logging.jar:JARs/jcifs-1.1.6.jar:JARs/mx4j-impl.jar:JARs/mx4j-jmx.jar:JARs/mx4j-remote.jar:JARs/mx4j-tools.jar:JARs/sbbi-jmx-1.0.jar:JARs/sbbi-upnplib-1.0.3.jar
Sat 8/29 1:33:27.917 [main@1764be1] JVM version=1.6.0_15
Sat 8/29 1:33:27.917 [main@1764be1] OS=Linux 2.4.2
Sat 8/29 1:33:27.917 [main@1764be1] locale=en_US
Sat 8/29 1:33:27.922 [main@1764be1] SageTV V6.6.2.1
Sat 8/29 1:33:34.867 [main@1764be1] hostname=dagobah.test.org
Sat 8/29 1:33:35.906 [main@1764be1] Wizard starting to load database info...
Sat 8/29 1:33:35.909 [main@1764be1] DBFile at version 65 FileSize=2009
Sat 8/29 1:33:35.909 [main@1764be1] Wizard allocating table for Year of size 0
Sat 8/29 1:33:35.910 [main@1764be1] Wizard allocating table for Network of size 0
Sat 8/29 1:33:35.910 [main@1764be1] Wizard allocating table for Title of size 1
Sat 8/29 1:33:35.911 [main@1764be1] Wizard loading main index for Title
Sat 8/29 1:33:35.911 [main@1764be1] Wizard building alt. index 0 for Title
Sat 8/29 1:33:35.911 [main@1764be1] Wizard allocating table for Channel of size 0
Sat 8/29 1:33:35.911 [main@1764be1] Wizard allocating table for People of size 1
Sat 8/29 1:33:35.911 [main@1764be1] Wizard loading main index for People
Sat 8/29 1:33:35.912 [main@1764be1] Wizard building alt. index 0 for People
Sat 8/29 1:33:35.912 [main@1764be1] Wizard allocating table for SubCategory of size 0
Sat 8/29 1:33:35.912 [main@1764be1] Wizard allocating table for Rated of size 0
Sat 8/29 1:33:35.912 [main@1764be1] Wizard allocating table for ParentalRating of size 0
Sat 8/29 1:33:35.912 [main@1764be1] Wizard allocating table for ExtendedRating of size 0
Sat 8/29 1:33:35.913 [main@1764be1] Wizard allocating table for Category of size 0
Sat 8/29 1:33:35.913 [main@1764be1] Wizard allocating table for PrimeTitle of size 0
Sat 8/29 1:33:35.913 [main@1764be1] Wizard allocating table for Bonus of size 0
Sat 8/29 1:33:35.913 [main@1764be1] Wizard allocating table for Show of size 1
Sat 8/29 1:33:35.913 [main@1764be1] Wizard loading main index for Show
Sat 8/29 1:33:35.916 [main@1764be1] Wizard building alt. index 0 for Show
Sat 8/29 1:33:35.916 [main@1764be1] Wizard allocating table for Airing of size 0
Sat 8/29 1:33:35.916 [main@1764be1] Wizard allocating table for ManualRecord of size 0
Sat 8/29 1:33:35.916 [main@1764be1] Wizard allocating table for MediaFile of size 9
Sat 8/29 1:33:35.916 [main@1764be1] Wizard loading main index for MediaFile
Sat 8/29 1:33:35.920 [main@1764be1] Wizard building alt. index 0 for MediaFile
Sat 8/29 1:33:35.920 [main@1764be1] Wizard building alt. index 1 for MediaFile
Sat 8/29 1:33:35.920 [main@1764be1] Wizard allocating table for Watched of size 0
Sat 8/29 1:33:35.921 [main@1764be1] Wizard allocating table for Agent of size 0
Sat 8/29 1:33:35.921 [main@1764be1] Wizard allocating table for Wasted of size 0
Sat 8/29 1:33:35.921 [main@1764be1] Wizard allocating table for Playlist of size 0
Sat 8/29 1:33:35.921 [main@1764be1] Wizard allocating table for TVEditorial of size 0
Sat 8/29 1:33:35.921 [main@1764be1] Wizard allocating table for SeriesInfo of size 0
Sat 8/29 1:33:35.922 [main@1764be1] Wizard performing validation on database objects...
Sat 8/29 1:33:35.923 [main@1764be1] Wizard DONE loading database info. loadTime=0.017 sec
Sat 8/29 1:33:35.992 [main@1764be1] Increased Thread pool to size=1
Sat 8/29 1:33:35.997 [main@1764be1] MMC calling detectCaptureDevices on sage.ce@1d95492
Sat 8/29 1:33:35.998 [main@1764be1] devices detected=[]
Sat 8/29 1:33:35.998 [main@1764be1] EncoderMap={}
Sat 8/29 1:33:35.998 [main@1764be1] MMC calling detectCaptureDevices on sage.HDHomeRunCaptureManager@76ab2f
Sat 8/29 1:33:35.999 [main@1764be1] HDHomeRun: Detecting devices...
Sat 8/29 1:33:37.031 [main@1764be1] New HDHomeRun device discovered (id = 1013c141, ip = c0a88016)
Sat 8/29 1:33:37.034 [main@1764be1] New HDHomeRun device discovered (id = 1013e569, ip = c0a88015)
Sat 8/29 1:33:37.034 [main@1764be1] HDHomeRun: Done detecting.
Sat 8/29 1:33:37.035 [main@1764be1] Checking encoder key:243234182
Sat 8/29 1:33:37.042 [main@1764be1] Created HDHomeRunCaptureDevice object for:HDHomeRun 1013c141 Tuner 0
Sat 8/29 1:33:37.043 [main@1764be1] Checking encoder key:243234183
Sat 8/29 1:33:37.044 [main@1764be1] Created HDHomeRunCaptureDevice object for:HDHomeRun 1013c141 Tuner 1
Sat 8/29 1:33:37.044 [main@1764be1] Checking encoder key:-64232049
Sat 8/29 1:33:37.045 [main@1764be1] Created HDHomeRunCaptureDevice object for:HDHomeRun 1013e569 Tuner 1
Sat 8/29 1:33:37.045 [main@1764be1] Checking encoder key:-64232050
Sat 8/29 1:33:37.046 [main@1764be1] Created HDHomeRunCaptureDevice object for:HDHomeRun 1013e569 Tuner 0
Sat 8/29 1:33:37.046 [main@1764be1] EncoderMap1={HDHomeRun 1013c141 Tuner 0=HDHomeRun 1013c141 Tuner 0, HDHomeRun 1013c141 Tuner 1=HDHomeRun 1013c141 Tuner 1, HDHomeRun 1013e569 Tuner 1=HDHomeRun 1013e569 Tuner 1, HDHomeRun 1013e569 Tuner 0=HDHomeRun 1013e569 Tuner 0}
Sat 8/29 1:33:37.046 [main@1764be1] Saving properties file to Sage.properties
Sat 8/29 1:33:37.112 [main@1764be1] Saving properties file to Sage.properties
Sat 8/29 1:33:37.196 [main@1764be1] Saving properties file to Sage.properties
Sat 8/29 1:33:37.225 [main@1764be1] Saving properties file to Sage.properties
Sat 8/29 1:33:37.235 [main@1764be1] Processing new system dev:HDHomeRun 1013c141 Tuner 0
Sat 8/29 1:33:37.235 [main@1764be1] Device already has been processed
Sat 8/29 1:33:37.235 [main@1764be1] Processing new system dev:HDHomeRun 1013c141 Tuner 1
Sat 8/29 1:33:37.236 [main@1764be1] Device already has been processed
Sat 8/29 1:33:37.236 [main@1764be1] Processing new system dev:HDHomeRun 1013e569 Tuner 0
Sat 8/29 1:33:37.236 [main@1764be1] Device already has been processed
Sat 8/29 1:33:37.236 [main@1764be1] Processing new system dev:HDHomeRun 1013e569 Tuner 1
Sat 8/29 1:33:37.236 [main@1764be1] Device already has been processed
Sat 8/29 1:33:37.237 [main@1764be1] devices detected=[HDHomeRun 1013c141 Tuner 0, HDHomeRun 1013c141 Tuner 1, HDHomeRun 1013e569 Tuner 1, HDHomeRun 1013e569 Tuner 0]
Sat 8/29 1:33:37.237 [main@1764be1] EncoderMap={HDHomeRun 1013c141 Tuner 0=HDHomeRun 1013c141 Tuner 0, HDHomeRun 1013c141 Tuner 1=HDHomeRun 1013c141 Tuner 1, HDHomeRun 1013e569 Tuner 0=HDHomeRun 1013e569 Tuner 0, HDHomeRun 1013e569 Tuner 1=HDHomeRun 1013e569 Tuner 1}
Sat 8/29 1:33:37.237 [main@1764be1] MMC calling detectCaptureDevices on sage.LinuxIVTVCaptureManager@64ab4d
Sat 8/29 1:33:37.238 [main@1764be1] videoDevices=[]
Sat 8/29 1:33:37.239 [main@1764be1] Checking encoder key:243234182
Sat 8/29 1:33:37.240 [main@1764be1] Checking encoder key:243234183
Sat 8/29 1:33:37.240 [main@1764be1] Checking encoder key:-64232049
Sat 8/29 1:33:37.240 [main@1764be1] Checking encoder key:-64232050
Sat 8/29 1:33:37.240 [main@1764be1] EncoderMap1={}
Sat 8/29 1:33:37.240 [main@1764be1] devices detected=[]
Sat 8/29 1:33:37.240 [main@1764be1] EncoderMap={HDHomeRun 1013c141 Tuner 0=HDHomeRun 1013c141 Tuner 0, HDHomeRun 1013c141 Tuner 1=HDHomeRun 1013c141 Tuner 1, HDHomeRun 1013e569 Tuner 0=HDHomeRun 1013e569 Tuner 0, HDHomeRun 1013e569 Tuner 1=HDHomeRun 1013e569 Tuner 1}
Sat 8/29 1:33:37.241 [main@1764be1] MMC calling detectCaptureDevices on sage.bc@12a55aa
Sat 8/29 1:33:37.241 [main@1764be1] WARNING - MissingResource: "Linux_DVB_Capture_Manager"
Sat 8/29 1:33:37.241 [main@1764be1] videoDevices=[]
Sat 8/29 1:33:37.241 [main@1764be1] detect 3
Sat 8/29 1:33:37.241 [main@1764be1] Checking encoder key:243234182
Sat 8/29 1:33:37.242 [main@1764be1] Device is already accounted for.
Sat 8/29 1:33:37.242 [main@1764be1] Checking encoder key:243234183
Sat 8/29 1:33:37.242 [main@1764be1] Device is already accounted for.
Sat 8/29 1:33:37.242 [main@1764be1] Checking encoder key:-64232049
Sat 8/29 1:33:37.242 [main@1764be1] Device is already accounted for.
Sat 8/29 1:33:37.242 [main@1764be1] Checking encoder key:-64232050
Sat 8/29 1:33:37.243 [main@1764be1] Device is already accounted for.
Sat 8/29 1:33:37.243 [main@1764be1] EncoderMap1={}
Sat 8/29 1:33:37.243 [main@1764be1] devices detected=[]
Sat 8/29 1:33:37.243 [main@1764be1] EncoderMap={HDHomeRun 1013c141 Tuner 0=HDHomeRun 1013c141 Tuner 0, HDHomeRun 1013c141 Tuner 1=HDHomeRun 1013c141 Tuner 1, HDHomeRun 1013e569 Tuner 0=HDHomeRun 1013e569 Tuner 0, HDHomeRun 1013e569 Tuner 1=HDHomeRun 1013e569 Tuner 1}
Sat 8/29 1:33:37.278 [main@1764be1] Checking video directories for new files
Sat 8/29 1:33:37.284 [SageTV@e020c9] CARNY Processing 0 Agents & 0 Airs
Sat 8/29 1:33:37.285 [SageTV@e020c9] CARNY Negative Energy Size: 0
Sat 8/29 1:33:37.285 [SageTV@e020c9] CARNY Traitors:[]
Sat 8/29 1:33:37.288 [Carny@71dc3d] Carny waiting for awhile...
Sat 8/29 1:33:37.298 [Scheduler@16d2633] Scheduler.updateSchedule() called time=Sat 8/29 1:33:37.297 manual=[] schedules={} scheduleRandSize=0
Sat 8/29 1:33:37.299 [FSManager@14520eb] FSManager is running...
Sat 8/29 1:33:37.300 [Seeker@acb158] Verifying existence of all TV media files in database fixDurs=true avoidArchive=false
Sat 8/29 1:33:37.610 [Seeker@acb158] Checking video directories for new files
Sat 8/29 1:33:37.611 [Seeker@acb158] Diskspace checking is running
Sat 8/29 1:33:37.612 [Seeker@acb158] Verifying existence of all TV media files in database fixDurs=false avoidArchive=true
Sat 8/29 1:33:37.612 [Seeker@acb158] Enforcing keep at most limits for the files...
Sat 8/29 1:33:37.612 [Seeker@acb158] Seeker clearing unwanted and partial files...
Sat 8/29 1:33:37.613 [Seeker@acb158] Seeker waiting for 153722846422119 mins.
Sat 8/29 1:33:37.613 [LibraryImporter@186dda3] Checking video directories for new files
Sat 8/29 1:33:37.617 [Seeker@acb158] Seeker awoken
Sat 8/29 1:33:37.617 [Seeker@acb158] MemStats: Used=6MB Total=11MB Max=258MB
Sat 8/29 1:33:37.617 [Seeker@acb158] Seeker waiting for -20858793 mins.
Sat 8/29 1:33:37.621 [Seeker@acb158] Seeker awoken
Sat 8/29 1:33:37.621 [Seeker@acb158] MemStats: Used=6MB Total=11MB Max=258MB
Sat 8/29 1:33:37.621 [Seeker@acb158] Checking video directories for new files
Sat 8/29 1:33:37.621 [Seeker@acb158] Diskspace checking is running
Sat 8/29 1:33:37.622 [Seeker@acb158] Verifying existence of all TV media files in database fixDurs=false avoidArchive=true
Sat 8/29 1:33:37.622 [Seeker@acb158] Enforcing keep at most limits for the files...
Sat 8/29 1:33:37.622 [Seeker@acb158] Seeker clearing unwanted and partial files...
Sat 8/29 1:33:37.622 [Seeker@acb158] Seeker waiting for 153722846422119 mins.
Sat 8/29 1:33:37.647 [EPG@1f44ec7] Wizard removing 0 old airings of 0 total...
Sat 8/29 1:33:37.647 [EPG@1f44ec7] Wizard locating time holes in airing table...
Sat 8/29 1:33:37.700 [EPG@1f44ec7] Wizard plugging the 0 time holes in the airing table...
Sat 8/29 1:33:37.753 [EPG@1f44ec7] Wizard fixing duration for 0 noshow airings...
Sat 8/29 1:33:37.809 [SageTVServer@1a4c5b4] SageTVServer was instantiated.
Sat 8/29 1:33:37.812 [SageTVDiscoveryServer@120540c] SageTVDiscoveryServer was instantiated.
Sat 8/29 1:33:37.812 [SageTV@e020c9] Trying to find lan network interface
Sat 8/29 1:33:37.813 [SageTVMiniDiscoveryServer@a7c45e] SageTVMiniDiscoveryServer was instantiated.
Sat 8/29 1:33:37.813 [SageTV@e020c9] Couldn't start MiniServer, no valid server address
Sat 8/29 1:33:37.813 [SageTV@e020c9] java.net.SocketException: Cannot assign requested address
Sat 8/29 1:33:37.818 [SageTV@e020c9] Loading locator keys from filesystem since they already exist.
Sat 8/29 1:33:37.823 [PSNATMGR@1b22920] Starting UPnP NAT Manager...
Sat 8/29 1:33:37.921 [HotplugStorage@fa39d7] StorageDeviceDetector started...
Sat 8/29 1:33:37.921 [EPG@1f44ec7] Wizard removing 0 expired Channels of 0 total...
Sat 8/29 1:33:38.027 [EPG@1f44ec7] Wizard removing 0 expired Shows of 1 total...
Sat 8/29 1:33:38.125 [LibraryImporter@186dda3] Seeker is starting the library import scan...
Sat 8/29 1:33:38.125 [LibraryImporter@186dda3] Starting to scan lib import root: /var/media/videos
Sat 8/29 1:33:38.148 [LibraryImporter@186dda3] Starting to scan lib import root: /var/media/pictures
Sat 8/29 1:33:38.170 [LibraryImporter@186dda3] Starting to scan lib import root: /var/media/music
Sat 8/29 1:33:38.192 [LibraryImporter@186dda3] Seeker has finished the library import scan.
Sat 8/29 1:33:38.345 [EPG@1f44ec7] Retaining 1 total title & people & category & bonus ids.
Sat 8/29 1:33:38.345 [EPG@1f44ec7] Clearing out 0 titles of 1 total.
Sat 8/29 1:33:38.398 [EPG@1f44ec7] Clearing out 0 prime titles of 0 total.
Sat 8/29 1:33:38.451 [EPG@1f44ec7] Clearing out 0 people of 1 total.
Sat 8/29 1:33:38.504 [EPG@1f44ec7] Clearing out 0 categories of 0 total.
Sat 8/29 1:33:38.557 [EPG@1f44ec7] Clearing out 0 subcategories of 0 total.
Sat 8/29 1:33:38.610 [EPG@1f44ec7] Clearing out 0 bonuses of 0 total.
Sat 8/29 1:33:38.664 [EPG@1f44ec7] Wizard is fixing the media mask on the Show objects...
Sat 8/29 1:33:38.717 [EPG@1f44ec7] Wizard is fixing the media mask on the Titles...
Sat 8/29 1:33:38.770 [EPG@1f44ec7] Wizard is fixing the media mask on the Years...
Sat 8/29 1:33:38.823 [EPG@1f44ec7] Wizard is fixing the media mask on the Peoples...
Sat 8/29 1:33:38.876 [EPG@1f44ec7] Wizard is fixing the media mask on the Categories...
Sat 8/29 1:33:38.929 [EPG@1f44ec7] Wizard is fixing the media mask on the SubCategories...
Sat 8/29 1:33:38.982 [EPG@1f44ec7] Wizard is fixing the media mask on the Rated...
Sat 8/29 1:33:39.035 [EPG@1f44ec7] Wizard is fixing the media mask on the PR...
Sat 8/29 1:33:39.088 [EPG@1f44ec7] Wizard is fixing the media mask on the ERs...
Sat 8/29 1:33:39.141 [EPG@1f44ec7] Wizard is fixing the media mask on the Bonus...
Sat 8/29 1:33:39.247 [EPG@1f44ec7] Wizard backing up database file...
Sat 8/29 1:33:39.248 [EPG@1f44ec7] Wizard compressing new file...
Sat 8/29 1:33:39.266 [EPG@1f44ec7] Wizard writing out table info for Year
Sat 8/29 1:33:39.284 [EPG@1f44ec7] Wizard writing out table info for Network
Sat 8/29 1:33:39.301 [EPG@1f44ec7] Wizard writing out table info for Title
Sat 8/29 1:33:39.335 [EPG@1f44ec7] Wizard writing out table info for Channel
Sat 8/29 1:33:39.352 [EPG@1f44ec7] Wizard writing out table info for People
Sat 8/29 1:33:39.386 [EPG@1f44ec7] Wizard writing out table info for SubCategory
Sat 8/29 1:33:39.403 [EPG@1f44ec7] Wizard writing out table info for Rated
Sat 8/29 1:33:39.420 [EPG@1f44ec7] Wizard writing out table info for ParentalRating
Sat 8/29 1:33:39.437 [EPG@1f44ec7] Wizard writing out table info for ExtendedRating
Sat 8/29 1:33:39.464 [EPG@1f44ec7] Wizard writing out table info for Category
Sat 8/29 1:33:39.484 [EPG@1f44ec7] Wizard writing out table info for PrimeTitle
Sat 8/29 1:33:39.501 [EPG@1f44ec7] Wizard writing out table info for Bonus
Sat 8/29 1:33:39.518 [EPG@1f44ec7] Wizard writing out table info for Show
Sat 8/29 1:33:39.553 [EPG@1f44ec7] Wizard writing out table info for Airing
Sat 8/29 1:33:39.570 [EPG@1f44ec7] Wizard writing out table info for ManualRecord
Sat 8/29 1:33:39.587 [EPG@1f44ec7] Wizard writing out table info for MediaFile
Sat 8/29 1:33:39.621 [EPG@1f44ec7] Wizard writing out table info for Watched
Sat 8/29 1:33:39.638 [EPG@1f44ec7] Wizard writing out table info for Agent
Sat 8/29 1:33:39.658 [EPG@1f44ec7] Wizard writing out table info for Wasted
Sat 8/29 1:33:39.677 [EPG@1f44ec7] Wizard writing out table info for Playlist
Sat 8/29 1:33:39.694 [EPG@1f44ec7] Wizard writing out table info for TVEditorial
Sat 8/29 1:33:39.711 [EPG@1f44ec7] Wizard writing out table info for SeriesInfo
Sat 8/29 1:33:39.736 [EPG@1f44ec7] Wizard DONE saving database info.
Sat 8/29 1:33:39.736 [Carny@71dc3d] Carny got a Std job of null
Sat 8/29 1:33:39.737 [EPG@1f44ec7] EPG needs an update in 1440 minutes
Sat 8/29 1:33:39.737 [EPG@1f44ec7] EPG's works is done. Waiting...
Sat 8/29 1:33:39.737 [Carny@71dc3d] CARNY Processing 0 Agents & 0 Airs
Sat 8/29 1:33:39.737 [Carny@71dc3d] CARNY Negative Energy Size: 0
Sat 8/29 1:33:39.737 [Carny@71dc3d] CARNY Traitors:[]
Sat 8/29 1:33:39.738 [Carny@71dc3d] Carny waiting for awhile...
Sat 8/29 1:33:39.738 [Scheduler@16d2633] Scheduler awoken
Sat 8/29 1:33:39.738 [Scheduler@16d2633] Scheduler.updateSchedule() called time=Sat 8/29 1:33:39.738 manual=[] schedules={} scheduleRandSize=0
Sat 8/29 1:33:39.738 [Seeker@acb158] Seeker awoken
Sat 8/29 1:33:39.738 [Seeker@acb158] MemStats: Used=3MB Total=11MB Max=258MB
Sat 8/29 1:33:39.739 [Seeker@acb158] Saving properties file to Sage.properties
Sat 8/29 1:33:39.749 [Seeker@acb158] Checking video directories for new files
Sat 8/29 1:33:39.749 [Seeker@acb158] Diskspace checking is running
Sat 8/29 1:33:39.750 [Seeker@acb158] Verifying existence of all TV media files in database fixDurs=false avoidArchive=true
Sat 8/29 1:33:39.750 [Seeker@acb158] Enforcing keep at most limits for the files...
Sat 8/29 1:33:39.750 [Seeker@acb158] Seeker clearing unwanted and partial files...
Sat 8/29 1:33:39.750 [Seeker@acb158] Seeker waiting for 153722846422119 mins.
Sat 8/29 1:33:42.381 [Ministry@1f1680f] Ministry is starting
Sat 8/29 1:33:42.382 [Ministry@1f1680f] Ministry is waiting for 180 sec
Sat 8/29 1:36:03.063 [SageTVMiniDiscoveryServer@a7c45e] Server got broadcast packet: java.net.DatagramPacket@c8769b
Sat 8/29 1:36:03.079 [SageTVMiniDiscoveryServer@a7c45e] Server sent back mini discovery data:java.net.DatagramPacket@c8769b to /192.168.128.37 42367
Sat 8/29 1:36:46.050 [Ministry@1f1680f] Ministry is waiting for 180 sec
Sat 8/29 1:37:56.247 [SageTVMiniDiscoveryServer@a7c45e] Server got broadcast packet: java.net.DatagramPacket@c792d4
Sat 8/29 1:37:56.263 [SageTVMiniDiscoveryServer@a7c45e] Server sent back mini discovery data:java.net.DatagramPacket@c792d4 to /192.168.128.37 35757
Sat 8/29 1:38:45.863 [Seeker@acb158] Seeker awoken
Sat 8/29 1:38:45.863 [Seeker@acb158] MemStats: Used=4MB Total=11MB Max=258MB
Sat 8/29 1:38:45.864 [Seeker@acb158] Checking video directories for new files
Sat 8/29 1:38:45.864 [Seeker@acb158] Diskspace checking is running
Sat 8/29 1:38:45.864 [Seeker@acb158] Verifying existence of all TV media files in database fixDurs=false avoidArchive=true
Sat 8/29 1:38:45.864 [Seeker@acb158] Enforcing keep at most limits for the files...
Sat 8/29 1:38:45.865 [Seeker@acb158] Seeker clearing unwanted and partial files...
Sat 8/29 1:38:45.865 [Seeker@acb158] Seeker waiting for 153722846422114 mins.
Sat 8/29 1:39:49.581 [SageTVMiniDiscoveryServer@a7c45e] Server got broadcast packet: java.net.DatagramPacket@867fc9
Sat 8/29 1:39:49.597 [SageTVMiniDiscoveryServer@a7c45e] Server sent back mini discovery data:java.net.DatagramPacket@867fc9 to /192.168.128.37 45920
Sat 8/29 1:39:49.718 [Ministry@1f1680f] Ministry is waiting for 180 sec
Sat 8/29 1:40:53.340 [SageTV Shutdown@e3c624] SageTV SHUTDOWN is activating!
Sat 8/29 1:40:53.341 [SageTV Shutdown@e3c624] Sage.exit() called.
Sat 8/29 1:40:53.341 [SageTV Shutdown@e3c624] Cleaning up servers
Sat 8/29 1:40:53.344 [SageTVMiniDiscoveryServer@a7c45e] Error w/SageTV client connection:java.net.SocketException: Socket closed
Sat 8/29 1:40:53.345 [SageTV Shutdown@e3c624] Cleaning up PM
Sat 8/29 1:40:53.345 [SageTV Shutdown@e3c624] Killed Carny.
Sat 8/29 1:40:53.345 [SageTV Shutdown@e3c624] Killed Scheduler.
Sat 8/29 1:40:53.346 [SageTV Shutdown@e3c624] Error calling finishWatch from VF goodbye:java.lang.NullPointerException
Sat 8/29 1:40:53.346 [Ministry@1f1680f] Ministry is shutting down....destroying the converts in progress
Sat 8/29 1:40:53.347 [SageTV Shutdown@e3c624] FSManager goodbye()
Sat 8/29 1:40:53.347 [SageTV Shutdown@e3c624] Killed Seeker.
Sat 8/29 1:40:53.347 [SageTV Shutdown@e3c624] Killed EPG.
Sat 8/29 1:40:53.347 [EPG@1f44ec7] Saving properties file to Sage.properties
Sat 8/29 1:40:53.348 [SageTV Shutdown@e3c624] Freeing HDHomeRun capture device (HDHomeRun 1013c141 Tuner 0)
Sat 8/29 1:40:53.384 [SageTV Shutdown@e3c624] stopEncoding for HDHomeRun 1013c141 Tuner 0
Sat 8/29 1:40:53.384 [SageTV Shutdown@e3c624] HDHR_destroyEncoder0((nil))
Sat 8/29 1:40:53.384 [SageTV Shutdown@e3c624] Freeing HDHomeRun capture device (HDHomeRun 1013c141 Tuner 1)
Sat 8/29 1:40:53.385 [SageTV Shutdown@e3c624] stopEncoding for HDHomeRun 1013c141 Tuner 1
Sat 8/29 1:40:53.385 [SageTV Shutdown@e3c624] HDHR_destroyEncoder0((nil))
Sat 8/29 1:40:53.385 [SageTV Shutdown@e3c624] Freeing HDHomeRun capture device (HDHomeRun 1013e569 Tuner 1)
Sat 8/29 1:40:53.385 [SageTV Shutdown@e3c624] stopEncoding for HDHomeRun 1013e569 Tuner 1
Sat 8/29 1:40:53.385 [SageTV Shutdown@e3c624] HDHR_destroyEncoder0((nil))
Sat 8/29 1:40:53.385 [SageTV Shutdown@e3c624] Freeing HDHomeRun capture device (HDHomeRun 1013e569 Tuner 0)
Sat 8/29 1:40:53.386 [SageTV Shutdown@e3c624] stopEncoding for HDHomeRun 1013e569 Tuner 0
Sat 8/29 1:40:53.386 [SageTV Shutdown@e3c624] HDHR_destroyEncoder0((nil))
Sat 8/29 1:40:53.386 [SageTV Shutdown@e3c624] Killed MMC.
Sat 8/29 1:40:53.386 [SageTV Shutdown@e3c624] Killing UIMgr UIManager:localhost@@SAGETV_PROCESS_LOCAL_UI-961dff
Sat 8/29 1:40:53.386 [SageTV Shutdown@e3c624] Error calling finishWatch from VF goodbye:java.lang.NullPointerException
Sat 8/29 1:40:53.387 [SageTV Shutdown@e3c624] Killed VideoFrame
Sat 8/29 1:40:53.387 [SageTV Shutdown@e3c624] Disposed Window
Sat 8/29 1:40:53.387 [SageTV Shutdown@e3c624] Killed UIManager.
Sat 8/29 1:40:53.387 [SageTV Shutdown@e3c624] Killed Wizard.
Sat 8/29 1:40:53.387 [SageTV Shutdown@e3c624] Saving properties file to Sage.properties
Sat 8/29 1:40:53.402 [SageTV Shutdown@e3c624] Bye-bye.
Reply With Quote
  #8  
Old 08-29-2009, 09:37 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Can you try this: http://forums.freebsd.org/showpost.p...50&postcount=3

?

Setup your LAN interface as eth0.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #9  
Old 08-29-2009, 09:17 PM
madtrader madtrader is offline
Sage User
 
Join Date: Aug 2009
Location: Memphis, TN
Posts: 27
That may have done it. I've never seen that done before. I looked up what ifconfig syntax that maps back to and it's new to me. Great find. Thanks so much.

So, I applied that change to get msk0 renamed as eth0 and rebooted. After it was back up I started SageTV and connected with my HD-200. It brought up a configuration wizard. I went through the basic stuff without configuring my HDHomeRun tuners (I'm still using them with my BeyondTV server and don't want to screw up the scheduled recordings yet). So far so good. I tried watching some of the Online Services videos and that worked flawlessly -- much better than in standalone mode on the HD-200. Oh, and I should mention I'm using the latest beta firmware on the HD-200 with that Encore wireless adapter. HD video playback was perfect. I'm transferring one of my Beyond TV ClearQAM .TP files over now to test. It'll probably be a few weeks before I get the tuners switched over. I'm planning on dropping cable and just using OTA and I'll time the cutoff with the switch. We'll see how it goes as I did see some stack traces in sagetv_0.txt. I don't know if that's normal. I work with some big Java apps at work and we have some big expensive frameworks that frequently drop stack traces and it's considered normal. I've never thought that was right, but things run. It may be the same here. We'll see.

If all goes well I'll have to do a writeup in case anyone else is looking to run SageTV with a native ZFS. It makes me curious about trying this in Solaris too. I've been looking at options and you can run a BrandZ Linux zone that supports a RedHat Linux Enterprise 3 (or CentOS 3) userland. You can then back the whole system with ZFS.
Reply With Quote
  #10  
Old 08-30-2009, 03:58 PM
madtrader madtrader is offline
Sage User
 
Join Date: Aug 2009
Location: Memphis, TN
Posts: 27
A little follow-up. Last night I was watching some recorded shows. I'd transferred 3 BeyondTV .TP files over to the /var/media/videos/ directory. I watched one one hour show. It was almost perfect -- there were a couple of hesitations, but I chalk that up to the wireless. Then I started a two hour show. I got about five or six minutes into it and suddenly it just stopped. That was it, nothing would make it play again. I believe the HD-200 restarted itself, but it could have been my button mashing. I restarted the HD-200 several times and it wouldn't work. I couldn't tell if it did reconnect and just got a black screen, or if it was hanging trying to connect to the server. I tried restarting SageTV a few times and even tried rebooting the server. Nothing in sagetv_0.txt seemed relevant, although there were a few stack traces. I believe that the hang was almost exactly at 00:00, so I'm not sure if that was coincidence or some scheduled task. After an hour or so I gave up. Today, without a restart of SageTV I might add (I had the HD-200 off all these hours, though), I started up the HD-200. The server showed up in the SageTV servers list and I was able to connect. It put me into the tuner setup part of the Configuration Wizard. I exited out of that and started watching shows again. I've gone through a 30 minute show and I'm trying that same two hour show again. I'm certainly past the point where it died last night. We'll see how well it goes.
Reply With Quote
  #11  
Old 09-10-2009, 11:46 AM
drewg drewg is offline
Sage Icon
 
Join Date: Aug 2007
Location: Richmond, VA
Posts: 1,042
Quote:
Originally Posted by madtrader View Post
I'm certainly past the point where it died last night. We'll see how well it goes.
So, how did it go?

Drew
Reply With Quote
  #12  
Old 09-10-2009, 11:45 PM
madtrader madtrader is offline
Sage User
 
Join Date: Aug 2009
Location: Memphis, TN
Posts: 27
So far, it's been pretty good. FreeBSD 8.0-BETA4 was released over the weekend and after updating I couldn't connect to the server (at all). Something changed in the network startup such that the interface rename to eth0 worked, but DHCP didn't kick off afterward. Simple fix -- I configured a static IP. I've migrated and imported about 700GB of content. Most of that is DVD rips. It's very cool to have all that handy. For now, they're simple straight rips, so I've got menus and all. I may do MPEG-4 or H.264 conversion at some point, but I'm not hurting for space. I followed Brent's (Geektonic) guide for pulling over shows from BeyondTV and pulled across several series so far. It's worked pretty well so far. In fact, doing the XML file import is quite smooth. When I try to manually edit show info I get errors (seems to be related to setting of dates). I don't know if that's a Sage problem or something with Nielms' web server. I have had the extender lock up on me a couple of times. I have no idea why, but both times were when I was skipping forward.

I still haven't setup for recording. It turns out I've got UHF, high-band VHF, and low-band VHF channels here and I haven't picked out which antenna/combiners/preamps to put up. All I know is that the cheapie UHF/VHF combo antenna I have doesn't pickup ANY stations, even on the second floor of the house.

I am using it for ALL my TV watching. I pull over recordings to the server from my BeyondTV box and watch everything via the HD-200 in extender mode. After all these years of using BeyondTV I have had a hard time with a different UI and new remote to learn (constantly hitting the wrong buttons in the dark), but I'm getting there. At this point I doubt I'll go back to BeyondTV. I'm really looking forward to trying out SageMC and several of the other frontends, but I'm waiting to get the tuners setup first.
Reply With Quote
  #13  
Old 09-11-2009, 06:18 AM
drewg drewg is offline
Sage Icon
 
Join Date: Aug 2007
Location: Richmond, VA
Posts: 1,042
Quote:
Originally Posted by madtrader View Post
So far, it's been pretty good. FreeBSD
Awesome. It always makes me happy to hear of somebody using FreeBSD. I've been a FreeBSD committer for 10 years now. I did a lot of the FreeBSD/alpha port, and worked on compat code to run DEC OSF/1 and Linux alpha binaries on FreeBSD/alpha. Since alpha is dead, I'm much less involved, and just maintain a 10GbE ethernet driver for my employer.

I'm actually running (ick) Ubuntu on my combined desktop / home server now, mainly because I recycled 3 ATSC PCI cards that FreeBSD doesn't have support for, and when I built the machine, there was no usable FreeBSD virtualization solution (occasionally need Windows in a VM). Now that there's VirtualBox support, the next time I build a machine, I'll spring for an HDHR and run FreeBSD.

Drew
Reply With Quote
  #14  
Old 09-13-2009, 11:58 PM
madtrader madtrader is offline
Sage User
 
Join Date: Aug 2009
Location: Memphis, TN
Posts: 27
Cool to see someone with a commit bit somewhere other than FreeBSD related sites.

I've been using FreeBSD since 1997 and use it where I can, although I go back and forth with FreeBSD and OpenBSD. I'm not anti-Linux (I have been in years past), but I've been quite impressed with things since the 2.6 series kernels. I've dealt with a lot of Linux for work in various capacities and what's been done is impressive. For this project, I felt FreeBSD would be a better fit of my goals -- if it works. So far it does. I'm just glad the 2.4 series Linuxulator works as well as it does. I've used it several times in the past for running Mathematica, Maple, and other such packages. The only real problem here seems to be that in the effort to get the Linux ports base packages more up-to-date, the old linux_base-fc4 set has become somewhat broken. I had to manually setup some symlinks to get all the packages I needed working. At least that seems to have worked. I did look at the Virtualbox port, but the wikis at that time indicated it wasn't going to be usable for this project. I've seen the commits this week saying that Virtualbox is much further along. I've got to play with it and see.

I've had to send some money off for family which has decreased my toy budget for a while (no new antenna, combiners, amplifiers, cabling), so I went ahead and setup one HDHR with SageTV. It works. I can watch TV while recording a show, etc. This has let me see the TV side of SageTV. So far, BeyondTV is a better TV software. It's not all features per-say, but really about polish (and I don't mean eye-candy). I wonder if interface plug-ins fill the void. I'm sure a big part is just what I'm used to. I'm sticking with it, though. I may go ahead and configure the other HDHR so I can shutdown my BeyondTV server and reclaim its 1TB drive.
Reply With Quote
  #15  
Old 10-27-2010, 12:46 AM
madtrader madtrader is offline
Sage User
 
Join Date: Aug 2009
Location: Memphis, TN
Posts: 27
It's been over a year since I first started this thread. I wanted to come back with an update.

I updated to FreeBSD 8.0-RELEASE when it was released. I bit the bullet and configured my HDHRs all over on the SageTV server (3 HDHR, total of 6 tuners). I get all content OTA via 2 antenna's in my attic (UHF and VHF run to a combiner box), which run out to an amplified 8 way splitter. A few months later I purchased a 65" plasma and so I bought another pair of HD200s (for a total of 3; one with my original 50" plasma, one to go with the new TV, and one more to eventually go into my home gym). I had attempted to use wireless with the HD200 to the new TV, but HD was too stuttery and I had to run some ethernet cable. The TV came with a Blu-Ray player, and I soon became attached to HD only content, so I bought a BD-R drive and started migrating full movies to my SageTV server. It wasn't long before I discovered that streaming Blu-Rays to the HD200 while recording 4 HD streams from the HDHR lead to some stuttering again. I diagnosed excessively high interrupt levels on my NIC, so I broke out my network such that the HDHRs are on a network, and my HD200s are on another. I made the mistake of reworking which NIC got renamed eth0 and that led to a corrupted wiz.bin. Oops. This made playback smooth again, though. Naturally, I started to run into space issues and via a few steps and some prematurely dead drives (and a cheap RAID controller I didn't use for RAID) I wound up with 6 2TB Hitachi drives in my ZFS pool (built as a RAIDZ of 3 mirrored pairs). I never lost any data. I've hit a new bottleneck -- recording 5 or 6 HD streams (it varies) while attempting to watch an OTA HD recording stutters. In looking at the I/O stats for the drives (via gstat, in case anyone wanted to know), it appears I need to do some ZFS tuning. I get the bursty write action. We'll see when/if I get around to that as it's not a common use case. I'm starting to run low on disk space again, too.

Last edited by madtrader; 10-27-2010 at 04:27 PM. Reason: VHR -> VHF to fix a typo
Reply With Quote
  #16  
Old 10-27-2010, 07:12 AM
drewg drewg is offline
Sage Icon
 
Join Date: Aug 2007
Location: Richmond, VA
Posts: 1,042
Quote:
Originally Posted by madtrader View Post
I never lost any data. I've hit a new bottleneck -- recording 5 or 6 HD streams (it varies) while attempting to watch an OTA HD recording stutters. In looking at the I/O stats for the drives (via gstat, in case anyone wanted to know), it appears I need to do some ZFS tuning. I get the bursty write action. We'll see when/if I get around to that as it's not a common use case. I'm starting to run low on disk space again, too.
I'm so jealous. I'd be running a setup like this if my HDHR worked for OTA for me. Unfortunately, the HDHR tuner just can't do a decent job for OTA for me, so I'm stuck using linux in order to get access to decent tuners.

Do the recordings that you're making stutter when played back later? Or is the stuttering in the playback of the previously recorded show & the same file played back later will play fine if no recordings are going on?

If you run 'netstat -spudp' in this scenario, do you see 'dropped due to full socket buffers' increasing?

I assume you've turned off checksums for your recording volumes. Have you considered using an SSD? Either as an L2ARC, or for a separate ZIL device? Have you tried editing the startsage script to enable Java thread prioritization (-XX:ThreadPriorityPolicy=42) and to increase your heap size (-Xmx768m).

How are you ripping BDs in FreeBSD? Does the linux version of makemkv work? Or are you ripping them on a different machine, or in a VM?

Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core
Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64
Tuner HW: HDHR
Client: Nvidia Shield (HD300, HD100 in storage)

Last edited by drewg; 10-27-2010 at 07:20 AM.
Reply With Quote
  #17  
Old 10-27-2010, 05:45 PM
madtrader madtrader is offline
Sage User
 
Join Date: Aug 2009
Location: Memphis, TN
Posts: 27
Quote:
Originally Posted by drewg View Post
I'm so jealous. I'd be running a setup like this if my HDHR worked for OTA for me. Unfortunately, the HDHR tuner just can't do a decent job for OTA for me, so I'm stuck using linux in order to get access to decent tuners.
I'm curious what your issue is with the HDHR. I too had horrible OTA reception, but I fixed that with the 2 huge antennae in the attic. I would only need one, but I think the local FOX station is VHF (it's been a while I might have that backward). I spent a couple evenings crawling around the attic getting things installed and adjusted. The VHF antenna is something like 10 feet across. Oh, and I've had 2 HDHR die on me, so I'm on my fifth.

Quote:
Originally Posted by drewg View Post
Do the recordings that you're making stutter when played back later? Or is the stuttering in the playback of the previously recorded show & the same file played back later will play fine if no recordings are going on?
The stutter is in the file being played back. The same file would play back fine if I wait for a point when fewer shows are recording simultaneously. In the files that result from the recordings during that time, they never seem to have any problem either. Before I moved the tuners onto their own network, I did get some streams that would lose some data and there being little glitches in the playback, but I might get those occasionally anyway due to things being OTA (although it's never bad enough to make me want to do anything about it).

Quote:
Originally Posted by drewg View Post
If you run 'netstat -spudp' in this scenario, do you see 'dropped due to full socket buffers' increasing?
I haven't looked too hard at it. Recording 5 or 6 shows simultaneously while playing back another is pretty rare for me. I only have something like 9 channels I would ever record something on anyway. I believe I just need some ZFS tuning as the data being written to disk is very very bursty. I'll have some 20 seconds of 0 writes then my disks get saturated at 100% busy for 10 seconds and the disk queues approach and hit 35. Then it goes quiet again. All the while the playback reads are almost nothing (but they are visible). I have some tuning changes I think will help setup in my /boot/loader.conf, but I haven't rebooted in quite some time. The WAF goes way down when I'm tinkering.

Quote:
Originally Posted by drewg View Post
I assume you've turned off checksums for your recording volumes. Have you considered using an SSD? Either as an L2ARC, or for a separate ZIL device? Have you tried editing the startsage script to enable Java thread prioritization (-XX:ThreadPriorityPolicy=42) and to increase your heap size (-Xmx768m).
I've increased the heap. I think I've got it set at 512m right now. I've not done any other JVM tuning. Checksums are still on and set as fletcher4. I want checksums. My show catalog has gotten large enough to consider it important. Side note -- a full scrub runs just under 6 hours right now with 4.21TB of the pool in use.

I am considering SSDs. I'm actually very curious if ZIL/slog and/or L2ARC devices will help much with this workload. Certainly ZIL/slog will, but I refuse to use one right now for a few reasons:
  • if the ZIL/slog device dies, I lose the volume (need ZFS v18+)
  • if I have powerloss without a super-capacitor backed SSD, I could lose the volume (ZFS v18+ fixes that for the same reason. I'm actually on a big UPS, but while I was on vacation we apparently had a long enough power outage that all my systems went down and rebooted, so I know it's possible. I've also had power supplies die on me.)
  • ZIL/slog devices need to have very high write speeds and it's best if they are SLC based SSDs (for longer wear life), but they are ridiculously expensive. The versions with super-capacitors are even more so. I'm going to wait a few generations. FreeBSD 9 w/ ZFS v28 will probably happen first.

For L2ARC, I'd love to try and see if it helps, but I suspect it won't help with this workload. During playback I'd only be reading a file once, assuming I don't rewind or something. So the data would get migrated into the L2ARC, but never be used again. Or does an entire file get moved into the L2ARC upon access? If so, then how are large files dealt with, say a 3 hour movie that may be larger than a smaller SSD? I don't know if I want to spend the money to find out it doesn't. Also, I know I can't remove a ZIL/slog device (with this ZFS version), but can you remove a L2ARC device? I know the pool will continue to function, but I wonder if the device can be removed from the configuration.

Quote:
Originally Posted by drewg View Post
How are you ripping BDs in FreeBSD? Does the linux version of makemkv work? Or are you ripping them on a different machine, or in a VM?
I'm using AnyDVD HD in Windows XP in VMWare Fusion on a MacBook with a USB Blu-Ray drive. I'm not re-encoding them or putting them in a container like an MKV. I'm using a straight BD file tree as Sage supports and so they get mixed in just like straight DVD rips. I do have VirtualBox setup on another FreeBSD box I use as a desktop and server for work, but it's been a little too quirky and I'm not totally confident in it's stability to use here. Again, commercial software was the easy out. I had it anyway, and bought it before VirtualBox on FreeBSD worked.

Maybe something open source can do it now, I don't know. When I did my research originally, AnyDVD HD seemed like the easy way out. Didn't I read that the Blu-Ray master keys were compromised now? Surely that will lead to some free tools.
Reply With Quote
  #18  
Old 10-27-2010, 06:55 PM
bagseed bagseed is offline
Sage User
 
Join Date: Aug 2009
Posts: 7
Very nice, I love freebsd to ..especially since they implemented ZFS. I still plan on using probably ubuntu / gentoo for the sagetv server just to keep things simple but was planning on using ISCSI mounted to a zfs target for my storage. I am thinking of running the sagetv server on ubuntu under my vmware cluster and then run either nexenta, freenas or just a freebsd server with ZFS as the data-store ...in the vmware cluster as well. Put it all together with a few HDHR's and some extenders. Have you ever used nexenta? It looks pretty robust as does freenas these days with it's zfs support. Freenas, which is based on freebsd, is implementing zfs v28 soon I believe. Thanks for sharing your experiences as it's very encouraging.
Reply With Quote
  #19  
Old 10-27-2010, 09:01 PM
madtrader madtrader is offline
Sage User
 
Join Date: Aug 2009
Location: Memphis, TN
Posts: 27
Quote:
Originally Posted by drewg View Post
Does the linux version of makemkv work?
This made me look into makemkv. Very interesting. I might have to give it a try, even. I use clownbd (and tools it relies on) to get HD200 compatible AC3 audio, though, so I have to use Windows eventually. Something makes me think you've already figured out around this as well.
Reply With Quote
  #20  
Old 10-27-2010, 09:54 PM
madtrader madtrader is offline
Sage User
 
Join Date: Aug 2009
Location: Memphis, TN
Posts: 27
Quote:
Originally Posted by bagseed View Post
I still plan on using probably ubuntu / gentoo for the sagetv server just to keep things simple ...
FreeBSD isn't really more complex. If you plan on running 64-bit Linux with the 32-bit JRE, it's probably about the same setup work.

Quote:
Originally Posted by bagseed View Post
... was planning on using ISCSI mounted to a zfs target for my storage.
I thought about this myself, but you lose some of the benefits of being on ZFS in the first place such as easy expansion of the pool and instant and consistent snapshots (with iSCSI you need to make sure the filesystem using the block device is clean (sync/unmount/whatever)). Maybe you aren't interested in or need those features though.

Quote:
Originally Posted by bagseed View Post
Have you ever used nexenta?
Nope, but not for the lack of trying. In the past I'd had trouble getting the installer. Sad excuse, I know. You have to watch for hardware support, though. Linux > FreeBSD > OpenSolaris in that regard. ZFS is more stable and feature full there if you have the hardware support, though.

Quote:
Originally Posted by bagseed View Post
Freenas, which is based on freebsd, is implementing zfs v28 soon I believe.
Can you share where have you seen that? Is it that FreeNAS is moving to a FreeBSD 9.0-current base (which recently got v28), or is there some patch set back porting the work? I'd like to follow the development, but after some quick googling I don't find it.

In case anyone interested in ZFS hasn't seen this (it's gotten some decent coverage from a number of places recently) http://www.zfsbuild.com/ has some good coverage.
Reply With Quote
Reply

Tags
64-bit, freebsd, hdhomerun, zfs


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
Attempting to move version 4 or 5 client to a new system. MasterE SageTV Software 2 10-26-2007 09:53 PM
SageTV render error when attempting to view channels RogerWilco SageTV Software 1 04-13-2005 11:39 PM
Attempting to play DVD hangs Sage 2 gameboy SageTV Beta Test Software 5 03-23-2004 05:39 PM
attempting to restore connection to Sage server? salsbst SageTV Beta Test Software 4 02-29-2004 06:18 PM
SageTV Crashes When Attempting to Play MP3 jason531 SageTV Software 7 09-24-2003 07:29 PM


All times are GMT -6. The time now is 11:53 AM.


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