SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Github Development
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-12-2015, 11:04 AM
BitBass BitBass is offline
Sage Advanced User
 
Join Date: Dec 2007
Posts: 84
Linux server questions

I've been using the Windows version all along, so I need to ask some questions about how SageTV behaves in linux. I'm familiar enough with getting around in linux.

First, how do you manage SageTV inside linux? For Windows I just open up the installed client on the desktop. Can't really do that in a headless linux server. Should I just point an extender at the server and run through the setup there? Is there a better way?

Any web tools, like BMT, that will work at the moment?
__________________

Win7 VM -4gb ram
Ubuntu 14.04 VM -4gb ram (attempting with OS v9)
3 extenders through the house
Plex integration
HDHR
Reply With Quote
  #2  
Old 09-12-2015, 12:01 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by BitBass View Post
I've been using the Windows version all along, so I need to ask some questions about how SageTV behaves in linux. I'm familiar enough with getting around in linux.

First, how do you manage SageTV inside linux? For Windows I just open up the installed client on the desktop. Can't really do that in a headless linux server. Should I just point an extender at the server and run through the setup there? Is there a better way?

Any web tools, like BMT, that will work at the moment?
All the plugins (unless they are windows specific) will just work the same on Linux, so BMT does work.

On linux the server is headless (no ui), so you can use the client placeshifter and connect that way.
Reply With Quote
  #3  
Old 09-12-2015, 12:35 PM
BitBass BitBass is offline
Sage Advanced User
 
Join Date: Dec 2007
Posts: 84
Ok, the Windows Placeshifter client (7.1.9) connects to my Windows SageTV server, but not to the linux one. Doesn't look like a firewall issue, as it's not on by default on Ubuntu 14.04. Also appears to be running in ps on the linux server, so I'm pretty sure it's started. Should the older Placeshifter be able to connect to the newer server?
__________________

Win7 VM -4gb ram
Ubuntu 14.04 VM -4gb ram (attempting with OS v9)
3 extenders through the house
Plex integration
HDHR
Reply With Quote
  #4  
Old 09-12-2015, 12:47 PM
wnjj wnjj is offline
Sage Icon
 
Join Date: Jan 2009
Posts: 1,514
Quote:
Originally Posted by BitBass View Post
Ok, the Windows Placeshifter client (7.1.9) connects to my Windows SageTV server, but not to the linux one. Doesn't look like a firewall issue, as it's not on by default on Ubuntu 14.04. Also appears to be running in ps on the linux server, so I'm pretty sure it's started. Should the older Placeshifter be able to connect to the newer server?
Looks to me like no based upon this in SageTVConnection.java:

