CrashPlan 4.8.2 released: Failed to run

It’s that time of the year again when CrashPlan breaks on our Synology NAS. Fortunately, the solution is relatively simple.

Patters from PCLoadLetter does an amazing job at providing us with a non-official package that allows us to run CrashPlan on Synology hardware. While it works great most of the time, some updates tend to crash the package.  If you are on version 4.8.0-0044 (which is the latest as of now), you may have noticed that it has stopped once again as Code42 just recently pushed the 4.8.2 update. Follow these steps to get the package running again.

Solving the issue

  1. Install CrashPlan and wait for the package to stop. If you have CrashPlan installed already you can skip this step.
  2. Make sure you have SSH enabled (“Control Panel”->”Terminal & SNMP”).
  3. Use Putty or similar to SSH into your NAS using “admin” as username and your default password. Once logged in copy cpio to /bin/ by running the following command:
    sudo cp /var/packages/CrashPlan/target/bin/cpio /bin/cpio
  4. Switch back to DSM and uninstall CrashPlan using the Package Manager. Uninstall any Java package you may have installed and install Java8 from Synology.
  5. Reinstall CrashPlan and select “Default System Java Version” in the installer options. Let the package run for a while and it should stop automatically after a few minutes.
  6. Now we have to edit install.vars to point to our Java package
    1. In Putty run:
      sudo vi /var/packages/CrashPlan/target/install.vars
    2. Press “i” to switch to edit mode
    3. Change JAVACOMMON to:
      JAVACOMMON=/volume1/@appstore/Java8/j2sdk-image/jre/bin/java
    4. Press ESC to leave edit mode and use “:w!” to save the file and “:q!” to exit.
    5. If you make any mistakes just hit the ESC-key and write “:q!” in order to exit without saving the file
  7. Start the package in the “Package Manager” and wait. The package should now continue to run without issues.

Connecting to the client app

In order to connect to your NAS you will also need to update your local .ui_info file. The easiest way to do this to run this command in Putty:

sudo cat /var/lib/crashplan/.ui_info

That command should print something like “4243,xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,0.0.0.0” to the screen. Copy all of it and replace “0.0.0.0” with the local IP of your Synology NAS. Finally open the .ui_info  file on your computer and replace it with the new string. I also recommend to make the file read-only so it’s not getting overwritten by mistake. In Windows you can simply right-click the file and set it to read-only in the properties. On OS X/Linux you’ll have to chown/chmod the file.

Windows: C:\ProgramData\CrashPlan\.ui_info
OS X: /Library/Application Support/CrashPlan/.ui_info
Linux: /var/lib/crashplan/.ui_info 

For more info take a look at “Using CrashPlan on a headless computer“.

Increase the memory limit (Optional)

If you backup a lot of files you may want to edit the syno_package.vars file as well. If you backup terabytes of data CrashPlan needs more memory and this is how you can change the default limit of 1024MB:

  1. In Putty run:
    sudo vi /var/packages/CrashPlan/target/syno_package.vars
  2. Press “i” to switch to edit mode
  3. Add USR_MAX_HEAP=2048M  to the file. Change 2048 to whatever limit you want. The rule of thumb is about 1GB of memory for every terabyte of backup.
  4. Press ESC to leave edit mode and use “:w!” to save the file and “:q!” to exit.

 

Share this: