OCP\Files\NotFoundException error after login

Nextcloud version: 13.0.12.1
Operating system and version: CentOS release 6.7 (Final)
Apache version: Apache 2 powered CentOS

PHP

Version : 5.6.30
Limite de mémoire : 128 MB
Temps d’exécution maximal : 3600
Taille de téléversement maximale : 400 MB

Base de données

Type : mysql
Version : 5.5.39

Steps to replicate it:

  1. Login with AD account

The output of my Nextcloud log in Admin > Logging:

Error	index	OCP\Files\NotFoundException: 

    **sensitive information**/nextcloud/apps/files/lib/Controller/ViewController.php - line 131: OC_Helper getStorageInfo('/', false)
    **sensitive information**/nextcloud/apps/files/lib/Controller/ViewController.php - line 160: OCA\Files\Controller\ViewController->getStorageInfo()
    [internal function] OCA\Files\Controller\ViewController->index('', '', NULL, false)
    **sensitive information**/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 161: call_user_func_array(Array, Array)
    **sensitive information**/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 91: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files\Controller\ViewController), 'index')
    **sensitive information**/nextcloud/lib/private/AppFramework/App.php - line 115: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files\Controller\ViewController), 'index')
    **sensitive information**/nextcloud/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)
    **sensitive information**/nextcloud/lib/private/Route/Router.php - line 297: call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
    **sensitive information**/nextcloud/lib/base.php - line 999: OC\Route\Router->match('/apps/files/')
    **sensitive information**/nextcloud/index.php - line 42: OC handleRequest()
    {main}

The output of your config.php file :

<?php
$CONFIG = array (
  'instanceid' => '**sensitive information**',
  'passwordsalt' => '**sensitive information**',
  'trusted_domains' =>
  array (
    0 => '**sensitive information**',
    1 => '**sensitive information**',
  ),
  'datadirectory' => '**sensitive information**/data',
  'dbtype' => 'mysql',
  'version' => '13.0.12.1',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_u',
  'dbpassword' => **sensitive information**
  'installed' => true,
  'ldapIgnoreNamingRules' => false,
  'ldapTLS' => false,
  'forcessl' => true,
  'logfile' => 'nextcloud_debug.log',
  'loglevel' => 3,
  'maintenance' => false,
  'theme' => '',
  'secret' => '**sensitive information**',
  'trashbin_retention_obligation' => '30, 90',
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'default_language' => 'fr',
  'log_rotate_size' => 104857600,
  'log_authfailip' => true,
  'logtimezone' => 'Europe/Paris',
  'logdateformat' => 'Y-m-d H:i:s',
  'preview_max_scale_factor' => 10,
  'preview_max_x' => NULL,
  'preview_max_y' => NULL,
  'overwrite.cli.url' => '**sensitive information**',
);

When a user attempts to connect with their AD credentials, nextcloud returns an internal error (see above).
This problem appeared with an other :

Error	core	**id_users** is not a valid user anymore

Please I checked everything and I don’t understand where is the problem

PHP 5.6 is pretty outdated. You should upgrade at least to PHP 7.0, better 7.3. Ok for NC 13 it may be alright. But NC 13 is also outdated.

1 Like

I know but this error appears randomly. For example, no problem with local accounts, all problems appear when logging in through LDAP accounts

I had an issue on Github about this. It was closed eventually although there was no definite fix, so it must have been resolved in one of the NC updates by the time NC 16 was released.

I also see other errors in my log which I believe are related but that has not been resolved:

Either way, I’m confident that there are no real problems, just Nextcloud getting confused when it comes to certain users’ avatars. I don’t worry about it.

I recommend taking @eehmke’s advice but with a slight modification: Only use PHP 7.2 or 7.3 because 7.0 is already end of life, and 7.1 is almost there. Also use NC 15 or later, same reason: https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule :slight_smile:

1 Like