SageTV Community  

Go Back   SageTV Community > SageTV BETA Release Products > SageTV Beta Test Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Beta Test Software Discussion related to BETA Releases of the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. regarding SageTV Beta Releases should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-09-2010, 09:44 AM
adler187 adler187 is offline
Sage User
 
Join Date: Oct 2010
Posts: 8
Sage 7.0.0.19 on Linux x86-64

Trying to get Sage7 working on Linux 64 bit. I downloaded the 32 bit JVM from Oracle and installed it in to /opt/jre16. I set up my sagesettings file as:

Code:
#!/bin/sh

JAVA_HOME=/opt/jre16
PATH=$JAVA_HOME/bin:$PATH
I always seem to get these errors in sagetv_0.txt:
Code:
Fri 10/8 0:33:22.251 [main@1e59128] Error with DB file:java.io.IOException: Invalid DB file, only partially saved., attempting to restore backup.
Fri 10/8 0:33:23.040 [main@1e59128] detect 3
Fri 10/8 0:34:20.689 [SageTVServer@238016] java.lang.NullPointerException
Fri 10/8 0:34:20.690 [SageTVServer@238016]      at java.lang.System.arraycopy(Native Method)
Fri 10/8 0:34:20.690 [SageTVServer@238016]      at sage.y.bt(Unknown Source)
Fri 10/8 0:34:20.690 [SageTVServer@238016]      at sage.y.<init>(Unknown Source)
Fri 10/8 0:34:20.690 [SageTVServer@238016]      at sage.bu.a(Unknown Source)
Fri 10/8 0:34:20.690 [SageTVServer@238016]      at sage.SageTV$4.run(Unknown Source)
Fri 10/8 0:34:20.691 [SageTVServer@238016] Error w/SageTV client connection:java.lang.NullPointerException
Fri 10/8 2:05:01.504 [EPG@57e787] Error accessing file system:java.lang.NullPointerException
Sat 10/9 2:08:42.543 [EPG@57e787] Error accessing file system:java.lang.NullPointerException
When I try to login from my windows client, I get a NullPointerException. This is what causes the log entries in sagetv_0.txt.
Attached Images
File Type: jpg sage7error.jpg (24.2 KB, 137 views)
Reply With Quote
  #2  
Old 10-09-2010, 09:59 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Do you have an active license? That says your Wiz.bin file is corrupt.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #3  
Old 10-09-2010, 10:03 AM
adler187 adler187 is offline
Sage User
 
Join Date: Oct 2010
Posts: 8
I do have a license and set it up the first time I started sage. Every time I start up it says that the Wiz.bin is corrupt. I can delete it and it still says it is corrupt.
Reply With Quote
  #4  
Old 10-09-2010, 10:44 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
How many network adapters do you have? Can you post the full log?

Thanks

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #5  
Old 10-11-2010, 06:59 PM
adler187 adler187 is offline
Sage User
 
Join Date: Oct 2010
Posts: 8
I only have one network adapter.

I was able to connect using my SageTV Extender HD300. Unfortunately, using that I am not able to configure my import directories since the up/down/left/right buttons do not work in the list of directories. The enter button does work, but that doesn't help if you don't magically select the correct directory when you enter the list. That is a separate issue, though.

I'm not sure what log you are talking about. That was the entirety of the sagetv_0.txt at that time. I have attached the same log after playing around with extender connected to it.
Attached Files
File Type: txt sagetv_0.txt (258.9 KB, 144 views)
Reply With Quote
  #6  
Old 10-11-2010, 08:58 PM
Motofreak75 Motofreak75 is offline
Sage Expert
 
Join Date: Oct 2005
Posts: 578
Send a message via ICQ to Motofreak75
I ran into this exact issue a while ago. word for word!

Are you starting Sagetv from a cron job ? all Place-shifter clients and extenders had the exact same issues and the wiz bin would get written over every-time I restart the sage server.

Whats happening is that when using Cron jobs it places 644 permissions and not 755 on every file/folder in the sagetv directory.

I simple solved by adding a line to the sage startscript to my rc.local file to start up on boot.
__________________
12.04 server Sagetv7
HD-pvr / 2250 /PVR 500 / DVBS w/rotor & 36 inch dish
Reply With Quote
  #7  
