UrBackup clean install, cannot reach webpage/admin portal

asw2012

Contributor
Joined
Dec 17, 2012
Messages
182
I have installed urbackup on TrueNAS 13.0-U2

I get an installation successful message, then some instructions
I then follow these instructions. But I cannot get to the admin page via IP:PORT
1667782788908.png


I even try to go to shell and start HTTP server manually:
1667783091903.png


I do see this on bottom of the TrueNAS GUI when I restart, does this have anything to do with why I can't connect to the urbackup GUI?
1667782942857.png
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
You need to do a manual install and an install from Source because of an issue with Cryptopp causing the segmentation fault on FreeBSD.

make a jail like this : (change the name and IP to Suit)
iocage create -n urbackup ip4_addr="vnet0|10.10.0.39/24" defaultrouter="10.10.0.1" vnet="on" boot="on" -r 13.1-RELEASE -b

Then when you come to do the build do :

./configure --enable-embedded-cryptopp
make -j4
make install
 
Last edited:

asw2012

Contributor
Joined
Dec 17, 2012
Messages
182
You need to do a manual install and an install from Source because of an issue with Cryptopp causing the segmentation fault on FreeBSD.

make a jail like this : (change the name and IP to Suit)
iocage create -n urbackup ip4_addr="vnet0|10.10.0.39/24" defaultrouter="10.10.0.1" vnet="on" boot="on" -r 13.1-RELEASE -b

Then when you come to do the build do :

./configure --enable-embedded-cryptopp
make install -j4
Hi, thanks for the reply. I have created the jail.

(I am not too good at command line installations)
Inside the jail shell:
I've gotten as far as ./configure:
1667837719815.png



3. Run ./configure and make (as I am fuzzy on what to do with MAKE and the rest)
1667837917633.png
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
ok.
Best to use Putty for the command line stuff.
Start from scratch:


Code:
Create the urbackup jail:
    iocage create -n urbackup ip4_addr="vnet0|10.10.0.39/24" defaultrouter="10.10.0.1" vnet="on" boot="on" -r 13.1-RELEASE -b

Go to the jail console:
    iocage console (name of jail)

Install needed packages: (respond "y" if prompted)
    pkg install -y nano curl wget

download Urbackup Source into the jail:
    wget https://hndl.urbackup.org/Server/2.5.27/urbackup-server-2.5.27.tar.gz

Extract the archive:
    tar xf urbackup-server-2.5.27.tar.gz

Navigate into the newly created folder:
    cd *.27

Then :
    ./configure --enable-embedded-cryptopp

Then :
    make -j4

Then:
    make install

To test do:
    urbackupsrv run -u root

Browse to:
    "jail IP":55414

Back in the jail stop urbackupsrv:
    ctrl-c

To make urbackup run at jail boot :
    nano /etc/rc.local

and add to the new file :

    #!/bin/sh
    /usr/local/bin/urbackupsrv run -d -g 104857600 -u root

To end and save :
    crtl-x
    y
    enter

To make it executable :
    chmod +x /etc/rc.local

"exit" to leave the jail
"iocage restart (jail name)"  to restart the jail then check you can browse to port 55414 as before



Then back to the TrueNAS gui to setup the mountpoint for the backup data (with the jail stopped) and back into Urbackup to make the settings you need.
 
Last edited:

asw2012

Contributor
Joined
Dec 17, 2012
Messages
182
Thanks much for the help here. I will dig into the install when I have time after work today. I'll let you know how it went, if it was successful.
 

asw2012

Contributor
Joined
Dec 17, 2012
Messages
182
Dude. thanks much!!

This works!!
I now have a working urbackup installation on my TrueNAS Core box :)
 

petroshana

Cadet
Joined
Nov 14, 2022
Messages
2
Hi guys

