Anki desktop app not loading after updating load balancer

That message probably indicates Anki is still running in the background and has not properly shut down. You may need to terminate the process in Activity Monitor, or restart the computer again. Do you get the same message after doing that + running from the applications folder?

1 Like

Okay i just quit anki from the activity monitor and will try restarting the laptop again. I will be back!

still nothing:

this is the error message again

Anki was unable to open your collection file. If problems persist after restarting your computer, please use the Open Backup button in the profile manager.

Debug info:
Traceback (most recent call last):
File “aqt/main.py”, line 469, in loadCollection
File “aqt/main.py”, line 505, in _loadCollection
File “aqt/main.py”, line 510, in reopen
File “anki/storage.py”, line 59, in Collection
File “anki/collection.py”, line 82, in init
TypeError: init() missing 2 required positional arguments: ‘db’ and ‘backend’

Right, please see Anki desktop app not loading after updating load balancer

I figured it out! I just re-downloaded the newest ANKI from online and deleted the old app i was using, then was able to restore from backup.

I have both ankidroid and Anki windows desktop, but this error just started happening today. No new add-ons, but one did update yesterday. Starting without add-ons (shift+click) does not fix the issue.

When I boot up anki I get this error:
image

I tried restarting and booting in “safe” mode (shift+click anki) but neither helped. When I try to reload a backup collection I get this error (sorry I’m a new user so I can’t post more than 1 image):

“Unable to move existing file to trash - please try restarting your computer.”

If I try opening my user profile without opening an old collection I get this error:

Anki was unable to open your collection file. If problems persist after restarting your computer, please use the Open Backup button in the profile manager.
Debug info:
Traceback (most recent call last):
File “aqt\main.py”, line 469, in loadCollection
File “aqt\main.py”, line 505, in _loadCollection
File “aqt\main.py”, line 510, in reopen
File “lib\site-packages\anki\storage.py”, line 49, in Collection
File “lib\site-packages\anki\rsbackend.py”, line 264, in open_collection
File “lib\site-packages\anki\rsbackend.py”, line 257, in _run_command
anki.rsbackend.StringError: CollectionAlreadyOpen

Perhaps relevant, but my last backup is from August 17th. Before this date I had 1+ backups generated everyday. Not really sure what happened that caused them to stop creating backups, but maybe it’s related.

At a complete loss for what happened. I use anki every day and have never run into any problems.

Edit and solution: Before even making the post I decided to look in my recycle bin since one of the debuggers mentioned I had to remove something from my trash. That was the issue. Looks like when I updated either load balancer, special fields, or the amboss add-on one of those also created the above issues. When I restored the files from my trash and replaced the new files with these, anki works fine again. Perhaps anki’s updating add-ons feature erroneously removed something it shouldn’t once these add-ons were updated, not really sure what caused the problem. But for posterity, this is what fixed it. As well mentioned below, load balancer was the culprit, and in this case updating to the newest version of Anki fixed the error. However, if for some reason you don’t want the newest version, restoring add-ons to the older versions should fix the issue as well.

1 Like

I think load balancer is the culprit based on the following discussion:

2 Likes

ah thank you. Shame, I really like that add on. I’ll be sure to avoid updating it until the issue gets resolved. Thanks for finding this post! I had trouble finding another user with the same error. Any idea how updating the add-on could cause this? Shoudln’t booting Anki in safe mode prevent the add-on from running in the first place? But I would still get the same errors

Edit: I also went through the post and saw that the newest version of anki fixes the error, so Ill be updating to that as well to avoid any future issues. Still makes me scratch my head as to why it occurs in the first place though

1 Like