Issues running duplicati on 13.1-RELEASE-p9

LoggSar

Cadet
Joined
Jan 21, 2024
Messages
2
Hi there

I´ve installed successfully the Core-Version 13.0-U6.1

After this I installed syncthing (everything is working) and duplicati.
Trying to open the mangement-interface leads to an error.

So I looked at the jail, and there are some things I dont understand.

First of all - the jail is up and running
iocage list
+-----+--------------+-------+--------------+-------------+
| JID | NAME | STATE | RELEASE | IP4 |
+=====+==============+=======+==============+=============+
| 20 | duplicati | up | 13.1-RELEASE | 172.16.0.10 |
+-----+--------------+-------+--------------+-------------+
| 11 | syncthing | up | 13.2-RELEASE | 172.16.0.2 |
+-----+--------------+-------+--------------+-------------+


So I logged in the cage (iocage console duplicati) and

/usr/local/etc/rc.d/duplicati status
duplicati is not running.

root@duplicati:~ # /usr/local/etc/rc.d/duplicati start
Starting duplicati.

/usr/local/etc/rc.d/duplicati status
duplicati is not running.

So I tried to find out why and went to /var/log

tail mount.today
zfs_raid/iocage/jails/duplicati/root / zfs rw,noatime,nfsv4acls 0 0

This is also the output of the mount-command. However - I also added two more shares via the truenas-interface.
They are in /mnt - but not shown by the mount-command. Is this ok so?

Allmost all other logs only shows logfile first created

So - how to figure out why duplicati isnt starting?
Is there another log-file/directory?

What have I done wrong?

Thanks
LoggSar
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
The Duplicati Plugin is not up to date any more. It comes with an old mono.
I'm trying to set up a new jail with duplicati as shown here:
It's not starting and stopping as it should be and I'm trying to get it running like the plugin used to work.
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
Great, on my TrueNAS I can't get Duplicati to run anymore.
The Service can get started with "service duplicati start"
but I can't open Duplicati on 192.168.xxx.xxx:8200
When I check after that "service duplicati status" it tells me that it's not running.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
So it does not start. Investigate its logfile. Should be somwhere under /var/log.

Also you can try to run sh -x /usr/local/etc/rc.d/duplicati start, examine the last couple of lines of output for how the service is started, then use that command in an isolated fashion to gain more information.
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
No, it starts
Code:
root@Duplicati:/var/log # service duplicati status
duplicati is not running.
root@Duplicati:/var/log # service duplicati start
Starting duplicati.
root@Duplicati:/var/log # service duplicati status
duplicati is running as pid 8393.

Then I enter 192.168.xxx.xxx:8200 in the browser, and the duplicati web interface is not accessible.

After that I check in the Shell of the Jail again and I get this:
Code:
root@Duplicati:/var/log # service duplicati status
duplicati is not running.
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
I usually use sockstat to check if services are running.
With socksat I don't see the PID of duplicati
Somehow duplicati-service get's killed.
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
So it does not start. Investigate its logfile. Should be somwhere under /var/log.

Also you can try to run sh -x /usr/local/etc/rc.d/duplicati start, examine the last couple of lines of output for how the service is started, then use that command in an isolated fashion to gain more information.
The Service is starting (no changes to the .../rc.d/duplicati, still with standard-PW) :
Code:
+ check_startmsgs
+ [ -n '' ]
+ return 0
+ echo 'Starting duplicati.'
Starting duplicati.
+ [ -n '' ]
+ _cd=''
+ _doit='/usr/sbin/daemon  -f -p /config/duplicati.pid /usr/local/bin/mono /usr/local/share/duplicati/Duplicati.Server.exe --webservice-port=8200 --webservice-password=duplicati --webservice-interface=any --server-datafolder=/config'
+ [ -n duplicati ]
+ _doit=$'su -m duplicati -c \'sh -c "/usr/sbin/daemon  -f -p /config/duplicati.pid /usr/local/bin/mono /usr/local/share/duplicati/Duplicati.Server.exe --webservice-port=8200 --webservice-password=duplicati --webservice-interface=any --server-datafolder=/config"\''
+ [ -n '' ]
+ [ -n '' ]
+ _doit=$' limits -C daemon  su -m duplicati -c \'sh -c "/usr/sbin/daemon  -f -p /config/duplicati.pid /usr/local/bin/mono /usr/local/share/duplicati/Duplicati.Server.exe --webservice-port=8200 --webservice-password=duplicati --webservice-interface=any --server-datafolder=/config"\''
+ _run_rc_doit $' limits -C daemon  su -m duplicati -c \'sh -c "/usr/sbin/daemon  -f -p /config/duplicati.pid /usr/local/bin/mono /usr/local/share/duplicati/Duplicati.Server.exe --webservice-port=8200 --webservice-password=duplicati --webservice-interface=any --server-datafolder=/config"\''
+ debug $'run_rc_command: doit:  limits -C daemon  su -m duplicati -c \'sh -c "/usr/sbin/daemon  -f -p /config/duplicati.pid /usr/local/bin/mono /usr/local/share/duplicati/Duplicati.Server.exe --webservice-port=8200 --webservice-password=duplicati --webservice-interface=any --server-datafolder=/config"\''
+ eval $' limits -C daemon  su -m duplicati -c \'sh -c "/usr/sbin/daemon  -f -p/config/duplicati.pid /usr/local/bin/mono /usr/local/share/duplicati/Duplicati.Server.exe --webservice-port=8200 --webservice-password=duplicati --webservice-interface=any --server-datafolder=/config"\''
+ limits -C daemon su -m duplicati -c 'sh -c "/usr/sbin/daemon  -f -p /config/duplicati.pid /usr/local/bin/mono /usr/local/share/duplicati/Duplicati.Server.exe--webservice-port=8200 --webservice-password=duplicati --webservice-interface=any --server-datafolder=/config"'
+ _return=0
+ [ 0 -ne 0 ]
+ return 0
+ _run_rc_postcmd
+ [ -n '' ]
+ return 0
+ [ -n '' ]
+ return 0
 

Nordlicht-13

Explorer
Joined
Apr 2, 2022
Messages
69
Updating the Jail and after that
Code:
pkg install sqlite3 mono6.8-6.8.0.123_2

made it work again.

Guess I have to check out TrueNas Scale in the future.
 
Last edited:
Top