Code:
if (clientMajVer > Sage.CLIENT_COMPATIBLE_MAJOR_VERSION ||
          (clientMajVer == Sage.CLIENT_COMPATIBLE_MAJOR_VERSION
and this in Sage.java

Code:
  public static final byte CLIENT_COMPATIBLE_MAJOR_VERSION = 9;
Try patching your client up to V9. You'll need the new Sage & Lucene jars.
Reply With Quote
  #5  
Old 09-12-2015, 02:26 PM
BitBass BitBass is offline
Sage Advanced User
 
Join Date: Dec 2007
Posts: 84
Ok, downloaded the VS2005 built zip file, replaced the placeshifter.exe and tried to connect. Still no go. Is there any other way to make sure the server is actually functioning?
__________________

Win7 VM -4gb ram
Ubuntu 14.04 VM -4gb ram (attempting with OS v9)
3 extenders through the house
Plex integration
HDHR
Reply With Quote
  #6  
Old 09-12-2015, 02:32 PM
BitBass BitBass is offline
Sage Advanced User
 
Join Date: Dec 2007
Posts: 84
Found the following in the /opt/sagetv/server/sagetv_0.txt file

Code:
thrown java.lang.ExceptionInInitializerError
Sat 9/12 16:30:35.660 [main@7a704cf3] java.lang.ExceptionInInitializerError
   at java.lang.Class.initializeClass(libgcj.so.14)
   at org.apache.lucene.index.IndexWriterConfig.<init>(IndexWriterConfig.java:151)
   at sage.Wizard$LuceneIndex.<init>(Wizard.java:9052)
   at sage.Wizard.getShowIndex(Wizard.java:9627)
   at sage.Wizard.saveDBFile(Wizard.java:7711)
   at sage.Wizard.startSeq(Wizard.java:2596)
   at sage.Wizard.init(Wizard.java:664)
   at sage.Wizard.prime(Wizard.java:467)
   at sage.SageTV.<init>(SageTV.java:404)
   at sage.Sage.startup(Sage.java:1173)
   at sage.Sage.main(Sage.java:955)
Caused by: java.lang.NullPointerException
   at java.lang.ref.Reference.<init>(libgcj.so.14)
   at java.lang.ref.WeakReference.<init>(libgcj.so.14)
   at org.apache.lucene.util.WeakIdentityMap$IdentityWeakReference.<init>(WeakIdentityMap.java:112)
   at org.apache.lucene.util.WeakIdentityMap.get(WeakIdentityMap.java:77)
   at org.apache.lucene.util.VirtualMethod.getImplementationDistance(VirtualMethod.java:95)
   at org.apache.lucene.util.VirtualMethod.compareImplementationDistance(VirtualMethod.java:146)
   at org.apache.lucene.search.Similarity.<init>(Similarity.java:538)
   at org.apache.lucene.search.DefaultSimilarity.<init>(DefaultSimilarity.java:23)
   at org.apache.lucene.search.Similarity.<clinit>(Similarity.java:544)
   at java.lang.Class.initializeClass(libgcj.so.14)
   ...10 more
Error with DB file:java.lang.ExceptionInInitializerError, attempting to restore backup.
Looks like something didn't get installed as part of the dpkg?
__________________

Win7 VM -4gb ram
Ubuntu 14.04 VM -4gb ram (attempting with OS v9)
3 extenders through the house
Plex integration
HDHR
Reply With Quote
  #7  
Old 09-12-2015, 02:56 PM
BitBass BitBass is offline
Sage Advanced User
 
Join Date: Dec 2007
Posts: 84
Ok, looks like I might have it working now. I downloaded the old 7.1 install over top and then reinstalled the 9.0 over the top of that. I'm now connected to it.

I might have more questions soon.
__________________

Win7 VM -4gb ram
Ubuntu 14.04 VM -4gb ram (attempting with OS v9)
3 extenders through the house
Plex integration
HDHR
Reply With Quote
  #8  
Old 09-12-2015, 03:26 PM
BitBass BitBass is offline
Sage Advanced User
 
Join Date: Dec 2007
Posts: 84
Recording directories. Do I need to map CIFS shares to a mount point and then add the mount point into SageTV as a recording directory? I'm guessing yes, so I'm going to start working in this direction. Just looking for some confirmation.
__________________

Win7 VM -4gb ram
Ubuntu 14.04 VM -4gb ram (attempting with OS v9)
3 extenders through the house
Plex integration
HDHR
Reply With Quote
  #9  
Old 09-12-2015, 03:38 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by BitBass View Post
Recording directories. Do I need to map CIFS shares to a mount point and then add the mount point into SageTV as a recording directory? I'm guessing yes, so I'm going to start working in this direction. Just looking for some confirmation.
If you are storing your shows all on the linux server, there's no reason to actually use CIFS at all. placeshifter, extenders, clients etc will be able to read the files directly via the sagetv connection, they do not need to access the files directly. There is only one reason I can think of to give clients direct access, and that is for Comskip (.edl) playback. currently would only work for sagetvclient if the client can access the recordings at the same path the sagetv server accesses them. I would REALLY like to get rid of this requirement, and have schemed a BIT on it, but haven't written a single line of code in that direction yet.
__________________
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
Reply With Quote
  #10  
Old 09-12-2015, 03:44 PM
BitBass BitBass is offline
Sage Advanced User
 
Join Date: Dec 2007
Posts: 84
I'm storing everything to an Unraid share. On the Windows server, I have the unraid share mapped, and it's always worked fine. I'm happy doing it that way, but it sounds like that isn't an option under linux for now. Right?

Also, I need to keep saying thanks for all the hard work everyone's doing on this. It's great to see the start of something.
__________________

Win7 VM -4gb ram
Ubuntu 14.04 VM -4gb ram (attempting with OS v9)
3 extenders through the house
Plex integration
HDHR
Reply With Quote
  #11  
Old 09-12-2015, 04:30 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by BitBass View Post
I'm storing everything to an Unraid share. On the Windows server, I have the unraid share mapped, and it's always worked fine. I'm happy doing it that way, but it sounds like that isn't an option under linux for now. Right?

Also, I need to keep saying thanks for all the hard work everyone's doing on this. It's great to see the start of something.
I'm not familiar enough with Linux to tell you what the best way to set it up is. If Linux can access your unraid shares without mounting, by simply storing it as \\UnRAID\Recordings\ then that would be the most universal way to go.
__________________
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
Reply With Quote
  #12  
Old 09-13-2015, 11:34 AM
jpwegas jpwegas is offline
Sage Expert
 
Join Date: May 2007
Posts: 502
Quote:
Originally Posted by BitBass View Post
I'm storing everything to an Unraid share. On the Windows server, I have the unraid share mapped, and it's always worked fine. I'm happy doing it that way, but it sounds like that isn't an option under linux for now. Right?
If you mount the unRaid CIFs share on the Linux server and point your recording directory setting to somewhere under the mount point you should be able to do this. I suppose saving recordings on a network share could have performance issues in some situations, but if you aren't seeing any performance issues when recording from your Windows box I wouldn't expect any with the same setup under Linux.

--John
Reply With Quote
  #13  
Old 09-14-2015, 12:36 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Quote:
Originally Posted by wnjj View Post
Looks to me like no based upon this in SageTVConnection.java:

Code:
if (clientMajVer > Sage.CLIENT_COMPATIBLE_MAJOR_VERSION ||
          (clientMajVer == Sage.CLIENT_COMPATIBLE_MAJOR_VERSION
and this in Sage.java

Code:
  public static final byte CLIENT_COMPATIBLE_MAJOR_VERSION = 9;
Try patching your client up to V9. You'll need the new Sage & Lucene jars.
FYI, these compatibility checks only apply to SageTVClient...they do NOT apply to the Placeshifter/extenders. The Placeshifter/extenders *should* be fully compatible (as long as the server is newer or equal to the client...but even then there's lots of leeway on it)
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
Reply


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
Comskip on Linux - two questions matt91 SageTV Customizations 2 08-24-2013 07:43 AM
Linux Server Questions jchiso SageTV Linux 7 12-22-2010 07:39 AM
Non-linux newbie w/HD-PVR questions drjamesincanden SageTV Linux 9 11-04-2009 04:34 PM
Some non-FAQ questions re: the Linux edition mlord SageTV Linux 1 02-20-2007 03:48 PM
Linux VS Windows questions? dpackham SageTV Beta Test Software 8 12-15-2006 07:20 AM


All times are GMT -6. The time now is 02:12 AM.


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