Tray icon won't launch after update

Hello.
Im using Duplicati for a while now, mainly as a Docker Container but also tried it on a few machines as a Windows or Linux Service.

I was searching for the same solution an the OP and the closest one was this thread.

After long searching, trying and configuring, i reinstalled my Mint VM bc i thought it could be a Cinnamon thing and tried the 2.1.0.110 Canary of Duplicati.
And: the tray icon shoes up with the startup parameters “–no-hosted-server --webservice-password=XXX” and it also opens the webui!
Only thing is that it always resets the webui color to light mode, but somehow this was my solution.
Probably this will be the fix in future stable release, but i wanted to take some words on that after i was frustrated months long.

Actually that make sense due to these fixes

v2.1.0.109_canary_2025-02-11

Fixed multiple issues with TrayIcon state

and one of those was the --no-hosted-server case that’s being discussed.

v2.1.0.5_stable_2025-03-04

This is an update release to 2.1.0.4, fixing critical issues.

and maybe this issue wasn’t critical enough. In any case, it’s not in release note.

“Duplicati.GUI.TrayIcon.exe –no-hosted-server” not working

has a workaround for the --no-hosted-server setup that runs a Canary (so less trusted, but good enough for status and control) TrayIcon and the 2.1.0.5 service.

I was looking at the screenshots again, and somehow I was thinking this was related to IPv6 support. Could it be that localhost makes it point to the wrong thing?

Could you try --hosturl=http://127.0.0.1:8200 ?
(Also, note that the option is called --hosturl, not --serverurl here)

Is this caused by the update of Duplicati or the re-install of Mint? I can try different flavors of Mint if that makes the difference.

Cant tell, bc i only tried it after the reinstall. Tried in the “old” and in the new version with 22.1, Duplicati was 2.1.0.5 on the old OS

I tried it now with a fresh Mint 22.1 - Cinnamon, and I can confirm the problem.
The “Open” command does not work and makes the TrayIcon lock up.
If you have not used the “Open” command, the pause/resume command works.

I also tried this with the latest canary (2.1.0.111) and here it works as expected, so the stable release appears to be missing one of the fixes.

As @ts678 noted, you can use the TrayIcon from the 2.1.0.111 zip package if you prefer to run the stable server.

Is this a reference to the Duplicati console? If so, you need to configure the machine to send in backup reports before it shows up on the console “Machines” page. We are currently working on fixing this logic so it also shows up if you just register it, and have a one-click option to enable logging.

To configure the client for logging, follow these steps:
https://app.duplicati.com/app/getting-started/connection-key

Pretty sure it was the upgrade to Duplicati that did the trick.

I have the same problem, I installed Duplicati - 2.1.0.5_stable_2025-03-04, with --no-hosted-server and --webservice-password=mypass and the trayicon does not open the interface.
I replaced Duplicati.GUI.TrayIcon.exe with version 2.1.0.101_canary_2024-12-06 but I was unsuccessful, it still does not work.

What did you do with the password to let the server know what it should accept?
Method varies depending on OS. Docker is different too. Can you do URL login?

Duplicati Access Password
Managing secrets in Docker

Hello! Yes, I can access http://localhost:8200 normally. The trayicon opens, pause and quit work, but opening duplicate.gui.trayicon.exe crashes.

Before, I removed Duplicati, reinstalled the current version of Duplicati - 2.1.0.5_stable_2025-03-04 , restored a backup, recreated the database, and used a command to change the password:
Duplicati.CommandLine.ServerUtil change-password , and if I’m not mistaken, I don’t remember exactly but I think I indicated the location of the database folder in the command with --server-datafolder “C:\Program Files\Duplicati 2\data” , and then registered the new password.

And I use Windows 10.

Is there still no solution for the trayicon when installed as a service?

That’s a bug that’s fixed in testing releases that came out after 2.1.0.5. You can try:

There’s a solution (Canary test release), and messy workaround. No new Stable. Unlike 2.1.0.5 which solved severe issues in 2.1.0.4, this issue seems “less” hot, because it can be worked around. Maybe the dev will forecast next release plan?

