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 03-04-2006, 07:52 AM
skeltonl skeltonl is offline
Sage User
 
Join Date: May 2004
Posts: 14
Cant Run as a Client (Bad License)

While I have succesfully modifed my startsage file to enable my Linux installation to run as a client (splashscreen shows SageTVclient, locates and tries to connect to my current Windows server) it freezes up and loses the connection.

My sagetvclient file reads as

Sun 3/5 0:02:58.038 ERROR loading LinuxInput plugin of:java.lang.UnsatisfiedLinkError: no LinuxInput in java.library.path
Sun 3/5 0:03:02.982 Error establishing server connection of:java.io.IOException: BAD_LICENSE
Sun 3/5 0:03:08.316 locale = en
Sun 3/5 0:03:11.560 Connection lost from: Socket[addr=192.168.0.5/192.168.0.5,port=42024,localport=42344] by:java.net.SocketException: Socket closed
Sun 3/5 0:03:11.773 Error establishing server connection of:java.io.IOException: BAD_LICENSE
Sun 3/5 0:03:26.807 Error establishing server connection of:java.io.IOException: BAD_LICENSE
Sun 3/5 0:03:56.866 Error establishing server connection of:java.io.IOException: BAD_LICENSE
Sun 3/5 0:04:01.865 button/power PWRF 00000080 00000001
Sun 3/5 0:04:01.866 Power button has been pressed


I have tried everything I could think of, including deleting my activation key and running the keygen script to reactivate my install but have had no success. Ideas or options from those who have had a sucessful client installation?
Reply With Quote
  #2  
Old 03-06-2006, 10:54 AM
LostInSpace LostInSpace is offline
Sage Advanced User
 
Join Date: Oct 2003
Location: Brussels (Belgium)
Posts: 186
HOw did you succeed to install it as a client?
I did not find any sage.properties reference in the /opt/sagetv/app/startsage script.
Install mode is 2 (full)

Thanks for your help.
Ferdinand
__________________
My config:
AMD athlon64 3200+ / 1 GB RAM / MSI K8N Neo4 / ATI X800 PRO / Technotrend Budget C-1500 / 300GB SATA HD / Win Vista Ultimate
Reply With Quote
  #3  
Old 03-06-2006, 01:35 PM
skeltonl skeltonl is offline
Sage User
 
Join Date: May 2004
Posts: 14
Hi Ferdinand, sorry if this reply isnt structured very well, but I have just dislocated my shoulder so it is done left handed and hunt and peck keyboarding only.

Below is my copy of the startsage script that has the text to be altered - I make no guarantees that the modifications described will work - but they should bring up Sage in client mode - but as my post says I continue to have some sort of licensing issue.

Ok, well the text in red is what needs to be altered, I have made the changes in both places though the first line altered actually refers to running Sage in headless mode (option 0) - not much use when you want it to be a client .

So replace Sage.jar with Sagetvclient.jar and Sage.properties with SageClient.properties.

Just be aware that the file is very touchy about how you edit it ( I gave up trying to do it in Nano as I kept putting extra page breaks in by accident)

I dont know if you have installed KDE or Gnome on your system so that you can use a better text editor - my reccomendation is xfce simply because it is smaller and takes less time time to emerge (emerge xfce4).

You can also start it without the need to edit initrc.config files etc. As you probably have found already you can go back to the shell prompt by hitting the power button when Sagetv has started. At that point you can type startxfce4 and it will just fire up and present you with a slighly easier enviroment to work in.

installmode=`cat /opt/sagetv/usr/installmode`
userkey=`cat /opt/sagetv/usr/activkey`

