Unable to login with iOS app or create app passwords

[/details]

Nextcloud version : 20.0.4
Operating system and version: Ubuntu 20.04.1
Apache or nginx version: 2.4.41
PHP version : 7.4

The issue you are facing:
OCP\AppFramework\QueryException: Could not resolve OCA\Talk\Activity\Setting! Class OCA\Talk\Activity\Setting does not exist

This is a new install

Is this the first time you’ve seen this error? (Y/N): Y

The output of your Nextcloud log in Admin > Logging:

/home/foldername/public_html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 126:

OC\AppFramework\Utility\SimpleContainer->resolve()

/home/foldername/public_html/nextcloud/lib/private/ServerContainer.php - line 156:

OC\AppFramework\Utility\SimpleContainer->query()

/home/foldername/public_html/nextcloud/lib/private/Activity/Manager.php - line 280:

OC\ServerContainer->query()

/home/foldername/public_html/nextcloud/lib/private/Activity/Manager.php - line 304:

OC\Activity\Manager->getSettings()

/home/foldername/public_html/nextcloud/apps/activity/lib/UserSettings.php - line 138:

OC\Activity\Manager->getSettingById()

/home/foldername/public_html/nextcloud/apps/activity/lib/UserSettings.php - line 73:

OCA\Activity\UserSettings->getDefaultFromSetting()

/home/foldername/public_html/nextcloud/apps/activity/lib/Consumer.php - line 66:

OCA\Activity\UserSettings->getUserSetting()

/home/foldername/public_html/nextcloud/lib/private/Activity/Manager.php - line 158:

OCA\Activity\Consumer->receive()

/home/foldername/public_html/nextcloud/apps/settings/lib/AppInfo/Application.php - line 160:

OC\Activity\Manager->publish()

/home/foldername/public_html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 264:

OCA\Settings\AppInfo\Application->OCA\Settings\AppInfo\{closure}("*** sensiti ... *")

/home/foldername/public_html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 239:

Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()

/home/foldername/public_html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 73:

Symfony\Component\EventDispatcher\EventDispatcher->callListeners()

/home/foldername/public_html/nextcloud/lib/private/EventDispatcher/SymfonyAdapter.php - line 85:

Symfony\Component\EventDispatcher\EventDispatcher->dispatch()

/home/foldername/public_html/nextcloud/core/Controller/ClientFlowLoginController.php - line 368:

OC\EventDispatcher\SymfonyAdapter->dispatch()

/home/foldername/public_html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:

OC\Core\Controller\ClientFlowLoginController->generateAppPassword()

/home/foldername/public_html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:

OC\AppFramework\Http\Dispatcher->executeController()

/home/foldername/public_html/nextcloud/lib/private/AppFramework/App.php - line 152:

OC\AppFramework\Http\Dispatcher->dispatch()

/home/foldername/public_html/nextcloud/lib/private/Route/Router.php - line 308:

OC\AppFramework\App::main()

/home/foldername/public_html/nextcloud/lib/base.php - line 1008:

OC\Route\Router->match()

/home/foldername/public_html/nextcloud/index.php - line 37:

OC::handleRequest()

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'xxxxxxxxxxxxxxxxxxx',
  'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => 'domain.co.uk',
  ),
  'datadirectory' => '/home/foldername/public_html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '20.0.4.0',
  'overwrite.cli.url' => 'https://domain.co.uk/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'user',
  'dbpassword' => 'xxxxxxxxxxxxxxxx',
  'installed' => true,
);

Not sure if this is related. Since the error is related to the talk app, can you disable it temporaritly and see if the login works then?

Can you manually generate app passwords and login?

Sorry to say but I gave up on Nextcloud, I installed Owncloud and it worked with no problems at all.