Problems access with Duplicati.GUI.TrayIcon.exe when Duplicati is running as a Service

Hi all,

Today I am updating on my Windows 11 PC my Duplicati 2.1 Version to 2.2.0.1 - 2.2.0.1_stable_2025-11-09 Version.

After the update, I encountered the following problem:

Duplicati is running as a service to access also Files which are in use.

When I start the Tray Icon with: “C:\Program Files\Duplicati 2\Duplicati.GUI.TrayIcon.exe” it will start es new instance which is listening on Port 8300, which is known.

With the Version 2.1 I start the Tray Icon with following parameters:

“C:\Program Files\Duplicati 2\Duplicati.GUI.TrayIcon.exe” --no-hosted-server=true --read-config-from-db --server-datafolder=C:\ProgramData\Duplicati

and everything works fine.

With the Version 2.2.0.1_stable_2025-11-09 Version this doent work anymore I got following error:

C:\Program Files\Duplicati 2>Crash!
System.Exception: Fehler beim Erstellen, Öffnen oder Aktualisieren der Datenbank.
Fehlernachricht: Access to the path ‘C:\ProgramData\Duplicati\Duplicati-server.sqlite’ is denied.

When I am looking to the rights to the Duplicati-server.sqlite File I see that only the System and the Administrators have rights to access this File. After giving my User Change Rights to this File the Tray Icon Starts without any Problems, but after a Service restart my added rights to this File are gone and the Problem occurs again.

At the moment is the only way which working Duplicati when its running as a service with the Duplicati.GUI.TrayIcon.exe startet as a User is follwing parameter:

“C:\Program Files\Duplicati 2\Duplicati.GUI.TrayIcon.exe” --no-hosted-server=true --webservice-password=<2enterhereacleartextPWD:-(>

But entering Passwords in a File which every User can read is a bad way.

Is this a Bug or what I do wrong?

Best Regards

StrawberryBill

Hi @StrawberryBill, welcome to the forum :waving_hand:

That is a lockdown feature intended to secure the database against other users.
You can do the following:

  1. Stop Duplicati
  2. Grant yourself permissions
  3. Create a file named C:\ProgramData\Duplicati\insecure-permissions.txt (it can be empty, contents does not matter)
  4. Start Duplicati

When that file is present, Duplicati will not reset the permissions of the folder and database, and your TrayIcon works as before.

Agree! Besides the solution above, you can also opt to use the Windows Credential Manager to store the password, as described here:

Hi kenkendk,
Thanks for your help, the tipp with the C:\ProgramData\Duplicati\insecure-permissions.txt

Works perfectly for me