So I had a similar problem as I've upgraded the jail from an older version of urbackup and I've deleted the old jail and started from scratch and did all the steps Alecmascot said.
Although the new jail seems to get stuck on downloading dataplan database and I'm getting no access on the web interface of urbackup when I'm running the test mode.

Code:
root@urbackup-v2:~ # urbackupsrv run -u root
2022-11-14 15:56:50: Starting HTTP-Server on port 55414
2022-11-14 15:56:50: HTTP: Server started up successfully!
2022-11-14 15:56:50: SQLite: recovered 4 frames from WAL file /usr/local/var/urbackup/backup_server.db-wal code: 283
2022-11-14 15:56:50: SQLite: recovered 3 frames from WAL file /usr/local/var/urbackup/backup_server_link_journal.db-wal code: 283
2022-11-14 15:56:50: SQLite: recovered 4 frames from WAL file /usr/local/var/urbackup/backup_server.db-wal code: 283
2022-11-14 15:56:50: SQLite: recovered 3 frames from WAL file /usr/local/var/urbackup/backup_server_link_journal.db-wal code: 283
2022-11-14 15:56:50: Started UrBackup...
2022-11-14 15:56:50: Image mounting disabled: Backupfolder not set
2022-11-14 15:56:50: Backup destination cannot handle subvolumes and snapshots.Snapshots disabled.
2022-11-14 15:56:50: Error opening source file. errno=2
2022-11-14 15:56:50: Broadcasting on ipv4 interface epair0b addr 172.16.0.2
2022-11-14 15:56:51: InternetService: Server started up successfully!
2022-11-14 15:56:51: UrBackup Server start up complete.
2022-11-14 15:56:51: Server started up successfully!
2022-11-14 15:56:51: Looking for old Sessions... 0 sessions
2022-11-14 15:56:52: Downloading version file...
2022-11-14 15:57:02: Downloading version file...
2022-11-14 15:57:12: Downloading server version info...
2022-11-14 15:57:23: Downloading dataplan database...


This is what I get when I'm running it on the shell.
 

asw2012

Contributor
Joined
Dec 17, 2012
Messages
182
Hi guys

So I had a similar problem as I've upgraded the jail from an older version of urbackup and I've deleted the old jail and started from scratch and did all the steps Alecmascot said.
Although the new jail seems to get stuck on downloading dataplan database and I'm getting no access on the web interface of urbackup when I'm running the test mode.

Code:
root@urbackup-v2:~ # urbackupsrv run -u root
2022-11-14 15:56:50: Starting HTTP-Server on port 55414
2022-11-14 15:56:50: HTTP: Server started up successfully!
2022-11-14 15:56:50: SQLite: recovered 4 frames from WAL file /usr/local/var/urbackup/backup_server.db-wal code: 283
2022-11-14 15:56:50: SQLite: recovered 3 frames from WAL file /usr/local/var/urbackup/backup_server_link_journal.db-wal code: 283
2022-11-14 15:56:50: SQLite: recovered 4 frames from WAL file /usr/local/var/urbackup/backup_server.db-wal code: 283
2022-11-14 15:56:50: SQLite: recovered 3 frames from WAL file /usr/local/var/urbackup/backup_server_link_journal.db-wal code: 283
2022-11-14 15:56:50: Started UrBackup...
2022-11-14 15:56:50: Image mounting disabled: Backupfolder not set
2022-11-14 15:56:50: Backup destination cannot handle subvolumes and snapshots.Snapshots disabled.
2022-11-14 15:56:50: Error opening source file. errno=2
2022-11-14 15:56:50: Broadcasting on ipv4 interface epair0b addr 172.16.0.2
2022-11-14 15:56:51: InternetService: Server started up successfully!
2022-11-14 15:56:51: UrBackup Server start up complete.
2022-11-14 15:56:51: Server started up successfully!
2022-11-14 15:56:51: Looking for old Sessions... 0 sessions
2022-11-14 15:56:52: Downloading version file...
2022-11-14 15:57:02: Downloading version file...
2022-11-14 15:57:12: Downloading server version info...
2022-11-14 15:57:23: Downloading dataplan database...


