Crashplan on PogoPlug E02 (Pink)

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Crashplan on PogoPlug E02 (Pink)

Postby bheemsoth » Wed Nov 27, 2013 1:26 pm

Good morning all,

I've been working on getting my Pogoplug E02 running as a headless Crashplan server, and am having mixed results. My Windows and Linux clients (about 4 right now) can connect to the server, but will often have messages like "waiting for connection" or "connecting to backup server" for hours on end. After 4-6 hours they will generally finally connect and complete their backup. Once this connection occurs everything functions as desired - I can restore files, backup files, etc.. Once I reboot the client or the Pogoplug, I go back into the waiting pattern though.

On the commonly referenced Opticality blog i found reference to a fix for "timing issues" http://www.opticality.com/blog/2011/07/ ... oplug-pro/. I have installed NSS, but I was unable to run the denoted jar command. I think this is because I have Oracle JRE 7.x instead of OpenJDK6. I was unable to find OpenJDK6 for this platform anywhere, so I substituted with 7.x. I think this may be a contributing factor, so if anyone can send me OpenJDK6, it would be much appreciated!

$this->bbcode_second_pass_quote('', 'U')pdate: This next part solves the timing delays, apparently among a number of other issues that I wasn’t even aware of! Once again, thanks to Ankit for figuring this all out.

You will need the nss package installed. Mine was there after the major update above. If you don’t have it installed, type: pacman -Sy nss

The file that’s missing from openjdk, which is causing all of the problems with CrashPlan, is libjnidispatch.so. It’s part of the jna package (Java Native Access). You’ll have to download a Debian package and extract the file.

Select a location near you from this link: http://packages.debian.org/sid/armel/li ... a/download. In the US, I chose this link directly: http://ftp.us.debian.org/debian/pool/ma ... _armel.deb

Assuming you downloaded that file to /tmp, here are the commands to extract the file we’re interested in:

Type: cd /tmp

Type: ar vx libjna-java_3.2.7-4_armel.deb (this will extract three files, one of which contains the file we’re interested in)

Type: tar -xzf data.tar.gz (this will unpack the tar file, creating a series of directories in /tmp/usr)

First we need to create the target directory for this. Since mkdirs (make nested directories) doesn’t exist by default, we’ll execute a number of consecutive mkdir commands. Hint: you can hit up-arrow after each command and just append the next directory name in the series of mkdir commands.

Type: cd /usr/local/crashplan/lib

Type: mkdir com

Type: mkdir com/sun

Type: mkdir com/sun/jna

Type: mkdir com/sun/jna/linux-arm

Type: cp /tmp/usr/lib/jni/libjnidispatch.so com/sun/jna/linux-arm/ (now we have the file in the correct directory)

Type: cp -p jna-3.2.5.jar jna-3.2.5.jar-ORIGINAL (this isn’t strictly necessary. Aside from documenting our change, it allows us to recover from errors more easily)

Type: jar uf jna-3.2.5.jar com/sun/jna/linux-arm/libjnidispatch.so (this is the critical step, inserting the library into the jar file that CrashPlan uses. I’m not sure the com/sun/jna/linux-arm directory creation is necessary, but better safe than sorry)

It seems that in addition to solving the timing issues (long delays in starting up), this actually dispatches (duh) maintenance tasks like pruning, synchronizing, etc. It’s all good, but there is a side-effect (well worth it!) that the Java process now takes up a significant amount of CPU, even when backups aren't active, since it appears to actively mai


Here is my specific Java version:
$this->bbcode_second_pass_code('', '@heempogoplug ~]# java -version
java version "1.7.0_45"
Java(TM) SE Embedded Runtime Environment (build 1.7.0_45-b15, headless)
Java HotSpot(TM) Embedded Client VM (build 24.45-b08, mixed mode)
[root@heempogoplug ~]')

The engine_error.log file generates the following output:

$this->bbcode_second_pass_quote('', 'E')xception in thread "W12096750_ScanWrkr" java.lang.NoClassDefFoundError: Could n
ot initialize class com.code42.jna.inotify.InotifyManager
at com.code42.jna.inotify.JNAInotifyFileWatcherDriver.<init>(JNAInotifyF
ileWatcherDriver.java:21)
at com.code42.backup.path.BackupSetsManager.initFileWatcherDriver(Backup
SetsManager.java:393)
at com.code42.backup.path.BackupSetsManager.startScheduledFileQueue(Back
upSetsManager.java:331)
at com.code42.backup.path.BackupSetsManager.access$1600(BackupSetsManage
r.java:66)
at com.code42.backup.path.BackupSetsManager$ScanWorker.delay(BackupSetsM
anager.java:1073)
at com.code42.utils.AWorker.run(AWorker.java:158)
at java.lang.Thread.run(Thread.java:744)
~


I am running Crashplan 3.5.3 and have already tried updating the Java temp directory as described on another blog.

So, my question is - has anyone run into these issues before and have a work around? I am still learning the Linux platform, so it's very possible that there is something that I'm missing. I appreciate any help or pointers you guys may be able to provide!

Thanks,
Bria
bheemsoth
 
Posts: 2
Joined: Wed Nov 27, 2013 1:10 pm

Re: Crashplan on PogoPlug E02 (Pink)

Postby dhead666 » Wed Nov 27, 2013 2:54 pm

I recommend to read my thread at viewtopic.php?f=31&t=5120
But don't expect much from an armv5 device with 256MB ram.
I moved to Cubieboard A20 with 1GB ram while I currently actively cool it with a fan to keep the cpu from locking down (until I'll add a heatsink) it amazingly fast and stable (when cooled down :lol: ).
Pogoplug Series 4 - Network Storage and Music Server: NFS/TVHeadend
Cubox-i2 - Applications Server: Lighttpd/CherryMusic/HTPCManager/Transmission/Couchpotato/SickBeard/OpenVPN
Samsung Chromebook: Chroach in ChromeOS
dhead666
 
Posts: 116
Joined: Sat Aug 11, 2012 10:25 pm

Re: Crashplan on PogoPlug E02 (Pink)

Postby bheemsoth » Wed Nov 27, 2013 3:22 pm

Thank you for the quick reply. I had actually stumbled across your thread a few nights back.

It seems like JDK8 is a no-go on the E02. I know other people have had this running in the past, so I'm hoping to come across a copy of OpenJDK6 or figure out a workaround for v7.
bheemsoth
 
Posts: 2
Joined: Wed Nov 27, 2013 1:10 pm

Re: Crashplan on PogoPlug E02 (Pink)

Postby dhead666 » Fri Nov 29, 2013 3:47 am

Yeh, JDK8 will not suite Armv5 but I didn't meant that you'll try it.

I suggest you to follow my guide and build the different jar libraries against openjdk6, this will probably help.
A little adaption is needed for openjdk6 path but it's quite simple, I already tried it with openjdk7 on my Cubieboard 2.
Pogoplug Series 4 - Network Storage and Music Server: NFS/TVHeadend
Cubox-i2 - Applications Server: Lighttpd/CherryMusic/HTPCManager/Transmission/Couchpotato/SickBeard/OpenVPN
Samsung Chromebook: Chroach in ChromeOS
dhead666
 
Posts: 116
Joined: Sat Aug 11, 2012 10:25 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 11 guests