# Closing desktop app

**URL:** <https://forums.ankiweb.net/t/closing-desktop-app/5053>\
**Category:** Help\
**Created:** [November 12, 2020, 9:10pm UTC](https://forums.ankiweb.net/t/closing-desktop-app/5053 "2020-11-12T21:10:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cindys](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@cindys](https://forums.ankiweb.net/u/cindys)\
**Post date:** [November 12, 2020, 9:10pm UTC](https://forums.ankiweb.net/t/closing-desktop-app/5053/1 "2020-11-12T21:10:48Z")

</div>

I was trying to close the desktop app and this is what happened:

Error  
An error occurred. Please use Tools \> Check Database to see if that fixes the problem.  
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.  
Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2  
Platform: Mac 10.15.7  
Flags: frz=True ao=False sv=?  
Add-ons, last update check: 2020-11-12 15:30:56

Caught exception:  
Traceback (most recent call last):  
File “aqt/main.py”, line 1016, in closeEvent  
File “aqt/main.py”, line 462, in unloadProfileAndExit  
File “aqt/main.py”, line 439, in unloadProfile  
File “aqt/main.py”, line 548, in unloadCollection  
File “aqt/main.py”, line 812, in closeAllWindows  
File “aqt/ **init**.py”, line 118, in closeAll  
File “aqt/main.py”, line 546, in before\_sync  
File “aqt/main.py”, line 924, in maybe\_auto\_sync\_on\_open\_close  
File “aqt/main.py”, line 542, in after\_sync  
File “aqt/mediasync.py”, line 129, in show\_diag\_until\_finished  
File “aqt/main.py”, line 539, in after\_media\_sync  
File “aqt/main.py”, line 435, in callback  
File “aqt/main.py”, line 444, in \_unloadProfile  
File “aqt/profiles.py”, line 270, in save  
File “anki/db.py”, line 47, in execute  
sqlite3.OperationalError: attempt to write a readonly database

---

<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:** [November 14, 2020, 12:33am UTC](https://forums.ankiweb.net/t/closing-desktop-app/5053/2 "2020-11-14T00:33:55Z")

</div>

Please follow the steps on [https://faqs.ankiweb.net/when-problems-occur.html](https://faqs.ankiweb.net/when-problems-occur.html)

---

<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:23am UTC](https://forums.ankiweb.net/t/closing-desktop-app/5053/3 "2023-05-01T05:23:24Z")

</div>


