I have run into problem after problem when upgrading from Nextcloud 13.0.12 to 14.0.12.
Now, the update ran just fine - Until this showed up:
“The files of the app OAuth 2.0 (oauth2) were not replaced correctly. Make sure it is a version compatible with the server.”
The file is there. If I try to copy the contents and then delete it from the apps directory nothing changes.
Edit: When I tried to enable oauth2 (just for trial and error) it said that the app cannot be installed because it is not compatible with this version of the server.
Did I get stuck in the middle of nowhere because of this…?
After that, we have ssh option to modify the …/nextcloud/config/config.php
and look for
‘app_install_overwrite’ =>
array (
0 => ‘external’,
1 => ‘occweb’,
2 => ‘files_downloadactivity’,
3 => ‘admin_notifications’,
4 => ‘twofactor_yubikey’,
),
and delete anything related to oauth2
/**
* Checks an app before install whether it uses private APIs instead of the
* proper public APIs. If this is set to true it will only allow to install or
* enable apps that pass this check.
*
* Defaults to ``false``
*/
'appcodechecker' => true,
and false, just in case too
Send my an email in private message, i upload the files and send them to you, so you can manually replace them.
Got the mail, removed the old file, pasted your file. Still: The files of the app OAuth 2.0 (oauth2) were not replaced correctly. Make sure it is a version compatible with the server…
you need to decompress !
the folder oauth2 and all the subfolder/files need to be re-upload to the correct location, and you need to reapply the linux ownship and rights.
Edit: Never mind, I gave it the needed rights via the GUI of my server.
Resupply the owner rights though… How? This is a Asustor server where the Linux commands is not always what one may think…
How come I cannot deactivate the app and just carry on with my life…
The app:remove gives me :Command app:remove is not defined…
If I were to restore everything but the Data directory from backup (it is simply to big). What files do I need to restore? Or, is it not possible because of database changes made by the updater?