Nextcloud 25.0.4, Forms update lead to corrupt database

Nextcloud version: 25.0.4
Operating system and version:
Apache or nginx version:
PHP version: 8.0

The issue you are facing: After running automatic update for forms app, the database got corrupted. The updated ended with the following error message:

Update to 25.0.4
Exception: Database error when running migration 030100Date20230202175747 for app forms An exception occurred while executing a query: SQLSTATE[HY000]: General error: 11 malformed database schema (forms_forms_created) - no such table: main.oc_forms_v2_forms
Detailed logs
Preparing update
Set log level to debug
Turned on maintenance mode
Repair step: Repair MySQL collation
Repair info: Not a mysql database -> nothing to do
Repair step: Repair SQLite autoincrement
Repair step: Copy data from accounts table when migrating from ownCloud
Repair step: Drop account terms table when migrating from ownCloud
Updating database schema
Updated database
Exception: Database error when running migration 030100Date20230202175747 for app forms An exception occurred while executing a query: SQLSTATE[HY000]: General error: 11 malformed database schema (forms_forms_created) - no such table: main.o_forms_v2_forms

Is this the first time you’ve seen this error?: Y

Steps to replicate it:

  1. run forms update

Can’t access logs right now. Could provide a nextcloud.log via dm if needed.

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

PASTE HERE

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

Please file a bug report: GitHub - nextcloud/forms: 📝 Simple form & survey app for Nextcloud

And please fill all information requested in the template so that we can investigate the problem

Turns out to be [Bug]: Form 2 SQL · Issue #1549 · nextcloud/forms · GitHub

1 Like

I added a possible workaround to the Github issue that you could try before installing the update again