This is what I get when I'm running it on the shell.
Hi, I remember waiting a good amount of time for that to update (I think 45 mins+) at the dataplan database. IIR - I waited.... then I was able to connect and check to see if the web interface worked. It was frustrating that there was no indicator or percentage to see progress...
 

petroshana

Cadet
Joined
Nov 14, 2022
Messages
2
Hi, I remember waiting a good amount of time for that to update (I think 45 mins+) at the dataplan database. IIR - I waited.... then I was able to connect and check to see if the web interface worked. It was frustrating that there was no indicator or percentage to see progress...
Hi, so I left it for 2 hours like this waiting for a a response after the dataplan database, the only message I got afterwards was "Looking for old Sessions... 0 sessions" and that message was coming every 30 mins.
 

asw2012

Contributor
Joined
Dec 17, 2012
Messages
182
Hi, so I left it for 2 hours like this waiting for a a response after the dataplan database, the only message I got afterwards was "Looking for old Sessions... 0 sessions" and that message was coming every 30 mins.
Hi again, I do remember that part also, and at that point I was then able to connect "test" (through the web portal... the ip address) then cntrl-c and continue on.
 

inpowers

Dabbler
Joined
Jan 29, 2016
Messages
37
Hi All I too am having issues with Urbackup.
Was working great in till I reboot the server and then it stopped.
I have tried to install from scratch after upgrading to Truenas Core 13 with the issues below.
Tring to use Alecmascot setup with issues.
I too am not good with line commands
Install needed packages: (respond "y" if prompted) pkg install -y nano curl wget
Then I receive this error in Putty
Capture.PNG

Where am I going wrong

Thanks in advance
Regards
inpowers
 
Last edited:

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
What's your jail network setup ?
 

inpowers

Dabbler
Joined
Jan 29, 2016
Messages
37
What's your jail network setup ?
HI Alecmascot

I got it working i did say i wasn't good at command line stupid me.
When you ask network setup I didn't realize that i had to change the ip address. I thought i would do it at the end. OH Der :rolleyes::rolleyes::rolleyes:

Your a legend :smile:
Thanks for your help
Just need to setup clients now.

Regards
inpowers
 

inpowers

Dabbler
Joined
Jan 29, 2016
Messages
37
Need help please
Have spent the last couple of days trying to get urbackup to backup to a dataset folder ZFS storage /mnt/MediaVolume/urbackupV2.
Problem is it just keeps backing up in the SSDpool jail /mnt/SSDPool/iocage/jails/urbackup/root.
I just can't get my head around the Mount Points.
It used to work before the upgrade to Truenas-13 but know not so good.
After searching deleting copying for the last couple of nights this is my last resort.
I am a noob.

Thanks again
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
rying to get urbackup to backup to a dataset folder ZFS storage /mnt/MediaVolume/urbackupV2.
Problem is it just keeps backing up in the SSDpool jail /mnt/SSDPool/iocage/jails/urbackup/root.
I just can't get my head around the Mount Points.
You're going to need to get your head around mount points if you want to get to the desired result.

either do it in the GUI (with the jail stopped) and add a mount point for /mnt/MediaVolume/urbackupV2 to go into /mnt/target (or whatever directory you want it to be in the jail)

or, with the jail running:
iocage exec urbackup mkdir /mnt/target
iocage fstab urbackup -a /mnt/MediaVolume/urbackupV2 /mnt/target nullfs rw 0 0

In either case, you would now be able to see (at least while the jail runs) there is a structure in /mnt/SSDPool/iocage/jails/urbackup/root/mnt/target which matches to the contents of /mnt/MediaVolume/urbackupV2

That's all a mount point does... makes specified host storage visible to a jail at the "mount point".
 

inpowers

