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

install URbackup in a jail

dragon_0n3

Junior Member
Joined
Jun 2, 2016
Messages
12
So quick update: i was able to install 2.0.30 on a separate jail; basically re-did steps from OP, using the new tar files. Not worried about previous backups, as those were all file backups (never got image backups to work), and they are reachable via file share.

Thank you all again for your help!
 

nox_5

Neophyte
Joined
Sep 15, 2016
Messages
6
Hello,
thank you for the perfect description.
I now have a small problem since I upgraded to Urbackup server 2.1.13 on my Freenas 9.10.2.
The could start Urbackup in the terminal with "urbackupsrv run", but it doesn't start anymore as a service with "service urbackupsrv start":
"/etc/rc.d/urbackupsrv: WARNING: run_rc_command: cannot run /usr/local/sbin/urbackupsrv"
Some hints?
Thank you
 

hervon

Senior Member
Joined
Apr 23, 2012
Messages
331
hi nox_5, try reverting to a previous urbackup version like 2.1.12 that i use right now without issue. This problem happened too with a previous beta version of urbackup for freenas that was bugged.
 

hervon

Senior Member
Joined
Apr 23, 2012
Messages
331
Hi again. I updated to server beta 13 without issue. I restart the server with this command : service urbackupsrv restart
 

nox_5

Neophyte
Joined
Sep 15, 2016
Messages
6
Thank you.
It has nothing to do with Urbackup.
Something has changed with 9.10.2:
I have to change the line in /etc/rc.d/urbackupsrv:
command="/usr/local/bin/${name}"

local/bin instead of local/sbin. Don't know why??
May be something is broken with my Freenas.

I als have the error at the console:
19.01.2017 FreeNas collectd[2923]: check_create_dir:
'/var/db/collectd/rrd/FreeNas.de' , exists but is not a directory!

Perhaps someone can help.
 

hervon

Senior Member
Joined
Apr 23, 2012
Messages
331
nox_5. I updated to urbackup 2.1.17 and I had to apply your fix (local/bin instead of local/sbin). Works fine now. Thanks. I have no error (19.01.2017 FreeNas collectd[2923]: check_create_dir:'/var/db/collectd/rrd/FreeNas.de' , exists but is not a directory!) in my console. I guess this is a different problem.
 

hervon

Senior Member
Joined
Apr 23, 2012
Messages
331
Hope we can use urbackup with corral
 

bazzy

Newbie
Joined
Mar 20, 2017
Messages
2
is the guide on the first page updated?
What should I do to upgrade to the latest version Urbackup Server?
 
Last edited:

hervon

Senior Member
Joined
Apr 23, 2012
Messages
331
I'm using the "latest latest" version (I installed most of the beta too). First page should do most of the job. If the download link does not work, go directly to the urbackup website. I suggest you read the entire thread (see post #66 for exemple). Urbackup works flawlesssly for me.
 

bazzy

Newbie
Joined
Mar 20, 2017
Messages
2
I Followed the instructions on the OP, and I can install and run the 1.4.9 version.

then I tried to use the same procedure by replacing 1.4.9 with 2.1.19, the server connects but the interface is locked loading... I can not understand why I see the top of Urbackup logo with the 1.4.9 version. :-?

EDIT: I'm an idiot, I forgot to give the executive permission to the script..... :(

now I can access to the 2.1.19 server :)
 
Last edited:

CJDK

Junior Member
Joined
Mar 12, 2017
Messages
22
Hi.

I would like to install Urbackup in a jail.
I run FreeNAS-11.1-U1 created the jail in the new UI ( iocage)
I use the guide here: https://www.urbackup.org/freenasserverinstall.html
I ssh to the jail (IP address)
and run
pkg update
result is.
root@freenas:~ # pkg update
Updating local repository catalogue...
pkg: Repository local load error: access repo file(/var/db/pkg/repo-local.sqlite ) failed: No such file or directory
pkg: file:///usr/ports/packages/meta.txz: No such file or directory
repository local has no meta file, using default settings
pkg: file:///usr/ports/packages/packagesite.txz: No such file or directory
Unable to update repository local
Error updating repositories!

But why am i root@freenas not root@urbackup(jail)
there is a guide for installing Unifi server in jail
it guides me to ssh to the freenas and them run: jexec <jailname> csh (replace <jailname> with your jail's name)
jexec urbackup csh
jexec: jail "urbackup" not found
here is the jail /mnt/iocage/jails/urbackup

Any Ideas :smile:
 

Alecmascot

Neophyte Sage
Joined
Mar 18, 2014
Messages
658
I think you will find the the urbackup install instructions on the urbackup web-site works fine up to 11.0-U4.
I do not think it will work with iocage on later FN releases as you have found out.
Can you fall back to 11.0-U4 or work with Warden in the classic gui ?
FN is in transition at the moment and will be a mine-field until 11.2-U1 at least
 

danb35

Wizened Sage
Joined
Aug 16, 2011
Messages
11,873
There's no obvious reason the instructions shouldn't work inside an iocage jail. However, networking inside iocage jails has been a little tricky, and that seems to be the problem showing above.
 

hervon

Senior Member
Joined
Apr 23, 2012
Messages
331
I'm on FreeNAS-11.1-U1 with old UI and 'old' jails. Urbackup works without issue. I installed with the info from this thread. I'm on the latest beta. Sorry, I did not try new UI. Burned by the Corral fiasco.
 

CJDK

Junior Member
Joined
Mar 12, 2017
Messages
22
I went back to the old UI an created the jail.
Follow the guide in the beginning of this tread. but Urbackup is not starting after reboot.
How do i start it from the commandline to se what is wrong.

Thanks
 

hervon

Senior Member
Joined
Apr 23, 2012
Messages
331
I went back to the old UI an created the jail.
Follow the guide in the beginning of this tread. but Urbackup is not starting after reboot.
How do i start it from the commandline to se what is wrong.

Thanks
Something went wrong in Step 7 I guess. Maybe more specifically here :

add a line in the startup file
Code:
echo 'urbackup_srv_enable="YES"' >> /etc/rc.conf
 

hervon

Senior Member
Joined
Apr 23, 2012
Messages
331
I don't have the same server name. Mine is : urbackupsrv_enable="YES" in the /etc/rc.conf file. That may explain the issue.
 

Alecmascot

Neophyte Sage
Joined
Mar 18, 2014
Messages
658
I use :

Code:
4. To automatically start UrBackup on jail boot:

echo "#!/bin/sh" > /etc/rc.local
echo "/usr/local/bin/urbackupsrv run -d -g 104857600 -u root" >> /etc/rc.local
chmod +x /etc/rc.local


from https://www.urbackup.org/freenasserverinstall.html
 
Top