docker-nextcloud icon indicating copy to clipboard operation
docker-nextcloud copied to clipboard

Upgrade to Nextcloud Hub 10 (31.0.0) Incorrect row format found in your database

Open SckyzO opened this issue 7 months ago • 3 comments

After upgrading to Nextcloud 31.0.0, I got the following message:

Image

✅ Solution I fixed the issue by applying the following procedure:

source .env # assumed: contains MYSQL_ROOT_PASSWORD
DBCONTAINER=nextcloud-db #based on your compose.yaml
DBNAME=nextcloud #based on your compose.yaml

docker exec -i $DBCONTAINER mariadb -u root -p$MYSQL_ROOT_PASSWORD -N -e "
  SELECT CONCAT('ALTER TABLE ', TABLE_NAME, ' ROW_FORMAT=DYNAMIC;')
  FROM information_schema.tables
  WHERE table_schema = '$DBNAME' AND ROW_FORMAT != 'Dynamic';" \
| docker exec -i $DBCONTAINER mariadb -u root -p$MYSQL_ROOT_PASSWORD $DBNAME

This worked for me. Hope it helps someone else facing the same issue! 🙌

SckyzO avatar May 04 '25 21:05 SckyzO

This is indeed not a specific problem to this container image but in general for Nextcloud. It was noted already at https://help.nextcloud.com/t/upgrade-to-nextcloud-hub-10-31-0-0-incorrect-row-format-found-in-your-database/218366 and should be applied for every affected Nextcloud system.

Thanks for heads up.

waja avatar May 05 '25 08:05 waja

This is indeed not a specific problem to this container image but in general for Nextcloud. It was noted already at https://help.nextcloud.com/t/upgrade-to-nextcloud-hub-10-31-0-0-incorrect-row-format-found-in-your-database/218366 and should be applied for every affected Nextcloud system.

Thanks for heads up.

Yes, I know, it's just to help people who have this problem 😁 I'll let you close the issue if you want, it's only to trace the correction of the database

SckyzO avatar May 05 '25 09:05 SckyzO

Thanks a lot SckyzO, you saved my day after slipping into an unexpected an unconveniant error situation after updating nextcloud to 31.x on a lazy sunday afternoon.

Nightwatch2359 avatar Jun 22 '25 13:06 Nightwatch2359