I don't see the ui<account>.properties file.
I only have ui.log.properties and ui.properties.
how did u create taht file?
In windows it's in C:\ProgramData\Crashplan\conf I believe.
I don't see the ui<account>.properties file.
I only have ui.log.properties and ui.properties.
how did u create taht file?
For those that use the Mac CrashPlan app for headless configuration, I have written a little script you can put into Automator which will automatically configure the GUI.
I have found that the port and key on the CrashPlan engine changes at engine startup, so the script pulls down and extracts the port from the .ui_info file each time it's run, then makes the necessary changes, launches CrashPlan, and reverts the change after you close the app.
USAGE:
- Ensure you save the SSH keys for the CrashPlan jail to your Mac (search the Internet for this - it's relatively simple). This allows you to logon without prompting for an SSH password
- Change the CPSSHUSER variable at the top to the username of your jail (I have crashplan)
- Change the CPHOST to the hostname / IP address of the CrashPlan jail. You should be able to see this in the Jail section of the FreeNAS config screens.
Hope this helps others! I am sure you could do something similar for Windows, I don't have the inclination as I rarely use Windows to access CrashPlan!
root@crashplan_1:/ # cat /usr/pbi/crashplan-amd64/share/crashplan/conf/my.service.xml | grep Port <servicePort>4285</servicePort> root@crashplan_1:/ # cat /usr/pbi/crashplan-amd64/share/crashplan/conf/my.service.xml | grep serviceHost <serviceHost>0.0.0.0</serviceHost> root@crashplan_1:/ # sockstat -l |grep 4285 root java 9625 61 tcp4 *:4285 *:* root java 9624 61 tcp4 *:4285 *:* root java 9623 61 tcp4 *:4285 *:*
pkg update pkg install bash ln -siv /usr/local/bin/bash /bin/bash
<serviceUIConfig> <serviceHost>0.0.0.0</serviceHost>
Do you see your client connecting inside the jail?Well, I am getting further than I was. I can connect to my FreeNas using the 4.4.1 client, however it just sits there once I have entered my username and password. My Crashplan plugin on my FreeNas box is still at 4.3.3, so I am guessing it is just a matter of waiting it to upgrade to 4.4.1 too (I have installed bash)?
tail -f /usr/pbi/crashplan-amd64/share/crashplan/log/service.log.0
[10.06.15 10:32:19.641 INFO W187448_SystemWatche com.code42.messaging.nio.MessageQueue ] MW:: STATS:UI: numWorkers=2, queue.size=0, MessageQueueStats[num=69768, numSinceLast=36, handling=Counter[count = 24000, rate = 0.07, rollingRate = 0.61], waiting=Counter[count = 310332550, rate = 1999.95, rollingRate = 1999.97], workload=0.000] [10.06.15 10:32:19.651 INFO W187448_SystemWatche com.code42.messaging.nio.MessageQueue ] MW:: STATS:Peer: numWorkers=4, queue.size=0, MessageQueueStats[num=1833, numSinceLast=1, handling=Counter[count = 25781, rate = 0.00, rollingRate = 0.00], waiting=Counter[count = 619788912, rate = 5690.79, rollingRate = 1901.67], workload=0.000] [10.06.15 10:32:26.597 INFO Sel-UI-A com.backup42.service.ui.UIController ] UISession Created - 710337840362153118 [10.06.15 10:32:26.973 INFO MQ-UI-0 com.backup42.service.ui.UIController ] UserActionRequest: StatusQueryMessage[710337840362153118] CPD|9f0916f0-8d0c-43c5-aa5b-e8d075e25c37|dan|/Users/dan| [10.06.15 10:32:26.973 INFO MQ-UI-0 com.backup42.service.ui.UIInfoUtility ] Loaded address=0.0.0.0, port=4243, and token from location=/var/lib/crashplan/.ui_info [10.06.15 10:32:27.016 INFO MQ-UI-0 com.code42.logging.AppLogWriter ] WRITE app.log in 41ms [10.06.15 10:32:27.016 INFO MQ-UI-0 com.backup42.service.ui.UIController ] UserActionResponse: StatusResponseMessage@18026048[ session=710337840362153118 ][ User@-383220706[ userId=1869805, name=Dan, username=MASKED ], AuthorityLocation@33050500[ location=central.crashplan.com:443, hideAddress=false, isLocked=false ], orgType=CONSUMER, upgrading=false, UpdateLicenseMessage[] [ authenticated=true, updateConfigPassword=false, username=danb35@gmail.com, securityKeyType=AccountPassword, dataKeyExists=true, secureDataKeyExists=true, secureDataKeyQA=null, authorizeRules=AuthorizeRules [hashPassword=true, ldap=false, minPasswordLength=5, usernameIsAnEmail=true, deferredAllowed=false], blocked=false ], locale=en_US, websiteHost=https://www.crashplan.com, defaultRestoreFolder=/usr/pbi/crashplan-amd64/share/crashplan/conf, os=Linux ] [10.06.15 10:32:30.357 INFO Factory$Notifier-UI0 com.backup42.service.ui.UIController ] UISession Ended after less than a minute - 710337840362153118 [10.06.15 10:32:30.357 INFO Factory$Notifier-UI0 backup42.service.backup.BackupController] UI:: AUTO IDLE... lowBandwidth=0 B/s, activeThrottleRate=20 [10.06.15 10:32:30.357 INFO Factory$Notifier-UI0 com.backup42.common.command.CliExecutor ] RUN COMMAND: auto.idle > CommandResult@20085968[ auto.idle, success=true, result=null ]
root@crashplan_1:/usr/pbi/crashplan-amd64/share/crashplan/conf # grep Host my.service.xml <serviceHost>0.0.0.0</serviceHost> <websiteHost>https://www.crashplan.com</websiteHost> root@crashplan_1:/usr/pbi/crashplan-amd64/share/crashplan/conf # cat ui.properties #Fri Dec 09 09:50:22 CST 2005 #serviceHost=127.0.0.1 #servicePort=4243 #pollerPeriod=1000 # 1 second #connectRetryDelay=10000 # 10 seconds #connectRetryAttempts=3 #showWelcome=true #font.small= #font.default= #font.title= #font.message.header= #font.message.body= #font.tab= root@crashplan_1:/usr/pbi/crashplan-amd64/share/crashplan/conf # cat /var/lib/crashplan/.ui_info ;echo 4243,9f0916f0-8d0c-43c5-aa5b-e8d075e25c37,0.0.0.0
pc-00201:CrashPlan dan$ cat .ui_info 4243,9f0916f0-8d0c-43c5-aa5b-e8d075e25c37,192.168.1.13 pc-00201:CrashPlan dan$ cat ui_dan.properties #Tue Oct 06 10:38:48 EDT 2015 expandedDestinations=1\:42 MessageDisplayed.UpgradeReminder=1443704900758 servicePort=4243 window=440,182,800,610 serviceHost=192.168.1.13 plus=true
root@crashplan_1:/ # cat /var/log/crashplan/engine_* | grep CPVER [10.04.15 15:25:50.184 INFO main root ] CPVERSION = 4.3.3 - 1430802000433 (2015-05-05T05:00:00:433+0000) - Build: 3
#Tue Oct 06 15:53:53 EDT 2015
[10.06.15 15:55:33.261 INFO Sel-UI-A com.backup42.service.ui.UIController ] UISession Created - 710370365797164190 [10.06.15 15:55:33.518 INFO MQ-UI-0 com.backup42.service.ui.UIController ] UserActionRequest: StatusQueryMessage[710370365797164190] CPD|9f0916f0-8d0c-43c5-aa5b-e8d075e25c37|dan|/Users/dan| [10.06.15 15:55:33.518 INFO MQ-UI-0 com.backup42.service.ui.UIInfoUtility ] Loaded address=0.0.0.0, port=4243, and token from location=/var/lib/crashplan/.ui_info [10.06.15 15:55:33.549 INFO MQ-UI-0 com.code42.logging.AppLogWriter ] WRITE app.log in 30ms [10.06.15 15:55:33.549 INFO MQ-UI-0 com.backup42.service.ui.UIController ] UserActionResponse: StatusResponseMessage@33308927[ session=710370365797164190 ][ User@-383220706[ userId=1869805, name=Dan, username=MASKED ], AuthorityLocation@33050500[ location=central.crashplan.com:443, hideAddress=false, isLocked=false ], orgType=CONSUMER, upgrading=false, UpdateLicenseMessage[] [ authenticated=true, updateConfigPassword=false, username=danb35@gmail.com, securityKeyType=AccountPassword, dataKeyExists=true, secureDataKeyExists=true, secureDataKeyQA=null, authorizeRules=AuthorizeRules [hashPassword=true, ldap=false, minPasswordLength=5, usernameIsAnEmail=true, deferredAllowed=false], blocked=false ], locale=en_US, websiteHost=https://www.crashplan.com, defaultRestoreFolder=/usr/pbi/crashplan-amd64/share/crashplan/conf, os=Linux ] [10.06.15 15:55:37.200 INFO Factory$Notifier-UI0 com.backup42.service.ui.UIController ] UISession Ended after less than a minute - 710370365797164190 [10.06.15 15:55:37.200 INFO Factory$Notifier-UI0 backup42.service.backup.BackupController] UI:: AUTO IDLE... lowBandwidth=0 B/s, activeThrottleRate=20 [10.06.15 15:55:37.200 INFO Factory$Notifier-UI0 com.backup42.common.command.CliExecutor ] RUN COMMAND: auto.idle > CommandResult@17428477[ auto.idle, success=true, result=null ]
Do you see your client connecting inside the jail?
Code:tail -f /usr/pbi/crashplan-amd64/share/crashplan/log/service.log.0
[10.07.15 10:32:38.923 INFO main com.backup42.service.CPService] CPVERSION = 4.4.1 - 1435726800441 (2015-07-01T05:00:00:441+0000) - Build: 30
My issue it seems was much more simple. When I thought I had installed bash, I actually hadn't . Doing a "pkg install bash" was trying to install an earlier version of bash that no longer existed on the repo, even after doing a "pkg update". I ended up having to do a "pkg add" specifying the http location of the package. All good now and I can see the FreeNas CrashPlan Plugin is now running the latest version.
Hi, Could you please post the method to update bash. I also received an error when trying to install bash stating no pkg exists.
Thanks
pkg add http://pkg.freebsd.org/freebsd:9:x86:64/release_3/All/bash-4.3.0_1.txz
That did the trick I think.... Although did get a message that an upgrade from 4.3.0 was attempted. Anyway, I am now on 4.4.1 and following the instructions here : http://support.code42.com/CrashPlan/Latest/Configuring/Using_CrashPlan_On_A_Headless_Computer worked. My port changed again, so had to update my port forwarding as a result.Try this;
Code:pkg add http://pkg.freebsd.org/freebsd:9:x86:64/release_3/All/bash-4.3.0_1.txz
Make sure you give it a good wad of time after the completed installation for the Crashplan updates to go through. Will be interested in hearing how you get on with actually connecting to your Crashplan destinations.