# Anki desktop app not loading after updating load balancer

**URL:** <https://forums.ankiweb.net/t/anki-desktop-app-not-loading-after-updating-load-balancer/1292>\
**Category:** Help\
**Created:** [July 22, 2020, 10:11pm UTC](https://forums.ankiweb.net/t/anki-desktop-app-not-loading-after-updating-load-balancer/1292 "2020-07-22T22:11:53Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 23, 2020, 12:52am UTC](https://forums.ankiweb.net/t/anki-desktop-app-not-loading-after-updating-load-balancer/1292/22 "2020-07-23T00:52:17Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![tolmstead94](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tolmstead94](https://forums.ankiweb.net/u/tolmstead94)\
**Post date:** [July 23, 2020, 12:54am UTC](https://forums.ankiweb.net/t/anki-desktop-app-not-loading-after-updating-load-balancer/1292/23 "2020-07-23T00:54:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tolmstead94](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tolmstead94](https://forums.ankiweb.net/u/tolmstead94)\
**Post date:** [July 23, 2020, 12:58am UTC](https://forums.ankiweb.net/t/anki-desktop-app-not-loading-after-updating-load-balancer/1292/24 "2020-07-23T00:58:58Z")

</div>

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’

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [July 23, 2020, 1:09am UTC](https://forums.ankiweb.net/t/anki-desktop-app-not-loading-after-updating-load-balancer/1292/25 "2020-07-23T01:09:36Z")

</div>

Right, please see [Anki desktop app not loading after updating load balancer](https://forums.ankiweb.net/t/anki-desktop-app-not-loading-after-updating-load-balancer/1292/5)

---

<div class="post-metadata">

**Author:** ![tolmstead94](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tolmstead94](https://forums.ankiweb.net/u/tolmstead94)\
**Post date:** [July 23, 2020, 1:11am UTC](https://forums.ankiweb.net/t/anki-desktop-app-not-loading-after-updating-load-balancer/1292/26 "2020-07-23T01:11:27Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![DrChurpio](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@DrChurpio](https://forums.ankiweb.net/u/DrChurpio)\
**Post date:** [July 23, 2020, 7:47pm UTC](https://forums.ankiweb.net/t/anki-desktop-app-not-loading-after-updating-load-balancer/1292/27 "2020-07-23T19:47:02Z")

</div>

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](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/662ceead6bc6639badd033b87fbeea3da7f4d4df.png)

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.

---

<div class="post-metadata">

**Author:** ![guillempalausalva](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/guillempalausalva/32/34258_2.png) [@guillempalausalva](https://forums.ankiweb.net/u/guillempalausalva)\
**Post date:** [July 23, 2020, 7:50pm UTC](https://forums.ankiweb.net/t/anki-desktop-app-not-loading-after-updating-load-balancer/1292/28 "2020-07-23T19:50:07Z")

</div>

> [@DrChurpio](#):
>
> Looks like when I updated either load balancer, special fields, or the amboss add-on one of those also created the above issues.

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

> [@Anki desktop app not loading after updating load balancer](https://forums.ankiweb.net/t/anki-desktop-app-not-loading-after-updating-load-balancer/1292):
>
> hello, updated load balancer, now Anki app says the following below. AnkiWeb and mobile app still working. 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 433, in loadCollection File “aqt/main.py”, line 463, in \_loadCollection File “anki/storage.py”, line 54, in Collection File “anki/collection.py”, line 98, in i…

---

<div class="post-metadata">

**Author:** ![DrChurpio](https://avatars.discourse-cdn.com/v4/letter/d/bbce88/32.png) [@DrChurpio](https://forums.ankiweb.net/u/DrChurpio)\
**Post date:** [July 23, 2020, 7:53pm UTC](https://forums.ankiweb.net/t/anki-desktop-app-not-loading-after-updating-load-balancer/1292/29 "2020-07-23T19:53:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 5:39am UTC](https://forums.ankiweb.net/t/anki-desktop-app-not-loading-after-updating-load-balancer/1292/30 "2023-05-01T05:39:29Z")

</div>



[Previous page](https://forums.ankiweb.net/t/anki-desktop-app-not-loading-after-updating-load-balancer/1292.md?page=1)
