TypeError: Argument 3 passed to OCA\Files\Service\TagService::__construct() must be an instance of OCP\ITags, null given, called in /var/www/nextcloud/apps/files/lib/AppInfo/Application.php on line 84

I am getting this error now on a regular basis:

[index] Error: TypeError: Argument 3 passed to OCA\Files\Service\TagService::__construct() must be an instance of OCP\ITags, null given, called in /var/www/nextcloud/apps/files/lib/AppInfo/Application.php on line 84 at <>

  1. /var/www/nextcloud/apps/files/lib/AppInfo/Application.php line 84
    OCA\Files\Service\TagService->__construct(OC\User\Session {}, OC\Activity\Manager {}, null, null, OC\EventDispatcher\SymfonyAdapter {})
  2. /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php line 118
    OCA\Files\AppInfo\Application->OCA\Files\AppInfo{closure}("*** sensitive parameters replaced ***")
  3. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 113
    Pimple\Container->offsetGet(“TagService”)
  4. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 408
    OC\AppFramework\Utility\SimpleContainer->query(“TagService”)
  5. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 386
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback(“TagService”)
  6. /var/www/nextcloud/apps/files/lib/AppInfo/Application.php line 66
    OC\AppFramework\DependencyInjection\DIContainer->query(“TagService”)
  7. /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php line 118
    OCA\Files\AppInfo\Application->OCA\Files\AppInfo{closure}("*** sensitive parameters replaced ***")
  8. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 113
    Pimple\Container->offsetGet(“APIController”)
  9. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 408
    OC\AppFramework\Utility\SimpleContainer->query(“APIController”)
  10. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 386
    OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback(“APIController”)
  11. /var/www/nextcloud/lib/private/AppFramework/App.php line 98
    OC\AppFramework\DependencyInjection\DIContainer->query(“APIController”)
  12. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php line 47
    OC\AppFramework\App::main(“APIController”, “getRecentFiles”, “*** sensitive parameter replaced ***”, {_route: “files.API.getRecentFiles”})
  13. <>
    OC\AppFramework\Routing\RouteActionHandler->__invoke({_route: “files.API.getRecentFiles”})
  14. /var/www/nextcloud/lib/private/Route/Router.php line 299
    call_user_func(OC\AppFramework\ … {}, {_route: “files.API.getRecentFiles”})
  15. /var/www/nextcloud/lib/base.php line 1008
    OC\Route\Router->match("/apps/files/api/v1/recent")
  16. /var/www/nextcloud/index.php line 38
    OC::handleRequest()

GET /index.php/apps/files/api/v1/recent
from 172.24.16.100 at 2020-05-07T13:32:17+00:100:

Thought it might clear after i upgraded to NC 18.04, but it did not.

got same issue with Nextcloud 21.0.2

As i can see there is no answer, it means either fool error or no one knows a solution?

As i see at Argument 3 passed to OCA\\\\Files\\\\Service\\\\TagService::__construct() must be an instance of OCP\\\\ITags - server this problem is still unsolved. No hotfix or workaround present?

I also got the same issue with nextcloud 22.2.0. It seems to pop up now and then… no ideas?