Just started using this. Looks great but I can’t get it to run. We are running on Ubuntu with command line access only. Installed first time but complained about dependencies. I fixed that and re-ran installer (seemed to go through) but now when trying to run I get:
Crash!
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: A serious error occurred in Duplicati: System.Exception: Failed to create, open or upgrade the database.
Error message: Access to the path "/home/ieadmin/.config/Duplicati" is denied.
Followed by a lot more output which I could post but I suspect the key to the problem is here. Is it permissions?
Sorry a bit lost as I’m new to this product and only work with Ubuntu occasionally.
For security Duplicati only listens on requests from localhost by default. You need to allow requests from other sources.
There’s two ways to do it:
From the web API (you can’t unless you do ssh port forwarding or have a gui on the server)
Update the systemd file to include the launch parameter --webservice-interface=any
#2 is the easiest if you’ve already got the CLI open
First figure out where the Duplicati systemd service file is:
# systemctl status duplicati
● duplicati.service - Duplicati web-server
Loaded: loaded (/lib/systemd/system/duplicati.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2018-04-08 15:14:20 CEST; 2 days ago
The Loaded: loaded line tells you the file location
Edit the file (vim, nano, etc)
# nano /lib/systemd/system/duplicati.service
In the file update the ExecStart line to include --webservice-interface=any
The line will look like this:
Thank you so much again for the help. I had another problem - the duplicati.service file was missing. I managed to install that manually and I think the service is now running however I still can’t access via browser from another computer.
Service is running:
duplicati.service - Duplicati web-server
Loaded: loaded (/etc/systemd/system/duplicati.service; enabled)
Active: active (running) since Wed 2018-04-11 12:30:47 BST; 2min 33s ago
Main PID: 864 (mono)
CGroup: name=dsystemd:/system/duplicati.service
├─ 864 DuplicatiServer /usr/lib/duplicati/Duplicati.Server.exe --w...
└─1314 /usr/bin/mono /usr/lib/duplicati/Duplicati.Server.exe --web...
Apr 11 12:30:53 myserver.co.uk duplicati-server[864]: Server has started a...
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
With UFW turned off it would have to be something else. Maybe iptables? But yes, in that case it may be best to verify with the person who configured it.
I’m glad I could help this far, hope you get the rest figured out