I also get this error on another machine when setting up sftp backups (adding the sftp) Failed to connect: Failure
This was never posted, so maybe that was omitted, and systemctl status also chopped off the final error.
That stack trace normally has an error at the top, but systemctl only shows 10 lines, so probably lost that.
Could you please see if the journalctl
line that I gave will let us see some actual history of the service?
In other news, while I was doing Duplicati install and remove, I tested the install after limiting permissions.
Is there any security hardening on this system via chmod
, umask
, or something similarly not-quite-default?
Is Duplicati running as root, as far as you know? If so, its database permissions and size might be helpful.
# ls -l ~root/.config/Duplicati
total 132
drwxr-xr-x 2 root root 4096 May 10 16:46 control_dir_v2
-rw------- 1 root root 126976 May 10 16:47 Duplicati-server.sqlite
This is a long shot if Duplicati is being run as root, as root can usually get to what it wants, yet your partial stack trace looks like the final failure might be some sort of inability to write to the database at code below
You can also use ps -ef
| grep Duplicati to see if anything is running, and as what user. Thereâs a chance that there is a leftover Duplicati interfering. When Duplicati is down, there arenât supposed to be any there.
Itâs sometimes possible for Duplicati to start, fail, and stop repeatedly, and if the undescribed âglitchyâ (can you describe?) behavior was that it was intermittently there, then wasnât, that supports the âbouncingâ idea.
Are all the machines using sftp? If not, what is this using? On the other, is failure like this? If not, describe.
"it asks me to create the folder. I say yes and I always get the error âFailed to connect: missing-folderâ
Iâll do the others now
, Iâm using sftp and when I say yes to create folder it goes to Failed to connect: Failure
Handling of âfiles that are missing from the remote storageâ at end of backup #3149 is the one report I see.
The thought was that Amazon Cloud Drive was slow. What is the SFTP server, and was the folder made?
The error has a unique punctuation and is probably below, having asked to make folder, then not found itâŚ
I run the command and it says its because itâs an attempt to write a read only database
when running that I get 2194635 2193046 0 15:42 pts/1 00:00:00 grep --color=auto Duplicati
when running the command i get ls: cannot access â/root/.config/Duplicatiâ: Permission denied
The Permission denied might be because youâre not root or running under sudo. Please try it that way.
Your SFTP server is also worth checking to see if a permission problem is keeping you from creating.
A third-party SFTP program could be used with the same login as Duplicati. More difficult is to do this:
Duplicati.CommandLine.BackendTester.exe starting with a URL from a system that at least has a GUI.
Export as Command-line, take the URL, modify it to put to a manually created empty folder, let that run.
Duplicati.CommandLine.BackendTool.exe can be used if you want to manually control what gets done.
Is the system that got up far enough to configure running a similar install? You can compare.
There should be a file in Duplicati userâs ~/.config/Duplicati even before you configure a job.
And since that one has Duplicati running, you should be able to see it with the ps
command.
Iâm still looking for journalctl
output from the system so I may see what the error log says.
It is hugely difficult and time-consuming to figure out whatâs going on without any information.
Alternatively you can try something like sudo --login bash
to get root then run duplicati
.
That should attempt to access rootâs directory, and it might also give you an error message.
To exit, go to the Duplicati tray icon, right click, and Quit
. The manual describes the method:
Thank you for the rest of the stack. As expected, itâs a permission problem. Question is â where?
How are the folder permissions getting tight? The download folder seemed to have been secured.
What are the permissions of Duplicati config folder? Is the security default or something custom?
Can you manually make a file there? I donât know why Duplicati canât, but it appears that it cannot.
Itâs possible to set settings to move the Duplicati home directory, but I donât know if youâve done it.
I canât create a problem with Duplicati as root (the default for Duplicatiâs package, but not all distrosâ).
chmod 0 and root got in (as expected). If you added other enhanced security (SELinux?) I donât know.
Command-line launch from root shell also works fine. systemctl status duplicati.service
has
Loaded: loaded (/lib/systemd/system/duplicati.service; disabled; vendor preset: enabled)
and the path there is the Duplicati unit file, which on some distros has Duplicati run as a special user.
cat /lib/systemd/system/duplicati.service
[Unit]
Description=Duplicati web-server
After=network.target
[Service]
Nice=19
IOSchedulingClass=idle
EnvironmentFile=-/etc/default/duplicati
ExecStart=/usr/bin/duplicati-server $DAEMON_OPTS
Restart=always
[Install]
WantedBy=multi-user.target
is probably what you should have. This file is not used at all if you start by hand, e.g. with duplicati
.
If you somehow have made non-local home directories (e.g. NFS), then root access may be affected.
cat /etc/default/duplicati
# Defaults for duplicati initscript
# sourced by /etc/init.d/duplicati
# installed at /etc/default/duplicati by the maintainer scripts
#
# This is a POSIX shell fragment
#
# Additional options that are passed to the Daemon.
DAEMON_OPTS=""
looking like above is also a sign of a default install. Anything else there should be examined for issues.
Duplicati.Server.exe shows some server options. One that is able to relocate the database elsewhere:
--server-datafolder
Duplicati needs to store a small database with all settings. Use this option to choose where the settings are stored. This option can also be set with the environment variableDUPLICATI_HOME
.
I managed to fix it, quick question though. How do I change the duplicati pass via SSH?
Good to hear. Can you reveal what it was, in case it helps in the future?
Which password? If you use GUI login password, how does SSH fit in?
âwebservice-password is one way to change it at start, then itâs stored.
You could probably put that in /etc/default/duplicati if thatâs safe enough.
Settings is the more usual way for a GUI user to change the password.
I just installed from another version and the other issue with connection, I reset the backup vps so I feel like something wasnât configured correctly.
Original install was said to be 2.0.5.1, and should have wanted to autoupdate to 2.0.6.1.
If you installed 2.0.6.1 directly, great â thatâs the future, however 2.0.5.1 âshouldâ be OK.
The second mystery⌠Well, Iâm glad that things are OK now, however they got that way.
Only issue is this The database was attempted repaired, but the repair did not complete. This database may be incomplete and the backup process cannot continue. You may delete the local database and attempt to repair it again.
^when I try to take a backup
Can be done at Database management page if you want to try to Recreate DB from backup.
If you prefer to look for a better message, About â Show log â Live at Repair might get one.
Sometimes messages also are in the jobâs Show log or server About â Show log â Stored
Iâm getting the error something to do with filelist
When you do what?
Vague. Got full text?