CrashPlan Plugin

Status
Not open for further replies.

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
Yes, if you want to make changes you need to start up the ssh tunnel and then the Crashplan GUI. These don't need to be running for the service to backup you NAS.
 

Freesnofla

Patron
Joined
Oct 27, 2013
Messages
216
I'm still not sucessful I really have any idea any more what I have to do. I'm running Ubuntu 14.04 on my desktop and also did all the changes inside my ui.properties.
I use the actual UI and have also the newest update running on my FreeNas box.

ui-config:

Code:
#Fri Dec 09 09:50:22 CST 2005
serviceHost=127.0.0.1
servicePort=4200
#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=


Then I use ssh

Code:
ssh -L 4200:127.0.0.1:4243 crashplan@crashplan-jailIP -N -v -v


Below is the output from the terminal when I run CrashPlanDesktop, any ideas what I else could try?

Code:
debug1: Connection to port 4200 forwarding to 127.0.0.1 port 4243 requested.
debug2: fd 6 setting TCP_NODELAY
debug2: fd 6 setting O_NONBLOCK
debug1: channel 2: new [direct-tcpip]
debug2: channel 2: open confirm rwindow 2097152 rmax 32768
debug2: channel 2: read<=0 rfd 6 len 0
debug2: channel 2: read failed
debug2: channel 2: close_read
debug2: channel 2: input open -> drain
debug2: channel 2: ibuf empty
debug2: channel 2: send eof
debug2: channel 2: input drain -> closed
debug2: channel 2: rcvd eof
debug2: channel 2: output open -> drain
debug2: channel 2: obuf empty
debug2: channel 2: close_write
debug2: channel 2: output drain -> closed
debug2: channel 2: rcvd close
debug2: channel 2: send close
debug2: channel 2: is dead
debug2: channel 2: garbage collecting
debug1: channel 2: free: direct-tcpip: listening port 4200 for 127.0.0.1 port 4243, connect from 127.0.0.1 port 42361 to 127.0.0.1 port 4200, nchannels 3
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
debug2: client_check_window_change: changed
 

Halfe

Explorer
Joined
Apr 24, 2013
Messages
94
okey. i've tried this link to connect to my crashplan backup on my FreeNAS but have not been successfull yet

http://techflow.io/blog/crashplan-plugin-for-freenas

so far i have installed the plugin successfully. and added linux_load=YES to tunables
edited the file /usr/pbi/crashplan-amd64/share/crashplan/conf/my.service.xml so that crashplan listens to all Ip not local.

but the service is not running

Code:
root@crashplan_1:/ # service crashplan status
/usr/local/etc/rc.d/crashplan: WARNING: no shebang line in /usr/bin/cpuset
crashplan is not running.





i've tried running this.
Try running this in your jail after editing the file

Code:
root@crashplan_1:/ # /usr/bin/cpuset -l 0 /usr/local/share/crashplan/bin/CrashPlanEngine restart  


Thats cpuset with dash lowercase L and then number zero

Then do
Code:
root@crashplan_1:/ # ls /proc 

you should see a fistful of entries.


Then run
Code:
root@crashplan_1:/ # sockstat -4 

you should see a bunch of entries for java

p.s.

shebang is the #! at the start of scripts


But in this is the result i get

