Upgrade to v12.0.0 fails: oauth2 can't be disabled

My RSS bot told about the final v12 release so i jumped to the console to upgrade from v11.0.3.
Unfortunally it doesn’t work:

occ verbose output

Set log level to debug
Updating database schema
Updated database
Exception: oauth2 can't be disabled.
Update failed
Maintenance mode is kept active
Reset log level

Sadly i didn’t find any more log entries about :confused:

Switch back to RC3, there you can switch it off

are you sure jumping back is safe? :no_mouth:

Please don’t disable the oauth2 app. It is meant for authentication purposes and disabling it can break stuff.

You should be able to go back to rc3, enable it then and update afterwards. Disabling the app won’t be possible in the newest build.

2 Likes

@LukasReschke Thank You for your advice!
oauth-app could be disabled in RC3…
I did it and upgraded.
…and in 12.0.0.27 it isn’t shown
So now I restore RC3, switch it on and do the upgrade again…
Thanks again!

If you have a snapshot on a vm, it is save…

Thank you, this did the trick!
Actually i didn’t have to touch oauth2 on this way. :tada:

Add this to info.xml:

Then run php occ app:enable oauth2
Then run php occ upgrade
and it works.

Add this to info.xml:

<dependencies>
	<nextcloud min-version="12" max-version="12" />
</dependencies>

Then run php occ app:enable oauth2

Then run php occ upgrade

and it works.

See: