Duplicati.GUI.TrayIcon CPU% constantly high

Hey,

Running Duplicati on Windows 8.1 pro
Just updated to vesion 2.1.0.2_beta_2024-11-29, because I got the red notification popup for update and it looked like it was important. Previous version was 2.0.8.1_beta (has been running great).

After the update, the process called Duplicati.GUI.TrayIcon is constantly using around 18% CPU (+/- few %). No disk usage, no network usage, memory usage normal. No backups are currently in progress, everything should be idle. No errors in the log. I can write more details from “System Info” if necessary.

I have restarted the computer several times. I have killed the process and restarted Duplicati several times. I have done repair install from the installation file. No help from any of these

What could be the issue ? Also is it possible to roll back to an earlier version, if this is a problem with the latest release ?

Edit: found the installer for the previous version that I was using (2.0.8.1_beta), tried to downgrade to that by running the installer again but getting the error “Duplicati has stopped working”. Ran tha installer for the latest version (2.1.0.2_beta) again and it works again, but still the high CPU % problem. Is there a way to downgrade to an earlier version so that it actually starts up ?

The only 3 lines in the Live log are these, but I think unrelated to the problem?

  • Dec 14, 2024 6:11 PM: 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
  • Dec 14, 2024 6:11 PM: Database decrypted successfully.
  • Dec 14, 2024 6:11 PM: Database is encrypted, attempting to decrypt…

Welcome to the forum @masquarat

Downgrade from 2.1.0.2 to 2.0.8.1 might help out.

Microsoft announcements might explain some of the problem:

Windows 8.1 support ended on January 10, 2023

.NET support for Windows 7 and 8.1 will end in January 2023

This Duplicati uses .NET 8. It’s possible that you’ll need to stay on .NET Framework on 2.0.8.1.

That seems to have worked, thanks!
4 out of my 6 local databases didn’t seem to have “UniqueBlockVolumeDuplicateBlock” and SQLite gave error:

Execution finished with errors.
Result: no such index: UniqueBlockVolumeDuplicateBlock
At line 1:
DROP INDEX “UniqueBlockVolumeDuplicateBlock”;

Then I just ran the version update line alone.

Now no more CPU hog, even when Duplicati is running a backup, it’s taking just 2-3% of CPU.

Got one error message in the Live log, not sure if it was there before as well (before I upgraded + downgraded):

Dec 14, 2024 10:20 PM: Failed to load assembly C:\Program Files\Duplicati 2\Xamarin.Mac.dll, error message: Non-abstract, non-.cctor method in an interface.

Is this anything to worry about ? All databases seem okay, verified everything.
Maybe should have a warning for people with old OS versions next to the “UPDATE NOW!” sign, that the new version may not work with your os :stuck_out_tongue:

Possibly they were never upgraded. Did you also not have to set Version back to 12?
If so, directions should probably not call for the DROP INDEX unless version needs it.

Code looks that index came in on Version 13. I think job databases upgrade upon use.
Possibly you only ran 2, so only upgraded 2, so the other 4 were left fine as they were.

At what level? The following history makes me think you picked an unusually high level:

The “version back to 12” query ran successfully on all 6 of my databases, but I didn’t actually check what the version was before. I ran both of the recommended query lines on all databases, if I got the error then deleted first line, ran it again with only the version line, saved the file, repeated on next database/file.

Level “ExplicityOnly”. Honestly I don’t really understand what the log levels mean. Since it’s the first in the list, I guess it’s the highest. This error line always appears there 4 times in a row every time when I open the web interface. But everything seems to be working and the web interface doesn’t show any errors on the front page so I guess no need to worry about that :slight_smile:

Reasonable, as doesn’t ask that. I’m thinking a better way to write this might have been

DROP INDEX IF EXISTS "UniqueBlockVolumeDuplicateBlock";

SQLite syntax page.

They’re described in the last link I posted above, if you’re curious enough.
Level categorization is somewhat subjective. Messages sometimes move.

I wouldn’t worry about the message.

No. It is because Duplicati 2.0.8.1 is cross-platform, so it includes some MacOS components that are not used. Unfortunately, one of them are defective, and gives errors when loaded.

I ma not fully convinced that the high CPU usage is related to Windows 8.1.
There are a lot of performance updates in the new Beta build.

If you want to give it another go, I would recommend trying:

  • Make sure Duplicati is stopped
  • Uninstall previous version
  • Install new version

If the high CPU usage persists, then perhaps try:

  • Exit Duplicati
  • Try running from a commandline:
    • Duplicati.Server.exe

With this you do not get the little trayicon, but we can at least isolate the CPU issue to either being related to the TrayIcon or the Server.