borgbase / vorta

Desktop Backup Client for Borg Backup
https://vorta.borgbase.com
GNU General Public License v3.0
2k stars 133 forks source link

Desktop notifications do not work at all on KDE Plasma #1756

Open sten0 opened 1 year ago

sten0 commented 1 year ago

Description

Continuing from #609, and it looks like #1522 may preemptively solve this bug.

Sorry I somehow missed this in the months leading up to Debian 12 (bookworm)'s release!

  1. Install Debian 12 (bookworm), KDE Plasma Desktop.

  2. Install Vorta (apt install vorta), either 0.8.10, or 0.8.12.

  3. Create basic config with automatic backups.

  4. Verify that "Display notifications when background tasks fail" is checked.

  5. Verify that "Notify about successful background tasks" is checked.

  6. Wait for timer to fire.

  7. Backup occurs, but there is no notification of success.

  8. Delete directory that contains the borg repo.

  9. Wait for timer to fire.

  10. Backup fails, and there is no notification of failure.

This is a regression relative to Vorta version somewhere around 0.7.5, which I seem to remember correctly generated notifications. I'm sorry that I didn't notice the silent failure sooner.

Reproduction

OS

Debian 12 (bookworm), KDE Plasma 5.27.5

Version of Vorta

0.8.12

What did you install Vorta with?

Distribution package

Version of Borg

1.2.4

Logs

2023-07-22 11:10:11,676 - vorta.i18n - DEBUG - Loading translation failed for ['en-CA', 'en-Latn-CA'].
2023-07-22 11:10:11,810 - root - DEBUG - Not a private SSH key file: authorized_keys
2023-07-22 11:10:11,811 - root - DEBUG - Not a private SSH key file: config~
2023-07-22 11:10:11,850 - vorta.views.source_tab - DEBUG - Added item number 0 from 1
2023-07-22 11:10:11,962 - root - INFO - Using NullNetworkStatusMonitor NetworkStatusMonitor implementation.
2023-07-22 11:10:12,049 - vorta.borg.jobs_manager - DEBUG - Add job for site default
2023-07-22 11:10:12,051 - vorta.borg.jobs_manager - DEBUG - Start job on site: default
2023-07-22 11:10:12,058 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg --version
2023-07-22 11:10:12,665 - vorta.borg.jobs_manager - DEBUG - Finish job for site: default
2023-07-22 11:10:12,665 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2023-07-22 11:10:12,666 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: default
2023-07-22 11:10:12,668 - vorta.scheduler - DEBUG - Nothing scheduled for profile 3 because of unset repo.
2023-07-22 11:10:26,779 - root - DEBUG - Not a private SSH key file: authorized_keys
2023-07-22 11:10:26,779 - root - DEBUG - Not a private SSH key file: config~
2023-07-22 11:10:26,797 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:26,856 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:29,580 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:29,580 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:29,673 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:29,674 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:30,034 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:30,035 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:30,465 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:30,468 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:30,681 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:30,682 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:30,785 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:30,786 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:31,089 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:31,090 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:31,169 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:31,170 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:31,489 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:31,490 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:31,825 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:31,826 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:31,993 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:31,994 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:32,081 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:32,083 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:32,297 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:32,299 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:32,497 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:32,498 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:32,729 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:32,730 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:32,881 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:32,882 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:32,953 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:32,954 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:58,555 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:10:58,555 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:10:58,556 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
2023-07-22 11:10:58,557 - vorta.borg.borg_job - DEBUG - Password not found in primary keyring. Falling back to VortaDBKeyring.
2023-07-22 11:10:58,558 - vorta.borg.jobs_manager - DEBUG - Add job for site default
2023-07-22 11:10:58,558 - vorta.borg.jobs_manager - DEBUG - Start job on site: default
2023-07-22 11:10:58,562 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg init --info --log-json --encryption=none /scratch/tmp-repo
2023-07-22 11:10:59,842 - vorta.borg.borg_job - INFO - Initializing repository at "/scratch/tmp-repo"
2023-07-22 11:10:59,843 - vorta.borg.borg_job - INFO - Encryption NOT enabled.
Use the "--encryption=repokey|keyfile" to enable encryption.
2023-07-22 11:11:00,371 - vorta.borg.borg_job - INFO - Synchronizing chunks cache...
2023-07-22 11:11:00,371 - vorta.borg.borg_job - INFO - Archives: 0, w/ cached Idx: 0, w/ outdated Idx: 0, w/o cached Idx: 0.
2023-07-22 11:11:00,372 - vorta.borg.borg_job - INFO - Done.
2023-07-22 11:11:00,575 - vorta.borg.jobs_manager - DEBUG - Finish job for site: default
2023-07-22 11:11:00,576 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: default
2023-07-22 11:11:00,875 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:11:00,876 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:11:00,876 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
2023-07-22 11:11:00,877 - vorta.borg.borg_job - DEBUG - Password not found in primary keyring. Falling back to VortaDBKeyring.
2023-07-22 11:11:00,883 - vorta.borg.jobs_manager - DEBUG - Add job for site 1
2023-07-22 11:11:00,884 - vorta.borg.jobs_manager - DEBUG - Start job on site: 1
2023-07-22 11:11:00,889 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg list --info --log-json --json /scratch/tmp-repo
2023-07-22 11:11:01,447 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
2023-07-22 11:11:01,448 - vorta.scheduler - INFO - Setting timer for profile 3
2023-07-22 11:11:01,448 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: 1
2023-07-22 11:11:01,450 - vorta.scheduler - DEBUG - Catching up by running job for test0 (3)
2023-07-22 11:11:01,452 - vorta.scheduler - INFO - Starting background backup for test0
2023-07-22 11:11:01,453 - vorta.notifications - DEBUG - notification not suppressed
2023-07-22 11:11:01,455 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:11:01,456 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:11:01,456 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
2023-07-22 11:11:01,457 - vorta.borg.borg_job - DEBUG - Password not found in primary keyring. Falling back to VortaDBKeyring.
2023-07-22 11:11:01,459 - vorta.scheduler - INFO - Preparation for backup successful.
2023-07-22 11:11:01,459 - vorta.borg.jobs_manager - DEBUG - Add job for site 1
2023-07-22 11:11:01,459 - vorta.borg.jobs_manager - DEBUG - Start job on site: 1
2023-07-22 11:11:01,466 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg create --list --progress --info --log-json --json --filter=AM -C lz4 /scratch/tmp-repo::redacted.domain.org-2023-07-22-111101 /home/sten/bin
2023-07-22 11:11:01,915 - vorta.borg.borg_job - INFO - Creating archive at "/scratch/tmp-repo::redacted.domain.org-2023-07-22-111101"
2023-07-22 11:11:02,760 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
2023-07-22 11:11:02,761 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: 1
2023-07-22 11:11:02,762 - vorta.scheduler - INFO - Setting timer for profile 3
2023-07-22 11:11:02,763 - vorta.scheduler - DEBUG - Scheduling next run for 2023-07-22 12:11:02.743242
2023-07-22 11:11:02,979 - vorta.notifications - DEBUG - notification not suppressed
2023-07-22 11:11:02,985 - vorta.scheduler - INFO - Backup creation successful.
2023-07-22 11:11:02,987 - vorta.scheduler - INFO - Doing post-backup jobs for test0
2023-07-22 11:11:02,989 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:11:02,990 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:11:02,990 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
2023-07-22 11:11:02,992 - vorta.borg.borg_job - DEBUG - Password not found in primary keyring. Falling back to VortaDBKeyring.
2023-07-22 11:11:02,993 - vorta.borg.jobs_manager - DEBUG - Add job for site 1
2023-07-22 11:11:02,993 - vorta.borg.jobs_manager - DEBUG - Start job on site: 1
2023-07-22 11:11:02,993 - vorta.scheduler - INFO - Finished background task for profile test0
2023-07-22 11:11:02,995 - vorta.scheduler - INFO - Setting timer for profile 3
2023-07-22 11:11:02,996 - vorta.scheduler - DEBUG - Scheduling next run for 2023-07-22 12:11:02.743242
2023-07-22 11:11:02,998 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg check --info --log-json --progress /scratch/tmp-repo
2023-07-22 11:11:03,362 - vorta.borg.borg_job - INFO - Starting repository check
2023-07-22 11:11:03,546 - vorta.borg.borg_job - INFO - finished segment check at segment 5
2023-07-22 11:11:03,722 - vorta.borg.borg_job - INFO - Starting repository index check
2023-07-22 11:11:03,723 - vorta.borg.borg_job - INFO - Index object count match.
2023-07-22 11:11:03,723 - vorta.borg.borg_job - INFO - Finished full repository check, no problems found.
2023-07-22 11:11:03,724 - vorta.borg.borg_job - INFO - Starting archive consistency check...
2023-07-22 11:11:03,729 - vorta.borg.borg_job - INFO - Analyzing archive redacted.domain.org-2023-07-22-111101 (1/1)
2023-07-22 11:11:03,730 - vorta.borg.borg_job - INFO - Archive consistency check complete, no problems found.
2023-07-22 11:11:03,888 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
2023-07-22 11:11:03,889 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: 1
2023-07-22 11:11:03,889 - vorta.scheduler - INFO - Setting timer for profile 3
2023-07-22 11:11:03,890 - vorta.scheduler - DEBUG - Scheduling next run for 2023-07-22 12:11:02.743242
2023-07-22 11:11:08,653 - vorta.scheduler - INFO - Setting timer for profile 3
2023-07-22 11:11:08,655 - vorta.scheduler - DEBUG - Scheduling next run for 2023-07-22 11:12:02.743242
2023-07-22 11:11:33,366 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:11:33,368 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:11:33,368 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
2023-07-22 11:11:33,370 - vorta.borg.borg_job - DEBUG - Password not found in primary keyring. Falling back to VortaDBKeyring.
2023-07-22 11:11:33,377 - vorta.borg.jobs_manager - DEBUG - Add job for site 1
2023-07-22 11:11:33,377 - vorta.borg.jobs_manager - DEBUG - Start job on site: 1
2023-07-22 11:11:33,393 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg list --info --log-json --json /scratch/tmp-repo
2023-07-22 11:11:33,934 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
2023-07-22 11:11:33,935 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: 1
2023-07-22 11:11:33,935 - vorta.scheduler - INFO - Setting timer for profile 3
2023-07-22 11:11:33,936 - vorta.scheduler - DEBUG - Scheduling next run for 2023-07-22 11:12:02.743242
2023-07-22 11:12:02,937 - vorta.scheduler - INFO - Starting background backup for test0
2023-07-22 11:12:02,938 - vorta.notifications - DEBUG - notification not suppressed
2023-07-22 11:12:02,940 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:12:02,940 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:12:02,941 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
2023-07-22 11:12:02,942 - vorta.borg.borg_job - DEBUG - Password not found in primary keyring. Falling back to VortaDBKeyring.
2023-07-22 11:12:02,943 - vorta.scheduler - INFO - Preparation for backup successful.
2023-07-22 11:12:02,943 - vorta.borg.jobs_manager - DEBUG - Add job for site 1
2023-07-22 11:12:02,943 - vorta.borg.jobs_manager - DEBUG - Start job on site: 1
2023-07-22 11:12:02,962 - vorta.borg.borg_job - INFO - Running command /usr/bin/borg create --list --progress --info --log-json --json --filter=AM -C lz4 /scratch/tmp-repo::redacted.domain.org-2023-07-22-111202 /home/sten/bin
2023-07-22 11:12:03,327 - vorta.borg.borg_job - INFO - Creating archive at "/scratch/tmp-repo::redacted.domain.org-2023-07-22-111202"
2023-07-22 11:12:04,228 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
2023-07-22 11:12:04,229 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: 1
2023-07-22 11:12:04,230 - vorta.scheduler - INFO - Setting timer for profile 3
2023-07-22 11:12:04,231 - vorta.scheduler - DEBUG - Scheduling next run for 2023-07-22 11:13:04.216470
2023-07-22 11:12:04,491 - vorta.notifications - DEBUG - notification not suppressed
2023-07-22 11:12:04,493 - vorta.scheduler - INFO - Backup creation successful.
2023-07-22 11:12:04,494 - vorta.scheduler - INFO - Doing post-backup jobs for test0
2023-07-22 11:12:04,495 - vorta.scheduler - INFO - Finished background task for profile test0
2023-07-22 11:12:04,496 - vorta.scheduler - INFO - Setting timer for profile 3
2023-07-22 11:12:04,498 - vorta.scheduler - DEBUG - Scheduling next run for 2023-07-22 11:13:04.216470
2023-07-22 11:13:04,938 - vorta.scheduler - INFO - Starting background backup for test0
2023-07-22 11:13:04,939 - vorta.notifications - DEBUG - notification not suppressed
2023-07-22 11:13:04,940 - vorta.keyring.abc - DEBUG - Only available on macOS
2023-07-22 11:13:04,942 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2023-07-22 11:13:04,942 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
2023-07-22 11:13:04,944 - vorta.borg.borg_job - DEBUG - Password not found in primary keyring. Falling back to VortaDBKeyring.
2023-07-22 11:13:04,945 - vorta.scheduler - ERROR - Conditions for backup not met. Aborting.
2023-07-22 11:13:04,945 - vorta.scheduler - ERROR - Repo folder not mounted or moved.
2023-07-22 11:13:04,945 - vorta.notifications - DEBUG - notification not suppressed
2023-07-22 11:13:04,947 - vorta.scheduler - DEBUG - Paused 3 until 2023-07-22 11:14:04
real-yfprojects commented 1 year ago

it looks like #1522 may preemptively solve this bug.

Did you test that already?

sten0 commented 1 year ago

yfprojects @.***> writes:

it looks like #1522 may preemptively solve this bug.

Did you test that already?

Sorry, I did not. Does it target 0.8.x or 0.9.x?

real-yfprojects commented 1 year ago

Its based on 0.8.x afaik. Not sure whether it will be merged into a 0.8.x release though.

m3nu commented 6 months ago

Is this still an issue, dear KDE users?

OneRainbowDev commented 5 months ago

Hi, I can confirm this is still an issue with KDE plasma on both Arch and Fedora. (Fedora is plasma 5, Arch is 6)

I have "Display notifications when background tasks fail" checked with automatic backups enabled, but no notifs occur.