-
Notifications
You must be signed in to change notification settings - Fork 73
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
Error when updating to 30.0.2: Foreign key constraint is incorrectly formed #3778
Comments
have you tried |
@dartcafe Yes, I tried that, but with no results. The error still exists. |
That makes no sense. Either the error message is misleading or something else exists inside the database, preventing the action. Is there any stack trace of the error? What confuses me, is that the creation of the comments table is reported to be failing. This leads to the conclusion, that it does not exist. An export of the table definitions could help. |
This comment has been minimized.
This comment has been minimized.
There is no hint inside the table structure, which may help to analyze the error. I need more details about the error line, to get an idea, what is wrong. It seems the error does not describe a failure on creating the table but attaching the fk. There should be more information within the printed error which names the failing fk structure. |
OK, now I got an error, when I try to use
|
I have no idea, what resides inside your database, but these error messages still make no sense to me, since this seems no wide spread problem. Please try to wipe all polls related tables and information (you can do this with I recommend the following steps:
|
What went wrong, what did you observe?
When I updated to NC 30.0.2, I got a problem updating polls.
nextcloud
.oc_polls_comments
(errno: 150 "Foreign key constraint is incorrectly formed")I first tried to disable polls, delete the tables oc_polls_*, restore them from backup an re-enabled polls, but the problem persists.
What did you expect, how polls should behave instead?
No error message when the upgrade-command is executed
What steps does it need to replay this bug?
Installation method
Installed/updated from the appstore (Apps section of your site)
Installation type
Updated from previous major version (i.e. 3.x.x to 4.x.x)
Affected polls version
7.2.4
Which browser did you use, when experiencing the bug?
Other browser
No response
Add your browser log here
Additional client environment information
No response
NC version
Nextcloud 30
Other Nextcloud version
No response
PHP engine version
PHP 8.3
Other PHP version
No response
Database engine
MariaDB
Database Engine version or other Database
10.5.8
Which user-backends are you using?
Add your nextcloud server log here
no logs for polls found
Additional environment informations
No response
Configuration report
List of activated Apps
Nextcloud Signing status
Additional Information
No response
The text was updated successfully, but these errors were encountered: