"ghost" external storage entries that cannot be listed or removed

Hi all,

while analysing performance problem in a larger installation for a not-for-profit org I did an occ files:scan --all and see this error message:

Starting scan for user 146 out of 234 (*******)
Exception during scan: Remote share not found
#0 [internal function]: OCA\Files_Sharing\External\Storage->checkStorageAvailability()
#1 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(509): call_user_func_array()
#2 [internal function]: OC\Files\Storage\Wrapper\Wrapper->__call()
#3 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(509): call_user_func_array()
#4 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/apps/files_sharing/lib/External/Scanner.php(47): OC\Files\Storage\Wrapper\Wrapper->__call()
#5 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/lib/private/Files/Cache/Scanner.php(329): OCA\Files_Sharing\External\Scanner->scanFile()
#6 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/apps/files_sharing/lib/External/Scanner.php(20): OC\Files\Cache\Scanner->scan()
#7 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/lib/private/Files/Utils/Scanner.php(255): OCA\Files_Sharing\External\Scanner->scan()
#8 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/apps/files/lib/Command/Scan.php(153): OC\Files\Utils\Scanner->scan()
#9 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/apps/files/lib/Command/Scan.php(214): OCA\Files\Command\Scan->scanFiles()
#10 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OCA\Files\Command\Scan->execute()
#11 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/core/Command/Base.php(161): Symfony\Component\Console\Command\Command->run()
#12 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run()
#13 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#14 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#15 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/lib/private/Console/Application.php(183): Symfony\Component\Console\Application->run()
#16 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/console.php(87): OC\Console\Application->run()
#17 /var/www/nextcloud/releases/nextcloud-30.0.1/nextcloud/occ(11): require_once('...')
#18 {main}

But:

# su -m proserver -c "php occ files_external:list --all"
No mounts configured

How can I find out the issue with that particular account?

Thanks,
Patrick

Hi,

You could temporary increase your loglevel to debug level (loglevel => 0 in config.php), launch your command and watch the nextcloud log file. It may contain exception details, or significant information.

Thanks for the hint, but “nope”.

Even with loglevel => 0 absolutely nothing in the log.

Kind regards,
Patrick