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 11-24-2016, 01:04 AM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
Need Help Linux 9.0.9.483

When I execute /etc/init.d/sagetv start, opensagetv dies. Inside it I set -x to see where it dies. It seems to be the java call. I am java illiterate and need further help finding out why it dies.

X3 opensagetv # /etc/init.d/sagetv start
Starting SageTV Server: sagetvChanging to SageTV directory /opt/sagetv/server
+ exit 0
+ ./startsagecore
.
Executing pre-scripts
Starting server mode
+ javapid=29136
+ echo -n 29136
+ wait 29136
++ echo 'JARs/*.jar'
++ sed 's/ **/:/g'
+ java -Djava.awt.headless=true -Xmx768m -XX:+UseAdaptiveSizePolicy -XX:MaxGCPauseMillis=25 -XX:GCTimeRatio=24 -XX:ThreadPriorityPolicy=1 -cp 'Sage.jar:.:/:JARs/*.jar' sage.Sage 0 0 x 'sagetv Sage.properties'
Main is starting
+ '[' -e restart ']'
+ '[' -e restartsvc ']'
+ '[' 0 -eq 1 ']'
+ exit 0
Reply With Quote
  #2  
Old 11-24-2016, 05:12 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Do you have java installed? Which java? Version?
Reply With Quote
  #3  
Old 11-26-2016, 05:42 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
1.8.0.60 I tried to download later versions but it wouldn't allow them to be downloaded to my country (USA).
Reply With Quote
  #4  
Old 11-27-2016, 05:49 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
What do you get when you issue
Code:
java -version
Also, when you restart linux, sagetv should start automatically. if you open a terminal and issue
Code:
ps aux | grep sage
Do you see the sagetv process?

What linux flavour are you using? And how did you install sagetv?

If you want to avoid the configuration of sagetv on Linux, you might check out the docker solution as well. While it was originally created for unRAID NAS (which is what I use), you can also use it to run sagetv locally as well... just requires that you know a bit about docker.
Reply With Quote
  #5  
Old 11-28-2016, 10:18 AM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
tony@X3 ~ $ java -version
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)

(i finally managed to download it)

tony@X3 ~ $ ps aux | grep sage
message+ 2595 0.0 0.0 17760 2316 ? Ss Nov23 0:00 /usr/bin/dbus-daemon --system
tony 25358 0.0 0.0 12936 1864 pts/1 S+ 10:10 0:00 grep --colour=auto sage


This is Gentoo Linux. I installed by following the instructions to install on Ubuntu on a UBUNTU partition. Then I copied the files to the Gentoo system. It doesn't seem to be working on UBUNTU either. The TV card is an HVR-1600 and I can use azap to tune it and mplayer /dev/dvb/adapter0/dvr0 to watch TV.
Reply With Quote
  #6  
Old 11-28-2016, 10:36 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by ASegredo View Post
tony@X3 ~ $ java -version
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode)

(i finally managed to download it)

tony@X3 ~ $ ps aux | grep sage
message+ 2595 0.0 0.0 17760 2316 ? Ss Nov23 0:00 /usr/bin/dbus-daemon --system
tony 25358 0.0 0.0 12936 1864 pts/1 S+ 10:10 0:00 grep --colour=auto sage


This is Gentoo Linux. I installed by following the instructions to install on Ubuntu on a UBUNTU partition. Then I copied the files to the Gentoo system. It doesn't seem to be working on UBUNTU either. The TV card is an HVR-1600 and I can use azap to tune it and mplayer /dev/dvb/adapter0/dvr0 to watch TV.
I doubt this is a java issue... since you installed it, and it works. But maybe try starting sagetv directly (without the init script) and then see how it dies, and check the sagetv_0.txt log file to see what it says.
Reply With Quote
  #7  
Old 11-28-2016, 10:41 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
The installer does more than just copy files around. There are a lot of permissions, and scripts that are setup. It will likely be a lot of work to get going if you don't just use the installer script on the system you are installing it on.
__________________
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
  #8  
Old 11-28-2016, 02:42 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
OK! Running the java statement straight gives an error message:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no Sage in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at sage.Sage.<clinit>(Sage.java:115)
Reply With Quote
  #9  
