Cannot log in after upgrade

I’ve been running duplicati_2.0.7.1-1_all.deb on a headless system for some time, and never used a password.

I upgraded to duplicati-2.1.0.5_stable_2025-03-04-linux-x64-gui.deb and am now being asked for a password.

I tried the following:

root@nc:~/.config/Duplicati# duplicati --webservice-password=monkey123 --disable-db-encryption
Server has started and is listening on port 8300
Unexpected error: System.Exception: XOpenDisplay failed
   at Avalonia.X11.AvaloniaX11Platform.Initialize(X11PlatformOptions options)
   at Avalonia.AvaloniaX11PlatformExtensions.<>c.<UseX11>b__0_0()
   at Avalonia.AppBuilder.SetupUnsafe()
   at Avalonia.AppBuilder.Setup()
   at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime)
   at Duplicati.GUI.TrayIcon.AvaloniaRunner.Run(String[] args)
   at Duplicati.GUI.TrayIcon.TrayIconBase.Init(String[] args)
   at Duplicati.GUI.TrayIcon.AvaloniaRunner.Init(String[] args)
   at Duplicati.GUI.TrayIcon.Program.StartTray(String[] _args, Dictionary`2 options, HostedInstanceKeeper hosted, String password, String acceptedHostCertificate)

But cannot log in with the chosen password.

Hi @LVLAaron, welcome to the forum.

This looks like the similar Github issue.

Response on Github

If you are running headless, you can use:

duplicati-server --webservice-password=monkey123 --disable-db-encryption

If you are running Duplicati as a daemon/service, you will likely have it running as root, in which case you need the right folder.

There is a bundled tool called duplicati-server-util, that can be used to change the password (use sudo, to get root context):

sudo duplicati-server-util change-password

More options are in the docs:

Unfortunately duplicati-server-util crashes for me:

root@nc:~# sudo duplicati-server-util change-password
Crash!
System.IO.FileNotFoundException: Could not load file or assembly 'System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.

File name: 'System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at Duplicati.CommandLine.ServerUtil.Program.Main(String[] args)
   at Duplicati.CommandLine.ServerUtil.Net8.Program.<>c__DisplayClass0_0.<Main>b__0()
   at Duplicati.Library.Crashlog.CrashlogHelper.WrapWithCrashLog[T](Func`1 method, String logdir, String applicationName)
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.

File name: 'System.CommandLine, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at Duplicati.CommandLine.ServerUtil.Program.Main(String[] args)
   at Duplicati.CommandLine.ServerUtil.Net8.Program.<>c__DisplayClass0_0.<Main>b__0()
   at Duplicati.Library.Crashlog.CrashlogHelper.WrapWithCrashLog[T](Func`1 method, String logdir, String applicationName)
   at Duplicati.CommandLine.ServerUtil.Net8.Program.<Main>(String[] args)
Aborted

Lets continue on Github :slight_smile: