Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

install URbackup in a jail

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE

andrewjs18

Member
Joined
Oct 19, 2014
Messages
132
yes no problem, you just have to adapt the command that refers to it
thanks.

I'm not sure what's going on here. I was able to enter the jail earlier through ssh, but when I try again, I keep getting an error:

[me@freenas ~]$ jls
JID IP Address Hostname Path
1 192.168.1.60 Urbackup /mnt/backup_z2/jails/Urbackup
[me@freenas ~]$ sudo jexec 1 tcsh
Password:
jexec: execvp(): tcsh: No such file or directory
 

andrewjs18

Member
Joined
Oct 19, 2014
Messages
132
could my jail be corrupt? if I try to use csh rather than tcsh, it throws the same error.
 

dasti

Member
Joined
Jun 11, 2014
Messages
70
I use the root use directly to do that and not sudo to it maybe your problem comes from there (nnot sure)

you can also try to launch a shell from the jail menu (select yout jail in the list and use the icon at the bottom of the page to launch a shell)
 

andrewjs18

Member
Joined
Oct 19, 2014
Messages
132
I use the root use directly to do that and not sudo to it maybe your problem comes from there (nnot sure)

you can also try to launch a shell from the jail menu (select yout jail in the list and use the icon at the bottom of the page to launch a shell)
I think the issue for me is step #8. I haven't retried step 8 to confirm for sure, but so far, steps 1-7 have allowed me to enter/exit/enter the jail without any problem. see this other thread I created: https://forums.freenas.org/index.php?threads/corrupted-jail.35583
 

andrewjs18

Member
Joined
Oct 19, 2014
Messages
132
urbackup doesn't seem to start automatically when freenas is rebooted.

here's my /usr/local/etc/rc.d/urbackup_srv file:

Code:
root@Urbackup:/usr/local/etc/rc.d # cat urbackup_srv
#!/bin/sh
. /etc/rc.subr
name=urbackup_srv
rcvar=urbackup_srv_enable
command="/usr/local/sbin/${name}"
command_args="--plugin /usr/local/lib/liburbackupserver_urlplugin.so --plugin /usr/local/lib/liburbackupserver_cryptoplugin.so --plugin /usr/loca/lib/liburbackupserver_downloadplugin.so --plugin /usr/local/lib/liburbackupserver_fsimageplugin.so --plugin /usr/local/lib/liburbackupserver_httpserver.so --plugin /usr/local/lib/liburbackupserver.so --http_root /usr/local/var/urbackup/www --workingdir /usr/local/var --user urbackup --http_port 55414 --logfile /var/log/urbackup_srv.log --daemon"
start_precmd="cd /usr/local/var"
load_rc_config $name
run_rc_command "$1"



and here's my /etc/rc.conf file:

Code:
root@Urbackup:/usr/local/etc/rc.d # cat /etc/rc.conf
portmap_enable="NO"
sshd_enable="NO"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
hostname="Urbackup"
devfs_enable="YES"
devfs_system_ruleset="devfsrules_common"
urbackup_srv_enable="YES"
 

hervon

Senior Member
Joined
Apr 23, 2012
Messages
336
Updated to 1.4.9 (Windows client & server) without issue. Only did steps 5 and 6. Restarted jail.
 

dasti

Member
Joined
Jun 11, 2014
Messages
70
I just refreshed the guide corrected small details
 

dasti

Member
Joined
Jun 11, 2014
Messages
70
urbackup doesn't seem to start automatically when freenas is rebooted.

here's my /usr/local/etc/rc.d/urbackup_srv file:

Code:
root@Urbackup:/usr/local/etc/rc.d # cat urbackup_srv
#!/bin/sh
. /etc/rc.subr
name=urbackup_srv
rcvar=urbackup_srv_enable
command="/usr/local/sbin/${name}"
command_args="--plugin /usr/local/lib/liburbackupserver_urlplugin.so --plugin /usr/local/lib/liburbackupserver_cryptoplugin.so --plugin /usr/loca/lib/liburbackupserver_downloadplugin.so --plugin /usr/local/lib/liburbackupserver_fsimageplugin.so --plugin /usr/local/lib/liburbackupserver_httpserver.so --plugin /usr/local/lib/liburbackupserver.so --http_root /usr/local/var/urbackup/www --workingdir /usr/local/var --user urbackup --http_port 55414 --logfile /var/log/urbackup_srv.log --daemon"
start_precmd="cd /usr/local/var"
load_rc_config $name
run_rc_command "$1"



and here's my /etc/rc.conf file:

