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 01-15-2017, 01:31 PM
GrantEdwards GrantEdwards is offline
Sage User
 
Join Date: Jan 2017
Location: Minneapolis
Posts: 22
Gentoo Install Report: sagetv-server_9.0.12_amd64

I thought I'd post a brief installation report for any other Gentoo
users who are thinking about installing SageTV9 in order to update
their OS installation from 32-bit to 64-bit.

Server Install

For the most part the server "just works". First I re-installed Gentoo
the usual way using the default amd64 profile. I then installed the
usually desktop stuff (X11, openbox, Firefox, mplayer, emacs, mutt,
slrn).

My SageTV9 install went like this:
  1. Install Java 1.8 JDK. I used icedtea-bin-3.2.0. Preliminary
    testing on a different 64-bit Gentoo system indicated that the
    SageTV server worked with this one, I don't know about other JDKs
    or JREs.

    .
  2. Move old /opt/sagetv/server directory to /opt/sagetv/server.old

    .
  3. Create a new, empty /opt/sagetv/server directory

    .
  4. Unpack sagetv-server_9.0.12_amd64.tar.gz into /opt/sagetv/server
    [downloaded from https://dl.bintray.com/opensagetv/sagetv/sagetv/]

    .
  5. Run ldd against the unpacked libraries (which were built on an
    Ubuntu system by the packager) to see what libraries you may be
    missing:

    Code:
            $ cd /opt/sagetv/server
            $ LD_LIBRARY_PATH=$PWD ldd *.so *.so.* | egrep '(^lib|not found)'
            libDVBCapture.so:
            libFirewireCapture.so:
            	libiec61883.so.0 => not found
            	libraw1394.so.11 => not found
            	libavc1394.so.0 => not found
            libFreetypeFontJNI.so:
            libHDHomeRunCapture.so:
            libImageLoader.so:
            libIVTVCapture.so:
            libJavaRemuxer2.so:
            libjtux.so:
            libMpeg2Transcoder.so:
            libMPEGParser.so:
            libNativeCore.so:
            libPVR150Input.so:
            libSage.so:
            libswscale.so:
            libTSnative.so:
            libavcodec-minimal.so.52:
            libavformat-minimal.so.52:
            libavutil-minimal.so.50:
    As seen above on my system, I'm missing a few libraries needed by
    libFirewireCapture.so. But, I'm not using firewire, so the server
    works fine without those libraries. If you can't get the server
    to work, try installing whatever libraries are required to make
    all of the sagetv .so files happy.

    .
  6. If you want to continue using your SageTV key to access TV
    schedule data from the service provided by SageTV/Google, copy
    your old 'activekey' file into your new server directory. The key
    is no longer required to run the server itself. [Remember that
    that SageTV/Google schedule data is going to be turned off in July
    2017.]

    At this point, you should be able to copy your old Wiz.bin and
    Sage.properties files into the new 'server' directory, start the
    server and you're done.

    But, for no particular reason, I decided to configure the new
    server from scratch then later restore my
    recordings/favorites:


    .
  7. Start the server. I use an openrc init.d script that looks like
    this:
    Code:
            #!/sbin/openrc-run
            
            depend() {
            	need net localmount
            	after bootmisc
            }
            
            start() {
            	echo "Starting SageTV Server"
                    if /opt/sagetv/server/startsage && sleep 1; then
                    echo OK
                    else
                    echo Fail
                    fi
            }
            
            stop () {
            	echo "Stopping SageTV Backend"
                    if /opt/sagetv/server/stopsage; then
                    echo OK
                    else
                    echo Fail
                    fi
            }
    If you use systemd instead of openrc, you can probably grab the
    service file out of the .deb file and use that.

    .
  8. Connect to the server using a client (I tried a linux client, and
    an HD200 set-top-box, and both worked). Configure the sources,
    recording directories, etc.

    .
  9. Shut down the client and stop the server.

    .
  10. Copy the old Wiz.bin file into the new server directory.

    .
  11. Start the server.

    .
  12. Connect to the server with a client. All the old recordings
    should be there along with favorites and recording schedules.

Linux Client

I've also tried running the linux client from
sagetv-client_9.0.12_amd64.tar.gz. The basic UI worked fine, and
allowed me to configure the server at step 8 above. But, playback
failed.

I ran the ldd command as shown above, and the libraries all looked OK
except for a missing libjawt.so. But, that should be provided by the
JDK, so I ignored it. When I ran ldd on the mplayer binary, it listed
a couple libraries I didn't have (libaudio.so, libpng12.so), so I
installed those (media-libs/nas and media-libs/libpng:1.2).

Now playback psuedo-works: it starts, audio works, and the UI with the
progress bar and controls does what it's supposed to. But, picture is
black. I tried a few different client option configurations, but it
didn't seem to help.

Server Build From Git Sources

I've also tried building the SageTV server on Gentoo from git sources
by following the instructions at https://github.com/google/sagetv/wiki.

I haven't gotten very far yet. The build fails almost immediately due
to some sort of SSL certificate problem:

Code:
    $ ./buildall.sh
    Build the Sage.jar file
    Bulding Sage.jar...
    Downloading https://services.gradle.org/distribu...le-2.6-all.zip

    Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed
In another thread where somebody was working on an ebuild, I notice
that they download the Sage.jar file rather than build it from
sources...

Yow. Too bad bbcode produces such awful output. This would have
looked a lot better using almost any other lightweight markup system.
I find that the lack of vertical space between bbcode list items is a
particularly bad decision. And we won't even start on the broken
Unicode support. But then again, it's part of PHP....
Reply With Quote
  #2  
Old 01-16-2017, 03:45 PM
GrantEdwards GrantEdwards is offline
Sage User
 
Join Date: Jan 2017
Location: Minneapolis
Posts: 22
FWIW...

After a couple days use, I have noticed a problem with this version.

When I'm connected via an HD200, and I use [Left] or [Back] buttons to
return to the top level menu (e.g. from the TV menu), the server will
often crash.

I haven't noticed any problems while I'm in one of the sub-menus (I
can browse and watch TV shows, look at the recording schedule, etc.),
but simply trying to return back to the main menu often (but not quite
always) crashes the server.

This is a bit annoying but isn't a huge issue, since once I'm in the
TV menu, I usually stay there until I shut off the HD200 (which
doesn't seem to cause a problem). It was a bit clumsy when I was
tweaking some setup values, since it means when you're doing editing
things in the setup menu, you have to turn off the HD200 and then turn
it back on again to reliably get to the main menu. Hitting back will
usually crash the server and lose changes that you made.
Reply With Quote
  #3  
Old 01-18-2017, 12:48 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Feel free to post the logs from that crash.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #4  
Old 01-21-2017, 10:11 AM
GrantEdwards GrantEdwards is offline
Sage User
 
Join Date: Jan 2017
Location: Minneapolis
Posts: 22
Quote:
Originally Posted by Narflex View Post
Feel free to post the logs from that crash.
Of course it happened just like it does when I ask my customers to send logs or test data after they make some vague complaint about a problem...

I shut down the server, removed all of the old log/msg files and then restarted the server.

Now I can't get it to crash.

I should have copied the old error logs somewhere...
Reply With Quote
  #5  
Old 01-23-2017, 07:31 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by GrantEdwards View Post
Of course it happened just like it does when I ask my customers to send logs or test data after they make some vague complaint about a problem...

I shut down the server, removed all of the old log/msg files and then restarted the server.

Now I can't get it to crash.

I should have copied the old error logs somewhere...
Sage will keep the 4 most recent log files (if you don't delete them, of course).
__________________
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
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
init.d/sagetv script for Gentoo? Grant.Edwards SageTV Linux 3 05-06-2010 08:59 AM
Another HD100 first install report mikesm SageTV Media Extender 6 03-21-2008 10:21 PM
SageTV on Existing Gentoo Install plawlor SageTV Linux 2 05-22-2006 04:19 PM
SageTV v4 default weather report mattdcknsn SageTV Software 0 12-29-2005 08:54 AM
SageTV v3 Beta Progress Report Discussion Kanati SageTV Beta Test Software 63 06-30-2005 12:51 PM


All times are GMT -6. The time now is 12:48 PM.


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