-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
SQLITE_CONSTRAINT: FOREIGN KEY constraint failed #3761
Comments
Please do not use the deprecated json backup feature. If your previous data is missing after updating to |
Change to |
We are clearing up our old issues and your ticket has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 2 days. |
This issue was closed because it has been stalled for 2 days with no activity. |
hello, now getting error
thanks |
What did you do precicely? |
what i did is i exported the config, copy pasted one of the monitors' json, replaced the ID-s (+1 to the highest ID) and imported back with override option selected. then it started to complain about foreign keys. tried to import the original json, still same complaint, then wiped the databases, still same complaint about foreign keys |
what i did now, i deleted the
|
Sorry to say, but the backup functionality is deprecated for a reason. Given that you deleted the db, there is nothing that can be fixed. Things like groups, status pages, maintenances or the grpc monitor never got fully adopted into that feature. If you want to import existing data sources of monitors, please use a third party tooling like AutoKuma or https://uptime-kuma-api.readthedocs.io/ instead |
thanks for the links, this will be indeed useful. ended up re-creating some kafka monitors, manually adding the grpc monitors' proto-s, some postgres connection strings, but the main monitors got recovered on a blank database, which was a day saver. |
🛡️ Security Policy
Description
I saw that there was a new version so I did the described steps: https://github.com/louislam/uptime-kuma/wiki/%F0%9F%86%99-How-to-Update
But after updating everything was gone.. thankfully I made a backup right before updating. But the restore is showing this error:
👟 Reproduction steps
Restore backup after updating to latest version.
👀 Expected behavior
Restore the backup with all my monitors
😓 Actual Behavior
Error popup message that show: insert into
monitor_notification
(monitor_id
,notification_id
) values (11, '7') - SQLITE_CONSTRAINT: FOREIGN KEY constraint failed🐻 Uptime-Kuma Version
1.23.2
💻 Operating System and Arch
Portainer
🌐 Browser
Chrome
🐋 Docker Version
Latest
🟩 NodeJS Version
Latest
📝 Relevant log output
No response
The text was updated successfully, but these errors were encountered: