When ever I tried to do an upgrade from the UI, CrashPlan service completely stops. I had to manually restart the CrashPlan service, but then it will go back to do the upgrade!!
Digging further, I noticed that there are issues with the upgrade script and it fails. I had to do the following steps to upgrade the Qnap app and restart my backup.
- Qnap Version: TS-251 4.1.4 (2015/05/22)
- CrashPlan app version: 4.2.0_35
Upgrading CrashPlan AppThe following steps were needed to this upgrade working
- Start the CrashPlan app using the Qnap UI
- ssh to the Qnap Server
- Stop the CrashPlan service
- Modify the config file
- Modify the startup script
- Change the upgrade script
- Manually run the upgrade script(s)
- Stop the service using Qnap UI
- Modify the config file
- Start the CrashPlan app from Qnap UI
- Configure the client
- Adopt the existing computer if needed
- Start the backup
ssh your-qnap-ip cd /share/CACHEDDEV1_DATA/.qpkg/CrashPlan/conf /etc/init.d/crashplan.sh stopModify the my.service.xml and change the <location> and <serviceHost> tag values to:
Modify the /etc/init.d/crashplan.sh
- Comment out the line which modifies the <location> in the my.service.xml file. Look for the line starting /bin/sed -i "s/<location.* and put a '#' at the begining of the line
- Repeat the same to comment out the place it replaces the <serviceHost>
Modify the upgrade scripts Go to the CrashPlan/upgrade directory and find out the latest directory created by the upgrade script. E.g. Run 'ls -lart' and take the last directory and go into that directory Modify the upgrade.sh with the following:
- Remove the "-v" parameter from the RM command E.g. RM = "rm -f"
- Modify the INIT_SCRIPT value E.g. INIT_SCRIPT = /etc/init.d/crashplan.sh
- Modify the INSTALL_VARS value E.g. INSTALL_VARS = ../../crashplan.vars
sh upgrade.shRepeat the same modification to the upgrade.sh for any other upgrades. Typically, the upgrades are packaged into jar files and they will be downloaded to the upgrade directory. When one upgrade is done, the system automatically starts the next one. But for this also I had to modify the upgrade script. So need to stop the crash plan and the upgrade script before modifying it.
/etc/init.d/crashplan.sh ps -aef | grep -i upgrade # And kill the upgrade process if any, modify the upgrade script and run it sh upgrade.shFinally modify the conf/my.service.xml and /etc/init.d/crashplan.sh as described before, if the upgrade script has modified these files.
To configure the client, (on MacOS)
- Modify the /Applications/CrashPlan.app/Contents/Resources/Java/conf/ui.properties and add the serviceHost to the IP address of the Qnap NAS.
- Copy the values from /share/CACHEDEV1_DATA/.qpkg/CrashPlan/var/.ui_info from the Qnap server to the /Library/Application Support/CrashPlan/.ui_info file on the Mac client