Code:
cpuset: /usr/local/share/crashplan/bin/crash: No such file or directory
root@crashplan_1:/ # /usr/bin/cpuset -l 0 /usr/local/share/crashplan/bin/CrashPlanEngine restart
Restarting CrashPlan Engine ... Stopping CrashPlan Engine ... OK
Starting CrashPlan Engine ... Using standard startup
OK
root@crashplan_1:/ # ls /proc
21689  27049  36426  36429  36432  36435  36438  36441  36444  36447  36450  36453  36456  36459
21742  36424  36427  36430  36433  36436  36439  36442  36445  36448  36451  36454  36457  36461
23239  36425  36428  36431  36434  36437  36440  36443  36446  36449  36452  36455  36458  curproc
root@crashplan_1:/ # sockstat -4
USER    COMMAND    PID  FD PROTO  LOCAL ADDRESS        FOREIGN ADDRESS
root    java      36459 59 tcp4  *:4243                *:*
root    java      36459 60 tcp4  *:4242                *:*
root    java      36458 59 tcp4  *:4243                *:*
root    java      36458 60 tcp4  *:4242                *:*
root    java      36457 59 tcp4  *:4243                *:*
root    java      36457 60 tcp4  *:4242                *:*
root    java      36456 59 tcp4  *:4243                *:*
root    java      36456 60 tcp4  *:4242                *:*
root    java      36455 59 tcp4  *:4243                *:*
root    java      36455 60 tcp4  *:4242                *:*
root    java      36454 59 tcp4  *:4243                *:*
root    java      36454 60 tcp4  *:4242                *:*
root    java      36453 59 tcp4  *:4243                *:*
root    java      36453 60 tcp4  *:4242                *:*
root    java      36452 59 tcp4  *:4243                *:*
root    java      36452 60 tcp4  *:4242                *:*
root    java      36451 59 tcp4  *:4243                *:*
root    java      36451 60 tcp4  *:4242                *:*
root    java      36450 59 tcp4  *:4243                *:*
root    java      36450 60 tcp4  *:4242                *:*
root    java      36449 59 tcp4  *:4243                *:*
root    java      36449 60 tcp4  *:4242                *:*
root    java      36448 59 tcp4  *:4243                *:*
root    java      36448 60 tcp4  *:4242                *:*
root    java      36447 59 tcp4  *:4243                *:*
root    java      36447 60 tcp4  *:4242                *:*
root    java      36446 59 tcp4  *:4243                *:*
root    java      36446 60 tcp4  *:4242                *:*
root    java      36445 59 tcp4  *:4243                *:*
root    java      36445 60 tcp4  *:4242                *:*
root    java      36444 59 tcp4  *:4243                *:*
root    java      36444 60 tcp4  *:4242                *:*
root    java      36443 59 tcp4  *:4243                *:*
root    java      36443 60 tcp4  *:4242                *:*
root    java      36442 59 tcp4  *:4243                *:*
root    java      36442 60 tcp4  *:4242                *:*
root    java      36441 59 tcp4  *:4243                *:*
root    java      36441 60 tcp4  *:4242                *:*
root    java      36440 59 tcp4  *:4243                *:*
root    java      36440 60 tcp4  *:4242                *:*
root    java      36439 59 tcp4  *:4243                *:*
root    java      36439 60 tcp4  *:4242                *:*
root    java      36438 59 tcp4  *:4243                *:*
root    java      36438 60 tcp4  *:4242                *:*
root    java      36437 59 tcp4  *:4243                *:*
root    java      36437 60 tcp4  *:4242                *:*
root    java      36436 59 tcp4  *:4243                *:*
root    java      36436 60 tcp4  *:4242                *:*
root    java      36435 59 tcp4  *:4243                *:*
root    java      36435 60 tcp4  *:4242                *:*
root    java      36434 59 tcp4  *:4243                *:*
root    java      36434 60 tcp4  *:4242                *:*
root    java      36433 59 tcp4  *:4243                *:*
root    java      36433 60 tcp4  *:4242                *:*
root    java      36432 59 tcp4  *:4243                *:*
root    java      36432 60 tcp4  *:4242                *:*
root    java      36431 59 tcp4  *:4243                *:*
root    java      36431 60 tcp4  *:4242                *:*
root    java      36430 59 tcp4  *:4243                *:*
root    java      36430 60 tcp4  *:4242                *:*
root    java      36429 59 tcp4  *:4243                *:*
root    java      36429 60 tcp4  *:4242                *:*
root    java      36428 59 tcp4  *:4243                *:*
root    java      36428 60 tcp4  *:4242                *:*
root    java      36427 59 tcp4  *:4243                *:*
root    java      36427 60 tcp4  *:4242                *:*
root    java      36426 59 tcp4  *:4243                *:*
root    java      36426 60 tcp4  *:4242                *:*
root    java      36425 59 tcp4  *:4243                *:*
root    java      36425 60 tcp4  *:4242                *:*
root    java      36424 59 tcp4  *:4243                *:*
root    java      36424 60 tcp4  *:4242                *:*
root    python2.7  23239 3  tcp4  10.0.2.13:12346      *:*
root    syslogd    21689 7  udp4  *:514                *:*


