Linux duplicati Does not start: Unhandled Exception; 2.0.9.107_canary_2024-09-11

Hi all,

I have been using Duplicati for several years now on Linux and it works very well!
I recently updated to 2.0.9.107_canary_2024-09-11 and was able to set the SETTINGS_ENCRYPTION_KEY to get this new version running.

The application does not complain about it anymore, but whatever I now try to run Duplicati I always get:

Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at Duplicati.GUI.TrayIcon.HostedInstanceKeeper.<>c__DisplayClass5_0.<.ctor>b__0(Object dummy_arg)
Unhandled exception. Aborted (core dumped)

I normally run Duplicati with:
/opt/duplicati/duplicati --verbose --webservice-port=8200 --auto-update=false

But now I even get the error when I run it with: /opt/duplicati/duplicati. I checked the AUR channel where I install/maintain it from: https://aur.archlinux.org/packages/duplicati-canary-bin
But they adviced to check it here as they do not seem to have the same issues.

When I run it with:
/opt/duplicati/duplicati --log-file=/tmp/duplicati.log --log-file-log-level=verbose
It does not help either, and it does create an empty logfile.

Any help on how to debug this further? Or advice if I should create a ticket on Github?

Thanks for the response already!

Could you do an extensive search for a Duplicati-crashlog.txt file?
They used to be near the updates folder, but that’s likely removed.

This and how to present Canary issues could use developer input.

EDIT:

I’m not finding crashlog in current source. Did anything replace it?

Thanks @ts678 .
I found such logfile, but it is from 2022, so that is not it (anymore).

EDIT:
locate -i duplicati | grep -i crash and locate -i duplicati | grep -i log did not return anything else that stands out as well.

Hi @groentebroer I have debugged a bit on this, and I can replicate it if there is another instance of Duplicati running.

in this case it is supposed to write to the console something like “Another instance is running” but due to the crash, this message does not appear.

Specifically, the file in ~/.config/Duplicati/control_dir_v2/lock_v2 would have an FLOCK attribute, which is how Duplicati signals that it is running/

Does this explain your issue?