Crashplan has an auto-update feature built into it’s software, which is a good thing except that Crashplan on a headless QNAP box will start failing when this happens. Â If the package maintainer would update the QNAP package when this happens this wouldn’t become a problem. Â But I’ve yet to see this ever happen.
Here’s the fix.
You will notice an upgrade directory in your root Crashplan directory, my default directory is /share/MD0_DATA/.qpkg/CrashPlan/upgrade.  If your directory is anything like mine, you will have a bunch of directories with #s on them…these are all the failed automatic upgrades the Crashplan attempted to perform and has failed.  I didn’t even noticed it was failing until my weekly email came out from Code42 and noticed my backups have been failing for about a week due to this.
First stop crashplan on your Qnap,
1 |
sudo /etc/init.d/crashplan stop |
Find the last failed attempt..
1 |
ls -lart |
cd into the last one listed.
1 |
cd 1388728800370.1422425158177/ |
In this directory you will find two jar files, c42_protolib.jar and com.backup42.desktop.jar .
1 |
pwd |
(make note of this directory as we will be needing this in a second..)
Now jump over to the main default CrashPlan lib directory, mine is in
/share/MD0_DATA/.qpkg/CrashPlan/lib/
Need to copy the two jar files listed above into this lib directory, but first make backups of these files..
1 2 3 4 5 |
cd /share/MD0_DATA/.qpkg/CrashPlan/lib/ sudo mv com.backup42.desktop.jar com.backup42.desktop.jar.old sudo mv c42_protolib.jar c42_protolib.jar.old sudo cp /share/MD0_DATA/.qpkg/CrashPlan/upgrade/1388728800370.1422425158177/c42_protolib.jar . sudo cp /share/MD0_DATA/.qpkg/CrashPlan/upgrade/1388728800370.1422425158177/com.backup42.desktop.jar . |
Once these are copied, now restart crashplan.
1 |
sudo /etc/init.d/crashplan start |
Now re-open your Crashplan client that runs over the SSH tunnel and viola.. you should be good to go.. Â It should be scanning for changed files to back up.
Once you have verfied this is working again, then remember to clean up the upgrade directory .. you can remove all those numbered directories.