Unable to find CrashPlan server

Status
Not open for further replies.

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
OK, so I've followed some guides to setup crashplan on my server. The service seems to be running and listening but the application on my desktop is unable to see the crashplan server.
I've changed the configuration in ui.properties to look to the IP of the crashplan plugin but the application does not see the server.
I'm about at my ends wit here. I'm not sure what else to do. How do you get the application to see the server so one can start backing up files?
 

David3D

Explorer
Joined
Sep 10, 2013
Messages
56
Welcome to my world. It took me a week to get this set up.

The CrashPlan plugin does not update. You have to force an update which may or may not work properly. Many have had success, I never did. I installed 3.6.3 as per the server's version and found the legacy client for CrashPlan to talk to it. It works fine, it just does not have the fancy new colour scheme.

What's your setup? Do you have a regular CrashPlan account or a CrashPlan PRO account? If PRO, additional steps are required to get the plugin operational. If not, it should be a case of finding the legacy 3.6.3 client and making it talk with CrashPlan. If you're updating to the later 5.x versions (or whatever they're up to now) you will need to take additional verification steps other than changing the IP in ui.properties in order to properly authenticate with the server. This has been covered on other guides, but I can't for the life of me find them right now.

I hope this has helped a little. If you can give me more info, I can probably help a bit more.
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
That does help a lot! Thanks!

I'm just now messing around with CrashPlan so I'm guessing it's legacy, unfortunately. It's what ever is available via the plugins. I'm not using pro or anything else, might be a good idea, heck it might be a good idea to just create a CrashPlan VM in my virtual machine jail so I can be running something more recent and to give me a bit more control, though I'd really like to be running it directly in a jail to reduce the overhead of the application.

I've done digging on the web, the only tutorials I can find are at least a year old.
Do you know of any that are newer and incorporate updating the CrashPlan plugin?

My setup is just the CrashPlan plugin that currently available and the application is version 4.5.2 (1435726800452)
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
I'm thinking I might have been looking at this wrong. It looks like people are using the crashplan plugin to backup their FreeNAS box to another machine or to CrashPlan's servers.
What I'm looking to do is backup multiple machines to a FreeNAS box with the option of backing it up to a offsite location.

So it's looking like, in order to get some flexibility I will need to create a virtual machine within the virtualbox plugin then install CrashPlan within the virtual machine then mount the location in which the backups will go to in the virtual machine.

Heck, once that is done I'd be able to backup my data to my friend's server and his to mine and be able to see what's going on.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
I'm thinking I might have been looking at this wrong. It looks like people are using the crashplan plugin to backup their FreeNAS box to another machine or to CrashPlan's servers.
What I'm looking to do is backup multiple machines to a FreeNAS box with the option of backing it up to a offsite location.

So it's looking like, in order to get some flexibility I will need to create a virtual machine within the virtualbox plugin then install CrashPlan within the virtual machine then mount the location in which the backups will go to in the virtual machine.

Heck, once that is done I'd be able to backup my data to my friend's server and his to mine and be able to see what's going on.
You can do that with the plugin too...
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
Really? The question then comes back to how?
Granted I'm not a command line king by no means, so having a gui REALLY helps, but how?
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
oh, and I might add, securely without using SSH as SSH adds another layer of dificulty.
Granted I don't mind SSH, but for those I work with it just wouldn't be feasable.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
You only need the GUI to configure it. Once it is configured you can use a client on your computer to select the server to back up to.
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
So basically you're using the application gui on your local machine to manage the plugin on the server, telling it what to do remotely over the network. Correct me if I'm thinking about this incorrectly.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
setup crashplan like the guides tell you for FreeNAS.

after you have configured your Crashplan, (with a location to store backups), you simply disconnect from your ssh or remote gui (whichever guide you followed for Crashplan) and use your Crashplan client like normal. You select your new Crashplan server as a target to back up TO

It isn't really a difficult concept. You hand out the remote friend code and anyone can use that server as a target for backups.

The caveat is that you CANNOT backup your backups to the Crashplan cloud service. They do not allow you to do that. This is the case on ANY version of Crashplan, not just a limitation of the plugin or FreeNAS/FreeBSD.
 

David3D

Explorer
Joined
Sep 10, 2013
Messages
56
The caveat is that you CANNOT backup your backups to the Crashplan cloud service. They do not allow you to do that. This is the case on ANY version of Crashplan, not just a limitation of the plugin or FreeNAS/FreeBSD.
Is this only because CrashPlan exclused CrashPlan files by default? Or is it more involved than that. Because I swore I saw an option in the GUI to allow CrashPlan files to be read and backed up.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Is this only because CrashPlan exclused CrashPlan files by default? Or is it more involved than that. Because I swore I saw an option in the GUI to allow CrashPlan files to be read and backed up.
If you use your crashplan as a target for another crashplan instance, you can't back up the backup to their cloud service. The reason is the increased possibility of abuse. Everyone would just be sharing accounts and crashplan wouldn't get paid. Also the increase in data being stored.
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
If you use your crashplan as a target for another crashplan instance, you can't back up the backup to their cloud service. The reason is the increased possibility of abuse. Everyone would just be sharing accounts and crashplan wouldn't get paid. Also the increase in data being stored.
Makes sense.

OK, so I configured the CrashPlan plugin, opened putty and connected to the jail and forwarded local port 4200 to 4243 on the jail and the only thing different I notice in the gui is "CrashPlan Central" is greyed out, but I still don't see any of the folders on the server via the gui nor is it listed in the gui.
So I'm at a loss as to what to do from here.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Makes sense.

OK, so I configured the CrashPlan plugin, opened putty and connected to the jail and forwarded local port 4200 to 4243 on the jail and the only thing different I notice in the gui is "CrashPlan Central" is greyed out, but I still don't see any of the folders on the server via the gui nor is it listed in the gui.
So I'm at a loss as to what to do from here.

I don't really know how you are trying to configure it, but it truly is simple.

Add storage to your crashplan jail. source would be the directory(ies) you want backed up, destination would the path INSIDE the jail (for instance: /media/myuser)

in the crashplan gui (while connected over ssh tunnel), you just 'add a backup' and point it to that 'destination' path (/media/myuser in the example I used)

There really isn't much more to it than that.

To create a backup TARGET,
create a dataset in FreeNAS
attach it to the crashplan jail as instructed above
under 'Destinations' in crashplan, you will be able to select that directory
under 'Friends' in crashplan, you will see your code to connect your other machine to use the crashplan jail as a backup target.
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
Destination: Friends' computers is blank, yes I have a code but it's the same code I had before I connected to my jail. Under Computers only my desktop is listed, Folders only allows local folders of my local machine, not folders of the jail so thus far I am unable to target a folder within the jail.
Basically, what is seemingly so simple apparently isn't obvious enough as it seems that even though I'm connected over the tunnel, my gui is still not detecting the remote headless server.

I'm seriously thinking that this may (still) be a versioning problem where the headless version (plugin) is still running 3.6 (or what ever is readily available) and my gui is 4.5.
I have not verified this, but at this point I'm frustrated and tired, a very bad combo so I'm giving it a break for tonight.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
If you only see local folders from your computer, then you aren't connected to the server.
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
OK, I have figured it out, and ssh is NOT needed. I'm in the process of refining how to install CrashPlan and get it up to date. I will post the instructions that worked for me as soon as I have verified it works with another Server that I have been working on. Once I know the instructions are accurate I will post them for others and future reference......
 

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
CrashPlan FreeNAS Plugin install


Information provided by…..
https://forums.freenas.org/index.php?threads/tested-crashplan-4-5-setup.41418/
https://gist.github.com/desimone/7073074
http://support.code42.com/CrashPlan/4/Configuring/Using_CrashPlan_On_A_Headless_Computer
http://support.code42.com/CrashPlan..._On_A_Headless_Computer#Locations_Of_.ui_info
https://github.com/sirkkalap/freenas-crashplan-howto
https://forums.freenas.org/index.php?threads/crashplan-not-updating.40374/
https://forums.freenas.org/index.php?threads/crashplan-on-freenas-9-3.26487/

Keep in mind that I have never done a how to before. This is my first time. I usually have my own set of notes but I thought this would be handy for other people going through the same struggles that I have.
During the process I am also installing, updating and confirming that things are working on a fresh system that did not have CrashPlan installed. These are the steps I went through to get CrashPlan installed, updated and working.
This is for people that want to backup their local desktop to their FreeNAS server.
I'm sure with this information you should also be able to tell your server to backup to your friends' server(s) by connecting to your FreeNAS CrashPlan plugin and telling it what folders to backup and where.


First install the CrashPlan Plugin via your FreeNAS server Web GUI
Once installed expand the “Plugin” tree on the left and click on “CrashPlan”

Plugins.JPG

This should bring up the Eula agreement. Scroll to the bottom of this agreement (read through it) and click agree if you agree to the terms.
If you do not agree then proceed no further.

Eula.jpg

Once you have completed these steps then open up a shell to CrashPlan as we are going to need to update it and retrieve information from it.

You can either use Putty (my preference) or click on Jails at the top of the FreeNAS GUI and then select CrashPlan_1 and then click on the shell icon at the bottom of the screen.

Jail Prompt.JPG

Putty.... If you are using the FreeNAS web GUI command prompt (shell) skip to updating....
I am going to connect via Putty/SSH to FreeNAS. Once connected to FreeNAS you will need to "jls" in the command prompt to find the JID for the crashplan plugin. In this case it is ID 2...

JLS.JPG


Updating.....

At the command prompt type;
Code:
jexect 2 tcsh 

and hit enter. This will put you at the command prompt of your crashplan plugin
Once in we will run updates...

Code:
portsnap fetch extract
portsnap fetch update && pkg upgrade


Then we will follow the guidelines laid out here...
https://forums.freenas.org/index.php?threads/tested-crashplan-4-5-setup.41418/
From Martin Aspeli

...Install bash:

Code (text):
  1. $ jexec crashplan_1 /bin/tcsh
Then symlink the bash binary to /bin/bash (this is used by a CrashPlan upgrade script):

Here we need to install Bash.....

Code (text):
1: $ pkg install bash

InstallBash.JPG

Then create a link for bash...

Code (text):
  1. $ ln -s /usr/bin/bash /bin/bash
We then need to enable SSH in the jail, and create a user that can be used to SSH in.

Code (text):
  1. $ sysrc sshd_enable=YES
  2. $ service sshd start
  3. $ adduser crashplan
The default values are just fine for the crashplan user. Be sure to set a STRONG password for your crashplan user.
If you forget the password or loose it, you can always reset the password by logging into your FreeNAS server, connect to your CrashPlan command prompt and use the command "passwd crashplan" and then enter your new password.
Even though later we will not be using SSH to connect the CrashPlan application to the server, having a SSH user is still handy and does not need to be publicly exposed. I would only use it for local network access.

AddUser.JPG


We're now going to upgrade CrashPlan in-place from the version installed by the FreeNAS plugin, to the same version as the client version. These steps worked for me, but clearly may not work forever with different versions of CrashPlan, so take precaution. If it all goes wrong, you can always blow away the plugin jail and try again.

Code (text):
  1. $ cd /usr/pbi/crashplan-amd64/share/crashplan
  2. $ wget --no-check-certificate http://download.code42.com/installs/linux/install/CrashPlan/CrashPlan_4.6.0_Linux.tgz
  3. 
 $ tar -xf CrashPlan_4.6.0_Linux.tgz
  4. 
 $ cd crashplan-install
  5. 
 $ cpio -idv < CrashPlan_4.6.0.cpi
  6. $ service crashplan onestop
  7. $ cd ..
  8. $ rm -r lib*
  9. $ cp -r crashplan-install/lib* . (DO NOT FORGET THE ".")
  10. $ sysrc crashplan_enable=YES
  11. $ service crashplan start
At this point, there should be a file in "/var/lib/crashplan/.ui_info" inside the crashplan_1 jail. You will need values from this, so print it to the console and copy it somewhere safe:
Here's how mine looks (almost...):

Code (text):
  1. $ cat /var/lib/crashplan/.ui_info
  2. 4243,(CrashPlan Plugin Key),127.0.0.1
There are three bits of information here, separated by commas: a port (4243), a GUID string (the long middle one), and the IP address where CrashPlan is running.

At this point I edited the file and changed it to (Your Port),(your ID is here, do not change this),0.0.0.0
Use your favorite file editor. Mine is nano so I installed nano.

Code:
pkg install nano
nano /var/lib/crashplan/.ui_info


Note that this file is a bit prone to getting over-written by the CrashPlan GUI, so keep a copy of it in case you need to re-create it.
The key in this file may also change every time the service restarts on either the server or the workstation in question.

We also want to edit /etc/rc.conf and change IPv6 stuff to no unless you are using IPv6. I am not...

Code:
nano /etc/rc.conf


and while we're at it, if "Crashplan_enable="YES" is not there then add it to the file. It would look something like this....

Code:
portmap_enable="NO"
sshd_enable="YES"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
devfs_enable="YES"
devfs_system_ruleset="devfsrules_common"
inet6_enable="NO"
ip6addrctl_enable="NO"
crashplan_enable="YES"


You also want to edit the /usr/pbi/crashplan-amd64/share/crashplan/conf/my.service.xml file and change "<serviceHost>127.0.0.1</serviceHost>" to "<serviceHost>0.0.0.0</serviceHost>"

Code:
nano /usr/pbi/crashplan-amd64/share/crashplan/conf/my.service.xml


Before we proceed much further we need to mount where the backups are going to go to the jail.
I will be putting backups in /mnt/Backups within the CrashPlan plugin. This will be mounted to /mnt/Tank/Backups in FreeNAS

MountBackups.JPG

At this point, if you want to backup stuff from your server to another location you could mount, say /mnt/Tank/Users (or what ever you want) to /mnt/Outgoing (or what ever you want to name it) but mark this mount point as "Read Only" because there's no reason to write to it if it is being backed up somewhere else. But that is not what I'm doing in this article. I am trying to create a backup point for multiple machines because people just don't seem to like to use network locations for storing data.

At this point, if you don't already have CrashPlan installed on your machine you need to do so.
There are lots of resources on the web for installing CrashPlan on your machine. All you need to do at this point is install it before you can continue on.
I am using Windows in this case so I downloaded and installed CrashPlan.
http://www.code42.com/crashplan/download/

Once installed you will need to either log in with an existing user account or create a new one.

Once installed and logged in you should exit the application and kill the process. You can do this by opening the task managed (in Windows) and go to the processes tab, select "CrashPlanService" and click "End Process". This ensures the application is not running so configuration changes can be made to the application....

EndTask.JPG

Now we need to edit the ui_info file on the your local machine so that YOUR CrashPlan app will connect to the server so you can point where your backups will go and so you can get the friend code of your crashplan plugin.

I am using Windows machines but here are the locations for the file for.....
http://support.code42.com/CrashPlan..._On_A_Headless_Computer#Locations_Of_.ui_info
  • Windows Vista, 7, 8, 10, Server 2008, and Server 2012
    • Installed for everyone: C:\ProgramData\CrashPlan\.ui_info
      To view this hidden folder, open Windows Explorer and paste the path in the address bar.
    • Installed per user: C:\Users\<username>\AppData\<Local|Roaming>\CrashPlan\.ui_info
      To view this hidden folder, open Windows Explorer and paste the path in the address bar.
  • Windows XP
    • Installed for everyone: C:\Documents and Settings\All Users\Application Data\CrashPlan\.ui_info
      To view this hidden folder, open Windows Explorer and paste the path in the address bar.
    • Installed per user: C:\Documents and Settings\<username>\Application Data\CrashPlan\.ui_info
      To view this hidden folder, open Windows Explorer and paste the path in the address bar.
  • OS X:
    • Installed for everyone: /Library/Application Support/CrashPlan/.ui_info
    • Installed per user: ~/Library/Application Support/CrashPlan/.ui_info
  • Linux: /var/lib/crashplan/.ui_info
  • Solaris: /var/lib/crashplan/.ui_info
To see the "ProgramData" folder in Windows you will need to "Show hidden files, folders and drives"
You can do this by going to Organize -> Folder and Search Options -> View tab -> and select the radio button next to "Show hidden files, folders and drives.

Now you need to open the ".ui_info" file.
I personally just open Notepad then drag the file into Notepad
Notepad.JPG

This will give you the port, your key and the IP address that your CrashPlan app works from.

Take note of this as we will need to change it back later.
I personally just right clicked the file, drug it to a empty space and told it to "Copy Here" so that I had a backup copy of the file.
Now we are going to change the port, key and the IP for the app to the port, key and IP of your CrashPlan server plugin. In my case it is 4255,(insert server plugin key here),172.16.0.200
NotepadChanged.JPG

Then save the file and open the CrashPlan application. This is where I had the most trouble. Connecting to the server and/or the application seeing the server at all. On another machine where I was doing the testing I had to actually reboot in order for the machine to even see the server or anything else for that matter on my network. Sometimes the application wouldn't even be able to access the network and would give me a network error.
I ended up giving up at this point and called it a night. I shut my desktop off and went to bed, came back the next day, fired up the application and it was connected to the plugin.

If you start having problems at this point then reboot the desktop and just in case restart the plugin on the server. (This will change your key on the server. You will need to use "cat /var/lib/crashplan/.ui_info" to see the key again)
You can restart the plugins by going to "Jails" in your FreeNAS web GUI, select the CrashPlan plugin and at the bottom of the screen click the yellow circle.

When your desktop/laptop comes back up you may need to edit the .ui_info file again and replace the port, key and IP address with the port, key and IP address of your CrashPlan plugin.

If you successfully connect then the application will ask you to register or to login with an existing user account. If you have an account then login in. If you don't have an account then create a new one.

At this point you need to go to "Settings" and setup your CrashPlan plugin configurations.
Then go to "Destinations" -> "Folders" hit "Select" and select your backup destination. Mine was /mnt/Backups

Once you are satisfied with your configuration of your CrashPlan plugin then go to "Settings" -> "General" and click on "Configure" then click "Change" to change your Backup Code. This is to refresh it. Take note of this code!!

Now you will need to exit the CrashPlan application and go back to the .ui_info file and change it back to it's default. Change it back to what it was before you changed it.
Once changed and/or saved, re-open your CrashPlan app and click on "Destinations" -> "Friends" and enter the backup code of your CrashPlan plugin that you just took note of and click "Start Backup"

You now are backing up to you FreeNAS CrashPlan Plugin. You can now share this code while valid with any other machine/friend that you want to backup to your plugin.

I hope this helps and I hope it wasn't very confusing. It is late and I am tired at the writing of this how to.
 
Status
Not open for further replies.
Top