Upgrade to 27.0.1: Error Groupfolders - Undefined constant Application::APP_ID

Problem
After upgrading to version 27.0.1 from 26.0.4 I get an error when I see the files overview saying something like this folder is unavailable - check logs or contact administrator. When i visit administration settings I get an internal server error. You see the error from the log below. Any idea how to fix it?

Nextcloud: 27.0.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04.2 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52 (Ubuntu)
PHP version (eg, 7.4): PHP 8.1.2-1ubuntu2.13

{
    "reqId": "J7Pmnhvk8UTBw16HeRRB",
    "level": 3,
    "time": "2023-07-24T17:40:38+00:00",
    "remoteAddr": "37.97.28.204",
    "user": "admin",
    "app": "index",
    "method": "GET",
    "url": "/settings/admin/overview",
    "message": "Undefined constant OCA\\GroupFolders\\AppInfo\\Application::APP_ID in file '/var/www/html/apps/groupfolders/lib/Settings/Section.php' line 41",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0 Unique/100.7.4796.97",
    "version": "27.0.1.2",
    "exception": {
        "Exception": "Exception",
        "Message": "Undefined constant OCA\\GroupFolders\\AppInfo\\Application::APP_ID in file '/var/www/html/apps/groupfolders/lib/Settings/Section.php' line 41",
        "Code": 0,
        "Trace": [{
                "file": "/var/www/html/lib/private/AppFramework/App.php",
                "line": 183,
                "function": "dispatch",
                "class": "OC\\AppFramework\\Http\\Dispatcher",
                "type": "->"
            }, {
                "file": "/var/www/html/lib/private/Route/Router.php",
                "line": 315,
                "function": "main",
                "class": "OC\\AppFramework\\App",
                "type": "::"
            }, {
                "file": "/var/www/html/lib/base.php",
                "line": 1071,
                "function": "match",
                "class": "OC\\Route\\Router",
                "type": "->"
            }, {
                "file": "/var/www/html/index.php",
                "line": 36,
                "function": "handleRequest",
                "class": "OC",
                "type": "::"
            }
        ],
        "File": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
        "Line": 169,
        "Previous": {
            "Exception": "Error",
            "Message": "Undefined constant OCA\\GroupFolders\\AppInfo\\Application::APP_ID",
            "Code": 0,
            "Trace": [{
                    "file": "/var/www/html/lib/private/Settings/Manager.php",
                    "line": 136,
                    "function": "getID",
                    "class": "OCA\\GroupFolders\\Settings\\Section",
                    "type": "->"
                }, {
                    "file": "/var/www/html/lib/private/Settings/Manager.php",
                    "line": 242,
                    "function": "getSections",
                    "class": "OC\\Settings\\Manager",
                    "type": "->"
                }, {
                    "file": "/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php",
                    "line": 116,
                    "function": "getAdminSections",
                    "class": "OC\\Settings\\Manager",
                    "type": "->"
                }, {
                    "file": "/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php",
                    "line": 67,
                    "function": "formatAdminSections",
                    "class": "OCA\\Settings\\Controller\\AdminSettingsController",
                    "type": "->"
                }, {
                    "file": "/var/www/html/apps/settings/lib/Controller/CommonSettingsTrait.php",
                    "line": 148,
                    "function": "getNavigationParameters",
                    "class": "OCA\\Settings\\Controller\\AdminSettingsController",
                    "type": "->"
                }, {
                    "file": "/var/www/html/apps/settings/lib/Controller/AdminSettingsController.php",
                    "line": 68,
                    "function": "getIndexResponse",
                    "class": "OCA\\Settings\\Controller\\AdminSettingsController",
                    "type": "->"
                }, {
                    "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
                    "line": 230,
                    "function": "index",
                    "class": "OCA\\Settings\\Controller\\AdminSettingsController",
                    "type": "->"
                }, {
                    "file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
                    "line": 137,
                    "function": "executeController",
                    "class": "OC\\AppFramework\\Http\\Dispatcher",
                    "type": "->"
                }, {
                    "file": "/var/www/html/lib/private/AppFramework/App.php",
                    "line": 183,
                    "function": "dispatch",
                    "class": "OC\\AppFramework\\Http\\Dispatcher",
                    "type": "->"
                }, {
                    "file": "/var/www/html/lib/private/Route/Router.php",
                    "line": 315,
                    "function": "main",
                    "class": "OC\\AppFramework\\App",
                    "type": "::"
                }, {
                    "file": "/var/www/html/lib/base.php",
                    "line": 1071,
                    "function": "match",
                    "class": "OC\\Route\\Router",
                    "type": "->"
                }, {
                    "file": "/var/www/html/index.php",
                    "line": 36,
                    "function": "handleRequest",
                    "class": "OC",
                    "type": "::"
                }
            ],
            "File": "/var/www/html/apps/groupfolders/lib/Settings/Section.php",
            "Line": 41
        },
        "CustomMessage": "--"
    }
}

Yesterday - the system suddenly worked again. I have tried running some occ commands, updating ubuntu and rebooting. I am not sure what helped

However I now have this error in the log:


[core] Fejl: TypeError: OCA\GroupFolders\ACL\ACLManagerFactory::getACLManager(): Argument #1 ($user) must be of type OCP\IUser, null given, called in /var/www/html/apps/groupfolders/lib/Mount/MountProvider.php on line 206 at <<closure>>

0. /var/www/html/apps/groupfolders/lib/Mount/MountProvider.php line 206
   OCA\GroupFolders\ACL\ACLManagerFactory->getACLManager()
1. /var/www/html/apps/groupfolders/lib/Versions/VersionsBackend.php line 172
   OCA\GroupFolders\Mount\MountProvider->getMount()
2. /var/www/html/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php line 68
   OCA\GroupFolders\Versions\VersionsBackend->getAllVersionedFiles()
3. /var/www/html/apps/groupfolders/lib/Versions/GroupVersionsExpireManager.php line 59
   OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireFolder()
4. /var/www/html/apps/groupfolders/lib/BackgroundJob/ExpireGroupVersions.php line 43
   OCA\GroupFolders\Versions\GroupVersionsExpireManager->expireAll()
5. /var/www/html/lib/public/BackgroundJob/Job.php line 86
   OCA\GroupFolders\BackgroundJob\ExpireGroupVersions->run()
6. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 103
   OCP\BackgroundJob\Job->start()
7. /var/www/html/lib/public/BackgroundJob/TimedJob.php line 93
   OCP\BackgroundJob\TimedJob->start()
8. /var/www/html/cron.php line 152
   OCP\BackgroundJob\TimedJob->execute()

at 2023-07-27T06:06:02+00:00

Any idea what is causing it?

you think of this - had the same