nextcloud / groupfolders

๐Ÿ“๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Admin-configured folders shared by everyone in a group. https://github.com/nextcloud-releases/groupfolders
https://apps.nextcloud.com/apps/groupfolders
276 stars 83 forks source link

Error in `fulltextsearch` if GroupFolders enabled #1512

Open sinichi19 opened 3 years ago

sinichi19 commented 3 years ago

Good Day,

just wanted to put this on the radar, I noticed with my test installation, from the start everything works fine but when I started using Group Folder feature the elasticsearch stopped and the FulltextSearch not working correctly. After I delete the created group folder and disabled the Group Folder apps. everything work ok.

Server Details Tested in Nextcloud 20.0.10 and Nextcloud 21.0.2 Ubuntu 20.04 PHP 7.4

https://github.com/nextcloud/fulltextsearch/issues/634

Thank you and God Bless

Omaha2002 commented 3 years ago

The error that Fulltextsearch throws after this command: sudo -u www-data php /var/www/nextcloud/occ fulltextsearch:index

An unhandled exception has been thrown: Error: Call to a member function getOwner() on null in /var/www/nextcloud/lib/private/Share20/Manager.php:1651 Stack trace:

0 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/LocalFilesService.php(163): OC\Share20\Manager->getAccessList()

1 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php(795): OCA\Files_FullTextSearch\Service\LocalFilesService->getShareUsersFromFile()

2 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php(725): OCA\Files_FullTextSearch\Service\FilesService->updateShareNames()

3 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php(699): OCA\Files_FullTextSearch\Service\FilesService->updateDocumentAccess()

4 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php(680): OCA\Files_FullTextSearch\Service\FilesService->updateFilesDocumentFromFile()

5 /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/FilesService.php(571): OCA\Files_FullTextSearch\Service\FilesService->updateFilesDocument()

6 /var/www/nextcloud/apps/files_fulltextsearch/lib/Provider/FilesProvider.php(288): OCA\Files_FullTextSearch\Service\FilesService->generateDocument()

7 /var/www/nextcloud/apps/fulltextsearch/lib/Service/IndexService.php(317): OCA\Files_FullTextSearch\Provider\FilesProvider->fillIndexDocument()

8 /var/www/nextcloud/apps/fulltextsearch/lib/Service/IndexService.php(204): OCA\FullTextSearch\Service\IndexService->indexDocuments()

9 /var/www/nextcloud/apps/fulltextsearch/lib/Command/Index.php(410): OCA\FullTextSearch\Service\IndexService->indexProviderContentFromUser()

10 /var/www/nextcloud/apps/fulltextsearch/lib/Command/Index.php(273): OCA\FullTextSearch\Command\Index->indexProvider()

11 /var/www/nextcloud/apps/bookmarks/vendor/symfony/console/Command/Command.php(255): OCA\FullTextSearch\Command\Index->execute()

12 /var/www/nextcloud/core/Command/Base.php(169): Symfony\Component\Console\Command\Command->run()

13 /var/www/nextcloud/apps/bookmarks/vendor/symfony/console/Application.php(1009): OC\Core\Command\Base->run()

14 /var/www/nextcloud/apps/bookmarks/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()

15 /var/www/nextcloud/apps/bookmarks/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()

16 /var/www/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run()

17 /var/www/nextcloud/console.php(100): OC\Console\Application->run()

18 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')

joshtrichards commented 10 months ago

Please update to current versions of the respective apps (and NC Server) and confirm this problem no longer exists. Thanks!