vorta icon indicating copy to clipboard operation
vorta copied to clipboard

vorta requests that kwallet create a new wallet with error text as wallet name if I don't unlock wallet quickly enough after reboot.

Open gargolito opened this issue 10 months ago • 10 comments

Description

kwallet reports that vorta-repo reqested to create a new wallet with name: 'Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.' please see screenshot of the kwallet error.

Image

Steps to reproduce:

  1. Create a backup configuration
  2. Use kwallet to store key
  3. Configure kde with autologin
  4. Add vorta-backup to autostart apps
  5. Reboot
  6. Do not unlock kwallet when prompted, wait a couple of minutes. A window with the error should appear

I know enough python to do some debugging and I believe that the problem maybe how try_unlock() in site-packages/vorta/keyring/kwallet.py LINE# 63 is handling the output from kwallet, instead of requesting a sensible wallet name if it doesn't find the name it expects, it uses the error I mentioned in the request for a new wallet in LINE# 66

PS: This isn't a new problem, I've been dealing with it for years, but finally decided to take a closer look and report the annoyance.

Reproduction

  • [x] I tried to reproduce the issue.
  • [x] I was able to reproduce the issue.

OS

Kubuntu 24.04.1 LTS

Version of Vorta

0.10.3

What did you install Vorta with?

Flatpak

Version of Borg

1.4.0

Logs

2025-01-31 10:46:32,088 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 10:46:32,099 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 10:46:32,103 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 12:43:07.208242
2025-01-31 11:01:32,122 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 11:01:32,127 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 11:01:32,128 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 12:43:07.208242
2025-01-31 11:16:32,079 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 11:16:32,085 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 11:16:32,085 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 12:43:07.208242
2025-01-31 11:31:32,070 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 11:31:32,075 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 11:31:32,076 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 12:43:07.208242
2025-01-31 11:46:32,136 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 11:46:32,142 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 11:46:32,142 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 12:43:07.208242
2025-01-31 12:01:32,158 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 12:01:32,164 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 12:01:32,165 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 12:43:07.208242
2025-01-31 12:16:32,120 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 12:16:32,126 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 12:16:32,127 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 12:43:07.208242
2025-01-31 12:31:32,167 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 12:31:32,173 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 12:31:32,174 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 12:43:07.208242
2025-01-31 12:43:07,124 - vorta.scheduler - INFO - Starting background backup for Default
2025-01-31 12:43:07,125 - vorta.notifications - DEBUG - success notifications suppressed
2025-01-31 12:43:07,126 - vorta.keyring.abc - DEBUG - No module named 'objc'
2025-01-31 12:43:07,127 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2025-01-31 12:43:07,128 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
2025-01-31 12:43:08,034 - vorta.keyring.kwallet - DEBUG - Retrieved password for repo /bucket/backups
2025-01-31 12:43:08,111 - vorta.scheduler - INFO - Preparation for backup successful.
2025-01-31 12:43:08,111 - vorta.borg.jobs_manager - DEBUG - Add job for site 1
2025-01-31 12:43:08,111 - vorta.borg.jobs_manager - DEBUG - Start job on site: 1
2025-01-31 12:43:08,121 - vorta.borg.borg_job - INFO - Running command /app/bin/borg create --list --progress --info --log-json --json --filter=AM -C auto,lzma,6 --exclude-from /tmp/tmpr_n6d4wh /bucket/backups::silent-2025-01-31-124308 /storage/projects /home/gargolito/.config /home/gargolito/.local /storage/bash /storage/apps/comfyui
2025-01-31 12:43:09,179 - vorta.borg.borg_job - INFO - Creating archive at "/bucket/backups::silent-2025-01-31-124308"
2025-01-31 12:46:32,070 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 12:46:32,072 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 12:46:32,073 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:43:08.111877
2025-01-31 12:46:53,700 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
2025-01-31 12:46:53,701 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: 1
2025-01-31 12:46:53,703 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 12:46:53,706 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:46:53.686750
2025-01-31 12:46:53,989 - vorta.notifications - DEBUG - success notifications suppressed
2025-01-31 12:46:53,989 - vorta.scheduler - INFO - Backup creation successful.
2025-01-31 12:46:53,990 - vorta.scheduler - INFO - Doing post-backup jobs for Default
2025-01-31 12:46:53,991 - vorta.keyring.abc - DEBUG - No module named 'objc'
2025-01-31 12:46:53,992 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2025-01-31 12:46:53,992 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
2025-01-31 12:46:53,993 - vorta.keyring.kwallet - DEBUG - Retrieved password for repo /bucket/backups
2025-01-31 12:46:54,137 - vorta.borg.jobs_manager - DEBUG - Add job for site 1
2025-01-31 12:46:54,139 - vorta.borg.jobs_manager - DEBUG - Start job on site: 1
2025-01-31 12:46:54,143 - vorta.keyring.abc - DEBUG - No module named 'objc'
2025-01-31 12:46:54,145 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2025-01-31 12:46:54,146 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
2025-01-31 12:46:54,151 - vorta.keyring.kwallet - DEBUG - Retrieved password for repo /bucket/backups
2025-01-31 12:46:54,154 - vorta.borg.borg_job - INFO - Running command /app/bin/borg prune --list --info --log-json --keep-hourly 2 --keep-daily 7 --keep-weekly 4 --keep-monthly 6 --keep-yearly 2 -a silent-* --keep-within 10H /bucket/backups
2025-01-31 12:46:54,156 - vorta.borg.jobs_manager - DEBUG - Add job for site 1
2025-01-31 12:46:54,160 - vorta.scheduler - INFO - Finished background task for profile Default
2025-01-31 12:46:54,161 - vorta.notifications - DEBUG - success notifications suppressed
2025-01-31 12:46:54,162 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 12:46:54,163 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:46:53.686750
2025-01-31 12:46:54,579 - vorta.borg.borg_job - INFO - Keeping archive (rule: within #1):           silent-2025-01-31-124308             Fri, 2025-01-31 12:43:09 [bef008f6cc90f1611b36e42af18cf0e706a9e1d8439dd142131dd7955b0edea0]
2025-01-31 12:46:54,579 - vorta.borg.borg_job - INFO - Keeping archive (rule: within #2):           silent-2025-01-31-063925             Fri, 2025-01-31 06:39:26 [45749e500e8ef6ece57bae7f359de8a227e90a8b3960871d2a732b10f0804cd9]
2025-01-31 12:46:54,579 - vorta.borg.borg_job - INFO - Keeping archive (rule: hourly #1):           silent-2025-01-31-003525             Fri, 2025-01-31 00:35:26 [3bfd52a18cc986ddd52a687aec54e958faabf63f79eec7fb401c0c0d74cefa4b]
2025-01-31 12:46:54,579 - vorta.borg.borg_job - INFO - Keeping archive (rule: hourly #2):           silent-2025-01-30-182958             Thu, 2025-01-30 18:29:59 [6981e64dc6bbad5d3b64dfa92f34843ade329a99ed88d83b3251afdf86e100f5]
2025-01-31 12:47:16,743 - vorta.borg.borg_job - INFO - Pruning archive (1/1):                       silent-2025-01-30-122618             Thu, 2025-01-30 12:26:19 [acecd6c490f3b70222ac1dfb02296400d9f5fc891515c4fba7b76c610e928b5c]
2025-01-31 12:47:16,744 - vorta.borg.borg_job - INFO - Keeping archive (rule: daily #1):            silent-2025-01-29-181334             Wed, 2025-01-29 18:13:35 [955b8366c385633f8c04350339abfca17066fa836663340ae3ac80f60ce0acbc]
2025-01-31 12:47:16,744 - vorta.borg.borg_job - INFO - Keeping archive (rule: daily #2):            silent-2025-01-28-175736             Tue, 2025-01-28 17:57:37 [22853d414ff0efd552140906829046a996196b2d9bbd75663ae70791d5d60075]
2025-01-31 12:47:16,744 - vorta.borg.borg_job - INFO - Keeping archive (rule: daily #3):            silent-2025-01-27-234532             Mon, 2025-01-27 23:45:33 [d2c7b3c15ea4983b40b3119c7b1fc3f22b2b4fabcee3aeaa5b8a1c179a1e04e1]
2025-01-31 12:47:16,744 - vorta.borg.borg_job - INFO - Keeping archive (rule: daily #4):            silent-2025-01-26-232817             Sun, 2025-01-26 23:28:18 [ffcb92b075e33c7e851190c99da3a968bb3ec825521bdd25c14ea74cb9b7f000]
2025-01-31 12:47:16,744 - vorta.borg.borg_job - INFO - Keeping archive (rule: daily #5):            silent-2025-01-25-231133             Sat, 2025-01-25 23:11:34 [89830d520bd238e351ceaebe71b24f8ad8bf98fc9e939a6ef6ae0fd6fa009806]
2025-01-31 12:47:16,744 - vorta.borg.borg_job - INFO - Keeping archive (rule: daily #6):            silent-2025-01-24-225617             Fri, 2025-01-24 22:56:18 [1e2b6a9996ce32a5dba2946c0351f31387cf2581273566e0774a1277c3f0d4ee]
2025-01-31 12:47:16,744 - vorta.borg.borg_job - INFO - Keeping archive (rule: daily #7):            silent-2025-01-23-223620             Thu, 2025-01-23 22:36:23 [1f4edf12a7b5b5a4a50c16b9b1da3cdf6fc982ce889b5eeed84164899b2580aa]
2025-01-31 12:47:16,744 - vorta.borg.borg_job - INFO - Keeping archive (rule: weekly #1):           silent-2025-01-19-201301             Sun, 2025-01-19 20:13:02 [88b0030ee7905afb5c4afae84787c232e37cb9c27be71b1e3b2bd42eac5f0e29]
2025-01-31 12:47:16,744 - vorta.borg.borg_job - INFO - Keeping archive (rule: weekly #2):           silent-2025-01-12-181843             Sun, 2025-01-12 18:18:43 [7a806555cffcf7744db75e073016cda7707d23e8b99927b0fe9fff6d24c209a5]
2025-01-31 12:47:16,744 - vorta.borg.borg_job - INFO - Keeping archive (rule: weekly #3):           silent-2025-01-05-223833             Sun, 2025-01-05 22:38:34 [fe2838ad49cf865d6a6f1584171369351a241c935a75b806d758b29fcf3ed8ec]
2025-01-31 12:47:16,744 - vorta.borg.borg_job - INFO - Keeping archive (rule: monthly #1):          silent-2024-12-31-212636             Tue, 2024-12-31 21:26:37 [b9b41e4649063cf4fd03dd9b229e34d1ce76f82500d95c010e9fd669d551ef95]
2025-01-31 12:47:16,744 - vorta.borg.borg_job - INFO - Keeping archive (rule: weekly #4):           silent-2024-12-29-202859             Sun, 2024-12-29 20:28:59 [c76e044a02906a42807eae4783eea7f72a2cb512b58215dcf556a879baf21d38]
2025-01-31 12:47:16,745 - vorta.borg.borg_job - INFO - Keeping archive (rule: monthly #2):          silent-2024-11-30-193800             Sat, 2024-11-30 19:38:00 [aadc1a9b798df67e3ccc00c2159bd24db6efd8d681a633f4044ff59bdf79eb60]
2025-01-31 12:47:16,745 - vorta.borg.borg_job - INFO - Keeping archive (rule: monthly #3):          silent-2024-10-31-201834             Thu, 2024-10-31 20:18:35 [776fa6e899e1c64df92bd33bf8b4594dd8ab1d21970970d0c92ff8619f89d6d7]
2025-01-31 12:47:16,745 - vorta.borg.borg_job - INFO - Keeping archive (rule: monthly #4):          silent-2024-09-30-215327             Mon, 2024-09-30 21:53:30 [ed9b128d35aec160760bc323f7c4600133d2f912d107ab818eba612f52cefab6]
2025-01-31 12:47:16,745 - vorta.borg.borg_job - INFO - Keeping archive (rule: monthly #5):          silent-2024-08-31-182239             Sat, 2024-08-31 18:22:39 [2fb0797da9d685c081db63a0fadb6484acd9fc4b36d35d03586e2670972afdda]
2025-01-31 12:47:16,745 - vorta.borg.borg_job - INFO - Keeping archive (rule: monthly #6):          silent-2024-07-31-204521             Wed, 2024-07-31 20:45:21 [87dfee0b4eb30b114b54cc54a52080c9d50a8cdcdb9e6a62f57023e575a47eb0]
2025-01-31 12:47:16,745 - vorta.borg.borg_job - INFO - Keeping archive (rule: yearly #1):           silent-2023-12-31-190119             Sun, 2023-12-31 19:01:22 [c3e97b2bb82a21859b9aa207edf2a29b81dc869331cf6b12293e2252d5fecda3]
2025-01-31 12:47:16,745 - vorta.borg.borg_job - INFO - Keeping archive (rule: yearly[oldest] #2):   silent-2023-05-07-171456             Sun, 2023-05-07 17:14:56 [23dcec0aa014d9051c141bb22de18ed5a89d788fd9b14276211f9fa3b94f2d66]
2025-01-31 12:47:19,991 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
2025-01-31 12:47:19,992 - vorta.borg.jobs_manager - DEBUG - Start job on site: 1
2025-01-31 12:47:19,995 - vorta.borg.borg_job - INFO - Running command /app/bin/borg list --info --log-json --json /bucket/backups
2025-01-31 12:47:19,996 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 12:47:20,000 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:46:53.686750
2025-01-31 12:47:20,778 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 1
2025-01-31 12:47:20,780 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: 1
2025-01-31 12:47:20,781 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 12:47:20,783 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:46:53.686750
2025-01-31 13:01:32,149 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 13:01:32,155 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 13:01:32,156 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:46:53.686750
2025-01-31 13:16:32,070 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 13:16:32,076 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 13:16:32,076 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:46:53.686750
2025-01-31 13:31:32,073 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 13:31:32,082 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 13:31:32,085 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:46:53.686750
2025-01-31 13:46:32,069 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 13:46:32,077 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 13:46:32,080 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:46:53.686750
2025-01-31 14:01:32,077 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 14:01:32,078 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 14:01:32,079 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:46:53.686750
2025-01-31 14:16:32,069 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 14:16:32,078 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 14:16:32,079 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:46:53.686750
2025-01-31 14:31:32,071 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 14:31:32,080 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 14:31:32,083 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:46:53.686750
2025-01-31 14:42:09,977 - vorta.i18n - DEBUG - Loading translation succeeded for ['en-Latn-US', 'en-US', 'en'].
2025-01-31 14:42:10,090 - root - DEBUG - Not a private SSH key file: authorized_keys
2025-01-31 14:42:10,137 - vorta.views.source_tab - DEBUG - Added item number 0 from 1
2025-01-31 14:42:10,138 - vorta.views.source_tab - DEBUG - Added item number 1 from 2
2025-01-31 14:42:10,139 - vorta.views.source_tab - DEBUG - Added item number 2 from 3
2025-01-31 14:42:10,139 - vorta.views.source_tab - DEBUG - Added item number 3 from 4
2025-01-31 14:42:10,140 - vorta.views.source_tab - DEBUG - Added item number 4 from 5
2025-01-31 14:42:10,590 - root - INFO - Using NetworkManagerMonitor NetworkStatusMonitor implementation.
2025-01-31 14:42:10,613 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 14:42:10,614 - vorta.scheduler - DEBUG - Catching up by running job for Default (1)
2025-01-31 14:42:10,615 - vorta.scheduler - INFO - Starting background backup for Default
2025-01-31 14:42:10,615 - vorta.notifications - DEBUG - success notifications suppressed
2025-01-31 14:42:10,620 - vorta.keyring.abc - DEBUG - No module named 'objc'
2025-01-31 14:42:10,865 - vorta.keyring.abc - DEBUG - Using VortaKWallet5Keyring
2025-01-31 14:42:10,865 - vorta.borg.borg_job - DEBUG - Using VortaKWallet5Keyring keyring to store passwords.
2025-01-31 14:43:26,078 - vorta.scheduler - ERROR - Conditions for backup not met. Aborting.
2025-01-31 14:43:26,078 - vorta.scheduler - ERROR - Please unlock your system password manager or disable it under Misc
2025-01-31 14:43:26,080 - vorta.notifications - DEBUG - notification not suppressed
2025-01-31 14:43:26,115 - vorta.scheduler - DEBUG - Paused 1 until 2025-01-31 14:53:26
2025-01-31 14:43:26,125 - vorta.scheduler - DEBUG - Nothing scheduled for profile 1 because of timeout until 2025-01-31 14:53:26.
2025-01-31 14:43:26,127 - vorta.scheduler - DEBUG - Nothing scheduled for profile 1 because of timeout until 2025-01-31 14:53:26.
2025-01-31 14:43:26,154 - vorta.borg.jobs_manager - DEBUG - Add job for site default
2025-01-31 14:43:26,154 - vorta.borg.jobs_manager - DEBUG - Start job on site: default
2025-01-31 14:43:26,158 - vorta.borg.borg_job - INFO - Running command /app/bin/borg --version
2025-01-31 14:43:26,977 - vorta.borg.jobs_manager - DEBUG - Finish job for site: default
2025-01-31 14:43:26,977 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: default
2025-01-31 14:43:26,978 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 14:43:26,984 - vorta.scheduler - DEBUG - Nothing scheduled for profile 1 because of timeout until 2025-01-31 14:53:26.
2025-01-31 14:53:26,064 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 14:53:26,065 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:46:53.686750
2025-01-31 14:57:10,063 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 14:57:10,065 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 14:57:10,065 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:46:53.686750
2025-01-31 15:12:10,064 - vorta.scheduler - DEBUG - Refreshing all scheduler timers
2025-01-31 15:12:10,072 - vorta.scheduler - INFO - Setting timer for profile 1
2025-01-31 15:12:10,077 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-31 18:46:53.686750

gargolito avatar Jan 31 '25 20:01 gargolito

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar May 02 '25 02:05 github-actions[bot]

Bumping... I would like someone to address this please, looks like it's being ignored.

gargolito avatar May 02 '25 14:05 gargolito

Hey @gargolito I've made some changes regarding this issue on my dev-minor-fixes branch with this commit. Could you verify if this fixes the issue? Thanks.

VandalByte avatar May 26 '25 11:05 VandalByte

I was out of town, I just made the change on my machine. I'll let you know if it comes up again. I should know by tomorrow.

gargolito avatar May 27 '25 23:05 gargolito

That would be great, thanks!

VandalByte avatar May 28 '25 01:05 VandalByte

Hey @gargolito I've made some changes regarding this issue on my dev-minor-fixes branch with this commit. Could you verify if this fixes the issue? Thanks.

Unfortunately I am getting the same behavior as first reported (I had to wait a longer time to get the behavior). I noticed that the only change in the branch relates to the wait time, but the issue is more the behavior that if the wait time is exceeded, the name of the wallet that vorta wants to create is that of an error message instead of something more sensible like "vorta-wallet" instead of "'Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.'".

gargolito avatar May 28 '25 19:05 gargolito

this might be a solution, it works for me.

diff --git i/src/vorta/keyring/kwallet.py w/src/vorta/keyring/kwallet.py
index 514db43..8c2e848 100644
--- i/src/vorta/keyring/kwallet.py
+++ w/src/vorta/keyring/kwallet.py
@@ -3,6 +3,7 @@

 from PyQt6 import QtDBus
 from PyQt6.QtCore import QMetaType, QVariant
+from PyQt6.QtWidgets import QInputDialog

 from vorta.keyring.abc import VortaKeyring

@@ -61,12 +62,17 @@ def is_unlocked(self):

     def try_unlock(self):
         wallet_name = self.get_result("networkWallet")
-        if not wallet_name or not isinstance(wallet_name, str) or wallet_name.strip() == "":
-            logger.error(
-                "KWallet: Could not determine a valid wallet name from 'networkWallet'. Aborting unlock attempt."
-            )
-            self.handle = -2
-            return
+        if (
+            not wallet_name
+            or not isinstance(wallet_name, str)
+            or wallet_name.strip() == ""
+            or "Possible causes include" in wallet_name
+        ):
+            wallet_name, ok = QInputDialog.getText(None, "Create Wallet", "Enter a name for the new wallet:")
+            if not ok or not wallet_name.strip():
+                logger.error("KWallet: Could not determine a valid wallet name. Aborting unlock attempt.")
+                self.handle = -2
+                return
         wId = QVariant(0)
         wId.convert(QMetaType(QMetaType.Type.LongLong.value))
         output = self.get_result("open", args=[wallet_name, wId, 'vorta-repo'])

gargolito avatar May 29 '25 17:05 gargolito

Hey there, I'm having some power outage issues here so won't be able to get back on this yet. One thing I would like to point out is we can't compare the strings directly because of the translation present;

"Possible causes include" in wallet_name # can't do

That's why we resort to using the enums. If you have time to make a PR I'm willing to test it out.

I noticed that the only change in the branch relates to the wait time, but the issue is more the behavior that if the wait time is exceeded, the name of the wallet that vorta wants to create is that of an error message instead of something more sensible like "vorta-wallet" instead of "'Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.'".

I also realized this when you pointed it out, get_result() is passing the error into the wallet_name as a string, that's why my fix didn't work, so we might have to look into get_result(), again I couldn't look into it properly yet.

VandalByte avatar May 30 '25 02:05 VandalByte

Hey there, I'm having some power outage issues here so won't be able to get back on this yet. One thing I would like to point out is we can't compare the strings directly because of the translation present;

"Possible causes include" in wallet_name # can't do That's why we resort to using the enums. If you have time to make a PR I'm willing to test it out.

Spent far more time than I should have and also I got to learn more QT than I ever wanted to know.

gargolito avatar May 30 '25 18:05 gargolito

Spent far more time than I should have and also I got to learn more QT than I ever wanted to know.

Hah yeah I get that feeling, thanks for the PR.

But coming back to this I was able to take a look at this yesterday and I'm not being able to reproduce this issue. I tried it out in MX Linux KDE. I followed the steps like so:

  • Added a new repo, kwallet prompted me to make a new wallet named kdewallet
  • I did and after adding password and everything, rebooted the system.
  • Started vorta and clicked "Start Backup", I was prompted to enter the password for the wallet. I waited and then I got the same message inside variable result from get_result() (printed it for debugging)
['Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.']
  • But instead of getting a prompt similar to yours all I got was Vorta's notification saying (both when I waited for the msg and when I closed the prompt): Please unlock your system password manager or disable it under Misc

I also noticed that in you logs you got this:

2025-01-31 14:43:26,078 - vorta.scheduler - ERROR - Please unlock your system password manager or disable it under Misc

And I got this instead (while testing it out with scheduling), still no prompt, but got the notification:

<PyQt6.QtDBus.QDBusMessage object at 0x7f1931167840>
['kdewallet']
<PyQt6.QtDBus.QDBusMessage object at 0x7f1931167990>
['Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.']
2025-06-01 09:05:32,220 - vorta.scheduler - ERROR - Conditions for backup not met. Aborting.
2025-06-01 09:05:32,220 - vorta.scheduler - ERROR - Please unlock your system password manager or disable it under Misc
2025-06-01 09:05:32,221 - vorta.notifications - DEBUG - notification not suppressed
2025-06-01 09:05:32,225 - vorta.scheduler - DEBUG - Paused 1 until 2025-06-01 09:06:32

['kdewallet'] is the output of wallet_name and the next, the output while trying to open that said wallet.

VandalByte avatar Jun 01 '25 03:06 VandalByte

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 31 '25 02:08 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Dec 01 '25 02:12 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Dec 09 '25 02:12 github-actions[bot]

Related PR was already merged. Closing.

m3nu avatar Dec 09 '25 17:12 m3nu