# Is it only me? Anki giving corrupt collection error

**URL:** <https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424>\
**Category:** Syncing & AnkiWeb\
**Created:** [August 18, 2020, 2:49pm UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424 "2020-08-18T14:49:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aarkay](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Aarkay](https://forums.ankiweb.net/u/Aarkay)\
**Post date:** [August 18, 2020, 2:49pm UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/1 "2020-08-18T14:49:20Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/3/34e7df838ccc41488a1cae3d95f4eeed4bcb7ef9.png)

I’ve been getting this message since tomorrow (or maybe today). However, even if it says the collection is corrupt, it sync whole collection as I can verify it by syncing to my AnkiDroid. So I guess collection isn’t corrupt! Yes, I switched Anki versions from .30 to .26 one or two days back but I guess it’s not the problem since it was working well even after downgrading. After this error, I again tried other versions, including .30 (again) to see whether the problem persists. Unfortunately, every version is giving same error, even standard version. And yeah, this error only pops up while last syncing or when I close the Anki. It doesn’t pop up when I sync randomly while using it.

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [August 18, 2020, 3:59pm UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/2 "2020-08-18T15:59:03Z")

</div>

This can be caused by some file sync or backup software that may be reading or modifying your collection.

---

<div class="post-metadata">

**Author:** ![Aarkay](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Aarkay](https://forums.ankiweb.net/u/Aarkay)\
**Post date:** [August 18, 2020, 7:48pm UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/3 "2020-08-18T19:48:36Z")

</div>

@ANH25 I don’t think I have any such software. However, I manually take collection backup regularly, but I have been doing this for months and don’t think it’s the problem!

---

<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:** [August 19, 2020, 3:39am UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/4 "2020-08-19T03:39:59Z")

</div>

You can reproduce the problem when you disable all add-ons and restart Anki? Is your Anki data stored on your C drive (the default), or somewhere else?

---

<div class="post-metadata">

**Author:** ![Aarkay](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Aarkay](https://forums.ankiweb.net/u/Aarkay)\
**Post date:** [August 18, 2020, 8:53pm UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/5 "2020-08-18T20:53:11Z")

</div>

The following error is popping up randomly sometimes! And btw, I’m the same guy who posted [this](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/3).You think any connnection between the both or they are separate issues altogether? @dae

> Error  
> An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.  
> If the issue only occurs when add-ons are enabled, please use the Tools \> Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.  
> When you’ve discovered the add-on that is causing the problem, please report the issue on the add-on support site.  
> Debug info:  
> Anki 2.1.30 (06a69c25) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1  
> Platform: Windows 10  
> Flags: frz=True ao=True sv=1  
> Add-ons, last update check: 2020-08-18 12:37:27
> 
> Caught exception:  
> Traceback (most recent call last):  
> File “aqt\reviewer.py”, line 298, in   
> File “aqt\reviewer.py”, line 269, in \_answerCard  
> File “aqt\reviewer.py”, line 110, in nextCard  
> File “anki\schedv2.py”, line 64, in getCard  
> File “anki\collection.py”, line 693, in log  
> PermissionError: [Errno 13] Permission denied

---

<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:** [August 19, 2020, 3:55am UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/6 "2020-08-19T03:55:16Z")

</div>

It’s possible they are related.

---

<div class="post-metadata">

**Author:** ![Aarkay](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Aarkay](https://forums.ankiweb.net/u/Aarkay)\
**Post date:** [August 19, 2020, 6:35am UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/7 "2020-08-19T06:35:30Z")

</div>

> [@dae](#):
>
> You can reproduce the problem when you disable all add-ons and restart Anki

You mean by starting Anki by holding shift key, right? I did try this right now but it’s still happening.

> [@dae](#):
>
> Is your Anki data stored on your C drive (the default), or somewhere else?

Of course it’s in C drive.

> [@dae](#):
>
> It’s possible they are related.

Just a few more things. I had installed new Windows 10 (latest version). So just that I don’t have to install all the addons in the new Windows 10, I went to windows.old folder in C drive (it’s basically all old files of your old Win10) and copied addon folder and pasted it in new profile in the new Win10. Could that create any problem? Btw as i said, I tried starting Anki by pressing shift key but the corruption problem was still there. So I don’t think it should be a problem. Also, everything was working fine for few days after I had installed new Win10 and copied addons from windows.old folder.

I guess I should delete my Anki folder altogether and re-download the collection of my profile on new Win10 and installing addons manually rather than copying them from Windows.old folder. Do you recommend that?

---

<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:** [August 19, 2020, 8:38am UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/8 "2020-08-19T08:38:08Z")

</div>

It shouldn’t matter, as you’re testing with add-ons disabled.

You don’t have any third party antivirus/anti-malware/etc software running on your machine? Is there some sort of pattern to when the issues occur?

---

<div class="post-metadata">

**Author:** ![Aarkay](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Aarkay](https://forums.ankiweb.net/u/Aarkay)\
**Post date:** [August 19, 2020, 10:01am UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/9 "2020-08-19T10:01:12Z")

</div>

> [@dae](#):
>
> You don’t have any third party antivirus/anti-malware/etc software running on your machine?

Yes, I have Kaspersky. I tried to pause it and then see if problem still there. Unfortunately, it’s still there!!!

> [@dae](#):
>
> Is there some sort of pattern to when the issues occur?

Talking about pattern, I don’t think I can see any specific pattern for this problem. But yes, yestardy or day before yestardy ( can’t remember), Anki randomly started giving error messages for one or two addons, including Image occlusion. I deleted the first addon which gave error as it wasn’t important anyways. But agiain same sort of error came for image occlusion, but I didn’t delete it as it’s important. I think the other post of mine which you merged here is surely connected with this problem.

I think i should delete Anki + its collection and try Anki 2.1.26 alternative just to see if problem still there. I’ll let you know in few hours.

---

<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:** [August 19, 2020, 10:24am UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/10 "2020-08-19T10:24:30Z")

</div>

Unfortunately “pause” may not be enough - an unrelated issue, but the same comments about AV programs apply: [https://faqs.ankiweb.net/error-establishing-a-secure-connection-when-syncing.html](https://faqs.ankiweb.net/error-establishing-a-secure-connection-when-syncing.html)

---

<div class="post-metadata">

**Author:** ![Aarkay](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Aarkay](https://forums.ankiweb.net/u/Aarkay)\
**Post date:** [August 19, 2020, 11:55am UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/11 "2020-08-19T11:55:50Z")

</div>

Hi, @dae I just uninstalled Anki and delete Anki collection folder. Then I installed Anki 2.1.26 alternative. Surprisingly, the problem of corrupt media is gone!!! I don’t have any addon as it’s a fresh insallation altogether. So i guess it was in fact some addon problem? god knows.

I want to upgrade Anki to 2.1.30 but I suspect it might just come back! What do you recommend? Should I keep using 2.1.26 alternative till next Anki update?

---

<div class="post-metadata">

**Author:** ![Aarkay](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Aarkay](https://forums.ankiweb.net/u/Aarkay)\
**Post date:** [August 19, 2020, 12:02pm UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/12 "2020-08-19T12:02:03Z")

</div>

Btw I had received this message when i first insalled the fresh Anki .26 alternative copy. But it didn’t come back ever.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/7/74ec9af2ffca6344cc2a9ea89765b53973190e69.png)

---

<div class="post-metadata">

**Author:** ![kelciour](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kelciour/32/14770_2.png) [@kelciour](https://forums.ankiweb.net/u/kelciour)\
**Post date:** [August 19, 2020, 12:33pm UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/13 "2020-08-19T12:33:45Z")

</div>

Maybe it’ll be all for nothing, but if it happens again, i.e.

> File “anki\collection.py”, line 693, in log  
> PermissionError: [Errno 13] Permission denied

and you feel a bit adventurous, download Process Explorer and use Find \> Find Handle or DLL… (Ctrl+F) to search for `collection.log`.

> **[Process Explorer - Sysinternals](https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer)**
>
> Find out what files, registry keys and other objects processes have open, which DLLs they have loaded, and more.

---

<div class="post-metadata">

**Author:** ![Aarkay](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Aarkay](https://forums.ankiweb.net/u/Aarkay)\
**Post date:** [August 19, 2020, 1:01pm UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/14 "2020-08-19T13:01:41Z")

</div>

Thanks!!! It’s really helpful!

---

<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:** [August 20, 2020, 5:09am UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/15 "2020-08-20T05:09:37Z")

</div>

This is not a widespread issues as far as I’m aware. You can always downgrade again, so I suggest you update and see if it comes back.

---

<div class="post-metadata">

**Author:** ![Aarkay](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Aarkay](https://forums.ankiweb.net/u/Aarkay)\
**Post date:** [August 20, 2020, 7:13am UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/16 "2020-08-20T07:13:26Z")

</div>

I upgrade to 2.1.30 standard and the problem isn’t there anymore. Moreover, I’ve all the previous addons.

---

<div class="post-metadata">

**Author:** ![Aarkay](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Aarkay](https://forums.ankiweb.net/u/Aarkay)\
**Post date:** [August 20, 2020, 8:03am UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/17 "2020-08-20T08:03:54Z")

</div>

Anki is giving this error sometimes when i search for something. However, this error only comes when there’s nothing in the search result. Also, this doesn’t happen everytime there’s no search result, just sometimes.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/a/a3f9bf396cb898deb955f1e75582a04c40da2678.png)

---

<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:** [August 21, 2020, 12:18am UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/18 "2020-08-21T00:18:11Z")

</div>

I’d expect that to only arise from certain search strings. Can you give me an example search that causes that error? I presume this is happening with 2.1.30, and happens with add-ons disabled?

---

<div class="post-metadata">

**Author:** ![Aarkay](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@Aarkay](https://forums.ankiweb.net/u/Aarkay)\
**Post date:** [August 24, 2020, 4:23pm UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/19 "2020-08-24T16:23:17Z")

</div>

Sorry for being late as this error is rare, but still exist so it took time for me to catch it. So, today it again appeared. As you can see in the search bar the I searched for “_Basic exchange and_” and this is when the error came, but I again searched w “_Basic exchange_” then the error didn’t appear and located the correct card. This error is, as I said, rare maybe because I don’t use search bar very often. Just to not confuse you, the previous screenshot of the same error belong to different phrase not “Basic exchange and”. Also, the last screenshot of this error was from **2.1.30** and today’s screenshot belongs to **2.0.31**. And no, I haven’t yet tried disabling addon and check the error as I didn’t know which search generated this error, but now I know phrase which generates this error, so I can try disabling addon and se if it’s still there. But you think addons could create this problem? I just have 7-8 addons. And btw, it’s a minor issue that don’t make any difference and just wanted to let you know about this just in case someone else report this or for Anki’s future developments. I hope you don’t get bothered by reporting of this minor issues.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/b/b00a59526ac5366c0dcbfe34ef6824ec51301349.png)

---

<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:** [August 25, 2020, 3:36am UTC](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424/20 "2020-08-25T03:36:47Z")

</div>

‘and’ is a special word in Anki, and it expects something to come before and after it. The error message should be improved, but the root cause is your search.

[Next page](https://forums.ankiweb.net/t/is-it-only-me-anki-giving-corrupt-collection-error/2424.md?page=2)