Old 11-28-2016, 02:45 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
Mon 11/28 10:07:36.409 [main@37bba400] MAIN THREW AN EXCEPTION: java.lang.NoClassDefFoundError: org/apache/lucene/search/Query
Mon 11/28 10:07:36.410 [main@37bba400] java.lang.NoClassDefFoundError: org/apache/lucene/search/Query
Mon 11/28 10:07:36.411 [main@37bba400] at sage.SageTV.<init>(SageTV.java:404)
Mon 11/28 10:07:36.411 [main@37bba400] at sage.Sage.startup(Sage.java:1173)
Mon 11/28 10:07:36.411 [main@37bba400] at sage.Sage.main(Sage.java:955)
Mon 11/28 10:07:36.411 [main@37bba400] Caused by: java.lang.ClassNotFoundException: org.apache.lucene.search.Query
Mon 11/28 10:07:36.411 [main@37bba400] at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
Mon 11/28 10:07:36.411 [main@37bba400] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
Mon 11/28 10:07:36.411 [main@37bba400] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
Mon 11/28 10:07:36.411 [main@37bba400] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Mon 11/28 10:07:36.412 [main@37bba400] ... 3 more
Mon 11/28 10:07:36.412 [main@37bba400] Exception in thread "main" Mon 11/28 10:07:36.412 [main@37bba400] java.lang.NoClassDefFoundError: org/apache/lucene/search/Query
Mon 11/28 10:07:36.412 [main@37bba400] at sage.SageTV.<init>(SageTV.java:404)
Mon 11/28 10:07:36.412 [main@37bba400] at sage.Sage.startup(Sage.java:1173)
Mon 11/28 10:07:36.412 [main@37bba400] at sage.Sage.main(Sage.java:955)
Mon 11/28 10:07:36.412 [main@37bba400] Caused by: java.lang.ClassNotFoundException: org.apache.lucene.search.Query
Mon 11/28 10:07:36.413 [main@37bba400] at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
Mon 11/28 10:07:36.413 [main@37bba400] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
Mon 11/28 10:07:36.413 [main@37bba400] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
Mon 11/28 10:07:36.413 [main@37bba400] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Mon 11/28 10:07:36.413 [main@37bba400] ... 3 more
Reply With Quote
  #10  
Old 11-28-2016, 03:06 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by ASegredo View Post
OK! Running the java statement straight gives an error message:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no Sage in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at sage.Sage.<clinit>(Sage.java:115)
Quote:
Originally Posted by ASegredo View Post
Mon 11/28 10:07:36.409 [main@37bba400] MAIN THREW AN EXCEPTION: java.lang.NoClassDefFoundError: org/apache/lucene/search/Query
Mon 11/28 10:07:36.410 [main@37bba400] java.lang.NoClassDefFoundError: org/apache/lucene/search/Query
Mon 11/28 10:07:36.411 [main@37bba400] at sage.SageTV.<init>(SageTV.java:404)
Mon 11/28 10:07:36.411 [main@37bba400] at sage.Sage.startup(Sage.java:1173)
Mon 11/28 10:07:36.411 [main@37bba400] at sage.Sage.main(Sage.java:955)
Mon 11/28 10:07:36.411 [main@37bba400] Caused by: java.lang.ClassNotFoundException: org.apache.lucene.search.Query
Mon 11/28 10:07:36.411 [main@37bba400] at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
Mon 11/28 10:07:36.411 [main@37bba400] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
Mon 11/28 10:07:36.411 [main@37bba400] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
Mon 11/28 10:07:36.411 [main@37bba400] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Mon 11/28 10:07:36.412 [main@37bba400] ... 3 more
Mon 11/28 10:07:36.412 [main@37bba400] Exception in thread "main" Mon 11/28 10:07:36.412 [main@37bba400] java.lang.NoClassDefFoundError: org/apache/lucene/search/Query
Mon 11/28 10:07:36.412 [main@37bba400] at sage.SageTV.<init>(SageTV.java:404)
Mon 11/28 10:07:36.412 [main@37bba400] at sage.Sage.startup(Sage.java:1173)
Mon 11/28 10:07:36.412 [main@37bba400] at sage.Sage.main(Sage.java:955)
Mon 11/28 10:07:36.412 [main@37bba400] Caused by: java.lang.ClassNotFoundException: org.apache.lucene.search.Query
Mon 11/28 10:07:36.413 [main@37bba400] at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
Mon 11/28 10:07:36.413 [main@37bba400] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
Mon 11/28 10:07:36.413 [main@37bba400] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
Mon 11/28 10:07:36.413 [main@37bba400] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Mon 11/28 10:07:36.413 [main@37bba400] ... 3 more
I think this goes back to Fuzzy's comment... i don't think this is installed correctly.
Did you download the tgz bundle? This is a 64bit bundle... are you running 64bit?

