|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
Do you have java installed? Which java? Version?
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
|||
|
|||
1.8.0.60 I tried to download later versions but it wouldn't allow them to be downloaded to my country (USA).
|
#4
|
||||
|
||||
What do you get when you issue
Code:
java -version Code:
ps aux | grep sage 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.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#5
|
|||
|
|||
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. |
#6
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#7
|
||||
|
||||
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 |
#8
|
|||
|
|||
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) |
#9
|
|||
|
|||
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 |
#10
|
||||
|
||||
Quote:
Quote:
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.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#11
|
|||
|
|||
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. |
#12
|
||||
|
||||
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 |
#13
|
||||
|
||||
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 Founder of SageTV |
#14
|
|||
|
|||
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? |
#15
|
|||
|
|||
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. |
#16
|
||||
|
||||
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.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#17
|
||||
|
||||
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 Founder of SageTV |
#18
|
|||
|
|||
Quote:
Quote:
|
#19
|
||||
|
||||
Quote:
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.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#20
|
|||
|
|||
# ./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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |