Tables corrupted after MySQL crash ... #5542

Closed
opened 2026-02-05 10:09:38 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @DoctorRetromaker on GitHub (Dec 10, 2025).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

After a MySQL crash, tables permission_role and role_permissions got corrupted ... I tried to detach and re-attach the tablespace -some times, this correct the error if the problem is in the catalogues area-.

Not the case, both tables are corrupted for MySQL. Dropped and recreated let BookStack restart again, but not in a correct way; maintenance button doesn't appear, and accesing shelves or books areas end with a an unknown error occurred.

Any help on restoring correct values for those tables?

Exact BookStack Version

last? .. no way to access to Settings ....

Log Content

no log entries ...

Hosting Environment

Synology NAS DSM 7.3
BookStack Linuxserver.io Docker
MySQL CE 9.0.5-1

Originally created by @DoctorRetromaker on GitHub (Dec 10, 2025). ### Attempted Debugging - [x] I have read the debugging page ### Searched GitHub Issues - [x] I have searched GitHub for the issue. ### Describe the Scenario After a MySQL crash, tables `permission_role` and `role_permissions` got corrupted ... I tried to detach and re-attach the tablespace -some times, this correct the error if the problem is in the catalogues area-. Not the case, both tables are corrupted for MySQL. Dropped and recreated let BookStack restart again, but not in a correct way; `maintenance` button doesn't appear, and accesing shelves or books areas end with a `an unknown error occurred`. Any help on restoring correct values for those tables? ### Exact BookStack Version last? .. no way to access to Settings .... ### Log Content ```text no log entries ... ``` ### Hosting Environment Synology NAS DSM 7.3 BookStack Linuxserver.io Docker MySQL CE 9.0.5-1
OVERLORD added the 🐕 Support label 2026-02-05 10:09:38 +03:00
Author
Owner

@DoctorRetromaker commented on GitHub (Dec 11, 2025):

Just found a full MySQL dump and recovered both tables; just deleted the corrupted and loaded the old ones.

App is running correctly again.

@DoctorRetromaker commented on GitHub (Dec 11, 2025): Just found a full MySQL dump and recovered both tables; just deleted the corrupted and loaded the old ones. App is running correctly again.
Author
Owner

@ssddanbrown commented on GitHub (Dec 15, 2025):

Glad that you were able to recover those tables!
Rare to see MySQL curruption scenarios although docker-based environments do seem more susceptible to them.

@ssddanbrown commented on GitHub (Dec 15, 2025): Glad that you were able to recover those tables! Rare to see MySQL curruption scenarios although docker-based environments do seem more susceptible to them.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5542