if [ "$installmode" -eq 0 ]; then
echo Starting server mode
else
./evilwm &
xsetroot -cursor empty.xbm empty.xbm
fi
alsactl restore
# PVR cards
modprobe ivtv
# A180 card
modprobe saa7134-dvb
chmod 777 /var/media/videos
chmod 777 /var/media/pictures
chmod 777 /var/media/music
export LD_LIBRARY_PATH=.:lib
export LANG=en_US.ISO-8859-1
if [ "$installmode" -eq 0 ]; then
/opt/sun-jre-bin/bin/java -Djava.awt.headless=true -DUSERKEY=$userkey -Xmx160m -XX:+UseAdaptiveSizePolicy -XX:MaxGCPauseMillis=25 -XX:GCTimeRatio=24 -cp Sage.jar:jcifs-1.1.6.jar:.:/:$(echo JARs/*.jar | sed 's/ */:/g') SecuredLoader 0 0 x "sagetv /opt/sagetv/usr/Sage.properties" 2>&1 | tee sageout.txt
else
/opt/sun-jre-bin/bin/java -DUSERKEY=$userkey -Xmx160m -XX:+UseAdaptiveSizePolicy -XX:MaxGCPauseMillis=25 -XX:GCTimeRatio=24 -cp Sage.jar:jcifs-1.1.6.jar:.:/:$(echo JARs/*.jar | sed 's/ */:/g') SecuredLoader 0 0 x "sagetv /opt/sagetv/usr/Sage.properties" 2>&1 | tee sageout.txt
fi
exit $?
Reply With Quote
  #4  
Old 03-06-2006, 03:15 PM
LostInSpace LostInSpace is offline
Sage Advanced User
 
Join Date: Oct 2003
Location: Brussels (Belgium)
Posts: 186
I'm toooo stuuupid!!!!!!!!!!!!!!!
what I was searching was further on the right of the sceen!!!!!!!!!
I changed it but Xorg does not start any more... I'll investigate!

Thanks
Ferdinand
__________________
My config:
AMD athlon64 3200+ / 1 GB RAM / MSI K8N Neo4 / ATI X800 PRO / Technotrend Budget C-1500 / 300GB SATA HD / Win Vista Ultimate
Reply With Quote
  #5  
Old 03-06-2006, 03:22 PM
LostInSpace LostInSpace is offline
Sage Advanced User
 
Join Date: Oct 2003
Location: Brussels (Belgium)
Posts: 186
I'm new to Linux so I did not succeed in installing KDE... so if you can explain ;-)
Thanks for your help

Ferdinand
__________________
My config:
AMD athlon64 3200+ / 1 GB RAM / MSI K8N Neo4 / ATI X800 PRO / Technotrend Budget C-1500 / 300GB SATA HD / Win Vista Ultimate
Reply With Quote
  #6  
Old 03-07-2006, 10:11 AM
LostInSpace LostInSpace is offline
Sage Advanced User
 
Join Date: Oct 2003
Location: Brussels (Belgium)
Posts: 186
It's working but do not change Sage.jar to SageClient. Leave it unchanged.
But now, I have the message : Network licence error when I try to connect to my server.

THANKS FOR YOUR HELP!!!
__________________
My config:
AMD athlon64 3200+ / 1 GB RAM / MSI K8N Neo4 / ATI X800 PRO / Technotrend Budget C-1500 / 300GB SATA HD / Win Vista Ultimate
Reply With Quote
  #7  
Old 03-08-2006, 06:07 AM
skeltonl skeltonl is offline
Sage User
 
Join Date: May 2004
Posts: 14
Hey Ferdinand, glad you are making progress. I was wondering if you could post your sageout.txt file that will be in your /opt/sagetv/app/ directory so I can compare it to mine below.

Wed 3/8 21:43:37.232 ERROR loading LinuxInput plugin of:java.lang.UnsatisfiedLinkError: no LinuxInput in java.library.path
java.lang.UnsatisfiedLinkError: no LinuxInput in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sage.LinuxInput.<init>(Unknown Source)
at sage.EventRouter.ah(Unknown Source)
at sage.EventRouter.<init>(Unknown Source)
at sage.UIManager.C(Unknown Source)
at sage.UIManager.A(Unknown Source)
at sage.UIManager.getLocalUI(Unknown Source)
at sage.SageTV.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sage.Sage.void(Unknown Source)
at sage.Sage.b(Unknown Source)
at SecuredLoader.main(SecuredLoader.java:5)
Wed 3/8 21:43:42.227 Error establishing server connection of:java.io.IOException: BAD_LICENSE
java.io.IOException: BAD_LICENSE
at sage.p.aG(Unknown Source)
at sage.p.<init>(Unknown Source)
at sage.bf.do(Unknown Source)
at sage.bf.for(Unknown Source)
at sage.SageTV.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sage.Sage.void(Unknown Source)
at sage.Sage.b(Unknown Source)
at SecuredLoader.main(SecuredLoader.java:5)
Wed 3/8 21:43:47.532 locale = en
Wed 3/8 21:43:50.780 Connection lost from: Socket[addr=192.168.0.5/192.168.0.5,port=42024,localport=39661] by:java.net.SocketException: Socket closed
Wed 3/8 21:43:50.961 Error establishing server connection of:java.io.IOException: BAD_LICENSE
java.io.IOException: BAD_LICENSE
at sage.p.aG(Unknown Source)
at sage.p.<init>(Unknown Source)
at sage.bf.do(Unknown Source)
at sage.bf.fR(Unknown Source)
at sage.bf.access$300(Unknown Source)
at sage.bf$2.run(Unknown Source)
Wed 3/8 21:43:57.023 button/power PWRF 00000080 00000001
Wed 3/8 21:43:57.024 Power button has been pressed
Could not open /dev/i2c/1
Reply With Quote
  #8  
Old 03-13-2006, 12:13 PM
LostInSpace LostInSpace is offline
Sage Advanced User
 
Join Date: Oct 2003
Location: Brussels (Belgium)
Posts: 186
here you are:

Tue 3/7 17:17:21.682 Error discovering servers:java.net.SocketTimeoutException: Receive timed out
Tue 3/7 17:17:34.299 ERROR loading LinuxInput plugin of:java.lang.UnsatisfiedLinkError: no LinuxInput in java.library.path
java.lang.UnsatisfiedLinkError: no LinuxInput in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sage.LinuxInput.<init>(Unknown Source)
at sage.EventRouter.ah(Unknown Source)
at sage.EventRouter.<init>(Unknown Source)
at sage.UIManager.C(Unknown Source)
at sage.UIManager.A(Unknown Source)
at sage.UIManager.getLocalUI(Unknown Source)
at sage.SageTV.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sage.Sage.void(Unknown Source)
at sage.Sage.b(Unknown Source)
at SecuredLoader.main(SecuredLoader.java:5)
Tue 3/7 17:18:10.362 Error establishing server connection of:java.io.IOException: BAD_LICENSE
java.io.IOException: BAD_LICENSE
at sage.p.aG(Unknown Source)
at sage.p.<init>(Unknown Source)
at sage.bf.do(Unknown Source)
at sage.bf.for(Unknown Source)
at sage.SageTV.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sage.Sage.void(Unknown Source)
at sage.Sage.b(Unknown Source)
at SecuredLoader.main(SecuredLoader.java:5)
Tue 3/7 17:18:21.992 Error establishing server connection of:java.io.IOException: BAD_LICENSE
java.io.IOException: BAD_LICENSE
at sage.p.aG(Unknown Source)
at sage.p.<init>(Unknown Source)
at sage.bf.do(Unknown Source)
at sage.bf.for(Unknown Source)
at sage.SageTV.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sage.Sage.void(Unknown Source)
at sage.Sage.b(Unknown Source)
at SecuredLoader.main(SecuredLoader.java:5)
Mon 3/13 19:13:33.058 Error establishing server connection of:java.io.IOException: BAD_LICENSE
java.io.IOException: BAD_LICENSE
at sage.p.aG(Unknown Source)
at sage.p.<init>(Unknown Source)
at sage.bf.do(Unknown Source)
at sage.bf.for(Unknown Source)
at sage.SageTV.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sage.Sage.void(Unknown Source)
at sage.Sage.b(Unknown Source)
at SecuredLoader.main(SecuredLoader.java:5)
__________________
My config:
AMD athlon64 3200+ / 1 GB RAM / MSI K8N Neo4 / ATI X800 PRO / Technotrend Budget C-1500 / 300GB SATA HD / Win Vista Ultimate
Reply With Quote
  #9  
Old 03-13-2006, 01:14 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
I think you would have to supply the log files from both sides (client & server) to get a better idea of what is happening. (set the property: debug_logging=TRUE)

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #10  
Old 03-14-2006, 04:15 PM
LostInSpace LostInSpace is offline
Sage Advanced User
 
Join Date: Oct 2003
Location: Brussels (Belgium)
Posts: 186
Here are the log files.

Thanks for your help.
Attached Files
File Type: txt sagetv_0.txt (466.1 KB, 319 views)
File Type: txt sagetvclient_0.txt (318 Bytes, 305 views)
__________________
My config:
AMD athlon64 3200+ / 1 GB RAM / MSI K8N Neo4 / ATI X800 PRO / Technotrend Budget C-1500 / 300GB SATA HD / Win Vista Ultimate
Reply With Quote
  #11  
Old 03-22-2006, 01:18 PM
LostInSpace LostInSpace is offline
Sage Advanced User
 
Join Date: Oct 2003
Location: Brussels (Belgium)
Posts: 186
Did those files help you?
Thanks

Ferdinand
__________________
My config:
AMD athlon64 3200+ / 1 GB RAM / MSI K8N Neo4 / ATI X800 PRO / Technotrend Budget C-1500 / 300GB SATA HD / Win Vista Ultimate
Reply With Quote
  #12  
Old 03-22-2006, 08:15 PM
skeltonl skeltonl is offline
Sage User
 
Join Date: May 2004
Posts: 14
Hi Ferdinand

It seems that the Sage Team are busy wih other things at the moment, doesn't it.

When I had a look at your files I did notice that you are running Sagetv version V4.1.9.80. As the Linux version has not been updated for a while (still at 4.16) there may be an issue that a Sage client and a Sage server have to be the same version to work.

So you may have to roll back to sagetv 4.16 on your windows machine.

regards

Les
Reply With Quote
  #13  
Old 03-23-2006, 03:32 AM
LostInSpace LostInSpace is offline
Sage Advanced User
 
Join Date: Oct 2003
Location: Brussels (Belgium)
Posts: 186
I'll give a try! Did you solve your issue that way?
__________________
My config:
AMD athlon64 3200+ / 1 GB RAM / MSI K8N Neo4 / ATI X800 PRO / Technotrend Budget C-1500 / 300GB SATA HD / Win Vista Ultimate
Reply With Quote
  #14  
Old 03-25-2006, 01:34 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Those server logs indicate the first SageTV Client connection works, but the second one fails due to license re-use. You're not trying to use 2 separate Linux clients to connect that each use the same key are you? Have you tried it with just one client connecting from Linux?
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #15  
Old 03-25-2006, 05:46 PM
Panzer Panzer is offline
Sage User
 
Join Date: Nov 2004
Posts: 34
I've been getting the same results for the past couple of months. Trying to connect a single linux client will always result in a BAD_LICENSE in the linux log and a "Client License Piracy" in the windows server log.

Doing the reverse and changing the startup script back and four windows clients can connect happily to the linux server with no complaints about any license problem.

I've experiminted with having the windows server in service mode and back, upgrading/downgrading, wiping out properties files, redownloading the ISO and still receive the license error.
Reply With Quote
  #16  
Old 03-25-2006, 11:24 PM
skeltonl skeltonl is offline
Sage User
 
Join Date: May 2004
Posts: 14
I have to echo Panzers comments - I have tried everything to get this to work over the last few months and am starting to seriously doubt the ability of the Linux version to work as a Client which is why I purchased it.

In my case there can be no question of having more than one Linux client attempting to connect as I have gone to the step of setting up a seperate network of just a Windows server and a Linux client machine to test this and have continued to experiance the "Bad License" issue.
Reply With Quote
  #17  
Old 03-26-2006, 10:40 AM
LostInSpace LostInSpace is offline
Sage Advanced User
 
Join Date: Oct 2003
Location: Brussels (Belgium)
Posts: 186
I only use 1 linux client. I am using 1 windows client & 1 MVP. But actually, they are not used together.
Thanks

Ferdinand
__________________
My config:
AMD athlon64 3200+ / 1 GB RAM / MSI K8N Neo4 / ATI X800 PRO / Technotrend Budget C-1500 / 300GB SATA HD / Win Vista Ultimate
Reply With Quote
  #18  
Old 03-27-2006, 09:03 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
What's the modified startsage script that you're trying to use? Maybe you didn't edit that right (I don't think we've posted info on how to do it, did we?)

The main thing to change is where it says:
"sagetv Sage.properties"
instead it should say
"sagetvclient SageClient.properties"

(the properties file name doesn't really matter though)
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #19  
Old 03-27-2006, 09:22 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
That's in the Linux FAQs, but now I noticed that post #3 above mentions changing 'sage.jar', instead of 'sagetv'. Could that be the problem in this thread?

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #20  
Old 04-18-2006, 07:32 AM
LostInSpace LostInSpace is offline
Sage Advanced User
 
Join Date: Oct 2003
Location: Brussels (Belgium)
Posts: 186
sorry for the delay but here's my startsage script.
Thanks for your support...

Ferdinand
Attached Files
File Type: txt startsage.txt (1.1 KB, 282 views)
__________________
My config:
AMD athlon64 3200+ / 1 GB RAM / MSI K8N Neo4 / ATI X800 PRO / Technotrend Budget C-1500 / 300GB SATA HD / Win Vista Ultimate
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


All times are GMT -6. The time now is 01:37 AM.


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