Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database disk image is malformed after the computer shuts down unexpectedly #11686

Open
shenzhigang opened this issue Jan 20, 2025 · 1 comment
Labels
bug It's a bug

Comments

@shenzhigang
Copy link

shenzhigang commented Jan 20, 2025

Operating system

macOS

Joplin version

3.2.11

Desktop version info

15.2

Current behaviour

Image

Expected behaviour

No response

Logs

An error occurred: Fatal error:

Error: SQLITE_CORRUPT: database disk image is malformed: CREATE TABLE folders (id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL);

Error: Error: SQLITE_CORRUPT: database disk image is malformed: CREATE TABLE folders (id TEXT PRIMARY KEY, title TEXT NOT NULL DEFAULT "", created_time INT NOT NULL, updated_time INT NOT NULL);
at DatabaseDriverNode.sqliteErrorToJsError (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/database-driver-node.js:23:18)
at JoplinDatabase.sqliteErrorToJsError (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/database.js:27:30)
at JoplinDatabase.tryCall (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/database.js:130:32)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async JoplinDatabase.transactionExecBatch (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/database.js:184:17)
at async JoplinDatabase.upgradeDatabase (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/JoplinDatabase.js:814:17)
at async JoplinDatabase.initialize (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/JoplinDatabase.js:886:28)
at async Application.start (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/@joplin/lib/BaseApplication.js:660:9)
at async Application.start (/Applications/Joplin.app/Contents/Resources/app.asar/app.js:365:16)
at async main (file:///Applications/Joplin.app/Contents/Resources/app.asar/main-html.js:119:22)
@shenzhigang shenzhigang added the bug It's a bug label Jan 20, 2025
@laurent22
Copy link
Owner

That cannot be recovered from, so you'll need to recover from backup.

Note also that if you have the Backup plugin enabled, your data is saved to ~/JoplinBackup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug
Projects
None yet
Development

No branches or pull requests

2 participants