Old 10-12-2010, 08:35 PM
adler187 adler187 is offline
Sage User
 
Join Date: Oct 2010
Posts: 8
Nope, I can't even get it to run from my local terminal to think about cron jobs.

With your thought on permissions, I re-extracted the tarball to a new directory. I think that I messed with some file permissions (can't remember if it was for sagetv 7 or 6 or both), since they are all screwed up (why does a jpeg need execute authority?), but that didn't make any difference.
Reply With Quote
  #8  
Old 10-13-2010, 04:40 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Please tell us about your system - OS, Java, User running as, anything else? Also execute ldd /opt/sagetv/server/* |grep "not found" and look for missing libraries. You can ignore the libraries reported as missing that are in the /opt/sagetv/server directory.
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT

Last edited by bcjenkins; 10-13-2010 at 04:43 AM.
Reply With Quote
  #9  
Old 10-13-2010, 06:25 PM
Motofreak75 Motofreak75 is offline
Sage Expert
 
Join Date: Oct 2005
Posts: 578
Send a message via ICQ to Motofreak75
adler187

as bcjenkins said list your server info.

I ran into the same issues with permissions and was getting the same loss of control on my extenders and when I started from a cron job it defaulted everything in the sagetv folder to 644 basic giving it read only but root and sagetv could not finish creating a new properties file for my extender (it was only half done)

if you know how, check the folders & files while sage is running.
__________________
12.04 server Sagetv7
HD-pvr / 2250 /PVR 500 / DVBS w/rotor & 36 inch dish
Reply With Quote
  #10  
Old 10-14-2010, 09:57 PM
adler187 adler187 is offline
Sage User
 
Join Date: Oct 2010
Posts: 8
I am running on openSUSE 11.3 64 bit.

I downloaded the SUN (well, Oracle) 32 bit JRE and installed it in to /opt/jre16, as there is no way to install 32bit and 64bit JREs on the same install with openSUSE, through the package manager (and even though the 64 bit JVM has a -d32 flag, it doesn't support this function). Since the so files are compiled on 32 bit, the JVM has to be 32 bit as well.

Here is the java info:
Code:
/opt/jre16/bin/java -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) Server VM (build 17.0-b16, mixed mode)
Here is my sage directory permissions:
Code:
ls -l /opt/sagetv7
total 18996
-rw-r--r-- 1 zeke users      32 2010-09-24 01:15 activkey
drwxr-xr-x 2 zeke users    4096 2010-09-24 01:16 ChannelLogos
drwxr-xr-x 2 zeke users    4096 2010-10-11 20:02 clients
-rwxr-xr-x 1 zeke users   13193 2010-10-07 17:42 EULA.txt
-rwxr-xr-x 1 zeke users 8262940 2010-10-07 17:42 ffmpeg
-rw-r--r-- 1 zeke users      57 2010-09-24 01:16 filetracker.properties
drwxr-xr-x 2 zeke users    4096 2010-10-07 17:42 fonts
-rwxr-xr-x 1 zeke users     162 2010-10-07 17:42 GlobalSageTVActivation.public.key
drwxr-xr-x 2 zeke users    4096 2010-10-07 17:42 irtunerplugins
drwxr-xr-x 2 zeke users    4096 2010-10-07 17:42 JARs
-rwxr-xr-x 1 zeke users   65961 2010-10-07 17:42 jhead
-rwxr-xr-x 1 zeke users   81456 2010-10-07 17:42 jpegtran
-rw-r--r-- 1 zeke users       0 2010-09-24 01:15 key
-rwxr-xr-x 1 zeke users     428 2010-10-07 17:42 keygen.sh
-rwxr-xr-x 1 zeke users 2028884 2010-10-07 17:42 libavcodec-minimal.so.52
-rwxr-xr-x 1 zeke users  140780 2010-10-07 17:42 libavformat-minimal.so.52
-rwxr-xr-x 1 zeke users   47328 2010-10-07 17:42 libavutil-minimal.so.49
-rwxr-xr-x 1 zeke users  225913 2010-10-07 17:42 libDVBCapture.so
-rwxr-xr-x 1 zeke users   16946 2010-10-07 17:42 libFirewireCapture.so
-rwxr-xr-x 1 zeke users   16927 2010-10-07 17:42 libFreetypeFontJNI.so
-rwxr-xr-x 1 zeke users  425922 2010-10-07 17:42 libHDHomeRunCapture.so
-rwxr-xr-x 1 zeke users  966733 2010-10-07 17:42 libImageLoader.so
-rwxr-xr-x 1 zeke users  110921 2010-10-07 17:42 libIVTVCapture.so
-rwxr-xr-x 1 zeke users  100444 2010-10-07 17:42 libjtux.so
-rwxr-xr-x 1 zeke users   17397 2010-10-07 17:42 libMpeg2Transcoder.so
-rwxr-xr-x 1 zeke users   54034 2010-10-07 17:42 libMPEGParser.so
-rwxr-xr-x 1 zeke users  714224 2010-10-07 17:42 libNativeCore.so
-rwxr-xr-x 1 zeke users   24182 2010-10-07 17:42 libSage.so
-rwxr-xr-x 1 zeke users  311274 2010-10-07 17:42 libTSnative.so
-rwxr-xr-x 1 zeke users 1667104 2010-10-07 17:42 mvp.bin
-rwxr-xr-x 1 zeke users   13970 2010-10-07 17:42 PredefinedDVBC.frq
-rwxr-xr-x 1 zeke users    4517 2010-10-07 17:42 PredefinedDVBS.frq
-rwxr-xr-x 1 zeke users  113421 2010-10-07 17:42 PredefinedDVBT.frq
-rwxr-xr-x 1 zeke users    6950 2010-10-07 17:42 PredefinedScanCable.frq
-rwxr-xr-x 1 zeke users   45945 2010-10-07 17:42 PredefinedScan.frq
-rw-r----- 1 zeke users      63 2010-10-07 17:42 PredefinedScanSat.frq
-rwxr-xr-x 1 zeke users    4011 2010-10-07 17:42 RemoteClients.properties.defaults
drwxr-xr-x 2 zeke users   40960 2010-10-07 17:42 remotes
-rw-r--r-- 1 zeke users 3346619 2010-10-07 17:42 Sage.jar
-rw-r--r-- 1 root root    20205 2010-10-12 18:05 Sage.properties
-rw-r--r-- 1 root root    20205 2010-10-12 18:05 Sage.properties.autobackup
-rw-r--r-- 1 zeke users     287 2010-10-12 18:05 sagesettings
-rwxr-xr-x 1 zeke users   12844 2010-10-07 17:42 SageTVActivationClient.jar
-rw-r--r-- 1 zeke users     633 2010-09-24 01:16 SageTVLocator.private.key
-rw-r--r-- 1 zeke users     162 2010-09-24 01:16 SageTVLocator.public.key
-rw-r--r-- 1 zeke users  277967 2010-10-12 17:43 SageTVPlugins.xml
-rw-r--r-- 1 zeke users     634 2010-09-24 01:15 SageTV.private.key
-rw-r--r-- 1 zeke users     162 2010-09-24 01:15 SageTV.public.key
-rwxr-xr-x 1 zeke users     356 2010-10-07 17:42 SecuredLoader.class
-rwxr-xr-x 1 zeke users     722 2010-10-07 17:42 startsage
-rwxr-xr-x 1 zeke users    1167 2010-10-12 18:05 startsagecore
-rwxr-xr-x 1 zeke users     830 2010-10-07 17:42 stopsage
drwxr-xr-x 4 zeke users    4096 2010-10-07 17:42 STVs
drwxr-xr-x 2 zeke users    4096 2010-10-11 19:47 STVUpdates
-rwxr-xr-x 1 zeke users    8238 2010-10-07 17:42 validatekey
-rw-r--r-- 1 zeke users    3255 2010-10-11 19:39 weather_cache.properties
There is no 'server' directory, so I'm not sure what you are looking for there, but here is the ldd of all the so files:

Code:
zeke@adama:/opt/sagetv7> export LD_LIBRARY_PATH=.
zeke@adama:/opt/sagetv7> for i in *.so.*; do echo $i; ldd $i; done
libavcodec-minimal.so.52
        linux-gate.so.1 =>  (0xffffe000)
        libavutil-minimal.so.49 => ./libavutil-minimal.so.49 (0xf7512000)
        libm.so.6 => /lib/libm.so.6 (0xf74ce000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xf74b3000)
        libc.so.6 => /lib/libc.so.6 (0xf7348000)
        /lib/ld-linux.so.2 (0xf7769000)
libavformat-minimal.so.52
        linux-gate.so.1 =>  (0xffffe000)
        libavcodec-minimal.so.52 => ./libavcodec-minimal.so.52 (0xf74f6000)
        libavutil-minimal.so.49 => ./libavutil-minimal.so.49 (0xf74e6000)
        libm.so.6 => /lib/libm.so.6 (0xf74a2000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xf7487000)
        libc.so.6 => /lib/libc.so.6 (0xf731b000)
        /lib/ld-linux.so.2 (0xf7760000)
libavutil-minimal.so.49
        linux-gate.so.1 =>  (0xffffe000)
        libm.so.6 => /lib/libm.so.6 (0xf76b1000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xf7696000)
        libc.so.6 => /lib/libc.so.6 (0xf752b000)
        /lib/ld-linux.so.2 (0xf7706000)

zeke@adama:/opt/sagetv7> for i in *.so; do echo $i; ldd $i; done
libDVBCapture.so
        linux-gate.so.1 =>  (0xffffe000)
        libNativeCore.so => ./libNativeCore.so (0xf775f000)
        libc.so.6 => /lib/libc.so.6 (0xf75da000)
        /lib/ld-linux.so.2 (0xf77bf000)
libFirewireCapture.so
        linux-gate.so.1 =>  (0xffffe000)
        libiec61883.so.0 => /usr/lib/libiec61883.so.0 (0xf779e000)
        libraw1394.so.8 => /usr/lib/libraw1394.so.8 (0xf7796000)
        libavc1394.so.0 => /usr/lib/libavc1394.so.0 (0xf7790000)
        librom1394.so.0 => /usr/lib/librom1394.so.0 (0xf778b000)
        libc.so.6 => /lib/libc.so.6 (0xf761f000)
        libm.so.6 => /lib/libm.so.6 (0xf75f5000)
        /lib/ld-linux.so.2 (0xf77ce000)
libFreetypeFontJNI.so
        linux-gate.so.1 =>  (0xffffe000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xf76bd000)
        libz.so.1 => /lib/libz.so.1 (0xf76a9000)
        libc.so.6 => /lib/libc.so.6 (0xf753e000)
        /lib/ld-linux.so.2 (0xf7764000)
libHDHomeRunCapture.so
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xf767f000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xf758f000)
        libNativeCore.so => ./libNativeCore.so (0xf7556000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xf7538000)
        libc.so.6 => /lib/libc.so.6 (0xf73cc000)
        /lib/ld-linux.so.2 (0xf76ef000)
        libm.so.6 => /lib/libm.so.6 (0xf73a2000)
libImageLoader.so
        linux-gate.so.1 =>  (0xffffe000)
        libz.so.1 => /lib/libz.so.1 (0xf76e3000)
        libc.so.6 => /lib/libc.so.6 (0xf7578000)
        /lib/ld-linux.so.2 (0xf77b0000)
libIVTVCapture.so
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xf7700000)
        libc.so.6 => /lib/libc.so.6 (0xf7595000)
        /lib/ld-linux.so.2 (0xf7751000)
libjtux.so
        linux-gate.so.1 =>  (0xffffe000)
        libnsl.so.1 => /lib/libnsl.so.1 (0xf7779000)
        libc.so.6 => /lib/libc.so.6 (0xf760e000)
        /lib/ld-linux.so.2 (0xf77c4000)
libMpeg2Transcoder.so
        linux-gate.so.1 =>  (0xffffe000)
        libavformat-minimal.so.52 => ./libavformat-minimal.so.52 (0xf7750000)
        libavcodec-minimal.so.52 => ./libavcodec-minimal.so.52 (0xf750a000)
        libavutil-minimal.so.49 => ./libavutil-minimal.so.49 (0xf74fa000)
        libm.so.6 => /lib/libm.so.6 (0xf74b5000)
        libz.so.1 => /lib/libz.so.1 (0xf74a1000)
        libc.so.6 => /lib/libc.so.6 (0xf7336000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xf731b000)
        /lib/ld-linux.so.2 (0xf7779000)
libMPEGParser.so
        linux-gate.so.1 =>  (0xffffe000)
        libNativeCore.so => ./libNativeCore.so (0xf76f8000)
        libc.so.6 => /lib/libc.so.6 (0xf7573000)
        /lib/ld-linux.so.2 (0xf7736000)
libNativeCore.so
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/libc.so.6 (0xf7565000)
        /lib/ld-linux.so.2 (0xf7724000)
libSage.so
        linux-gate.so.1 =>  (0xffffe000)
        libdl.so.2 => /lib/libdl.so.2 (0xf779d000)
        libc.so.6 => /lib/libc.so.6 (0xf7632000)
        /lib/ld-linux.so.2 (0xf77c2000)
libTSnative.so
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/libc.so.6 (0xf75d7000)
        /lib/ld-linux.so.2 (0xf77a4000)
Everything looks kosher there. Also, I am starting the server as root.
Reply With Quote
  #11  
Old 10-15-2010, 01:36 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Recently I was doing some environment settings with my sagesettings file. In order for the settings to work correctly, I had to use export instead of just the settings. Perhaps you should try:

Code:
export JAVA_HOME=/opt/jre16
export PATH=$JAVA_HOME/bin:$PATH
Also, I didn't/don't have #!/bin/bash as an interpreter set.

B

PS - I was able to confirm this was needed by echoing my variables in startsagecore
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #12  
Old 10-15-2010, 08:22 PM
adler187 adler187 is offline
Sage User
 
Join Date: Oct 2010
Posts: 8
I exported the variables, but that didn't help at all.

Both were already exported on shell startup, so they didn't need to be exported again.

I checked with export | grep JAVA_HOME and export | grep PATH.

I uninstalled and reinstalled the client from my PC to see if it was problem with the upgrade from v6 of the client, but still no dice.
Reply With Quote
  #13  
Old 12-05-2010, 11:59 AM
adler187 adler187 is offline
Sage User
 
Join Date: Oct 2010
Posts: 8
Well I finally had some time this weekend to mess around with this more. I installed openSUSE 11.3 32 bit in a virtual machine. This had the same issue, so it is not a 64 bit problem. I also tried the latest openSUSE 11.4 milestone and Fedora 14. Both had the same issue as well, so I'm not sure what the problem is.

Edit: This was also using the latest sagetv 7 release.

Last edited by adler187; 12-05-2010 at 12:15 PM. Reason: note that sagetv has been updated to latest version
Reply With Quote
  #14  
Old 12-05-2010, 05:32 PM
adler187 adler187 is offline
Sage User
 
Join Date: Oct 2010
Posts: 8
After a lot more messing around with a Linux Mint VM and the deb installer, I found the problem. I deleted the key and the public/private keys and re-activated.

Apparently, the first time I activated, something messed up or somehow the key got corrupted. This was causing Sage to crash. Perhaps it was due to the 64-bit JVM I was using when I installed initially.

I also noticed that the deb installer creates two directories in /opt: sagetv and sagetv7. The sagetv7 directory holds STVs and ChannelLogos directories, as well as Wiz.bin* files. I see all these files in the sagetv folder as well, so not sure which copies are used. Also, the sagetv files were not stored directly in sagetv, but in sagetv/server. I'm not sure if this is how it is supposed to be installed (or if it matters), since the tar.gz file doesn't contain a parent directory, so the files get extracted to the current directory (which is pretty poor form...).
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 for Sage Linux..... :) laurenglenn SageTV Customizations 45 10-31-2009 06:43 PM
New to sage with linux Homebuilder SageTV Linux 3 02-24-2009 08:05 AM
Linux Sage sputters? ChePazzo SageTV Linux 4 02-17-2007 04:56 PM
Firewire and Linux Sage phenixdragon SageTV Linux 2 02-02-2006 11:46 AM


All times are GMT -6. The time now is 09:40 AM.


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