Dear Anki Community Members,
I’m facing a critical issue with my Anki database that started after a syncing operation between my computer and mobile device. Now, neither the desktop nor the mobile version of Anki works properly. I’m really anxious about the data loss and urgent need to fix this problem. Here are the details:
The error began after I used the “Synching” feature(A synchronization software on PC ) to sync my Anki data between my computer and phone. Everything was working fine until one sync attempt, after which this error popped up, and since then, my entire database has been corrupted. Both my computer and phone can’t open Anki without showing this error.
I’ve tried the basic troubleshooting steps like restarting Anki, restarting my computer, and even reinstalling Anki, but none of these worked. I also attempted to use the “Check Database” tool within Anki, but it seems the damage is too severe for it to repair. I’m particularly concerned about the media files in my database, as I’m not sure how to recover or fix them.
Below is the error code I’m getting:
Anki 25.02 (038d85b1) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.26100
Traceback (most recent call last):
File “aqt.sync”, line 111, in on_future_done
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.sync”, line 130, in
File “anki.collection”, line 1147, in sync_collection
File “anki._backend_generated”, line 104, in sync_collection
File “anki._backend”, line 172, in _run_command
anki.errors.DBError: DbError { info: “SqliteFailure(Error { code: DatabaseCorrupt, extended_code: 779 }, Some("database disk image is malformed"))”, kind: Other }
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "aqt.taskman", line 144, in _on_closures_pending
File "aqt.taskman", line 88, in <lambda>
File "aqt.taskman", line 108, in wrapped_done
File "aqt.sync", line 114, in on_future_done
File "aqt.main", line 1105, in on_collection_sync_finished
File "_aqt.hooks", line 5038, in __call__
File "C:\Users\Robin\AppData\Roaming\Anki2\addons21\759844606\sync_hook.py", line 100, in <lambda>
sync_did_finish.append(lambda: auto_reschedule(local_rids, texts))
File "C:\Users\Robin\AppData\Roaming\Anki2\addons21\759844606\sync_hook.py", line 55, in auto_reschedule
texts.append(fut.result())
File "concurrent.futures._base", line 446, in result
File "concurrent.futures._base", line 391, in __get_result
File "concurrent.futures.thread", line 58, in run
File "C:\Users\Robin\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.py", line 262, in <lambda>
lambda: reschedule_background(
File "C:\Users\Robin\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.py", line 287, in reschedule_background
fsrs = FSRS()
File "C:\Users\Robin\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.py", line 59, in __init__
self.tod
I would greatly appreciate any guidance or suggestions on how to fix this issue. I’m not very experienced with database repairs, so detailed instructions would be extremely helpful.
Thank you all for your time and assistance. I’m really hoping someone can help me recover my Anki data.
Best regards,
Robin
亲爱的 Anki 社区成员们:
我在使用 Anki 的同步功能后遇到了一个严重的问题,现在电脑端和手机端的 Anki 都无法正常使用了。我对数据丢失非常焦虑,急需解决这个问题。以下是详细情况:
这个问题始于我使用 “同步” 功能在电脑和手机之间同步 Anki 数据。在一次同步操作后,这个错误就出现了,从那以后,我的整个数据库就损坏了。无论是电脑还是手机,打开 Anki 时都会显示这个错误。
我尝试了基本的故障排除步骤,比如重启 Anki、重启电脑,甚至重新安装 Anki,但都没有解决问题。我还尝试使用 Anki 内置的 “检查数据库” 工具,但似乎损坏过于严重,无法修复。我对数据库中的媒体文件特别担心,因为我不确定如何恢复或修复它们。
以下是错误代码:
我非常希望有人能给我一些指导或建议来解决这个问题。我对数据库修复不是很熟悉,所以详细的说明将非常有帮助。
感谢大家抽出时间提供帮助,我真心希望有人能帮我恢复 Anki 数据。