Open manu-p opened 4 years ago
I had this issue in a customer instance with NC 17.0.3. The symtom that the root of files app is not accessible anymore indeed appeared suddenly and I could not figure out the reason. The customer did not have groupfolders installed.
Maybe Related: I think I was able to reproduce the cause for the bug. In my test I had a groupname with german umlauts and an asterisk (*). (this might be relevant or not) This group had access to a groupfolder with a normal name.
I shared a file from that groupfolder with another group with umlauts and an asterisk. Members of the receiving group were able to edit the file, but Collabora did not save it (error message). The file owner then deleted the file. In the talk conversation, there is a correct message: User shared a file that has been deleted. In the files app of the receiving user I now see the old file with a directory icon, wrong last edited and size data.
This was testet with current Apache, PHP7.3, MySQL and Nextcloud 18.0.6.
In the customer instance there was a jpeg file, that had a directory icon and wrong data. After I found it and deleted the shared, the root directory worked fine again. So I think this is related.
This is still occurring in Nextcloud version 21.0.5.
Error: Call to a member function getPath() on null in /var/www/html/nextcloud/lib/private/Files/Filesystem.php:901
Stack trace:
#0 /var/www/html/nextcloud/lib/private/Encryption/Update.php(107): OC\Files\Filesystem::getPath()
#1 /var/www/html/nextcloud/lib/private/Encryption/HookManager.php(40): OC\Encryption\Update->postUnshared()
#2 /var/www/html/nextcloud/lib/private/legacy/OC_Hook.php(110): OC\Encryption\HookManager::postUnshared()
#3 /var/www/html/nextcloud/lib/private/Share20/LegacyHooks.php(85): OC_Hook::emit()
#4 /var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(264): OC\Share20\LegacyHooks->postUnshare()
#5 /var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(239): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
#6 /var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
#7 /var/www/html/nextcloud/lib/private/EventDispatcher/SymfonyAdapter.php(94): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
#8 /var/www/html/nextcloud/lib/private/Share20/Manager.php(1193): OC\EventDispatcher\SymfonyAdapter->dispatch()
#9 /var/www/html/nextcloud/lib/private/Share20/Manager.php(1500): OC\Share20\Manager->deleteShare()
#10 /var/www/html/nextcloud/lib/private/Share20/Manager.php(1401): OC\Share20\Manager->checkExpireDate()
#11 /var/www/html/nextcloud/apps/files_sharing/lib/ExpireSharesJob.php(98): OC\Share20\Manager->getShareById()
#12 /var/www/html/nextcloud/lib/public/BackgroundJob/Job.php(80): OCA\Files_Sharing\ExpireSharesJob->run()
#13 /var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php(61): OCP\BackgroundJob\Job->execute()
#14 /var/www/html/nextcloud/cron.php(128): OCP\BackgroundJob\TimedJob->execute()
#15 {main}
Is anyone actually still experiencing this issue? I can't pinpoint the exact fix, but I also find it hard to believe this is still a thing given how quiet this issue has been for years now.
Hi,
Already mentioned here and here: sharing a file stored in a group folder sometimes makes the Files app fail.
After others users, we faced this strange behavior with NC 18.0.4 / MySQL 5.7.30 / Apache 2.4.29 / PHP 7.4.6.
When entering the Files App, a message is displayed to the user saying something like (reverse translated in English) "this folder is not available, consult the logs or contact your administrator". And no folder/file is displayed. Nothing. Just like there's no folders/files anymore (which is not the case).
The system log shows: `Error remote Error: Call to a member function getCache() on null
The workaround seems to delete entries in the oc_share table, which worked for us today.
As it is suggested here, I'm now reporting the issue to the groupfolder app.