Previous one looked like a hotfix release. I hope next one has longer testing time, although admittedly that testing gets in the way of getting it released more quickly.

Same problem here. Started getting a pop asking to update manually. Went to v2.1.0.5_stable and tray icon disappeared. Finally tried v2.1.0.111_canary, but still no tray icon (just a new pop-up saying: “The database is not encrypted. This is a security risk and should be fixed as soon as possible”).

Welcome to the forum @Hopatod

When? If you mean Open didn’t, then see just above. If something else, clarify.

Sorry for being unclear, my English is not very good. I mean that duplicati just works as it should when I go to http://localhost:8200, but there is no longer an icon in my status bar that turns green when duplicati is busy (or red in case of errors).

(using linux btw)

● duplicati.service - Duplicati backup service
     Loaded: loaded (/etc/systemd/system/duplicati.service; enabled; preset: enabled)
     Active: active (running) since Sat 2025-03-22 02:57:31 CET; 15h ago
   Main PID: 1322 (duplicati-serve)
      Tasks: 19 (limit: 18729)
     Memory: 188.0M
        CPU: 8.022s
     CGroup: /system.slice/duplicati.service
             └─1322 /usr/bin/duplicati-server --webservice-port=8200 --webservice-interface=any

mrt 22 02:57:31 debian systemd[1]: Started duplicati.service - Duplicati backup service.
mrt 22 02:57:32 debian duplicati-server[1322]: No database encryption key was found. The database will be stored unencr>
mrt 22 02:57:33 debian duplicati-server[1322]: Server has started and is listening on *, port 8200

I don’t think this was ever an automatic thing when you’re running the systemd service (possibly as root, which has its benefits). How did you start Duplicati?

Choosing Duplicati Type has some general information on what I’m speaking of.

Mixing types is possible, but there’s at least one bug with --no-hosted-server operation. Which Duplicati configuration are you trying to use (or using before)?

No idea honestly. I just had duplicati selected under the ‘Startup Applications’ tab in gnome tweaks. This caused duplicati to automatically start as root at startup with a tray icon. However, I tried all the commands listed above, these always resulted in a working duplicati instance with no tray icon.

Have applications start automatically on log in sounds like it’d need a root login.
Until then, there would be no scheduled backups. Is that the way you like to go?

I don’t see a list. I see output that might be from systemctl status duplicati.

The duplicati systemd service is (probably like most) for background services.
I’m not sure that such services can interact with the user. They can’t on Windows.
The solution to this is to start TrayIcon (a.k.a. duplicati on Linux) with an option telling it to not set up its own Duplicati server, but to go to the systemd root server.

But you have to ask, and as mentioned in the “Mixing types” link (did you read it?), there’s an issue in 2.1.0.5. Regardless, I don’t know what the previous usage was.

Do you at least know if it ran as root always? Is that how you normally use Linux? Typically someone would run as their personal user to do a --no-hosted-server, connected by HTTP to a systemd server running as root (which has more access ability if one wants to read or write files). If you don’t need root, then run as you.

You can look around for config files, e.g. in ~root/.config/Duplicati and also for you.

What Linux is this? I think someone might have reported a tray icon visibility issue.

