|
General Discussion General discussion about SageTV and related companies, products, and technologies. |
|
Thread Tools | Search this Thread | Display Modes |
#41
|
||||
|
||||
I have made the change to this script to downlaod all files which is about 797meg. I use sjq to run it daily. It will fail every time after the first time it is run. If I delete the folder , it will run properly and then fail every time again till I delete the folder it creates. I have looked at teh log and it seems to be a java memory error. I don't know how to fix this short of creating a file that deletes the folder that is created and redownloading all 797 meg of files, which I don't what to do if at all possible. I am including the log file, if someone could help with this issue, it would be much appreciated.
__________________
Sage Tv Server-Amd 4200FX quad core, Asus Nvidia EN610 Hdmi out , 8 Gig Ram ,(3) HVR-1800, 3.5 terrabyte storage, Windows 8 Pro on sage 9.09 system . Media Server- 6 Terabytes on 5 drives, Amd x2 6000 8 useable gig ram on win 7 32 bit media server. |
#42
|
|||
|
|||
Stupid question -- coming in a bit late in the discussion.. What is the goal of the plugin -- ? Is it to just mirror a remote site and snarf up whatever it finds? Any particular reason it's written in Java? Seems like another scripting language would be better suited -- any reason it's being run on Windows? Can 'the script' be run on Unix (e.g. Linux, OSX, etc) if there's no actual requirement to run on Windows?
__________________
SERVER: Asus P8Z68-V/Gen 3 with Intel i5 2500K CPU, 16Gb RAM, 64Gb SSD with Win7 x64, 2x 2Tb SATA drives, latest SageTV w/ Phoenix and friends TUNERS: 3 x HD Home Run dual tuners CLIENTS: 2 x HD300s |
#43
|
||||
|
||||
I don't know the particulars of the script itself but one reason for it being done in Java might be is that Java is cross-plaform compatible -- it should run on Linxu, OS X, and Windows....
__________________
SageTV Server 7.1.x w/Gemstone and Plex Home Theater v1.0.10 w/PlexPass
HD-PVR w/v1.5.6 drivers / Hauppauge IR blaster / FiOS Extreme HD / Motorola QIP6200 / SPDIF+720p Fixed Output on HP Media Center 8400F (Phenom 9500 QuadCore 2.2GHz, nVidia GeForce 8500 GT) via Olevia 247TFHD/Onyko TX-SR606/Harmony 550/HP MediaSmart EX490 WHS w/12TB Plex Media Server v0.9.9.5 on HP Touchsmart Envy 23 d16qd Sonos Play:3, Connect / SimpleTV v2 / Roku 2 XS+Plex / iPhone 5 / iPad 2 |
#44
|
||||
|
||||
Quote:
Quote:
DigestUtils.md5Hex( Show me the whole line that contains that text. There is a memory issue where the original version of the script used an older version of DigestUtils that could only compute the md5 sum of files by first loading the entire file into memory. On very large files, which exist when you start downloading the entire repository, you would run out of memory. I made a post about that in this thread somewhere and the fix is to upgrade commons-codec to the latest version and use the updated md5Hex() method that computes from an IO stream instead of from memory. You avoid this error when deleting the entire contents of the downloads folder because in that case, the script never has to compute the md5 of existing files to compare because there are no existing files. Quote:
Why Java (Groovy, actually)? Because I run the script from SJQv4, which is a Java based environment. Which OS does the script run on? Anywhere you have a JVM installed with the required prereq jars. The SJQv4 environment provides such an env. Windows only? Nope. I run it on Linux; most run it on Windows (only because Windows is the dominant OS for Sage users). Runs on Unix? Yup, well Linux, at least. Any Unix flavour with a JRE + the prereq jars should be fine. YMMV. Quote:
I actually ported the script to PHP for someone to run on a hosted server out on the internet somewhere. I don't even remember for whom it was for, but I do know I still get the email notifications everytime it updates a zip file from the sagetv servers.
__________________
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... |
#45
|
|||
|
|||
Cool.. The only reason I asked is that I've written a number of Korn shell scripts that do stuff similar to that and it would seem fairly straightforward to write one that uses wget and friends to download the driver tree and fire it off with a nightly/weekly cron job -- particularly if the java code is occasionally being difficult.. Anyway, just throwing that out there..
__________________
SERVER: Asus P8Z68-V/Gen 3 with Intel i5 2500K CPU, 16Gb RAM, 64Gb SSD with Win7 x64, 2x 2Tb SATA drives, latest SageTV w/ Phoenix and friends TUNERS: 3 x HD Home Run dual tuners CLIENTS: 2 x HD300s |
#46
|
|||
|
|||
Quote:
The java code is being difficult likely because of bugs in the code and not Java itself. If I get the rest of the details then I can probably fix the code rather easily. But, definitely, you could write a similar script in some other language and run it daily/weekly/etc. from cron on linux and get the same result.
__________________
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... |
#47
|
||||
|
||||
if(!TEST_MODE && (!localFile.exists() || DigestUtils.md5Hex((localStream = new FileInputStream(localFile)).getBytes()).toLowerCase() != it.MD5.text().toLowerCase())) {
__________________
Sage Tv Server-Amd 4200FX quad core, Asus Nvidia EN610 Hdmi out , 8 Gig Ram ,(3) HVR-1800, 3.5 terrabyte storage, Windows 8 Pro on sage 9.09 system . Media Server- 6 Terabytes on 5 drives, Amd x2 6000 8 useable gig ram on win 7 32 bit media server. |
#48
|
|||
|
|||
Quote:
if(!TEST_MODE && (!localFile.exists() || DigestUtils.md5Hex((localStream = new FileInputStream(localFile))).toLowerCase() != it.MD5.text().toLowerCase())) If you're using the Sage plugin version of the task client to run this script then you're kind of stuck unless you want to start manipulating the plugin repo manually on your system, which I don't recommend. In that case, you could grab an md5sum generator tool from the web and use it in place of DigestUtils. Alternatively, you could nudge stuckless to upgrade the common-codec plugin to the latest version then mod the script as outlined above.
__________________
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... |
#49
|
|||
|
|||
Oooh.. XML.. Yumm.. I've been working lately with XML in Smalltalk (GST) -- works great if you like that OO environment (which I do!)
__________________
SERVER: Asus P8Z68-V/Gen 3 with Intel i5 2500K CPU, 16Gb RAM, 64Gb SSD with Win7 x64, 2x 2Tb SATA drives, latest SageTV w/ Phoenix and friends TUNERS: 3 x HD Home Run dual tuners CLIENTS: 2 x HD300s |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |