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

"FOREIGN KEY constraint failed" error after update #1138

Open
thomz92 opened this issue Mar 3, 2025 · 3 comments
Open

"FOREIGN KEY constraint failed" error after update #1138

thomz92 opened this issue Mar 3, 2025 · 3 comments

Comments

@thomz92
Copy link

thomz92 commented Mar 3, 2025

Description

I started FrappeBooks and notification popped up to "restart FrappeBooks to install update". I did that, and after a restart got an error that says "FOREIGN KEY constraint failed". Then it returns to the home screen.

Steps to Reproduce

I see my database listed still, but every time I click on it it gives me the same error. I'm at a standstill unfortunately until this is resolved.

Info

Error: DatabaseError: Error
FOREIGN KEY constraint failed

Stack:

Error: FOREIGN KEY constraint failed
    at client.transaction.connection (C:\Program Files\Frappe Books\resources\app.asar\node_modules\knex\lib\dialects\sqlite3\schema\ddl.js:359:21)

Version: 0.28.0
Platform: win32
Path: /index.html
Language: -

@akshayitzme
Copy link
Collaborator

@thomz92
I tried updating from v0.27 to v0.28 but couldn't catch the error. Did you upgrade from v0.27 or earlier version ?.

@thomz92
Copy link
Author

thomz92 commented Mar 4, 2025

@akshayitzme I honestly don't remember what version. I've been updating pretty much every time it prompted me, so likely v0.27 I would think?

@dakshhmehta
Copy link

I am facing same issue. Upgraded day before yesterday

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

No branches or pull requests

3 participants