Win7 Tray Icon Crashing

Hi,
I have following issue. Since the last use I am not able to start the tray icon anymore.
The Taskmanger shows 2 processes starting after 3-4 sec. they are gone.
I tried already reinstal serveral versions (2.0.2.19; 2033; 2039 x86 and x64). Clean the appdata folder and reg.

Anyone has an idea. Here is the crashlog:

System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. —> Duplicati.Server.SingleInstance+MultipleInstanceException: Eine andere Instanz läuft und wurde benachrichtigt
bei Duplicati.Server.Program.RealMain(String[] _args)
— Ende der internen Ausnahmestapelüberwachung —
bei System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
bei System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
bei Duplicati.Library.AutoUpdater.UpdaterManager.RunMethod(MethodInfo method, String[] args)

https://forum.duplicati.com/t/upgrading-duplicati/1001

is what Google popped up when I typed in some of what look like the untranslated system messages you got.
Unfortunately, all it is is an example of errors that happen if one doesn’t reboot after update. Does that help?

Thanks for you quick reply!
It tried rebooting already. Even uninstall, clear all appdata, reboot and reinstall. No sucess.

Oh well. I guess it gets harder. I’m not sure how far you want to go, but I’ll suggest some things.
Duplicate upgrade to 2.0.3.3_beta_2018-04-02 fails to start
is a somewhat similar situation that didn’t get solved, so possibly helping you will also help that.

It sounds like you manually start the tray icon. If you installed from .msi, did you tell it to NOT start up?
There are two spots that might cause starts, one on the feature selection, and one on the final screen
https://duplicati.readthedocs.io/en/latest/02-installation/

Are you doing basic things, or more advanced like command line, Windows service, environment, etc?

Actually, it might help to learn more about uses and history. Any known changes since this last worked?

When you watch Task Manager when starting Tray Icon, do you sort by Name? Anything else Duplicati?

What appdata folder are you clearing? I think it will vary. Mine is \Local\Duplicati (not the Roaming one).

In Duplicati appdata (or maybe elsewhere?) should be a control_dir_v2 folder. Does it have a file in it?
My system with Duplicati up has the file lock_v2, and it’s locked. Dragging to an open Notepad told me
“The process cannot access the file because it is being used by another process.”
Closing my Tray Icon made that lock file go away. You can check to see if somehow you got a leftover.
Actually, depending on how quickly File Explorer works, I wonder if you can spot the file briefly appear.

To debug even deeper, you could use Sysinternals Process Monitor with some filters set to limit output.
For example, you could monitor all Duplicati processes, or keep an eye on activity done to file lock_v2.

Unless Duplicati is totally imagining things, there’s something it perceived that is upsetting it. But what?

Good luck with your search.

Hi @reedrocker, welcome to the forum!

There are a few thing that can cause the tray icon to crash on startup - though I don’t recall seeing the a "Ein Aufrufziel hat einen Ausnahmefehler verursacht. —> Duplicati.Server.SingleInstance+MultipleInstanceException: Eine andere Instanz läuft und wurde benachrichtigt" (“A call target caused an exception error. -> Duplicati.Server.SingleInstance + MultipleInstanceException: Another instance is running and has been notified”) error before.

Are you running Duplicati as a service or running it solely as as the tray icon? In other words, even if the tray icon is not running, does going to http://localhost:8200/ show you the Duplicati interface?

@JonMikelV Thanks for your welcoming support.

I am running it as a try icon. Even when i start the service manually http://localhost:8200/ is not working.

@ ts678: I installed it from msi. Did reboot.
I doing just basic thinks. Once a month a manual backup on a specic hard drive. The last time i used it was three weeks ago. I did the update to the latest version but cant recall if it was before or after I used it.
Taskmanager only tray icon shows up twice. nothing else regarding duplicati
I cleared appdata\Local\Duplicati
Anyway thanks!

Thanks for the additional information @reedrocker

I’d still like to hear about control_dir_v2 and what’s going on with the lock_v2 that’s sometimes inside. If you mean you cleared AppData (thus deleting those things) before trying TrayIcon, that could break something.
If you didn’t there should be a control_dir_v2 somewhere, but it might take a little looking to actually find it…

Duplicati file locations may vary either by request or implicitly, so please look in ProgramData\Duplicati too…
On the off chance you manually installed as a server, you could (as Administrator) also look for Duplicati in
C:\Windows\System32\config\systemprofile\AppData

