# Hoping for help with DB corruption

**URL:** <https://forums.plex.tv/t/hoping-for-help-with-db-corruption/701344>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [March 17, 2021, 11:57pm UTC](https://forums.plex.tv/t/hoping-for-help-with-db-corruption/701344 "2021-03-17T23:57:31Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fly](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/fly/32/82069_2.png) [@fly](https://forums.plex.tv/u/fly)\
**Post date:** [March 17, 2021, 11:57pm UTC](https://forums.plex.tv/t/hoping-for-help-with-db-corruption/701344/1 "2021-03-17T23:57:31Z")

</div>

So I’ve been having some odd issues getting things playing with Plex. I figured I’d check on the database. It seems hosed beyond my ability to repair (but PMS is up and limping). I’ve tried the repair a corrupt db article on the db itself as well as all four of the backups. I get the following error from the integrity check. If I ignore the errors, the dump restore returns a db size of 0kb (with no errors).

Please help.

```auto
***in database main***
On tree page 18986 cell 12: Rowid 53 out of order
On tree page 18986 cell 10: Rowid 56 out of order
On tree page 18986 cell 8: Rowid 102 out of order
On tree page 18986 cell 7: Rowid 117 out of order
On tree page 18986 cell 5: Rowid 100 out of order
On tree page 18986 cell 3: Rowid 98 out of order
On tree page 18986 cell 2: Rowid 121520 out of order
Fragmentation of 2272 bytes reported as 0 on page 18986
Page 78715: btreeInitPage() returns error code 11
Page 78714: btreeInitPage() returns error code 11
Page 78713: btreeInitPage() returns error code 11
On tree page 78712 cell 10: Rowid 58 out of order
On tree page 78712 cell 9: Rowid 58 out of order
On tree page 78712 cell 7: Rowid 100 out of order
On tree page 78712 cell 4: Rowid 51 out of order
On tree page 78712 cell 2: Rowid 52 out of order
On tree page 78712 cell 1: Rowid 12814 out of order
Multiple uses for byte 3908 of page 78712
On tree page 44 cell 31: Rowid 1403 out of order
Page 72800: btreeInitPage() returns error code 11
Page 72799: btreeInitPage() returns error code 11
Page 72798: btreeInitPage() returns error code 11
Page 72246: btreeInitPage() returns error code 11
Page 72245: btreeInitPage() returns error code 11
Page 72244: btreeInitPage() returns error code 11
Page 71990: btreeInitPage() returns error code 11
Page 71989: btreeInitPage() returns error code 11
Page 71988: btreeInitPage() returns error code 11
Fragmentation of 673 bytes reported as 0 on page 71987
On tree page 71886 cell 269: Rowid 264177 out of order
Page 71957: btreeInitPage() returns error code 11
Page 71956: btreeInitPage() returns error code 11
On tree page 71955 cell 0: Rowid 105 out of order
Fragmentation of 1998 bytes reported as 0 on page 71955
On tree page 71886 cell 237: Rowid 264008 out of order
Page 71953: btreeInitPage() returns error code 11
Page 71952: btreeInitPage() returns error code 11
Fragmentation of 1333 bytes reported as 0 on page 71951
On tree page 71886 cell 233: Rowid 263980 out of order
database disk image is malformed

```

---

_[View the full topic](https://forums.plex.tv/t/hoping-for-help-with-db-corruption/701344)._
