# DatabaseError : (sqlite3.DatabaseError) database disk image is malformed

**URL:** <https://discourse.jupyter.org/t/databaseerror-sqlite3-databaseerror-database-disk-image-is-malformed/15584>\
**Category:** JupyterHub\
**Tags:** community, help-wanted\
**Created:** [September 1, 2022, 9:06am UTC](https://discourse.jupyter.org/t/databaseerror-sqlite3-databaseerror-database-disk-image-is-malformed/15584 "2022-09-01T09:06:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhichen\_xu](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/zhichen_xu/32/7818_2.png) [@zhichen\_xu](https://discourse.jupyter.org/u/zhichen_xu)\
**Post date:** [September 1, 2022, 9:06am UTC](https://discourse.jupyter.org/t/databaseerror-sqlite3-databaseerror-database-disk-image-is-malformed/15584/1 "2022-09-01T09:06:26Z")

</div>

Hi,  
I’m running Jupyterhub on K8s cluster . but the pod the hub get staus:CrashLoopBackOff  
the logs of hub is

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/2X/5/5f74a5a382067af33fad6199f20d0d90aee3a7b9.png)

how should i fix it？thanks very much！

---

<div class="post-metadata">

**Author:** ![minrk](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/minrk/32/13_2.png) [@minrk](https://discourse.jupyter.org/u/minrk)\
**Post date:** [September 1, 2022, 11:52am UTC](https://discourse.jupyter.org/t/databaseerror-sqlite3-databaseerror-database-disk-image-is-malformed/15584/2 "2022-09-01T11:52:14Z")

</div>

That looks like your sqlite database file is corrupted. I think you have to remove it (`rm jupyterhub.sqlite`) and try starting clean.

I’ve never encountered this personally. What kind of disk is it on? Is it mounted from somewhere remote like NFS?
