How to solve warning about deactivation of renamed apps (e.g. groupfilders -> teamfolders) on each upgrade?

Upon each major or minor upgrade, Nextcloud warns me about that incompatible apps will become deactivated. However, those apps still exist, but have been renamed. The affected apps are the former groupfolders now teamfolders and files_accesscontrol which oddly seems still be called the same.

After the upgrade the apps are still there, have been renamed and seem to work just fine. I expected the warning to be a one-time warning (due to the renaming) and the upgrade process to handle the renaming. However, in reality the upgrade process seems to be able to get by the renaming, upgrades the apps as one would expect, but still seems to memorize the apps by their old name and the warning re-appears on every later upgrade again.

How do I fix this problem for good?

Note, I have not yet tried to uninstall the apps and reinstall them again. I assume this would probably fix the naming issue, but I feared the uninstalling the apps might delete all the settings for those apps or even the existing team folders. So I didn’t try that.

That’s the screenshot with the warning during each upgrade:

The App Control Panel shows the app by their new name

The occ app:list command still shows groupfolders:

apache@server ~/nextcloud $ php occ app:list
Enabled:
  - activity: 8.0.0
  - appstore: 2.0.0
  - bruteforcesettings: 8.0.0
  - calendar: 6.6.3
  - cloud_federation_api: 2.0.0
  - contacts: 8.9.2
  - dashboard: 8.0.0
  - dav: 2.0.0
  - federatedfilesharing: 2.0.0
  - federation: 2.0.0
  - files: 3.0.0
  - files_accesscontrol: 6.0.1
  - files_downloadlimit: 5.3.0
  - files_lock: 35.0.1
  - files_sharing: 2.0.0
  - files_trashbin: 2.0.0
  - files_versions: 2.0.0
  - groupfolders: 23.0.1
  - logreader: 8.0.0
  - lookup_server_connector: 2.0.0
  - mail: 5.12.5
  - nextcloud_announcements: 7.0.0
  - notifications: 8.0.1
  - oauth2: 2.0.0
  - office: 1.1.0
  - password_policy: 7.0.0
  - previewgenerator: 5.15.0
  - profile: 2.0.0
  - provisioning_api: 2.0.0
  - recommendations: 8.0.0
  - related_resources: 6.0.0
  - serverinfo: 7.0.0
  - settings: 2.0.0
  - sharebymail: 2.0.0
  - sharing: 1.0.4
  - support: 7.0.0
  - tasks: 0.18.1
  - text: 9.0.1
  - theming: 3.0.0
  - theming_customcss: 1.22.0
  - twofactor_backupcodes: 2.0.0
  - twofactor_totp: 17.1.0
  - updatenotification: 2.0.0
  - user_ldap: 2.0.0
  - user_status: 2.0.0
  - viewer: 8.0.0
  - webhook_listeners: 2.0.0
  - workflowengine: 3.0.0

The rename is only cosmetic; the internal app IDs remain the same. The message you’re seeing isn’t due to that.

Are you sure you’re also seeing this during minor/maintenance upgrades (not just majors)? I would only expect it during major version upgrades, for apps that have different versions/compatibility requirements. For example the Team Folders app version used for a lower major version is, in fact, incompatible with the one for next major version. Same applies to the other app mentioned.