CrashPlan Plugin

Status
Not open for further replies.

shawndewet

Dabbler
Joined
Feb 28, 2014
Messages
37
In the tree menu down the left, you need to expand plugins, then click on the Crashplan plug-in. A license agreement will open which you need to accept.
 

Freesnofla

Patron
Joined
Oct 27, 2013
Messages
216
Hello Crashplan Guru's may I ask a question and I hope you really like to help me:

How do I found the related values inside my FreeNas? I tried already a couple of times yesterday. I tried /mnt/RAID1# jls but already on that step I get permissions denied.

Code:
[root@freenas] /mnt/zpool# jls
  JID  IP Address      Hostname                      Path
    1  -              crashplan_1                  /mnt/zpool/jails_2/crashplan_1
[root@freenas] /mnt/zpool# jexec 1 /bin/tcsh


regards
freenassnofla
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526

Freesnofla

Patron
Joined
Oct 27, 2013
Messages
216
I didn't get that one as I'm not sure which manual you are talking about. Why always give users the feeling they are lazy or stupid?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Uh.. the only manual.... the link in my signature that says "FreeNAS manual". There's only one manual I know of.
 

Freesnofla

Patron
Joined
Oct 27, 2013
Messages
216
Yes, but I read the manual concerning jails anyway I can't get this translated to a functional way. I have still trouble to understand what I have to rename what's mentioned under code (text).
 

Freesnofla

Patron
Joined
Oct 27, 2013
Messages
216
Can anybody help me out I did adduser so far and I couldn't assign the /home/crashplan into that user as I created the map afterwards. How can I change the user tried edit user but without success.
Finally I found out that rmuser helped out on that one and I got the user deleted. Afterwards I created a new user that time with the /home/crashplan directory. Anyway until now I couldn't get it working.
 

Freesnofla

Patron
Joined
Oct 27, 2013
Messages
216
When I run jexec crashplan_1 ps axuww I get the below output

