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:
  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:

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:

35 comments, add yours.

B. Good

Every time I try to start CrashPlan, it stops and install.vars is back to:
JAVACOMMON=${JAVA_HOME}/bin/java

B. Good

Nevermind. I followed the steps a second time and it seems to be working.

Max

I can’t say thank you enough!
This saved me and worked for me!

Mark

Worked for me as well – thank you!

For some reason though like B.Good, it did not work straight away. I tried the process and CrashPlan on the Synology, just kept failing still as soon as I started it and I gave up after 3-4 attempts.

However, the next day I went back to my PC and the Package Centre windows was still open and for some reason I tried running the CrashPlan package again and this time it worked for some reason, without doing anything extra.

Thanks again!

Craig

Thanks for this. One problem, even though I have .ui_info set as owned by root and readonly, everytime I start up the CrashPlanPro desktop app it resets the IP address to 127.0.0.1. Consequently I can only control the PC which isn’t the idea at all. Do I need to do something else?

Kyle

I think the reason it “doesn’t work the first try” is because the package installs 4.8.0, then after a short while upgrades itself to 4.8.2. When installing the CrashPlan package, wait for the log to indicate it has updated before updating install.vars. Then the update to 4.8.2 won’t overwrite the edit you just made prematurely.

Craig

The desktop app reports the version is 4.8.2. I cracked it by setting the immutable attribute on the file chattr +i. Also ignored Code42’s instruction to set the port to 4200. So setting the file to 4243,myguid,myNASIPaddress has got it working 🙂

Thanks again

George Kalogeris

THANKS A TON

Peter

Thank you for sharing your knowledge of this matter 🙂

Alain

Thanks for the very helpful fix! You are awesome!

Hyunchul Cho

Thanks for the very helpful fix! You are awesome! +1

Eric

When I try to save, I get:

“/var/packages/CrashPlan/target/install.vars” E212: Can’t open file for writing

Eric

Also getting:

cp: cannot stat ‘/var/packages/CrashPlan/target/bin/cpio’: No such file or directory

Benjamin Krause

Benjamin Krause

Author

Have you tried to reinstall CrashPlan? The file should be there.

Eric

I think I figured out most of it. I have a CrashPlan Pro plan. I downloaded the regular CP file and tried the fix above. Everything worked as stated, except the actual backup. I uninstalled CP and reinstalled CP Pro, got the error messages saying “cp: cannot stat ‘/var/packages/CrashPlan/target/bin/cpio’: No such file or directory.” I can not find CP Pro 4.8.2, all I can find is 4.8.0. This is such a pain! I worked on this for 2 hours last night with no success. Currently, CP Pro is running on NAS, but I still cannot connect to it from PC. I have tried token updates and all that stuff, but nothing works.

Dmitriy

I have 2 Synololgy DS one with a “used to be working” CrashPlan that stopped and by following the instruction above it was fixed. The second DS I’ve tried reinstalling before i found this page and as such uninstalling the CashPlan package must have removed something that we are copying by the
sudo cp /var/packages/CrashPlan/target/bin/cpio /bin/cpio
command. I’ve tried to get the CrashPlan package not to crush but I can’t even connect to it before it stops.
Benjamin, do you have an idea what did I screw up in the second Synology DS?

George Kalogeris

if my DS has 1024MB RAM
can I set Add USR_MAX_HEAP=8192M ??

Benjamin Krause

Benjamin Krause

Author

I guess you could, but I recommend to set it below the amount of RAM you actually have. No good idea to allow Java to eat all your RAM. Trust me, Java isn’t very memory friendly. Try with USR_MAX_HEAP=512M and increase if you run into issues. If you sync more than 1TB you most likely need to install more memory. 🙂

Benjamin Krause

Benjamin Krause

Author

What happens if you uninstall CrashPlan and install it again before following my guide? Is there any step that doesn’t work? If you manage to connect to CrashPlan, but the application crashes after a short period of time, you may have to increate the Java heap size. Read “Increase the memory limit (Optional)” on how to do that. I had to do that myself again when version 4.8.3 was released because it removed that setting for some reason.

George Kalogeris

Hi again,
When I try to save, I get:

“/var/packages/CrashPlan/target/install.vars” E212: Can’t open file for writing

Benjamin Krause

Benjamin Krause

Author

Make sure you have permission to the file by using:
sudo vi /var/packages/CrashPlan/target/install.vars

George Kalogeris

the same again and again…
I stopped the package, I uninstalled it and re-installed but can’t save the file

George Kalogeris

Changing Memory Value in the Remote Interface isn’t the same, right ?
java mx 1536, restart

Benjamin Krause

Benjamin Krause

Author

How are you trying to edit the file? I’m currently on DSM 6.x and I have no issues connecting to my Synology using SSH (login as admin or whatever user you created when installing DSM) and modifying the file using the command I posted earlier. Just make sure the package is stopped.

George Kalogeris

How can I check the current Heap size ?

Benjamin Krause

Benjamin Krause

Author

It should, but I’m not completely sure. I’ve changed/created a file called “syno_package.vars” in the CrashPlan directory with the following and it works great:
MANIFEST_PATH_SET=True
USR_MAX_HEAP=3000M

George Kalogeris

I did it several times in the past. Now it seems file is in use even if CrashPlan Pro Package is stopped.
I installed the package with dedicated Java package, is it relevant ?
Uninstalling and re-installing everything didn’t help either.
About your last trick: Where am I supposed to put that file? inside Diskstation in the Shared Folder “Crashplan” ? or in /var/packages/Crashplan/target/ ?

Benjamin Krause

Benjamin Krause

Author

I have not tested this with CrashPlan Pro, only the home edition as I haven’t upgraded to Pro yet myself. Dedicated Java is preferred, so I don’t think that’s the problem. syno_package.vars should be in “/volume1/@appstore/CrashPlan” or “/var/packages/CrashPlan/target” (it’s the same).

George Kalogeris

ok I quit.
I restarted NAS, I re-installed the package, I tried overwriting the file, nothing worked.
Perhaps something changed in the PRO version,
I ‘ll do it in a later time, when you upgrade as well

George Kalogeris

ok, I have one more problem,
When I restart the Diskstation,
the port and the token changes !
And I have to do it from the start !!!

Benjamin Krause

Benjamin Krause

Author

What do you mean by port and token? If you by token mean “.ui_info” it should not change. I’ve heard some people having issue that the local file located at “C:\ProgramData\CrashPlan\.ui_info” is being replaced by CrashPlan, so if that’s the problem just make it read-only and it would solve the problem.

George Kalogeris

I mean the file /var/lib/crashplan/.ui_info
It changes when I restart the diskstation. Perhaps when I restart the package too!
Can I make that read_only with some command ?

Benjamin Krause

Benjamin Krause

Author

Using ls -la you can determine the current owner and permissions for the file. In my case it’s root and “-rw-r–r–“.
You should be able to set the same permissions by issuing the following two commands:

sudo chown root:root /var/lib/crashplan/.ui_info
sudo chmod 644 /var/lib/crashplan/.ui_info

Benjamin Krause

Benjamin Krause

Author

Thanks for the update. I’ll consider it when doing the transition. 🙂

Leave a comment