The reason I’m so interested in seeing lock_v2 is because it looks like an issue with it can cause your issue, assuming your crashlog is repeating the originally reported crash. That would be good to check sometimes.

There possibly is some logging that could be turned on, however all I’ve been to get so far is an empty file… Possibly @JonMikelV has some thoughts about how to find out what’s up with a program that ends quickly.
There have been some cases where people have found some clues about program deaths in the event log.

Another thing to try might be a manual startup, e.g. in Program Files\Duplicati 2 run Duplicati.GUI.TrayIcon.
Or while there, see if something else works, e.g. “Duplicati.CommandLine help” should be able to print text.
To see if TrayIcon will start without Server code, “Duplicati.GUI.TrayIcon --no-hosted-server” (so no web UI).

Are you trying to keep a backup configuration? If not, perhaps the goal could be maximum cleanup because simple uninstall from Windows removes some of Duplicati, maybe not all of it, and leaves your configuration.
To do sort of a Duplicati factory reset, also remove Program Files\Duplicati 2 and any other Duplicati folders.
Instead of a delete, perhaps a move or recycle would help us figure out the cause if we ever get to the cure.

There’s obviously something wrong, but I’m running out of ideas on tracking it down. Maybe others can help.

Thanks!

I checked lock_v2 and taskmanger in parallel. As soon as I start the trayIcon manually, two processes of the trayicon appear in the taskmanger and lock_v2 shows up. 3-4 seconds later all are gone.

I did a “factory reset” of duplicati last time (uninstalled and removed all traces i could find). AppData in the user folder is emply except of Duplicati-server.sqlite. ProgramData is empty too, except of update folder. And there is no folder in C:\Windows\System32\config\systemprofile\AppData

Strange thing there is no crashreport created anymore.

In case i start “Duplicati.GUI.TrayIcon --no-hosted-server” process get kicked out and I get a Windows error message: “Duplicati does not working anymore” (or similar).
“Duplicati.CommandLine help” is working. Any ideas how to proceed?
thanks a lot!

It sounds like there may be more than one issue going on.

It sounds like Duplicati WAS working, then stopped working - but you’ve tried re-installing and clearing the AppData folder since it last worked so we probably can’t check anything from when it was working.

You said you are “running it as a tray icon” - I assume this means you are not running the service (if you are, then Duplicati should show up in “Control Panel” -> “Administrative Tools” -> “Services”).

Note that the tray icon --no-hosted-server parameter is supposed to be used along with the service (you’re basically telling the tray icon to use the service server instead of starting it’s own). You might want to try running the tray icon without --no-hosted-server and see what happens.

A few other things to consider…


Even though you’ve re-installed and cleaned up stuff already, if you look in %userprofile%\AppData\Local\Duplicati (likely C:\Users\[your user id]\AppData\Local\Duplicati) do you see any .json or .sqlite files?

Those are where jobs are listed (.json), system & jobs configured (Duplicati-server.sqlite) and jobs logged (xxxxxxxx.sqlite).

It’s possible one of them has gotten corrupted so is causing Duplicati to crash. If you find any of those files, try moving them to another folder (even a subfolder is OK) and see if Duplicati will start.


You might also want to look at the Windows Event Log. On Windows 7 I think it’s in “Control Panel” -> “Administrator Tools” -> “Event Log” or “Event Viewer”. There should be a section in there called “Application” which should be getting an entry if Duplicati is crashing so badly it can’t even make it’s own log.

Note that once you open the Event Viewer it shows you all the events up to the time you opened it. If you open it, then run Duplicati (so it crashes), be sure to use “Action” -> “Refresh” in the Event Viewer to tell it go show events since being opened / refreshed.


As @ts678 suggested, if you try running "C:\Program Files\Duplicati 2\Duplicati.GUI.TrayIcon.exe" --verbose in a command line window do you see any details about what’s happening? If that works OK, try again with the --no-hosted-server parameter.

Thanks to JonMikeVI and ts678 for your generous support!
I was very busy the last couple of weeks so i wasn’t able to look for a solution. Yesterday I finally found the cause of the problem. Seems i changes something in the host file recently. An advice in the forum told to add the localhost 127.0.0.1 in addition to the 0.0.0.0 Restarted and duplicati was finally running again.
Thanks again.