Code:
-Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false -classpath /usr/pbi/crashplan-amd64/share/crashplan/lib/com.bac
kup42.desktop.jar:/usr/pbi/crashplan-amd64/share/crashplan/lang com.backup42.service.CPService                                     
root 6134  0.0  0.4 1186976 52364 v0- INJ  8:00PM 0:00.06 /usr/pbi/crashplan-amd64/linux-sun-jre1.7.0/bin/java -Djava.nio.channels.
spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=CrashPlan -Xms20m -X
mx1024m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0
-Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false -classpath /usr/pbi/crashplan-amd64/share/crashplan/lib/com.bac
kup42.desktop.jar:/usr/pbi/crashplan-amd64/share/crashplan/lang com.backup42.service.CPService                                     
root 6135  0.0  0.4 1186976 52364 v0- INJ  8:00PM 0:00.04 /usr/pbi/crashplan-amd64/linux-sun-jre1.7.0/bin/java -Djava.nio.channels.
spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=CrashPlan -Xms20m -X
mx1024m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0
-Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false -classpath /usr/pbi/crashplan-amd64/share/crashplan/lib/com.bac
kup42.desktop.jar:/usr/pbi/crashplan-amd64/share/crashplan/lang com.backup42.service.CPService                                     
root 6136  0.0  0.4 1186976 52364 v0- INJ  8:00PM 0:00.01 /usr/pbi/crashplan-amd64/linux-sun-jre1.7.0/bin/java -Djava.nio.channels.
spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=CrashPlan -Xms20m -X
mx1024m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0
-Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false -classpath /usr/pbi/crashplan-amd64/share/crashplan/lib/com.bac
kup42.desktop.jar:/usr/pbi/crashplan-amd64/share/crashplan/lang com.backup42.service.CPService                                     
root 6137  0.0  0.4 1186976 52364 v0- INJ  8:00PM 0:00.00 /usr/pbi/crashplan-amd64/linux-sun-jre1.7.0/bin/java -Djava.nio.channels.
spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=CrashPlan -Xms20m -X
mx1024m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0
-Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false -classpath /usr/pbi/crashplan-amd64/share/crashplan/lib/com.bac
kup42.desktop.jar:/usr/pbi/crashplan-amd64/share/crashplan/lang com.backup42.service.CPService                                     
root 6138  0.0  0.4 1186976 52364 v0- INJ  8:00PM 0:00.00 /usr/pbi/crashplan-amd64/linux-sun-jre1.7.0/bin/java -Djava.nio.channels.
spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=CrashPlan -Xms20m -X
mx1024m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0
-Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false -classpath /usr/pbi/crashplan-amd64/share/crashplan/lib/com.bac
kup42.desktop.jar:/usr/pbi/crashplan-amd64/share/crashplan/lang com.backup42.service.CPService                                     
root 6139  0.0  0.4 1186976 52364 v0- INJ  8:00PM 0:00.01 /usr/pbi/crashplan-amd64/linux-sun-jre1.7.0/bin/java -Djava.nio.channels.
spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=CrashPlan -Xms20m -X
mx1024m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0
-Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false -classpath /usr/pbi/crashplan-amd64/share/crashplan/lib/com.bac
kup42.desktop.jar:/usr/pbi/crashplan-amd64/share/crashplan/lang com.backup42.service.CPService                                     
root 6140  0.0  0.4 1186976 52364 v0- INJ  8:00PM 0:00.00 /usr/pbi/crashplan-amd64/linux-sun-jre1.7.0/bin/java -Djava.nio.channels.
spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=CrashPlan -Xms20m -X
mx1024m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0
-Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false -classpath /usr/pbi/crashplan-amd64/share/crashplan/lib/com.bac
kup42.desktop.jar:/usr/pbi/crashplan-amd64/share/crashplan/lang com.backup42.service.CPService                                     
root 6141  0.0  0.4 1186976 52364 v0- SNJ  8:00PM 0:00.00 /usr/pbi/crashplan-amd64/linux-sun-jre1.7.0/bin/java -Djava.nio.channels.
spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=CrashPlan -Xms20m -X
mx1024m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0
-Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false -classpath /usr/pbi/crashplan-amd64/share/crashplan/lib/com.bac
kup42.desktop.jar:/usr/pbi/crashplan-amd64/share/crashplan/lang com.backup42.service.CPService                                     
root 6142  0.0  0.4 1186976 52364 v0- INJ  8:00PM 0:00.00 /usr/pbi/crashplan-amd64/linux-sun-jre1.7.0/bin/java -Djava.nio.channels.
spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=CrashPlan -Xms20m -X
mx1024m -Djava.net.preferIPv4Stack=true -Dsun.net.inetaddr.ttl=300 -Dnetworkaddress.cache.ttl=300 -Dsun.net.inetaddr.negative.ttl=0
-Dnetworkaddress.cache.negative.ttl=0 -Dc42.native.md5.enabled=false -classpath /usr/pbi/crashplan-amd64/share/crashplan/lib/com.bac
kup42.desktop.jar:/usr/pbi/crashplan-amd64/share/crashplan/lang com.backup42.service.CPService                                     
root 9369  0.0  0.0  14224  2144  0  R+J  8:25PM 0:00.00 ps axuww              


jexec crashplan_1 sockstat -4 brings me to the below output

Code:
root    java      5037  58 tcp4  127.0.0.1:4243        *:*                 
root    java      5037  59 tcp4  *:4242                *:*                 
root    java      5036  58 tcp4  127.0.0.1:4243        *:*                 
root    java      5036  59 tcp4  *:4242                *:*                 
root    java      5035  58 tcp4  127.0.0.1:4243        *:*                 
root    java      5035  59 tcp4  *:4242                *:*                 
root    java      5034  58 tcp4  127.0.0.1:4243        *:*                 
root    java      5034  59 tcp4  *:4242                *:*                 
root    java      5033  58 tcp4  127.0.0.1:4243        *:*                 
root    java      5033  59 tcp4  *:4242                *:*                 
root    java      5032  58 tcp4  127.0.0.1:4243        *:*                 
root    java      5032  59 tcp4  *:4242                *:*                 
root    java      5031  58 tcp4  127.0.0.1:4243        *:*                 
root    java      5031  59 tcp4  *:4242                *:*                 
root    java      4922  58 tcp4  127.0.0.1:4243        *:*                 
root    java      4922  59 tcp4  *:4242                *:*                 
root    sshd      4823  5  tcp4  *:22                  *:*                 
root    java      4740  58 tcp4  127.0.0.1:4243        *:*                 
root    java      4740  59 tcp4  *:4242                *:*                 
root    syslogd    4607  7  udp4  *:514                *:*
 