Have you considered using ubuntu (there is a .deb package), or Docker... there's a complete ready to run Docker container...

But, as it stands, given the errors you are reporting... I don't think there files are installed correctly.
Reply With Quote
  #11  
Old 11-28-2016, 04:49 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
I downloaded the .deb and installed it on Ubuntu. Maybe the Ubuntu version was too old?

Where is the installer? I ran the buildscripts. Is that what's referred to.

I prefer not to use Ubuntu with that Windows 8 interface.
Reply With Quote
  #12  
Old 11-28-2016, 06:51 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by ASegredo View Post
I downloaded the .deb and installed it on Ubuntu. Maybe the Ubuntu version was too old?

Where is the installer? I ran the buildscripts. Is that what's referred to.

I prefer not to use Ubuntu with that Windows 8 interface.
I think most who are running the server on linux don't even have a monitor, so the UI is pretty much a moot point (I just used the ubuntu server version before switching to unRAID).
__________________
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
  #13  
Old 11-29-2016, 12:46 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
From those error messages it looks like the libSage.so file is not in the LD_LIBRARY_PATH. This should be getting set properly in the startsagecore script (which is called by startsage) and should be in the same folder as that script (or in a lib subfolder, but I don't think the installer puts it there).

The other error messages relating to Apache would point to the lucene-core-x.x.x.jar file not being in the JARs subfolder below the startup script.

Maybe the permissions on all of them are wrong?

And the installers are either the tarballs (.tgz) or debian installers (.deb) that are created in the build folder when you build the whole project.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #14  
Old 11-29-2016, 08:25 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
Thank you, Narflex


/opt/sagetv/server/startsagecore
/opt/sagetv/server/libSage.so

So they are in the same directory.

/opt/sagetv/server/sagetv/third_party/Lucene/lucene-core-3.6.0.jar

Is that the wrong place for the jar?
Reply With Quote
  #15  
Old 11-29-2016, 08:37 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
I copied the lucene jar:
# cd /opt/sagetv/server
cp /opt/sagetv/server/sagetv/third_party/Lucene/lucene-core-3.6.0.jar JARs/

This time, some progress.

# java -Djava.awt.headless=true -Xmx768m -XX:+UseAdaptiveSizePolicy -XX:MaxGCPauseMillis=25 -XX:GCTimeRatio=24 -XX:ThreadPriorityPolicy=1 -cp Sage.jar:.:/:JARs/lucene-core-3.6.0.jar sage.Sage 0 0 x 'sagetv Sage.properties'
Exception in thread "main" java.lang.UnsatisfiedLinkError: no Sage in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at sage.Sage.<clinit>(Sage.java:115)

Also noted this is kern.log (a good sign, yes?)
Nov 29 20:24:57 X3 kernel: cx18-0: loaded v4l-cx23418-cpu.fw firmware (158332 bytes)
Nov 29 20:24:58 X3 kernel: cx18-0: loaded v4l-cx23418-apu.fw firmware V00120000 (141200 bytes)
Nov 29 20:24:58 X3 kernel: cx18-0: FW version: 0.0.74.0 (Release 2007/03/12)
Nov 29 20:24:59 X3 kernel: cx18-0 843: loaded v4l-cx23418-dig.fw firmware (16382 bytes)
Nov 29 20:24:59 X3 kernel: cx18-0 843: verified load of v4l-cx23418-dig.fw firmware (16382 bytes)
Nov 29 20:25:01 X3 kernel: tda18271: performing RF tracking filter calibration
Nov 29 20:25:05 X3 kernel: tda18271: RF tracking filter calibration complete

Last edited by ASegredo; 11-29-2016 at 09:02 PM.
Reply With Quote
  #16  
Old 11-30-2016, 06:45 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I'm still stuggling with how this would have been installed... did you build the .tgz package (which is created from the buildall.sh) and then extract it into /opt/sagetv/, if not, then that is likely your issue. There are many native parts to sagetv and even the lucen jar should not need to be manually copied to the JARs folder... that should all be packaged in the right places in the .tgz package.

Also are you using the startsage script to the startsagecore? You should use startsage.
Reply With Quote
  #17  
Old 11-30-2016, 01:00 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Yeah, I'm with Stuckless on this one...it definitely looks like you didn't extract the tgz file into the target folder and were just copying files (or you're trying to run it from where it was built, which also won't work properly)
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #18  
Old 11-30-2016, 01:18 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
Quote:
Originally Posted by stuckless View Post
Idid you build the .tgz package (which is created from the buildall.sh) and then extract it into /opt/sagetv/,
Yes, I built on Ubuntu, copied the tgz to Gentoo and extracted it. As I mentioned, it doesn't run on UBUNTU, either. Perhaps the Ubuntu version is too old. A months ago, I tried building on Gentoo but a lot of paths are different and library versions not the same. I was told "it builds on Ubuntu" so I went that route.
Quote:
Also are you using the startsage script to the startsagecore? You should use startsage.
I started that way, but had to run java directly to get the error messages, otherwise it dies silently.
Reply With Quote
  #19  
Old 11-30-2016, 01:31 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by ASegredo View Post
Yes, I built on Ubuntu, copied the tgz to Gentoo and extracted it. As I mentioned, it doesn't run on UBUNTU, either. Perhaps the Ubuntu version is too old. A months ago, I tried building on Gentoo but a lot of paths are different and library versions not the same. I was told "it builds on Ubuntu" so I went that route.
I started that way, but had to run java directly to get the error messages, otherwise it dies silently.
ok lets try this...

cd /opt/sagetv/
rm sagetv_*.txt
./startsage

That should setup paths, LD environment, etc... and try to start sage.

You an tail sagetv_0.txt to see if it's starting...

you can look in nohup.log (I think we sagetv starts in the background it write stdout to that file, or similarly named fie, in the current directory).

also, run it as root.

If you are running just the java command iine, then that won't work.
Reply With Quote
  #20  
Old 11-30-2016, 08:50 PM
ASegredo ASegredo is offline
Sage Advanced User
 
Join Date: Jun 2005
Posts: 141
# ./startsage
Changing to SageTV directory /opt/sagetv/.
./startsage: line 53: ./startsagecore: No such file or directory

copied startsagecore to /opt/sagetv
cp /opt/sagetv/server/startsagecore /opt/sagetv

Wed 11/30 20:35:21.962 [main@3796751b] Exception in thread "main" Wed 11/30 20:35:21.962 [main@3796751b] java.lang.NoClassDefFoundError: jcifs/smb/SmbException
Wed 11/30 20:35:21.962 [main@3796751b] at sage.SageTV.<init>(SageTV.java:509)
Wed 11/30 20:35:21.962 [main@3796751b] at sage.Sage.startup(Sage.java:1173)
Wed 11/30 20:35:21.962 [main@3796751b] at sage.Sage.main(Sage.java:955)
Wed 11/30 20:35:21.963 [main@3796751b] Caused by: java.lang.ClassNotFoundException: jcifs.smb.SmbException
Wed 11/30 20:35:21.963 [main@3796751b] at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
Wed 11/30 20:35:21.963 [main@3796751b] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
Wed 11/30 20:35:21.963 [main@3796751b] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
Wed 11/30 20:35:21.963 [main@3796751b] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Wed 11/30 20:35:21.963 [main@3796751b] ... 3 more
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
Comcut + encoding for linux, a start to a linux mediastrink Korny SageTV Linux 1 03-13-2011 09:57 PM
Close to building a Linux SageTV Computer, which Linux distribution is best? davephan SageTV Linux 8 02-24-2011 06:57 PM
Possible new Linux box waynedunham SageTV Linux 0 11-16-2006 04:53 PM
New to linux bowser700 SageTV Linux 2 08-17-2006 09:13 AM


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


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