I have not upgraded to FreeNAS 9.3 because of initial hardware compatibility issues with my HP ProLiant server. As such I am still running FreeNAS 9.2.1.7. As many others experienced recently, CrashPlan failed on my jail/pluin install. I was not able to get the original installation happy, so I attempted to setup a clean jail. These are the steps I followed.
I am no expert in FreeBSD, FreeNAS or CrashPlan. But I tried to piece together the information found in various threads in this forum to make a procedure that works to get backups working for me. Please feel free to provide corrections to the information here.
I am no expert in FreeBSD, FreeNAS or CrashPlan. But I tried to piece together the information found in various threads in this forum to make a procedure that works to get backups working for me. Please feel free to provide corrections to the information here.
- Install the CrashPlan Plugin (this both creates a jail and installs the plugin).
- Enable ssh (optional, you can also use the web-based terminal access or jump through the primary FreeNAS shell - see the help documentation for more info about accessing your jails).
- vi /etc/rc.conf
- change sshd_enable=”NO” to sshd_enable=”YES”
- vi /etc/ssh/sshd_config to uncomment PermitRootLogin setting and change value to yes
- set password for root user in jail (open terminal using web-interface then just run the passwd command to set the password)
- vi /etc/rc.conf
- Upgrade default mis-configured pkg software (required due to older jail template see https://forums.freenas.org/index.php?threads/keeping-the-jails-up-to-date.20062/ )
- portsnap fetch extract (this downloads and extracts the ports, and takes a while)
- cd /usr/ports/ports-mgmt/pkg
- make deinstall reinstall
- portsnap fetch extract (this downloads and extracts the ports, and takes a while)
- Install Bash and link it where the CrashPlan upgrader is expecting
- pkg install bash
- ln -siv /usr/local/bin/bash /bin/bash
- pkg install bash
- Edit run.conf options for more memory and to validate the java.nio.channels.spi.SelectorProvider setting (the initial install may have this correctly configured, as part of the upgrades that CrashPlan does these values will be broken, you will come back and check this file during the upgrade steps).
- vi /usr/pbi/crashplan-amd64/share/crashplan/bin/run.conf
- SRV_JAVA_OPTS="-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=CrashPlan -Xms20m -Xmx2048m -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 -Djava.net.preferIPv4Stack=true"GUI_JAVA_OPTS="-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanDesktop -DappBaseName=CrashPlan -Xms20m -Xmx512m -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"
- vi /usr/pbi/crashplan-amd64/share/crashplan/bin/run.conf
- Restart Crashplan
- /usr/local/share/crashplan/bin/CrashPlanEngine stop
- cpuset -l 0 /usr/local/share/crashplan/bin/CrashPlanEngine start
- /usr/local/share/crashplan/bin/CrashPlanEngine stop
- Optional - Check that base version is working:
- SSH to Jail
- Forward port 4200 to 127.0.0.1:4243 (this only works on older CrashPlan versions, like the 3.6.3 that comes with the FreeNAS 9.2.1.7 plugin).
- Install Crashplan 3.6.3 on the Windows Client
- Open Crashplan client and validate you are able to connect to crashplan 3.6.3 on the server.
- SSH to Jail
- Restart crashplan service again (which should kick off the upgrade)
- /usr/local/share/crashplan/bin/CrashPlanEngine stop
- cpuset -l 0 /usr/local/share/crashplan/bin/CrashPlanEngine start
- /usr/local/share/crashplan/bin/CrashPlanEngine stop
- View upgrade status
- tail -f /usr/pbi/crashplan-amd64/share/crashplan/log/history.log.0
- I 10/15/15 11:32AM CrashPlan stopped, version 3.6.4, GUID 711641008093265921
- I 10/15/15 11:32AM CrashPlan started, version 3.6.4, GUID 711641008093265921
- etc…
- tail -f /usr/pbi/crashplan-amd64/share/crashplan/log/history.log.0
- The first upgrade removes “-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider “ from the run.conf so we need to update that
- vi /usr/pbi/crashplan-amd64/share/crashplan/bin/run.conf
- SRV_JAVA_OPTS="-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=CrashPlan -Xms20m -Xmx2048m -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 -Djava.net.preferIPv4Stack=true"GUI_JAVA_OPTS="-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanDesktop -DappBaseName=CrashPlan -Xms20m -Xmx512m -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"
- /usr/local/share/crashplan/bin/CrashPlanEngine stop
- cpuset -l 0 /usr/local/share/crashplan/bin/CrashPlanEngine start
- vi /usr/pbi/crashplan-amd64/share/crashplan/bin/run.conf
- Repeat the last step ensuring that run.conf has the values highlighted in RED until all the upgrades are complete.
- tail -f /usr/pbi/crashplan-amd64/share/crashplan/log/service.log.0
- Download Crashplan 4.4.1 (or the version that matches what is now running on the server, as listed in /usr/pbi/crashplan-amd64/share/crashplan/log/history.log.0
- Install for all users
- Edit C:\ProgramData\CrashPlan\.ui_info and have it match /var/lib/crashplan/.ui_info from the server, except with the IP of the server filled in instead of 127.0.0.1
- Install for all users
- Update the CrashPlan instance to connect to 0.0.0.0
- vi /usr/pbi/crashplan-amd64/share/crashplan/conf/my.service.xml
- <serviceUIConfig>
- <serviceHost>0.0.0.0</serviceHost>
- vi /usr/pbi/crashplan-amd64/share/crashplan/conf/my.service.xml
- Ensure that the service will start on jail reboot
- vi /etc/rc.conf and add crashplan_enable=”YES”
- Add Storage (do this in the Crashplan jail to mount the FreeNAS storage)
- mkdir /mnt/xxxx
- mkdir /mnt/xxxx2
- Then through the web-ui of the FreeNAS box add storage
- mkdir /mnt/xxxx
Last edited: