Update failed, showing this PermissionError: [WinError 5] Access is denied

Before the error happened, I was. simply updating
[Replace this text.]

Error message (don't change this)
Anki 2.1.61 (0c1eaf4c) Python 3.9.15 Qt 6.4.2 PyQt 6.4.0
Platform: Windows-10-10.0.19045
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-05-23 13:31:04

Traceback (most recent call last):

  File "aqt.taskman", line 122, in _on_closures_pending

  File "aqt.taskman", line 71, in <lambda>

  File "decorator", line 232, in fun

  File "anki.hooks", line 89, in decorator_wrapper

  File "anki.hooks", line 86, in repl

  File "C:\Users\pc\AppData\Roaming\Anki2\addons21\1322529746\addons.py", line 54, in _check_future_for_exceptions
    future.result()

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

  File "concurrent.futures.thread", line 58, in run

  File "aqt.addons", line 1168, in <lambda>

  File "aqt.addons", line 1184, in _download_all

  File "aqt.addons", line 1129, in download_and_install_addon

  File "aqt.addons", line 430, in install

  File "aqt.addons", line 453, in _install

  File "decorator", line 232, in fun

  File "anki.hooks", line 89, in decorator_wrapper

  File "anki.hooks", line 84, in repl

  File "decorator", line 232, in fun

  File "anki.hooks", line 89, in decorator_wrapper

  File "anki.hooks", line 84, in repl

  File "decorator", line 232, in fun

  File "anki.hooks", line 89, in decorator_wrapper

  File "anki.hooks", line 86, in repl

  File "C:\Users\pc\AppData\Roaming\Anki2\addons21\1322529746\addons.py", line 136, in _with_disabled_log_file_handler
    result = _old(*args, **kwargs)

  File "aqt.addons", line 726, in backupUserFiles

PermissionError: [WinError 5] Access is denied: 'C:\\Users\\pc\\AppData\\Roaming\\Anki2\\addons21\\1214357311\\user_files' -> 'C:\\Users\\pc\\AppData\\Roaming\\Anki2\\addons21\\files_backup'

Sentry link (for developers)

Can you try updating the add-on again and see if the error happens again? You can do that by going to Tools โ†’ Add-ons โ†’ Check for Updates. Then the update dialog should appear and ask you if you want to update the add-on.

If that doesnโ€™t work you can delete the add-on and download it again from here: https://docs.ankihub.net/#install-the-ankihub-add-on.
Note that you need to re-subscribe to your decks after doing that, so itโ€™s less convenient.