New users cannot login

Nextcloud version: 12.0.4
Operating system and version: CentOS 7
NGINX 1.12.2
PHP version: 7.1.11

I have working installation of Nextcloud 12.0.4. Old users are working great, but if new user will login there is an error: Exception: {“Exception”:“OCP\\Files\\NotFoundException”. I am using LDAP.
I have checked permissions (new directory is created after first login), SELinux (disabled for tests) etcetera and there is still this problem. Anyone know how to fix this? Thanks

Is this the first time you’ve seen this error?: N

Steps to replicate it:

  1. Login to NC for the first time

The output of your Nextcloud log in Admin > Logging:

OCP\Files\NotFoundException: 
/var/www/apps/files/lib/Controller/ViewController.php - line 131: OC_Helper getStorageInfo('/', false)
/var/www/apps/files/lib/Controller/ViewController.php - line 160: OCA\Files\Controller\ViewController->getStorageInfo()
[internal function] OCA\Files\Controller\ViewController->index('', '', NULL, false)
/var/www/lib/private/AppFramework/Http/Dispatcher.php - line 160: call_user_func_array(Array, Array)
/var/www/lib/private/AppFramework/Http/Dispatcher.php - line 90: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files\Controller\ViewController), 'index')
/var/www/lib/private/AppFramework/App.php - line 114: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files\Controller\ViewController), 'index')
/var/www/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main('ViewController', 'index', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
/var/www/lib/private/Route/Router.php - line 299: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
/var/www/lib/base.php - line 1004: OC\Route\Router->match('/apps/files/')
/var/www/index.php - line 48: OC handleRequest()
{main}

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

<?php
$CONFIG = array (
  'instanceid' => 'ocus0ekxdgcf',
  'passwordsalt' => 'secret',
  'secret' => 'secret',
  'trusted_domains' =>
  array (
    0 => 'foo.bar.pl',
  ),
  'datadirectory' => '/var/www/data',
  'overwrite.cli.url' => 'https://foo.bar.pl',
  'dbtype' => 'mysql',
  'version' => '12.0.4.3',
  'dbname' => 'ncdb',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nc',
  'dbpassword' => 'secret',
  'installed' => true,
  'maintenance' => false,
  'forcessl' => true,
  'mail_smtpmode' => 'smtp',
  'mail_from_address' => 'foobar',
  'mail_domain' => 'foo.bar.pl,
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'foo.bar.pl',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'foo@bar.pl',
  'mail_smtppassword' => 'secret',
  'mail_smtpsecure' => 'ssl',
  'theme' => '',
  'loglevel' => 3,
  'log_rotate_size' => 104857600,
  'trashbin_retention_obligation' => 'auto',
  'updater.secret' => 'secret',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'updater.release.channel' => 'stable',
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
);
1 Like