Jason Hamilton

Contributor
Joined
Jul 4, 2013
Messages
141
Ok so after finally realizing that I needed to update my crashplan plugin (had to delete the old one and the old jail and then install new) added back all of my storage. I now finally have crashplan running. Freesnofla I don't exactly understand what you're doing here? Your sockstat -4 shows that its up and running and listening on port 4243 as it should. Are you trying to connect to it with the port forwarding?
 

Freesnofla

Patron
Joined
Oct 27, 2013
Messages
216
Yes, I think that is my problem I can't reach the FreeNas for doing the relevant setup. When I go to plugins and try to start I get just a page from code42 up.
 

Freesnofla

Patron
Joined
Oct 27, 2013
Messages
216
1)From the terminal on Linux:

ssh user@freenas.-IP

2) login and then start CrashPlan.

/usr/local/bin/CrashPlanDesktop

I get the following message now:

Code:
$ /usr/local/bin/CrashPlanDesktop
$ /usr/pbi/crashplan-amd64/bin/CrashPlanDesktop: line 14: /var/log/crashplan/ui_output.log: Permission denied


I'm not sure if I will get it running any time.
 

Freesnofla

Patron
Joined
Oct 27, 2013
Messages
216
How did you guys get crashplan running on FreeNas I haven't had so far success, anybody able to help me?
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
I had it running natively in a jail, but it was a pain to keep running and had to be reconfigured every time the task restarted,

Now I just use the plugin and everything works just fine.
 

joelmusicman

Patron
Joined
Feb 20, 2014
Messages
249
Ok folks, finally got it working. Followed the guide on Code42 with some changes. This guide assumes basic familiarity with console commands... Steps follow:

1. Download latest version of plugin from FreeNAS GUI, enable linux_load in the tunables.
2. In root@your_crashplan_jail:
  • adduser (name crashplan, pass ***, add to group 'wheel', etc.)
  • edit /etc/rc.conf -> "sshd_enable="yes"
  • **This is important!!** edit /etc/ssh/sshd_config -> uncomment "Allowtcpforwarding yes" (remove the # in front)
3. Stop and restart the jail using the FreeNAS GUI.
4. Edit the ui.properties file on your client using the steps from Code42 (uncomment, change to port 4200).
5. Start the SSH port forward as described on the Code42 page. Make sure to enter the JAIL IP ADDRESS. (My GUI session is on an Ubuntu client running this in a tmux window for persistence. As I have it configured right now I'll have to redo this step if I restart either machine.)
6. Restart the GUI on your client, and it should connect, and ask you to login. You'll need to mount any shares that you want backed up, etc. I chose to mount "read only" and have had no issues so far.


Notes: The Crashplan plugin appears to be single-threaded and runs mostly on the server. There is very little activity on the client, though I believe it needs to stay online for backup to work. I have a 100Mb/s connection and am pushing ~32Mb/s to the cloud using about 45% of my G3220. I think this speed is CPU limited as the service runs compression and dedup. At this rate it'll take me 12 days to upload 4.5TB of data. Not bad! :) Now I can install Crashplan on my other computers (Time Machine on my MacBook) and backup to the NAS which then gets backed up to the cloud.
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
The client (GUI) does not need to be running and the ssh tunnel does not need to be up for the crashplan backup to run.
 

joelmusicman

Patron
Joined
Feb 20, 2014
Messages
249
The client (GUI) does not need to be running and the ssh tunnel does not need to be up for the crashplan backup to run.

That's really good to hear! I'm sure it needs to be online to perform management/monitoring though. :)
 
Status
Not open for further replies.
Top