Code:
root@Urbackup:/usr/local/etc/rc.d # cat /etc/rc.conf
portmap_enable="NO"
sshd_enable="NO"
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
hostname="Urbackup"
devfs_enable="YES"
devfs_system_ruleset="devfsrules_common"
urbackup_srv_enable="YES"
I just tried to reinstall from scratch and I have the same problem and I corrected the step 7 in order to make it work. The file urbackup_srv is succesfully started works when it's in /etc/rd.d not when it's in /usr/local/etc/rc.d
But it still don't know which method is more "standard", if I do it wrong or not
 

hervon

Senior Member
Joined
Apr 23, 2012
Messages
336
Guess what ? Updated to 1.4.10 (Only server) without issue. Only did steps 5 and 6. Restarted urbackup_srv service.
 

hervon

Senior Member
Joined
Apr 23, 2012
Messages
336
Once again. Updated to 1.4.12 (Only server) without issue. Only did steps 5 and 6. Restarted urbackup_srv service.
 

jcbergqu

Junior Member
Joined
Dec 15, 2015
Messages
14
Hello All. Just wanted to say thanks for the guide. I have successfully installed and it appears to be working, although with a somewhat strange phenomenon. I was just curious if anyone else has/is experiencing the same thing. I am using 1.4.12 (latest) server version inside FreeNAS Jail with 1.4.10 (latest) client side interface on a Windows 7 desktop machine. When performing backups (full image in my case), the server appears to complete the backup, reports the following error after completion (Request of image backup failed. Reason: Creating Shadow drive failed. Stopping.) The server dashboard indicates that a full image backup has never completed however the image .vhd file appears to be stored in /mnt/tank/backups. Hope that description is clear enough. I've forced backups several times now while troubleshooting with same/similar results. Anyone experience something similar or have any thoughts on the subject?
 

ggoldfingerd

Member
Joined
Dec 28, 2014
Messages
50
Great guide. I would suggest to add the code below to Step 9. I didn't see anywhere else in the steps that started the jail.

Code:
service urbackup_srv start
 

andrewjs18

Member
Joined
Oct 19, 2014
Messages
132
Great guide. I would suggest to add the code below to Step 9. I didn't see anywhere else in the steps that started the jail.

Code:
service urbackup_srv start
I'm pretty sure at one point in time, that info was in the OP...I'm not sure why it was ever removed though.
 

hervon

Senior Member
Joined
Apr 23, 2012
Messages
336
has anyone upgraded urbackup to 1.4.14 in their jail yet? any issues?
Running 1.4.14 flawlessly here. Great tool. BTW tried full image restore a few times with urbackup_restore_1.2WIP2 boot tool. Worked fine.
 

Dennis1000

Newbie
Joined
May 7, 2016
Messages
1
Some hints for trying the new 2.0 beta server:
- the name changed from urbackup_srv to urbackupsrv (no underscore anymore), you have to change them accordingly
- the plugins are statically compiled (no need for specifying them on the command line)

thus the start up script looks like

#!/bin/sh
. /etc/rc.subr
name=urbackupsrv
rcvar=urbackupsrv_enable
command="/usr/local/sbin/${name}"
command_args="run --daemon"
start_precmd="cd /usr/local/var"
load_rc_config $name
run_rc_command "$1"
 

hervon

Senior Member
Joined
Apr 23, 2012
Messages
336
Thanks Dennis1000 for your precious tips. Updated to 2.0.15.0 server beta flawlessly. Done a few backups so far without issue. The GUI is more informative. The activities tab show current backup speed.
 

dragon_0n3

Junior Member
Joined
Jun 2, 2016
Messages
12
Some hints for trying the new 2.0 beta server:
- the name changed from urbackup_srv to urbackupsrv (no underscore anymore), you have to change them accordingly
- the plugins are statically compiled (no need for specifying them on the command line)

thus the start up script looks like

#!/bin/sh
. /etc/rc.subr
name=urbackupsrv
rcvar=urbackupsrv_enable
command="/usr/local/sbin/${name}"
command_args="run --daemon"
start_precmd="cd /usr/local/var"
load_rc_config $name
run_rc_command "$1"
Hello!
I updated following steps #5, #6 and #7 to update the start up script as you mentioned, but now the service won't restart. It says "WARNING: could not restart service" after giving a lists of possible commands for urbackupsrv.

I've now stopped the jail, created new one, and updating to 2.0.30 to test it out...
My steps to update:
1. mkdir /urbackup
2. cd /urbackup
3. wget https://hndl.urbackup.org/Server/2.0.30/urbackup-server-2.0.30.tar.gz --no-check-certificate
4. tar zxvf urbackup-server-2.0.30.tar.gz
5. cd urbackup-server-1.4.9
6. ./configure
7. make
8. make install

then i updated the script following OP's #7 and your post.

Thanks!
 

dragon_0n3

Junior Member
Joined
Jun 2, 2016
Messages
12
from my list, above, 5. should read "cd urbackup-server-2.0.30"
Cmd was correct, pasted to forum wrong lol, sorry :D
 
Top