Backup Errors, Internal Server Error, Database is Locked

I have three instances of Duplcati on three servers, one of them gives the error Internal server error when I try to restore. The other says The database file is locked database is locked. Then the third says Failed to connect: The database file is locked database is locked. How do I fix these?

Hello and welcome!

Not sure about the first issue at this point, but the database locked message usually means that backup set has an operation currently in progress. For instance if a backup is running, you cannot start a restore job. You need to wait till Duplicati is idle.

Failed to fetch path information: Gateway Time-out is the new error

What exactly are you trying to do? When did that error appear?

I’m trying to backup my gameservers, I haven’t ever tried to restore but I found this issue yesterday.

The more detail you can provide, the better.

Gateway timeout sounds like it may be having trouble accessing your destination. What type of destination are you using? Does “test connection” work on the destination configuration page?

I’ll check now. On one of my servers I get the error The database file is locked database is locked as for why it’s not backing up, how do I fix that?

I’m using a storage slab (All three servers are backing up to the same one) Testing connection works, when I come to restore one it says Internal server error and the other says Failed to fetch path information: Gateway Time-out and the other says the database is locked so isn’t taking backups.

See my earlier reply…

What “Storage Type” according to the destination page?

Duplcati is idle, it won’t backup due to a database error. SFTP is the type

If Duplicati really is idle, then maybe the database is not writable.

Ok, any idea about the rest.

Please post full log lines from About → Show log → Live → Warning

Duplicati.Library.Interface.UserInformationException: 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.
at Duplicati.Library.Main.Operation.BackupHandler+d__20.MoveNext () [0x00122] in <8f1de655bd1240739a78684d845cecc8>:0
— End of stack trace from previous location where exception was thrown —
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0
at CoCoL.ChannelExtensions.WaitForTaskOrThrow (System.Threading.Tasks.Task task) [0x00050] in <9a758ff4db6c48d6b3d4d0e5c2adf6d1>:0
at Duplicati.Library.Main.Operation.BackupHandler.Run (System.String sources, Duplicati.Library.Utility.IFilter filter, System.Threading.CancellationToken token) [0x00009] in <8f1de655bd1240739a78684d845cecc8>:0
at Duplicati.Library.Main.Controller+<>c__DisplayClass14_0.b__0 (Duplicati.Library.Main.BackupResults result) [0x0004b] in <8f1de655bd1240739a78684d845cecc8>:0
at Duplicati.Library.Main.Controller.RunAction[T] (T result, System.String& paths, Duplicati.Library.Utility.IFilter& filter, System.Action`1[T] method) [0x0011c] in <8f1de655bd1240739a78684d845cecc8>:0

the other gives nothing, it says says internal server error when I try to restore

Are you trying to do a repair operation?

Do you mean the Live log? It should show things for sure. Set it to warning, open a new tab, and attempt your operation again. Go back to the Live log tab and watch for events.

No, I’m not. Yeah, just says internal server error.

I’m having trouble following you…maybe it’s because you are troubleshooting three different systems at the same time. Let’s focus on one system at a time.

The one that gives you the internal error - at what point do you see that message? What version of Duplicati is it? What OS?

It’s ubuntu 20.04, I installed it a few weeks ago so it should be newest. It’s when I try to restore
It’s Duplicati - 2.0.5.1_beta_2020-01-18

Was it installed directly on the host, or are you using docker? If not docker, please confirm mono version:

$ mono --version