# Searching in Group Folders

**URL:** <https://help.nextcloud.com/t/searching-in-group-folders/111808>\
**Category:** ℹ️ Support\
**Tags:** nc21, teamfolders-app\
**Created:** [March 24, 2021, 11:26am UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808 "2021-03-24T11:26:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geronimo82](https://help.nextcloud.com/letter_avatar/geronimo82/32/5_5575768a8748004e209b776fc1b2916d.png) [@Geronimo82](https://help.nextcloud.com/u/Geronimo82)\
**Post date:** [March 24, 2021, 11:26am UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/1 "2021-03-24T11:26:23Z")

</div>

Nextcloud version _(eg, 20.0.5)_: 18.0.14 \> 21.0.1  
Operating system and version _(eg, Ubuntu 20.04)_: Synology Web Station  
Apache or nginx version _(eg, Apache 2.4.25)_: Apache 2.4  
PHP version _(eg, 7.4)_: 7.3 \> 7.4

The issue you are facing:  
When I open Nextcloud, I see groups that have been shared by other users as well as group folders that are accessible to me. But when I use search, it only shows search results from the shared folders and not from the group folders. Underneath it says “Search other places” with the rotating circle. How can I also search groups? Thanks for any advice.

Is this the first time you’ve seen this error? _(Y/N)_: N

Steps to replicate it:

1. Open Nextcloud
2. Search for term that matches a file name in group folder
3. The file is not found

---

<div class="post-metadata">

**Author:** ![Geronimo82](https://help.nextcloud.com/letter_avatar/geronimo82/32/5_5575768a8748004e209b776fc1b2916d.png) [@Geronimo82](https://help.nextcloud.com/u/Geronimo82)\
**Post date:** [April 13, 2021, 2:54pm UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/2 "2021-04-13T14:54:49Z")

</div>

I have now updated to Nextcloud 21. The problem is still there.

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [April 13, 2021, 2:58pm UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/3 "2021-04-13T14:58:15Z")

</div>

Hi, I am just guessing because you are missing a lot of info about your server but is this maybe your issue? [Files in group folders don´t get indexed in search when user/group has no sharing rights · Issue #1033 · nextcloud/groupfolders · GitHub](https://github.com/nextcloud/groupfolders/issues/1033)  
Apart from this there is no open issue regarding search in the groupfolders repository, afaics.

---

<div class="post-metadata">

**Author:** ![Geronimo82](https://help.nextcloud.com/letter_avatar/geronimo82/32/5_5575768a8748004e209b776fc1b2916d.png) [@Geronimo82](https://help.nextcloud.com/u/Geronimo82)\
**Post date:** [April 15, 2021, 7:56am UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/4 "2021-04-15T07:56:53Z")

</div>

Many thanks for your response. What additional information would be important? It is the WebStation of a Synology NAS. I have now activated sharing for the admins group as a test. And after that had no effect, the group folders were also re-read in via occ groupfolders: scan. Have I generally restricted the sharing of provided content too much? The content should not be able to be shared by users. The other users should not be visible.

![2021-04-15-09-51-42](https://help.nextcloud.com/uploads/default/original/3X/4/0/403f6f6636e3c80a565622203fa947b63015d8d9.png)

 ![2021-04-15-09-53-02](https://help.nextcloud.com/uploads/default/original/3X/6/0/601a222e1993a965b26115f7f7c696fa7c7c2424.png)

![2021-04-15-10-10-12](https://help.nextcloud.com/uploads/default/original/3X/4/b/4b68634150ac5ed4f2499bbd3fd5eaebc7579e46.png)

 ![2021-04-15-10-05-42](https://help.nextcloud.com/uploads/default/original/3X/2/5/25384fd3d03367efea9cc8a7046edb81bb7c23aa.png)

---

<div class="post-metadata">

**Author:** ![Geronimo82](https://help.nextcloud.com/letter_avatar/geronimo82/32/5_5575768a8748004e209b776fc1b2916d.png) [@Geronimo82](https://help.nextcloud.com/u/Geronimo82)\
**Post date:** [April 15, 2021, 2:50pm UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/5 "2021-04-15T14:50:50Z")

</div>

Looks like the search generally no longer works since the updates.

![2021-04-15-16-49-42](https://help.nextcloud.com/uploads/default/original/3X/0/0/005328ad10644873af8fdabee7c1fd891d5cc018.png)

 ![2021-04-15-17-03-32](https://help.nextcloud.com/uploads/default/original/3X/1/2/12b40f45da9817512efe4af6fdb38d4906aefac4.png)

---

<div class="post-metadata">

**Author:** ![Beltran1337](https://help.nextcloud.com/user_avatar/help.nextcloud.com/beltran1337/32/37238_2.png) [@Beltran1337](https://help.nextcloud.com/u/Beltran1337)\
**Post date:** [April 15, 2021, 5:59pm UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/6 "2021-04-15T17:59:32Z")

</div>

Good afternoon @Geronimo82

How are you?

So, before anything try this:  
**(If your httpd user is not www-data, change it (eg, apache))**

**1)** sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on  
**2)** chown -R www-data:www-data /var/www/nextcloud/  
**3)** chmod -R 770 /var/www/nextcloud/  
**4)** sudo -u www-data php /var/www/nextcloud/occ maintenance:repair  
**5)** sudo -u www-data php /var/www/nextcloud/occ db:add-missing-columns  
**6)** sudo -u www-data php /var/www/nextcloud/occ db:add-missing-indices  
**7)** sudo -u www-data php /var/www/nextcloud/occ maintenance:update:htaccess  
**8)** sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off  
**9)** sudo systemctl restart apache2

Also, check your php version running **“php -v”** , that can help a lot.

Make sure you have php-fpm installed and running.

Hope this helps, have a nice weekend.

All the best!

😃

---

<div class="post-metadata">

**Author:** ![Geronimo82](https://help.nextcloud.com/letter_avatar/geronimo82/32/5_5575768a8748004e209b776fc1b2916d.png) [@Geronimo82](https://help.nextcloud.com/u/Geronimo82)\
**Post date:** [April 19, 2021, 9:11am UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/7 "2021-04-19T09:11:48Z")

</div>

I have now done all of this with the correct user and the correct paths. The problem still occurs.

 ![2021-04-19-11-05-51](https://help.nextcloud.com/uploads/default/original/3X/f/e/fe662c53223551a17c7ae051df21b4b7f2f118a1.png)

---

<div class="post-metadata">

**Author:** ![Geronimo82](https://help.nextcloud.com/letter_avatar/geronimo82/32/5_5575768a8748004e209b776fc1b2916d.png) [@Geronimo82](https://help.nextcloud.com/u/Geronimo82)\
**Post date:** [April 19, 2021, 11:09am UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/8 "2021-04-19T11:09:21Z")

</div>

I am getting a lot of these errors in apache24-error\_log.

 ![2021-04-19-13-02-39](https://help.nextcloud.com/uploads/default/original/3X/d/a/daa837c5b9a08e183012f975de9e8a3ddec58654.png)

---

<div class="post-metadata">

**Author:** ![Beltran1337](https://help.nextcloud.com/user_avatar/help.nextcloud.com/beltran1337/32/37238_2.png) [@Beltran1337](https://help.nextcloud.com/u/Beltran1337)\
**Post date:** [April 19, 2021, 11:46am UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/9 "2021-04-19T11:46:48Z")

</div>

Hello @Geronimo82

Did you change your php-fpm settings for a boost perfomance?

I recommend you to use [PHP-FPM Process Caluculator](https://spot13.com/pmcalculator/) to calcule your config.

After that, do this:

vim /etc/opt/remi/php74/php-fpm.d/www.conf

pm = dynamic  
pm.max\_children = 120  
pm.start\_servers = 12  
pm.min\_spare\_servers = 6  
pm.max\_spare\_servers = 18

---

<div class="post-metadata">

**Author:** ![Geronimo82](https://help.nextcloud.com/letter_avatar/geronimo82/32/5_5575768a8748004e209b776fc1b2916d.png) [@Geronimo82](https://help.nextcloud.com/u/Geronimo82)\
**Post date:** [April 19, 2021, 12:02pm UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/10 "2021-04-19T12:02:17Z")

</div>

I currently have this settings (4 GB RAM).

![2021-04-19-14-01-23](https://help.nextcloud.com/uploads/default/original/3X/f/d/fdafe121e30655b818ce097c04bd4c0b1c516e4c.png)

---

<div class="post-metadata">

**Author:** ![Beltran1337](https://help.nextcloud.com/user_avatar/help.nextcloud.com/beltran1337/32/37238_2.png) [@Beltran1337](https://help.nextcloud.com/u/Beltran1337)\
**Post date:** [April 19, 2021, 12:11pm UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/11 "2021-04-19T12:11:55Z")

</div>

Okay mate, so if you have 4GB you can actually boost your performance with this config:

 ![image](https://help.nextcloud.com/uploads/default/original/3X/2/6/26be2889f6d1e7f71321465f7f4ce1eb5884b900.png)

But keep in mind this will not solve you issue, is just for performance.

I’am thinking and searching what more we can try to do to resolve your issue here.

Good luck man.

---

<div class="post-metadata">

**Author:** ![Geronimo82](https://help.nextcloud.com/letter_avatar/geronimo82/32/5_5575768a8748004e209b776fc1b2916d.png) [@Geronimo82](https://help.nextcloud.com/u/Geronimo82)\
**Post date:** [April 19, 2021, 12:12pm UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/12 "2021-04-19T12:12:39Z")

</div>

Similar errors in nginx error.log.

 ![2021-04-19-14-07-19B](https://help.nextcloud.com/uploads/default/original/3X/4/5/45ab9a286fb99fbfa81624c167a7f16c527b5c75.png)

---

<div class="post-metadata">

**Author:** ![Geronimo82](https://help.nextcloud.com/letter_avatar/geronimo82/32/5_5575768a8748004e209b776fc1b2916d.png) [@Geronimo82](https://help.nextcloud.com/u/Geronimo82)\
**Post date:** [April 19, 2021, 1:46pm UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/13 "2021-04-19T13:46:15Z")

</div>

Even if there is no error…

 ![2021-04-19-15-45-03](https://help.nextcloud.com/uploads/default/original/3X/d/f/dfc16b6867bd36885d77acc58992de12b098a020.png)

---

<div class="post-metadata">

**Author:** ![Beltran1337](https://help.nextcloud.com/user_avatar/help.nextcloud.com/beltran1337/32/37238_2.png) [@Beltran1337](https://help.nextcloud.com/u/Beltran1337)\
**Post date:** [April 19, 2021, 2:28pm UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/14 "2021-04-19T14:28:34Z")

</div>

Send a screenshot of your “Share Settings” please.

---

<div class="post-metadata">

**Author:** ![Geronimo82](https://help.nextcloud.com/letter_avatar/geronimo82/32/5_5575768a8748004e209b776fc1b2916d.png) [@Geronimo82](https://help.nextcloud.com/u/Geronimo82)\
**Post date:** [April 20, 2021, 7:33am UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/15 "2021-04-20T07:33:26Z")

</div>

The file Test.txt in directory Test is my own file and not shared. The Group Folders are shared with admin group with the permission to share them as well because there may be a problem if users are not allowed to share the files shared with them. I’m testing as member of the admin group.

![2021-04-20-09-31-11](https://help.nextcloud.com/uploads/default/original/3X/d/c/dc53c8ecd01705cc28d4b52f5ca97a66b4a21266.png)

---

<div class="post-metadata">

**Author:** ![Geronimo82](https://help.nextcloud.com/letter_avatar/geronimo82/32/5_5575768a8748004e209b776fc1b2916d.png) [@Geronimo82](https://help.nextcloud.com/u/Geronimo82)\
**Post date:** [April 26, 2021, 3:16pm UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/16 "2021-04-26T15:16:36Z")

</div>

Apparently I was able to fix the problem with error 504 by setting the values extremely high, but I still cannot find my test folder and the test file in it (“No search results for test”). How does Nextcloud work with the search? Do you search live or do you create an index in advance? Can and should you reset this if necessary?

---

<div class="post-metadata">

**Author:** ![Geronimo82](https://help.nextcloud.com/letter_avatar/geronimo82/32/5_5575768a8748004e209b776fc1b2916d.png) [@Geronimo82](https://help.nextcloud.com/u/Geronimo82)\
**Post date:** [April 27, 2021, 7:59am UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/17 "2021-04-27T07:59:52Z")

</div>

Okay, the error is back, but only occurs when searching for files.

 ![2021-04-27-09-56-30](https://help.nextcloud.com/uploads/default/original/3X/4/0/4040b982043904121fe253fad23e677feb9a7513.png)

![2021-04-27-09-58-31](https://help.nextcloud.com/uploads/default/original/3X/b/b/bb8dbbeaa92837e0568d7a1de3815d770f0b70c9.png)

---

<div class="post-metadata">

**Author:** ![Geronimo82](https://help.nextcloud.com/letter_avatar/geronimo82/32/5_5575768a8748004e209b776fc1b2916d.png) [@Geronimo82](https://help.nextcloud.com/u/Geronimo82)\
**Post date:** [May 3, 2021, 9:56am UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/18 "2021-05-03T09:56:23Z")

</div>

I am about to give up. 🙁

---

<div class="post-metadata">

**Author:** ![Geronimo82](https://help.nextcloud.com/letter_avatar/geronimo82/32/5_5575768a8748004e209b776fc1b2916d.png) [@Geronimo82](https://help.nextcloud.com/u/Geronimo82)\
**Post date:** [October 22, 2021, 9:48am UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/19 "2021-10-22T09:48:24Z")

</div>

I just upgraded to Nextcloud 22. The search now works for the most part. But every now and then the following error occurs:

```auto
Exception: Return value of OC\Files\Cache\Wrapper\CacheWrapper::getCacheEntryFromSearchResult() must implement interface OCP\Files\Cache\ICacheEntry or be null, bool returned
/volume1/web/nextcloud/lib/private/AppFramework/App.php - line 156:

OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Cont ... {}, "search")

/volume1/web/nextcloud/lib/private/Route/Router.php - line 301:

OC\AppFramework\App::main("OC\\Core\\C ... r", "search", OC\AppFramew ... {}, { providerId ... "})

/volume1/web/nextcloud/ocs/v1.php - line 62:

OC\Route\Router->match("/ocsapp/sea ... h")

/volume1/web/nextcloud/ocs/v2.php - line 23:

require_once("/volume1/we ... p")

Verursacht durch TypeError: Return value of OC\Files\Cache\Wrapper\CacheWrapper::getCacheEntryFromSearchResult() must implement interface OCP\Files\Cache\ICacheEntry or be null, bool returned
/volume1/web/nextcloud/lib/private/Files/Cache/Wrapper/CacheJail.php - line 327:

OC\Files\Cache\Wrapper\CacheWrapper->getCacheEntryFromSearchResult(OC\Files\Cache\CacheEntry {})

/volume1/web/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php - line 312:

OC\Files\Cache\Wrapper\CacheJail->getCacheEntryFromSearchResult(OC\Files\Cache\CacheEntry {})

/volume1/web/nextcloud/lib/private/Files/Cache/Wrapper/CacheWrapper.php - line 312:

OC\Files\Cache\Wrapper\CacheWrapper->getCacheEntryFromSearchResult(OC\Files\Cache\CacheEntry {})

/volume1/web/nextcloud/lib/private/Files/Cache/QuerySearchHelper.php - line 151:

OC\Files\Cache\Wrapper\CacheWrapper->getCacheEntryFromSearchResult(OC\Files\Cache\CacheEntry {})

/volume1/web/nextcloud/lib/private/Files/Node/Folder.php - line 272:

OC\Files\Cache\QuerySearchHelper->searchInCaches(OC\Files\Search\SearchQuery {}, { 0: "And 7 ... }})

/volume1/web/nextcloud/apps/files/lib/Search/FilesSearchProvider.php - line 140:

OC\Files\Node\Folder->search(OC\Files\Search\SearchQuery {})

/volume1/web/nextcloud/lib/private/Search/SearchComposer.php - line 162:

OCA\Files\Search\FilesSearchProvider->search(OC\User\User {}, OC\Search\SearchQuery {})

/volume1/web/nextcloud/core/Controller/UnifiedSearchController.php - line 115:

OC\Search\SearchComposer->search(OC\User\User {}, "files", OC\Search\SearchQuery {})

/volume1/web/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 217:

OC\Core\Controller\UnifiedSearchController->search("files", "DSK", null, null, null, "/apps/files ... 4")

/volume1/web/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 126:

OC\AppFramework\Http\Dispatcher->executeController(OC\Core\Cont ... {}, "search")

/volume1/web/nextcloud/lib/private/AppFramework/App.php - line 156:

OC\AppFramework\Http\Dispatcher->dispatch(OC\Core\Cont ... {}, "search")

/volume1/web/nextcloud/lib/private/Route/Router.php - line 301:

OC\AppFramework\App::main("OC\\Core\\C ... r", "search", OC\AppFramew ... {}, { providerId ... "})

/volume1/web/nextcloud/ocs/v1.php - line 62:

OC\Route\Router->match("/ocsapp/sea ... h")

/volume1/web/nextcloud/ocs/v2.php - line 23:

require_once("/volume1/we ... p")

```

What does Nextcloud want to tell me?

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 8:59am UTC](https://help.nextcloud.com/t/searching-in-group-folders/111808/20 "2024-12-13T08:59:01Z")

</div>



[Next page](https://help.nextcloud.com/t/searching-in-group-folders/111808.md?page=2)