Dabbler
Joined
Jan 29, 2016
Messages
37
Hi sretalla
I have given the above a go but unfortunately i still get this error on the urbackup status page
Can access /
Can access /mnt
Cannot access /mnt/MediaVolume. No such file or directory (code: 2)
Cannot access /mnt/MediaVolume/urbackupV2. No such file or directory (code: 2)
As for this line
/mnt/SSDPool/iocage/jails/urbackup/root/mnt/urbackupV2 and also tried /mnt/SSDPool/iocage/jails/urbackup/root/mnt/urbackup_V2
Permission for the dataset are 777
What the hell am i missing

inpowers
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
I have given the above a go but unfortunately i still get this error on the urbackup status page
Can you share the output from iocage fstab urbackup -l
 

inpowers

Dabbler
Joined
Jan 29, 2016
Messages
37
AS requested

root@freenas:~ # iocage fstab urbackup -l
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| INDEX | FSTAB ENTRY |
+=======+===================================================================================================================================================+
| 0 | /mnt/SSDpool/iocage/releases/13.1-RELEASE/root/bin /mnt/SSDpool/iocage/jails/urbackup/root/bin nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 1 | /mnt/SSDpool/iocage/releases/13.1-RELEASE/root/boot /mnt/SSDpool/iocage/jails/urbackup/root/boot nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 2 | /mnt/SSDpool/iocage/releases/13.1-RELEASE/root/lib /mnt/SSDpool/iocage/jails/urbackup/root/lib nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 3 | /mnt/SSDpool/iocage/releases/13.1-RELEASE/root/libexec /mnt/SSDpool/iocage/jails/urbackup/root/libexec nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 4 | /mnt/SSDpool/iocage/releases/13.1-RELEASE/root/rescue /mnt/SSDpool/iocage/jails/urbackup/root/rescue nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 5 | /mnt/SSDpool/iocage/releases/13.1-RELEASE/root/sbin /mnt/SSDpool/iocage/jails/urbackup/root/sbin nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 6 | /mnt/SSDpool/iocage/releases/13.1-RELEASE/root/usr/bin /mnt/SSDpool/iocage/jails/urbackup/root/usr/bin nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 7 | /mnt/SSDpool/iocage/releases/13.1-RELEASE/root/usr/include /mnt/SSDpool/iocage/jails/urbackup/root/usr/include nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 8 | /mnt/SSDpool/iocage/releases/13.1-RELEASE/root/usr/lib /mnt/SSDpool/iocage/jails/urbackup/root/usr/lib nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 9 | /mnt/SSDpool/iocage/releases/13.1-RELEASE/root/usr/libexec /mnt/SSDpool/iocage/jails/urbackup/root/usr/libexec nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 10 | /mnt/SSDpool/iocage/releases/13.1-RELEASE/root/usr/sbin /mnt/SSDpool/iocage/jails/urbackup/root/usr/sbin nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 11 | /mnt/SSDpool/iocage/releases/13.1-RELEASE/root/usr/share /mnt/SSDpool/iocage/jails/urbackup/root/usr/share nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 12 | /mnt/SSDpool/iocage/releases/13.1-RELEASE/root/usr/libdata /mnt/SSDpool/iocage/jails/urbackup/root/usr/libdata nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 13 | /mnt/SSDpool/iocage/releases/13.1-RELEASE/root/usr/lib32 /mnt/SSDpool/iocage/jails/urbackup/root/usr/lib32 nullfs ro 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| 14 | /mnt/MediaVolume/urbackupV2 /mnt/SSDpool/iocage/jails/urbackup/root/mnt/urbackupV2 nullfs rw 0 0 |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
root@freenas:~ # ~
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703

inpowers

Dabbler
Joined
Jan 29, 2016
Messages
37
OMG I cant believe it was that simple :eek::eek::eek::eek:
Thank you so much sretalla
I am defiantly writing this one down

Thanks again
inpowers
 
Top