NC Update to 21.0.0 beta1: Exception: Database error

Good evening Nextcloud community,

I had NC running at 20.0.3.1 on my Raspberry Pi (NGINX & MariaDB)
I decided to upgrade to NC 21.0.0 beta1 and I got an Error:

Exception: Database error when running migration latest for app core

Has someone an idea what could be wrong here?
If you need more specific information (config/logs etc.) you have to tell me how to get those information.

Thank you and stay healthy
Tim S.

Has no one an idea what could went wrong?

Database error when running migration latest for app core

so there is a database error. please provide the database exception from log.

Thanks for replying, I have a solution.

I searched for “Database error when running migration latest for app core” in my logs and found that one error was “Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes”

What I did:
go to database
use nextcloud;
set global innodb_large_prefix=on;
set global innodb_file_format=Barracuda;
and after that I did occ maintenance:repair

after that I had to run the updater 2 times and then it worked.

1 Like

it’s nice that you decided to take part in beta-testing the new version.

if you run across errors pls don’t post them on the forum but on github.