# Linux duplicati Does not start: Unhandled Exception; 2.0.9.107\_canary\_2024-09-11

**URL:** <https://forum.duplicati.com/t/linux-duplicati-does-not-start-unhandled-exception-2-0-9-107-canary-2024-09-11/19054>\
**Category:** Support\
**Created:** [September 30, 2024, 11:26am UTC](https://forum.duplicati.com/t/linux-duplicati-does-not-start-unhandled-exception-2-0-9-107-canary-2024-09-11/19054 "2024-09-30T11:26:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![groentebroer](https://forum.duplicati.com/user_avatar/forum.duplicati.com/groentebroer/32/9895_2.png) [@groentebroer](https://forum.duplicati.com/u/groentebroer)\
**Post date:** [September 30, 2024, 11:26am UTC](https://forum.duplicati.com/t/linux-duplicati-does-not-start-unhandled-exception-2-0-9-107-canary-2024-09-11/19054/1 "2024-09-30T11:26:06Z")

</div>

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:

```plaintext
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](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!

---

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [September 30, 2024, 12:01pm UTC](https://forum.duplicati.com/t/linux-duplicati-does-not-start-unhandled-exception-2-0-9-107-canary-2024-09-11/19054/2 "2024-09-30T12:01:04Z")

</div>

> [@groentebroer](#):
>
> Any help on how to debug this further?

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?

---

<div class="post-metadata">

**Author:** ![groentebroer](https://forum.duplicati.com/user_avatar/forum.duplicati.com/groentebroer/32/9895_2.png) [@groentebroer](https://forum.duplicati.com/u/groentebroer)\
**Post date:** [September 30, 2024, 12:07pm UTC](https://forum.duplicati.com/t/linux-duplicati-does-not-start-unhandled-exception-2-0-9-107-canary-2024-09-11/19054/3 "2024-09-30T12:07:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kenkendk](https://forum.duplicati.com/user_avatar/forum.duplicati.com/kenkendk/32/5305_2.png) [@kenkendk](https://forum.duplicati.com/u/kenkendk)\
**Post date:** [October 3, 2024, 8:03am UTC](https://forum.duplicati.com/t/linux-duplicati-does-not-start-unhandled-exception-2-0-9-107-canary-2024-09-11/19054/4 "2024-10-03T08:03:43Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![groentebroer](https://forum.duplicati.com/user_avatar/forum.duplicati.com/groentebroer/32/9895_2.png) [@groentebroer](https://forum.duplicati.com/u/groentebroer)\
**Post date:** [October 21, 2024, 1:45pm UTC](https://forum.duplicati.com/t/linux-duplicati-does-not-start-unhandled-exception-2-0-9-107-canary-2024-09-11/19054/5 "2024-10-21T13:45:50Z")

</div>

Thanks for your reply and sorry for my absence.

I finally ended up starting fresh with a new configuration (v2.0.9.108) etc. which worked out of the box.  
It could be that duplicati was running as a service (but failing) while manually restarting. But that would not be during all tests I did.  
For now resolved by resetting my configuration (v2.0.9.108) (I had not that many backups and have them through other means as well.)
