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 07-31-2015, 07:09 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Running on 64 bit Ubuntu

I'm having problems getting the server to start on 64 bit Ubuntu. I Get the following errors:

Code:
Starting server mode
OpenJDK 64-Bit Server VM warning: -XX:ThreadPriorityPolicy requires root privilege on Linux
OpenJDK 64-Bit Server VM warning: You have loaded library /opt/sagetv/server/libSage.so which migException in thread "main" java.lang.UnsatisfiedLinkError: /opt/sagetv/server/libSage.so: /opt/sagetv/server/libSage.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880)
	at java.lang.Runtime.loadLibrary0(Runtime.java:849)
	at java.lang.System.loadLibrary(System.java:1088)
	at sage.Sage.<clinit>(Unknown Source)
	at SecuredLoader.main(SecuredLoader.java:5)
I think it's because Sage needs 32 bit Java and not 64 bit. I manually removed the 64 bit Java JRE and installed the 32 bit JRE but still get this message. It looks to me like the 64 bit JRE is still there but I have no clue as to why.

I removed the 64 bit version by using:

sudo apt-get remove openjdk-7-jdk openjdk-7-jre
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #2  
Old 07-31-2015, 10:48 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Yes you'll need a 32-bit JVM but I don't think this particular error message is a JVM issue. It's complaining about not being able to load a 32-bit native library (Sage has some native pieces). You'll need to use apt-get to install 32-bit compatibility libraries for Linux. Sorry I don't have access to my Linux box right now so I can't tell you the name of them, but Google it and you should find what you need.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #3  
Old 08-01-2015, 02:54 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Did a bunch of googling and I do have 64 bit Java installed. The problem is that I'm just not smart enough to figure out how to uninstall it, or at least tell Sage to use the 32 bit version I also have installed.

Everything I read tells me to use "apt-get remove openjdk...." I've done that many times and it still doesn't work
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #4  
Old 08-01-2015, 06:44 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Run 'java -v' from the terminal to see which java is being used.

Try setting the JAVA_HOME variable to the 32-bit Java path. You may also need to add JAVA_HOME/bin to the PATH environment variable.

IIRC you can add these to the 'sagesettings' script file so it only affects Sage and you don't need to set them manually every time.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #5  
Old 08-01-2015, 07:51 AM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
That worked Thank you very much. I did have to set JAVA_HOME and PATH as you suggested.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #6  
Old 08-02-2015, 05:37 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
FYI... on most linux distributions, today, there isn't a 32bit compatiblity library (as there was in the past)... Instead you can simply install the 32bit packages by prefixing :i386 to the package.

ie for openjdk...

Code:
sudo apt-get install openjdk-7-jdk:i386
For my setup, I manually downloaded the 32bit java, and then I reference in my /opt/sagetv/server/sagesettings file, and that way, I don't need to worry about the system jre.

sagesettings
Code:
export JAVA_HOME=/opt/java/current/
export PATH=$JAVA_HOME/bin:$PATH

JAVAMEM=-Xmx984m
JAVAOPTS=-Dhttps.protocols=SSLv3

# for vlc streaming
export SUDO_UID=1001
My /opt/java/ (where I manually download javas

Code:
lrwxrwxrwx 1 root root    5 Mar 28 10:46 current -> java7
lrwxrwxrwx 1 root root   11 Mar 28 10:45 java7 -> jdk1.7.0_72
lrwxrwxrwx 1 root root   15 Mar 28 10:46 java8 -> jre1.8.0_40_x86
drwxr-xr-x 8 uucp  143 4096 Sep 26  2014 jdk1.7.0_72
drwxr-xr-x 6 uucp  143 4096 Feb 11 01:26 jre1.8.0_40_x86
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
Ubuntu 12.04 bcjenkins SageTV Linux 25 02-22-2013 04:40 PM
Ubuntu TV? makko General Discussion 2 01-10-2012 07:47 AM
Anybody try Ubuntu 10.04? loonsailor SageTV Linux 26 09-21-2010 10:12 AM
Ubuntu Placeshifter running from USB zip (thumb) drive Ghampton SageTV Linux 6 03-26-2010 12:28 PM
Ubuntu 9.10 - Anybody try it yet? loonsailor SageTV Linux 25 10-08-2009 03:22 PM


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


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