Hello, when first installing the Duplicati container with the docker compose below, I have this error loop.
I put the root user to try to fix the problem and make sure that root has full access to the backup, source, config folder. Root is in the docker group and root has full control over the folders and is the owner.
I tried to recreate the container several times and I also deleted the .sqlite but it didnβt change anything. Web access doesnβt have time to start.
The encryption key and folder locations are just for testing.
Iβm on truenas scale, and I use dockge to manage all containers.
Thanks for your help
The docker compose :
services:
duplicati:
image: lscr.io/linuxserver/duplicati:latest
container_name: duplicati
environment:
- PUID=0
- PGID=0
- TZ=Europe/Paris
- SETTINGS_ENCRYPTION_KEY=abcde123456
volumes:
- /mnt/Jupiter/Duplicati/config:/config
- /mnt/Jupiter/Duplicati/backups:/backups
- /mnt/Jupiter/Duplicati/source:/source
ports:
- 8200:8200
restart: unless-stopped
networks: {}
And the beginning of the logs :
[migrations] started
[migrations] no migrations found
βββββββββββββββββββββββββββββββββββββββ
βββ βββββββββββ βββββββ
βββ ββββββββββββββββββββ
βββ ββββββββββββββ βββ
βββ ββββββββββββββ βββ
ββββββββββββββββββββββββββββ
βββββββββββββββββββ βββββββ
Brought to you by linuxserver.io
βββββββββββββββββββββββββββββββββββββββ
To support LSIO projects visit:
https://www.linuxserver.io/donate/
βββββββββββββββββββββββββββββββββββββββ
GID/UID
βββββββββββββββββββββββββββββββββββββββ
User UID: 0
User GID: 0
βββββββββββββββββββββββββββββββββββββββ
Linuxserver.io version: v2.1.0.2_beta_2024-11-29-ls229
Build-date: 2024-12-21T03:56:47+00:00
βββββββββββββββββββββββββββββββββββββββ
[custom-init] No custom files found, skipping...
A serious error occurred in Duplicati: System.Exception: Failed to create, open or upgrade the database.
Error message: Operation not permitted
---> System.InvalidOperationException: Operation not permitted
---> Mono.Unix.UnixIOException: Operation not permitted [EPERM].
--- End of inner exception stack trace ---
at Mono.Unix.UnixMarshal.ThrowExceptionForLastError()
at Mono.Unix.UnixMarshal.ThrowExceptionForLastErrorIf(Int32 retval)
at Mono.Unix.UnixFileSystemInfo.set_Protection(FilePermissions value)
at Mono.Unix.UnixFileSystemInfo.set_FileAccessPermissions(FileAccessPermissions value)
at Duplicati.Library.Common.IO.PosixFile.SetUserGroupAndPermissions(String path, Int64 uid, Int64 gid, Int64 permissions)
at Duplicati.Library.SQLiteHelper.SQLiteLoader.SetUnixPermissionUserRWOnly(String path)
at Duplicati.Library.SQLiteHelper.SQLiteLoader.OpenSQLiteFile(IDbConnection con, String path)
at Duplicati.Library.SQLiteHelper.SQLiteLoader.OpenDatabase(IDbConnection con, String databasePath, String decryptionPassword)
at Duplicati.Server.Program.GetDatabaseConnection(Dictionary`2 commandlineOptions, Boolean silentConsole)
--- End of inner exception stack trace ---
at Duplicati.Server.Program.GetDatabaseConnection(Dictionary`2 commandlineOptions, Boolean silentConsole)
at Duplicati.Server.Program.Main(String[] _args)
A serious error occurred in Duplicati: System.Exception: Failed to create, open or upgrade the database.
Error message: The database appears to be encrypted, but the decrypting failed. Please check the password. Error message: Unable to read beyond the end of the stream.
---> Duplicati.Library.Interface.UserInformationException: The database appears to be encrypted, but the decrypting failed. Please check the password. Error message: Unable to read beyond the end of the stream.
---> System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
at System.IO.Stream.ReadAtLeastCore(Span`1 buffer, Int32 minimumBytes, Boolean throwOnEndOfStream)
at System.IO.Stream.ReadExactly(Byte[] buffer, Int32 offset, Int32 count)
at Duplicati.Library.SQLiteHelper.SQLiteRC4Decrypter.DecryptSQLiteFile(String databasePath, String password)
at Duplicati.Library.SQLiteHelper.SQLiteLoader.OpenDatabase(IDbConnection con, String databasePath, String decryptionPassword)
--- End of inner exception stack trace ---
at Duplicati.Library.SQLiteHelper.SQLiteLoader.OpenDatabase(IDbConnection con, String databasePath, String decryptionPassword)
at Duplicati.Server.Program.GetDatabaseConnection(Dictionary`2 commandlineOptions, Boolean silentConsole)
--- End of inner exception stack trace ---
at Duplicati.Server.Program.GetDatabaseConnection(Dictionary`2 commandlineOptions, Boolean silentConsole)
at Duplicati.Server.Program.Main(String[] _args)