This is the content of my
Code:
/usr/pbi/crashplan-amd64/share/crashplan/bin/run.conf



Code:
SRV_JAVA_OPTS="-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider -Dfile.encoding=UTF-8 -Dapp=CrashPlanService -DappBaseName=CrashPlan -Xms20m -Xmx1024m -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



My headless client is not able to connect. and here is it where i stand still.
I was told that this would work so that i dont need an SSH tunnel.


edit: Checked the logs of Crashplan

Engine_output.log
Code:
Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed
[05.21.14 12:07:28.696 INFO    main                root                                    ] Locale changed to English
[05.21.14 12:07:28.697 INFO    main                root                                    ] *************************************************************
[05.21.14 12:07:28.697 INFO    main                root                                    ] *************************************************************
[05.21.14 12:07:28.697 INFO    main                root                                    ] STARTED CrashPlanService
[05.21.14 12:07:28.698 INFO    main                root                                    ] CPVERSION = 3.6.3 - 1388556100363 (2014-01-01T06:01:40:363+0000)
[05.21.14 12:07:28.698 INFO    main                root                                    ] LOCALE = English
[05.21.14 12:07:28.698 INFO    main                root                                    ] ARGS = [  ]
[05.21.14 12:07:28.698 INFO    main                root                                    ] *************************************************************
[05.21.14 12:07:28.807 INFO    main                root                                    ] Adding shutdown hook.
[05.21.14 12:07:28.812 INFO    main                root                                    ] BEGIN Loading Configuration
[05.21.14 12:07:28.848 INFO    main                root                                    ] BEGIN Copy Custom
[05.21.14 12:07:28.848 INFO    main                root                                    ]  Directories: [.Custom, custom, /usr/pbi/crashplan-amd64/share/crashplan/conf/.Custom, /usr/pb
[05.21.14 12:07:28.848 INFO    main                root                                    ]  NOT waiting for custom skin to appear
[05.21.14 12:07:28.848 INFO    main                root                                    ]  NO customizations found.
[05.21.14 12:07:28.848 INFO    main                root                                    ] END Copy Custom
[05.21.14 12:07:28.851 INFO    main                root                                    ]  Loading from default: /usr/pbi/crashplan-amd64/share/crashplan/conf/default.service.xml
[05.21.14 12:07:28.929 INFO    main                root                                    ]  Loading from my xml file=conf/my.service.xml
[05.21.14 12:07:28.962 INFO    main                root                                    ]  Loading ServiceConfig, newInstall=false, version=4, configDateMs=null, installVersion=1388556
[05.21.14 12:07:28.963 INFO    main                root                                    ]  OS = Linux
[05.21.14 12:07:29.157 INFO    main                root                                    ]  AuthorityLocation@32775827[ location=central.crashplan.com:443, hideAddress=false ]
[05.21.14 12:07:29.158 INFO    main                root                                    ]  Checking Java memory heap max.
[05.21.14 12:07:29.160 INFO    main                root                                    ]    Previous Java memory max heap size was 1024
[05.21.14 12:07:29.161 INFO    main                root                                    ] END Loading Configuration
jtux Loaded.
[05.21.14 12:07:30.662 INFO    main                root                                    ] *****  STOPPING  *****
[05.21.14 12:07:30.663 INFO    Thread-0            root                                    ] Stopping service...
[05.21.14 12:07:30.874 INFO    Thread-0            root                                    ] Selector shutting down...
[05.21.14 12:07:30.874 INFO    Thread-0            root                                    ] Selector shutting down...
[05.21.14 12:07:30.874 INFO    Thread-0            root                                    ] Selector shutting down...
[05.21.14 12:07:30.874 INFO    Thread-0            root                                    ] Selector shutting down...
[05.21.14 12:07:30.874 INFO    Thread-0            root                                    ] [Factory 24966386]stop() Stopping
[05.21.14 12:07:30.874 INFO    Thread-0            root                                    ] UISession stopped.
[05.21.14 12:07:30.876 INFO    Thread-0            root                                    ] Backup torn down.
[05.21.14 12:07:30.876 INFO    Thread-0            root                                    ] DownloadManager stopped.
[05.21.14 12:07:30.877 INFO    Thread-0            root                                    ] SystemWatcher stopped.
[05.21.14 12:07:30.877 INFO    Thread-0            root                                    ] Service stopped
[05.21.14 12:07:30.877 INFO    Sel-UI-A            root                                    ] SelectorEngine stopped.
[05.21.14 12:07:30.877 INFO    Sel-UI-C            root                                    ] SelectorEngine stopped.
[05.21.14 12:07:30.877 INFO    Sel-UI-R            root                                    ] SelectorEngine stopped.
[05.21.14 12:07:30.877 INFO    Sel-UI-W            root                                    ] SelectorEngine stopped.

engine_error.log

Code:
/etc/host.conf: line 2: bad command `hosts'
/etc/host.conf: line 3: bad command `dns'


this is my content of host.conf
Code:
# Auto-generated from nsswitch.conf
hosts
dns
 

joelmusicman

Patron
Joined
Feb 20, 2014
Messages
249
OK, I'm not sure what you did so let's do this:
1. Delete your crashplan plugin.
2. Reload a fresh copy.
3. In the freenas GUI, click on the crashplan under the plugins tab, and accept the terms of use.
4. Share data you want backed up via FreeNAS GUI. Read only access is fine AFAIK.
5. Follow the steps for headless install on Code42 website. Once you select files and have it running you may disconnect the SSH tunnel.
 

Halfe

Explorer
Joined
Apr 24, 2013
Messages
94
So far so good, Crashplan is backing up. BUT, its not accepting non-US charsets. i have ÆØÅ in many of my folders and files and Crashplan is not accepting files with non-US chaset.
Is there a way to change this settings? so far i've changed the language of the crashplan headless but no effect.
This bug has been reported before but no results.

anyone of you who know how to fix this?
 

Jason Hamilton

Contributor
Joined
Jul 4, 2013
Messages
141
I would contract the crash plan support and ask them

Sent from my SCH-I535 using Tapatalk
 

Halfe

Explorer
Joined
Apr 24, 2013
Messages
94

pcloadetter

Explorer
Joined
Aug 15, 2015
Messages
65
I'm a bit stuck, hoping you folks can help. I posted it here: https://forums.freenas.org/index.php?threads/help-getting-crashplan-running.38005/ but haven't had a response.

Here is my current scenario:

FreeNAS Plugins page says Status is running. CP disagrees. So I think my first issue is why isn't CP running.

CP JAIL
root@crashplan_1:/var/lib/crashplan # /usr/pbi/crashplan-amd64/share/crashplan/bin/CrashPlanEngine status
CrashPlan Engine is stopped.
Which I don't quite get since the plugins page says it is running

I updated /usr/pbi/crashplan-amd64/share/crashplan/bin/run.conf
SRV_JAVA_OPTS="-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider ..."
GUI_JAVA_OPTS="-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider ..."

/usr/pbi/crashplan-amd64/share/crashplan/conf/my.service.xml
<serviceUIConfig>
<serviceHost>0.0.0.0</serviceHost>
<servicePort>4365</servicePort>

/var/lib/crashplan/.ui_info
4365,<clientkey>

cat /var/log/crashplan/engine_output.log | grep CPVER
CPVERSION = 4.3.0
 

Nick2253

Wizard
Joined
Apr 21, 2014
Messages
1,633
What happens if you do:
/usr/pbi/crashplan-amd64/share/crashplan/bin/CrashPlanEngine start

Also, have you tried rebooting the jail?
 
Status
Not open for further replies.
Top