By ‘the commands listed above’ I meant the commands recommended by other users (such as duplicati --no-hosted-server --serverurl=http://localhost:8200 --webservice-password=` from @kenkendk ).

I assumed that duplicati runs completely as root since I can also back up /root, but after hearing you I am starting to doubt this.

I am using debian gnome with the ‘tray-icons: reloaded’ extension.

Thank you very much for your help! It is more complicated than I thought. I think I’m just going to wait for an update that might bring back my tray icon.

Thanks, so more reading for me to do to understand the extent of what’s been tried.
The one you quoted is how to do it (ignoring Open bug in 2.1.0.5) as per the “Mixing types” link where actual backup would be by root systemd service, however display of TrayIcon would just be a bit of GUI available to any user who has the password.

You could also run pure root by doing root login and running duplicati, but then you’d have to do a root login, and not have any backups unless you had done one.

I’m not hearing what you had or want, beyond that you could back up /root, so you might have opted for the start-at-login option. You can also try that manually, even from a terminal, but do systemctl stop duplicati first or it will find that root has already started a Duplicati, and it won’t start. Maybe that’s your problem currently?

Running from a terminal is also more able to show you errors if something’s wrong.

I don’t even have a Linux root login (as it’s a bad idea to run as root if not required).

I did some tests under different sudo usages, and can get a problem that possibly you’re seeing. I got a lot of X windows problems – another reason root is difficult…

This is a weird install, but I installed 2.0.8.1 from .deb, and put 2.1.0.5 into a folder from a .zip install. This plan had 2.0.8.1 pull in the dependencies it needs. 2.1.0.5 dependencies are few. Because my my usual sudo su - breaks in X setup, I use sudo su instead, export PS1='# ', and export BROWSER=/usr/bin/firefox.

To demo two-root-Duplicati, systemctl start duplicati then try 2.0.8.1 conflict:

# /usr/bin/duplicati
Crash! 
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Duplicati.Server.SingleInstance+MultipleInstanceException: Another instance is running, and was notified
  at Duplicati.Server.Program.CreateApplicationInstance (System.Boolean writeConsole) [0x00063] in <17916a3bd21d425da6aeece2c5428e16>:0 
  at Duplicati.Server.Program.RealMain (System.String[] _args) [0x00277] in <17916a3bd21d425da6aeece2c5428e16>:0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007c] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0009a] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at Duplicati.Library.AutoUpdater.UpdaterManager.RunMethod (System.Reflection.MethodInfo method, System.String[] args) [0x00000] in <a701dea807af493c8cb16ad2fe09f97c>:0 
# 

then try 2.1.0.5 conflict, which is a little prettier, but refuses to come up just as well:

# ./duplicati
No database encryption key was found. The database will be stored unencrypted. Supply an encryption key via the environment variable SETTINGS_ENCRYPTION_KEY or disable database encryption with the option --disable-db-encryption
Another instance is running, and was notified
# 

This BROWSER variable is causing trouble, as is the su. OK, remove BROWSER for 2.0.8.1.
I also remove ~root/.config/Duplicati, but don’t for yours unless it’s a test DB.

# /usr/bin/duplicati

and nothing more to say, and I have a TrayIcon, so good for 2.0.8.1 in this situation.

# export BROWSER=/usr/bin/firefox
# ./duplicati
No database encryption key was found. The database will be stored unencrypted. Supply an encryption key via the environment variable SETTINGS_ENCRYPTION_KEY or disable database encryption with the option --disable-db-encryption
Server has started and is listening on port 8200

but there’s no TrayIcon. So there are three ways for it to fail. It might conflict with service if service is up, it seems to need BROWSER variable set, and if that’s OK, then it might just come up on port 8200 but not show a tray icon. Note I’m still not sure that I have all the X config set up right, and my usage in a non-root login with non-root Firefox is causing some messages, so maybe TrayIcon draw is silent fail.

EDIT 1:

TL;DR try to set up a CLI start like you think your automatic startup might be doing.
If you can get that working, then see if you can port the result back to desired start.

EDIT 2:

TrayIcon comes up fine in a normal environment as a non-root user. Not even any complaint about needing BROWSER (which got other complaints, as Firefox now runs as me, and I’m trying to mix in a root duplicati – or some complaint like that).

I put the file Duplicati.GUI.Trayicon.exe of version v2.1.0.111_canary_2025-03-15 , it didn’t work, I had the same behavior. What else would I need to do?

Don’t run TrayIcon as root. I get a visible icon if I do this as non-root:

$ ./duplicati --no-hosted-server --webservice-password=password

(yours would omit my ./ in front, and simply run the /usr/bin/duplicati)

Connect that to a systemd Duplicati if you actually need it to be root.
This will also let you schedule backups even when you’re logged out.

My 2.1.0.5 is not just visible, but responsive to using right-click Pause.
As unfortunately expected, right-click Open crashes, so use a Canary,
but not as root, and when I web search root login, answer says “don’t”
because of security concerns and a greater chance of operator errors.

Eu estou em Ambiente Windows 10…, agradeço.