SageTV Community  

Go Back   SageTV Community > General Discussion > General Discussion
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

General Discussion General discussion about SageTV and related companies, products, and technologies.

Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 06-30-2011, 07:21 PM
jptheripper jptheripper is offline
Sage Fanatic
 
Join Date: Dec 2007
Location: Florida
Posts: 956
Quote:
Originally Posted by KJake View Post
If this actually becomes necessary, I have a linux server with plenty of bandwidth and space. Notice the upload speed (aka how fast people can download from me)...

you suck

__________________
Gigabyte GA-MA770-DS3/4gb DDR2/AMD Phenom 955 3.2ghz Quad Core
Windows 7 64bit Home Premium
Hauppauge 1600/1850/2250/colossus/2650(CableCard 2 tuner)
8tb RAID5 storage/media/other &3tb RAID5 backup storage on a HighPoint RocketRaid 2680
1tb 3 disk Recording Pool
all in a beautiful Antec 1200
SageMyMovies/Comskip/PlayON/SageDCT/SRE
HD100/HD300 extenders
Reply With Quote
  #22  
Old 06-30-2011, 07:37 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Thanks Slugger for the info I got it working.... but it appears that plugin creators have files stored all over the place... so if they leave or decide to move on we have to download all their files wherever they may be. So I guess I will be limiting the plugins I install for now.


ex
<Location>http://www.seanet.com/~kusnick/sage/plugins/GKusnickDARSwitcher-STVI-1.4.4.zip</Location>
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 06-30-2011 at 07:42 PM.
Reply With Quote
  #23  
Old 06-30-2011, 08:12 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by nyplayer View Post
Thanks Slugger for the info I got it working.... but it appears that plugin creators have files stored all over the place... so if they leave or decide to move on we have to download all their files wherever they may be. So I guess I will be limiting the plugins I install for now.


ex
<Location>http://www.seanet.com/~kusnick/sage/plugins/GKusnickDARSwitcher-STVI-1.4.4.zip</Location>
If you want to mirror every plugin file then it's just a matter of changing this:

Code:
// Links matching this regex will be mirrored
def regex = /^http:\/\/download.sage/
to this:

Code:
// Links matching this regex will be mirrored
def regex = /.*/
The Sage hosted downloads are 36MB or so. Everything is probably on the order of 100-200MB (but that's just a guess). Of course the script only downloads files that match the regex and haven't been downloaded before/have a different MD5 checksum (i.e. they've been updated since last downloaded) so after the initial sync, you wouldn't be downloading everything every time you ran it. Note, however, that if new versions of a plugin are submitted with different file names then this script keeps the old file along side the new one (meaning your mirror can grow in size as new files are added since old ones aren't deleted).
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #24  
Old 06-30-2011, 08:39 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Thanks,

What I want to do is take a snapshot of my current system and all the plugins as it stands today. Have plenty of space so really not a problem.

OOPS error... First few worked died on this one.

ID: twit.tv
Location: http://forums.sagetv.com/forums/down...=file&id=389&a
ct=down
Download: C:\Inetpub\wwwroot\repository\twit.tv\downloads.php?do=file&id
=389&act=down
MD5: b0f5ed7e434fc6d90c5354f7262c3feb
Downloading... Caught: java.io.FileNotFoundException: C:\Inetpub\wwwroot
\repository\twit.tv\downloads.php?do=file&id=389&act=down (The filename, directo
ry name, or volume label syntax is incorrect)
at mirror_repo$_run_closure2_closure5.doCall(mirror_repo.groovy:48)
at mirror_repo$_run_closure2.doCall(mirror_repo.groovy:38)
at mirror_repo.run(mirror_repo.groovy:36)

C:\Program Files\Groovy\groovy-1.8.0\bin>
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #25  
Old 06-30-2011, 09:48 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by nyplayer View Post
Thanks,

What I want to do is take a snapshot of my current system and all the plugins as it stands today. Have plenty of space so really not a problem.

OOPS error... First few worked died on this one.

ID: twit.tv
Location: http://forums.sagetv.com/forums/down...=file&id=389&a
ct=down
Download: C:\Inetpub\wwwroot\repository\twit.tv\downloads.php?do=file&id
=389&act=down
MD5: b0f5ed7e434fc6d90c5354f7262c3feb
Downloading... Caught: java.io.FileNotFoundException: C:\Inetpub\wwwroot
\repository\twit.tv\downloads.php?do=file&id=389&act=down (The filename, directo
ry name, or volume label syntax is incorrect)
at mirror_repo$_run_closure2_closure5.doCall(mirror_repo.groovy:48)
at mirror_repo$_run_closure2.doCall(mirror_repo.groovy:38)
at mirror_repo.run(mirror_repo.groovy:36)

C:\Program Files\Groovy\groovy-1.8.0\bin>
Hmm... didn't know the Sage core would follow redirects for file links. They should disallow that. No fix coming for that this weekend. It's Canada Day north of the 49th and our holiday is tomorrow instead of Monday (but I get Fri/Mon anyway ) so I'll be honest, if it takes more than 2 minutes, it ain't getting done this weekend.

If you're up for a challenge, the quick and dirty fix is to identify invalid chars in the file name (such as '?'), assume it's a redirect link, hash the file name into something valid and use that as the file name instead. The "full, proper" fix would be to mod the code to follow the redirect, get the actual file name, and carry on. When I fix it, I'll be doing the former. Either fix, as you can see, is more than two mins of my time so... maybe Monday. And honestly, you might want to post a nudge reply here to remind me about this, if you're still needing the fix.

Happy Canada Day!
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #26  
Old 06-30-2011, 10:16 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Just as I sat down to watch a movie, the 2 min fix came to me, so here it is...

http://sagetv-addons.googlecode.com/...or_repo.groovy

Happy Canada Day!!
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #27  
Old 06-30-2011, 10:32 PM
sleonard's Avatar
sleonard sleonard is offline
Sage Icon
 
Join Date: Nov 2003
Posts: 1,506
I'm not sure you want to use your Jetty webserver for mirroring your plugins. Jetty is itself a plugin, what if you need to do a complete reinstall and need Jetty running in order to install it?

S
Reply With Quote
  #28  
Old 07-01-2011, 12:52 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by Slugger View Post
Just as I sat down to watch a movie, the 2 min fix came to me, so here it is...

http://sagetv-addons.googlecode.com/...or_repo.groovy

Happy Canada Day!!
Error


Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>cd C:\Program Files\Groovy\groovy-1.8.0\
bin

C:\Program Files\Groovy\groovy-1.8.0\bin>groovy mirror_repo.groovy
ID: myjavatools-lib
        Location: http://download.sage.tv/plugins/Slugger/mjlib-5.0.zip
        Download: C:\Inetpub\wwwroot\repository\myjavatools-lib\mjlib-5.0.zip
        MD5: a4301478a82e84a066656c34c37ab3bf
        Latest version already downloaded!
ID: ant
        Location: http://download.sage.tv/plugins/Slugger/ant-1.8.2.zip
        Download: C:\Inetpub\wwwroot\repository\ant\ant-1.8.2.zip
        MD5: b8dcebcc9dd77d09e6aed7501281fc17
        Latest version already downloaded!
ID: last.fm-bindings
        Location: http://sagetv-scrobbler.googlecode.com/files/last.fm-bindings-
2009.07.03.zip
        Download: C:\Inetpub\wwwroot\repository\last.fm-bindings\last.fm-binding
s-2009.07.03.zip
        MD5: 16b6e5bf0669ea791851adafce5d0a90
        Latest version already downloaded!
ID: EncoderNames
        Location: http://download.sagetv.com/plugins/JREkiwi/EncoderNames/Encode
r_Names_0.8.zip
        Download: C:\Inetpub\wwwroot\repository\EncoderNames\Encoder_Names_0.8.z
ip
        MD5: FB1B27F4EF8B92166618CF3ECDFB6373
        Latest version already downloaded!
ID: twit.tv
        Location: http://forums.sagetv.com/forums/downloads.php?do=file&id=389&a
ct=down
        WARNING: File name appears to be a redirect link!
        Download: 64ce319153de5e67a78affe5cffd512b.zip
        MD5: b0f5ed7e434fc6d90c5354f7262c3feb
Caught: groovy.lang.MissingMethodException: No signature of method: java.lang.St
ring.exists() is applicable for argument types: () values: []
Possible solutions: wait(), expand(), execute(), toList(), next(), equals(java.l
ang.Object)
        at mirror_repo$_run_closure2_closure5.doCall(mirror_repo.groovy:50)
        at mirror_repo$_run_closure2.doCall(mirror_repo.groovy:40)
        at mirror_repo.run(mirror_repo.groovy:38)

C:\Program Files\Groovy\groovy-1.8.0\bin>
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 07-01-2011 at 12:55 AM.
Reply With Quote
  #29  
Old 07-01-2011, 12:52 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by sleonard View Post
I'm not sure you want to use your Jetty webserver for mirroring your plugins. Jetty is itself a plugin, what if you need to do a complete reinstall and need Jetty running in order to install it?

S
I used the Built in windows server worked fine.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #30  
Old 07-01-2011, 08:32 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by nyplayer View Post
Error


Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>cd C:\Program Files\Groovy\groovy-1.8.0\
bin

C:\Program Files\Groovy\groovy-1.8.0\bin>groovy mirror_repo.groovy
ID: myjavatools-lib
        Location: http://download.sage.tv/plugins/Slugger/mjlib-5.0.zip
        Download: C:\Inetpub\wwwroot\repository\myjavatools-lib\mjlib-5.0.zip
        MD5: a4301478a82e84a066656c34c37ab3bf
        Latest version already downloaded!
ID: ant
        Location: http://download.sage.tv/plugins/Slugger/ant-1.8.2.zip
        Download: C:\Inetpub\wwwroot\repository\ant\ant-1.8.2.zip
        MD5: b8dcebcc9dd77d09e6aed7501281fc17
        Latest version already downloaded!
ID: last.fm-bindings
        Location: http://sagetv-scrobbler.googlecode.com/files/last.fm-bindings-
2009.07.03.zip
        Download: C:\Inetpub\wwwroot\repository\last.fm-bindings\last.fm-binding
s-2009.07.03.zip
        MD5: 16b6e5bf0669ea791851adafce5d0a90
        Latest version already downloaded!
ID: EncoderNames
        Location: http://download.sagetv.com/plugins/JREkiwi/EncoderNames/Encode
r_Names_0.8.zip
        Download: C:\Inetpub\wwwroot\repository\EncoderNames\Encoder_Names_0.8.z
ip
        MD5: FB1B27F4EF8B92166618CF3ECDFB6373
        Latest version already downloaded!
ID: twit.tv
        Location: http://forums.sagetv.com/forums/downloads.php?do=file&id=389&a
ct=down
        WARNING: File name appears to be a redirect link!
        Download: 64ce319153de5e67a78affe5cffd512b.zip
        MD5: b0f5ed7e434fc6d90c5354f7262c3feb
Caught: groovy.lang.MissingMethodException: No signature of method: java.lang.St
ring.exists() is applicable for argument types: () values: []
Possible solutions: wait(), expand(), execute(), toList(), next(), equals(java.l
ang.Object)
        at mirror_repo$_run_closure2_closure5.doCall(mirror_repo.groovy:50)
        at mirror_repo$_run_closure2.doCall(mirror_repo.groovy:40)
        at mirror_repo.run(mirror_repo.groovy:38)

C:\Program Files\Groovy\groovy-1.8.0\bin>
Fixed in svn. I'm heading for the river very shortly, if you test and find more errors before 11:15, I might be able to fix them. After that, won't be any more coding today, which, trust me, will be a good thing for all SageTV users!
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #31  
Old 07-01-2011, 09:05 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Slugger,

Sorry it failed again. No Problem if you cannot fix it.

Code:
C:\Program Files\Groovy\groovy-1.8.0\bin>groovy mirror_repo.groovy
ID: myjavatools-lib
        Location: http://download.sage.tv/plugins/Slugger/mjlib-5.0.zip
        Download: C:\Inetpub\wwwroot\repository\myjavatools-lib\mjlib-5.0.zip
        MD5: a4301478a82e84a066656c34c37ab3bf
        Latest version already downloaded!
ID: ant
        Location: http://download.sage.tv/plugins/Slugger/ant-1.8.2.zip
        Download: C:\Inetpub\wwwroot\repository\ant\ant-1.8.2.zip
        MD5: b8dcebcc9dd77d09e6aed7501281fc17
        Latest version already downloaded!
ID: last.fm-bindings
        Location: http://sagetv-scrobbler.googlecode.com/files/last.fm-bindings-
2009.07.03.zip
        Download: C:\Inetpub\wwwroot\repository\last.fm-bindings\last.fm-binding
s-2009.07.03.zip
        MD5: 16b6e5bf0669ea791851adafce5d0a90
        Latest version already downloaded!
ID: EncoderNames
        Location: http://download.sagetv.com/plugins/JREkiwi/EncoderNames/Encode
r_Names_0.8.zip
        Download: C:\Inetpub\wwwroot\repository\EncoderNames\Encoder_Names_0.8.z
ip
        MD5: FB1B27F4EF8B92166618CF3ECDFB6373
        Latest version already downloaded!
ID: twit.tv
        Location: http://forums.sagetv.com/forums/downloads.php?do=file&id=389&a
ct=down
        WARNING: File name appears to be a redirect link!
        Download: 64ce319153de5e67a78affe5cffd512b.zip
        MD5: b0f5ed7e434fc6d90c5354f7262c3feb
        Downloading... Caught: java.lang.NullPointerException: Cannot invoke met
hod mkdirs() on null object
        at mirror_repo$_run_closure2_closure5.doCall(mirror_repo.groovy:52)
        at mirror_repo$_run_closure2.doCall(mirror_repo.groovy:40)
        at mirror_repo.run(mirror_repo.groovy:38)

C:\Program Files\Groovy\groovy-1.8.0\bin>
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #32  
Old 07-01-2011, 09:24 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by nyplayer View Post
Slugger,

Sorry it failed again. No Problem if you cannot fix it.

Code:
C:\Program Files\Groovy\groovy-1.8.0\bin>groovy mirror_repo.groovy
ID: myjavatools-lib
        Location: http://download.sage.tv/plugins/Slugger/mjlib-5.0.zip
        Download: C:\Inetpub\wwwroot\repository\myjavatools-lib\mjlib-5.0.zip
        MD5: a4301478a82e84a066656c34c37ab3bf
        Latest version already downloaded!
ID: ant
        Location: http://download.sage.tv/plugins/Slugger/ant-1.8.2.zip
        Download: C:\Inetpub\wwwroot\repository\ant\ant-1.8.2.zip
        MD5: b8dcebcc9dd77d09e6aed7501281fc17
        Latest version already downloaded!
ID: last.fm-bindings
        Location: http://sagetv-scrobbler.googlecode.com/files/last.fm-bindings-
2009.07.03.zip
        Download: C:\Inetpub\wwwroot\repository\last.fm-bindings\last.fm-binding
s-2009.07.03.zip
        MD5: 16b6e5bf0669ea791851adafce5d0a90
        Latest version already downloaded!
ID: EncoderNames
        Location: http://download.sagetv.com/plugins/JREkiwi/EncoderNames/Encode
r_Names_0.8.zip
        Download: C:\Inetpub\wwwroot\repository\EncoderNames\Encoder_Names_0.8.z
ip
        MD5: FB1B27F4EF8B92166618CF3ECDFB6373
        Latest version already downloaded!
ID: twit.tv
        Location: http://forums.sagetv.com/forums/downloads.php?do=file&id=389&a
ct=down
        WARNING: File name appears to be a redirect link!
        Download: 64ce319153de5e67a78affe5cffd512b.zip
        MD5: b0f5ed7e434fc6d90c5354f7262c3feb
        Downloading... Caught: java.lang.NullPointerException: Cannot invoke met
hod mkdirs() on null object
        at mirror_repo$_run_closure2_closure5.doCall(mirror_repo.groovy:52)
        at mirror_repo$_run_closure2.doCall(mirror_repo.groovy:40)
        at mirror_repo.run(mirror_repo.groovy:38)

C:\Program Files\Groovy\groovy-1.8.0\bin>
That problem is fixed in svn, with one foot out the door. I'm done for the day. Hopefully that fixes it all, if not, post the next error and I'll tackle it tomorrow.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #33  
Old 07-01-2011, 09:36 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Thanks much appreciated enjoy.

It worked was able to backup everything
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 07-01-2011 at 09:42 AM.
Reply With Quote
  #34  
Old 07-01-2011, 10:47 AM
hugenbdd hugenbdd is offline
Sage Advanced User
 
Join Date: Feb 2009
Location: Cincinnati, KY
Posts: 81
Quote:
Originally Posted by nyplayer View Post
Thanks much appreciated enjoy.

It worked was able to backup everything
Hi nyplayer

How large was the full download? Was it the 200 megs as predicted?

Thanks
Dave
Reply With Quote
  #35  
Old 07-01-2011, 10:49 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by hugenbdd View Post
Hi nyplayer

How large was the full download? Was it the 200 megs as predicted?

Thanks
Dave
close to 500 meg.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.
Reply With Quote
  #36  
Old 07-11-2011, 09:00 PM
hugenbdd hugenbdd is offline
Sage Advanced User
 
Join Date: Feb 2009
Location: Cincinnati, KY
Posts: 81
Quote:
Originally Posted by Slugger View Post
That problem is fixed in svn, with one foot out the door. I'm done for the day. Hopefully that fixes it all, if not, post the next error and I'll tackle it tomorrow.
Anybody getting any errors when running the script with the /.*/ regex (everything)?

I'm getting this error below. I am running on windows, but the modified regex worked fine. It seems to be crashing on the diamond plug in.... not sure if it's a size issue with that particular plug in, or just a size issue there.

No error thrown when running on the normal regex.

Code:
Error.
------------------
ID: DiamondSTVi
	Location: http://sagediamond.googlecode.com/fi...amondB3.30.zip
	Download: C:\SagePlugins\DiamondSTVi\DiamondB3.30.zip
	MD5: bf157a7e2ee3607b4426c465e34c9520
Exception thrown
Jul 11, 2011 10:52:33 PM org.codehaus.groovy.runtime.StackTraceUtils sanitize

WARNING: Sanitizing stacktrace:

java.lang.OutOfMemoryError: Java heap space

	at java.util.Arrays.copyOf(Unknown Source)

	at java.io.ByteArrayOutputStream.write(Unknown Source)

	at org.codehaus.groovy.runtime.DefaultGroovyMethods.getBytes(DefaultGroovyMethods.java:12767)

	at org.codehaus.groovy.runtime.dgm$301.invoke(Unknown Source)

	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)

	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)

	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
Thanks
Dave
Reply With Quote
  #37  
Old 07-11-2011, 10:09 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Yeah, it's a function of the size of the file. You'll have to increase the java heap for the Groovy JVM (and you'll have to head to the groovy web site for those details b/c I don't remember how to specify that on the command line).

Alternatively, you can upgrade the commons-codec jar to 1.4 or newer and change this line:

Code:
        if(!TEST_MODE && (!localFile.exists() || DigestUtils.md5Hex((localStream = new FileInputStream(localFile)).getBytes()).toLowerCase() != it.MD5.text().toLowerCase())) {
To this:

Code:
        if(!TEST_MODE && (!localFile.exists() || DigestUtils.md5Hex((localStream = new FileInputStream(localFile))).toLowerCase() != it.MD5.text().toLowerCase())) {
And that should also eliminate the OOM error (though untested because I don't have a recent enough version of commons-codec and can't upgrade it for other reasons).
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #38  
Old 07-12-2011, 08:13 AM
hugenbdd hugenbdd is offline
Sage Advanced User
 
Join Date: Feb 2009
Location: Cincinnati, KY
Posts: 81
Quote:
Originally Posted by Slugger View Post
Yeah, it's a function of the size of the file. You'll have to increase the java heap for the Groovy JVM (and you'll have to head to the groovy web site for those details b/c I don't remember how to specify that on the command line).

Alternatively, you can upgrade the commons-codec jar to 1.4 or newer and change this line:

Code:
        if(!TEST_MODE && (!localFile.exists() || DigestUtils.md5Hex((localStream = new FileInputStream(localFile)).getBytes()).toLowerCase() != it.MD5.text().toLowerCase())) {
To this:

Code:
        if(!TEST_MODE && (!localFile.exists() || DigestUtils.md5Hex((localStream = new FileInputStream(localFile))).toLowerCase() != it.MD5.text().toLowerCase())) {
And that should also eliminate the OOM error (though untested because I don't have a recent enough version of commons-codec and can't upgrade it for other reasons).
Thanks
That worked,and I have gotten farther.

I did the following.
In the New System Variable dialog box, enter:
Variable name: JAVA_OPTS.

Variable value -Xms256m -Xmx512m


However, now I'm getting to a file that is no longer hosted. It's the phoenix-api. the location is returning a 404.

http://sagephoenix.googlecode.com/fi...api-2.3.35.zip

I tried playing around with a "try/catch" in java but haven't had much success in getting the response code. I will keep trying to see what I can come up with to make the script more robust.

------Error Below ------
ID: phoenix-api
Location: http://sagephoenix.googlecode.com/fi...api-2.3.35.zip
Download: C:\SagePlugins\phoenix-api\phoenix-api-2.3.35.zip
MD5: 1053d2cc00b7ba4fa157fb12643e3819
Downloading...
Exception thrown
Jul 12, 2011 10:08:29 AM org.codehaus.groovy.runtime.StackTraceUtils sanitize
WARNING: Sanitizing stacktrace:
java.io.FileNotFoundException: http://sagephoenix.googlecode.com/fi...api-2.3.35.zip
at sun.net.http://www.protocol.http.HttpURLConn...Stream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at java_net_URL$openStream.call(Unknown Source)


Thanks
Dave
Reply With Quote
  #39  
Old 07-12-2011, 09:08 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
I added a try/catch block that should properly skip files that can't be downloaded. I just committed the update to svn.
__________________
Twitter: @ddb_db
Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive
Capture: 2 x Colossus
STB Controller: 1 x USB-UIRT
Software:Java 1.7.0_71; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #40  
Old 10-16-2012, 12:08 PM
BobbyDing's Avatar
BobbyDing BobbyDing is offline
Sage Aficionado
 
Join Date: May 2009
Location: Central-West Florida
Posts: 467
Hi Folks,
I discovered an issue with this I think (maybe it's just my setup). The first execution of the script creates a good repo.xml with the proper local links. Any subsequent executions where a new file is not downloaded ("latest version already downloaded") will leave the original web link in the repo.xml.

I don't know groovy or java, but a made a quick repair that seems to work. I copied and pasted the full "it.location" line to within the ELSE so that it does the "it.location" line for either case. So far all executions of the script have been creating the repo.xml with the proper local links even when no updates are downloaded.

I'm including a copy of the repo.groovy below.

Hopefully I didn't screw up something else.

Bobby
Attached Files
File Type: txt repo.groovy.txt (3.4 KB, 140 views)
__________________
Athlon II Quad Core 3Ghz, 8GB Ram. 12GB Storage. 3 (x4) HDHR for OTA Across 2 Cities, HD200, 2x HD300.
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
Tips on using Rsync to mirror video folders? jbmia SageTV Linux 5 02-21-2011 08:55 AM
SageTV Graph Plugins babgvant SageTV v7 Customizations 15 08-27-2010 01:15 AM
SageTV V7 plugins and classpaths michaeldjcox SageTV v7 Customizations 1 06-24-2010 09:06 AM
I Need a New Shared Web Host Crashless The SageTV Community 8 06-28-2009 01:15 AM
Can SageTV Linux use same plugins as SageTV XP Windows? TechBill SageTV Linux 3 10-02-2007 12:59 AM


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


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