# Problem with search in BlueSpice

**URL:** <https://community.bluespice.com/t/problem-with-search-in-bluespice/56>\
**Category:** Bugs\
**Tags:** extendedsearch\
**Created:** [December 22, 2023, 10:51am UTC](https://community.bluespice.com/t/problem-with-search-in-bluespice/56 "2023-12-22T10:51:04Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fernando](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fernando](https://community.bluespice.com/u/Fernando)\
**Post date:** [December 22, 2023, 10:51am UTC](https://community.bluespice.com/t/problem-with-search-in-bluespice/56/1 "2023-12-22T10:51:04Z")

</div>

Hi

I rencently installed a bluespice with docker using the official bluespice image, version 4.4.0  
All is ok, except the search. I write several articles/pages, but when I try to do a search, it’s impossible to obtain any result.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/bluespice/original/1X/bc9a971d0aa1f2316adf490ee848321d3b031ad4.png)

The bar you are looging for is constantly moving without getting any result.

My host is Ubuntu 22.04.3 LTS

Any idea, please?

---

<div class="post-metadata">

**Author:** ![rvogel](https://avatars.discourse-cdn.com/v4/letter/r/eada6e/32.png) [@rvogel](https://community.bluespice.com/u/rvogel)\
**Post date:** [December 22, 2023, 12:10pm UTC](https://community.bluespice.com/t/problem-with-search-in-bluespice/56/2 "2023-12-22T12:10:00Z")

</div>

Hello and welcome to the BlueSpice community forums!

This actually looks like an issue with the search service. Are there maybe any hints in the logs?

---

<div class="post-metadata">

**Author:** ![jas](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jas](https://community.bluespice.com/u/jas)\
**Post date:** [December 22, 2023, 2:09pm UTC](https://community.bluespice.com/t/problem-with-search-in-bluespice/56/3 "2023-12-22T14:09:43Z")

</div>

can you try running `sudo sysctl -w vm.max_map_count=262144` and then restarting the container again

---

<div class="post-metadata">

**Author:** ![Fernando](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fernando](https://community.bluespice.com/u/Fernando)\
**Post date:** [January 8, 2024, 7:31am UTC](https://community.bluespice.com/t/problem-with-search-in-bluespice/56/4 "2024-01-08T07:31:23Z")

</div>

Hello jas.

I tried the command at the host, and after I reboot the container and the result is the same, the search bar progress is showed continually.

---

<div class="post-metadata">

**Author:** ![Fernando](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fernando](https://community.bluespice.com/u/Fernando)\
**Post date:** [January 8, 2024, 8:06am UTC](https://community.bluespice.com/t/problem-with-search-in-bluespice/56/5 "2024-01-08T08:06:49Z")

</div>

Hello rvogel.

The output of #docker logs bluespice-container is the next:

Stopping Opensearch…  
Starting Opensearch…  
WAITING FOR 60 SECONDS BECAUSE OPENSEARCH NEEDS SOME TIME TO REALLY COME UP…  
WARNING: A terminally deprecated method in java.lang.System has been called  
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/opt/opensearch/lib/opensearch-2.11.0.jar)  
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch  
WARNING: System::setSecurityManager will be removed in a future release  
WARNING: A terminally deprecated method in java.lang.System has been called  
WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/opt/opensearch/lib/opensearch-2.11.0.jar)  
WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security  
WARNING: System::setSecurityManager will be removed in a future release

- Restarting PHP 8.2 FastCGI Process Manager php-fpm8.2  
…done.
- Restarting periodic command scheduler cron
- Stopping periodic command scheduler cron  
…done.
- Starting periodic command scheduler cron  
…done.
- Restarting nginx nginx  
…done.

---

<div class="post-metadata">

**Author:** ![Fernando](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fernando](https://community.bluespice.com/u/Fernando)\
**Post date:** [January 8, 2024, 9:48am UTC](https://community.bluespice.com/t/problem-with-search-in-bluespice/56/6 "2024-01-08T09:48:26Z")

</div>

Hello

With the version 4.3.0 don’t exist this problem

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/bluespice/original/1X/d3b3bff7e7196a74183466911636d3183ff654bf.png)

---

<div class="post-metadata">

**Author:** ![Fernando](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fernando](https://community.bluespice.com/u/Fernando)\
**Post date:** [January 8, 2024, 11:48am UTC](https://community.bluespice.com/t/problem-with-search-in-bluespice/56/7 "2024-01-08T11:48:03Z")

</div>

But with the version 4.3.0 of BlueSpice (Docker) I obtain another error:

![image](https://europe1.discourse-cdn.com/flex017/uploads/bluespice/original/1X/f193dd92c101a5a5fe71becdc61ef1c0c5ba6720.png)

I would like to repair the search problem of the last version 4.4.0.

Thanks in advance. Any idea?

---

<div class="post-metadata">

**Author:** ![Fernando](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fernando](https://community.bluespice.com/u/Fernando)\
**Post date:** [January 8, 2024, 12:05pm UTC](https://community.bluespice.com/t/problem-with-search-in-bluespice/56/8 "2024-01-08T12:05:45Z")

</div>

Finally, I don´t know why, the search process is working correctly. The only thing that I changed was the parameter vm.max\_map\_count=262144, but with this parameter changed, the result was wrong.

Thanks for the tips

---

<div class="post-metadata">

**Author:** ![lrosadini](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@lrosadini](https://community.bluespice.com/u/lrosadini)\
**Post date:** [February 6, 2024, 1:49pm UTC](https://community.bluespice.com/t/problem-with-search-in-bluespice/56/9 "2024-02-06T13:49:58Z")

</div>

Hello,  
I’ve the same problem, SEARCH BAR, with a 4.4.0 installation, no DOCKER, on a Debian 12.  
This is an update from a 4.2.4. The search bar worked properly before updating.  
Any suggestions?

---

<div class="post-metadata">

**Author:** ![jas](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jas](https://community.bluespice.com/u/jas)\
**Post date:** [February 7, 2024, 3:19pm UTC](https://community.bluespice.com/t/problem-with-search-in-bluespice/56/10 "2024-02-07T15:19:29Z")

</div>

The search is changed in and from 4.4.0. Before 4.4.0, it was elasticsearch, but 4.4.0 and onwards it is opensearch. Setting `sudo sysctl -w vm.max_map_count=262144` is important and will be updated in the README.md, thanks for pointing it out. Also to note that container should be given 7-8 minutes to start the opensearch service and rebuild the search indices to update everything and show the correct results.

Thank and any other feedback would be appreciated 🙌

---

<div class="post-metadata">

**Author:** ![md\_esw](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@md\_esw](https://community.bluespice.com/u/md_esw)\
**Post date:** [February 8, 2024, 12:14pm UTC](https://community.bluespice.com/t/problem-with-search-in-bluespice/56/11 "2024-02-08T12:14:55Z")

</div>

> [@rvogel](#):
>
> This actually looks like an issue with the search service. Are there maybe any hints in the logs?

I have with newest build same Problem!  
Can’t search anymore!

---

<div class="post-metadata">

**Author:** ![Fernando](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fernando](https://community.bluespice.com/u/Fernando)\
**Post date:** [February 14, 2024, 10:37am UTC](https://community.bluespice.com/t/problem-with-search-in-bluespice/56/12 "2024-02-14T10:37:18Z")

</div>

Hello.

I had this problem sometimes, and the only solution that I to find was to execute the next commands for rebuild the indexes.

It’s important that the file /etc/sysctl.conf of host server (Docker Server at my configuration) have the next configuration:

vm.max\_map\_count = 262144

If with this modification the problem is not resolved then to execute the next commands inside the bluespice server - the host or either inside the docker container.

php /data/www/bluespice/w/extensions/BlueSpiceExtendedSearch/maintenance/initBackends.php --quick

php /data/www/bluespice/w/extensions/BlueSpiceExtendedSearch/maintenance/rebuildIndex.php --quick

php /data/www/bluespice/w/maintenance/runJobs.php

Bye

---

<div class="post-metadata">

**Author:** ![jas](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jas](https://community.bluespice.com/u/jas)\
**Post date:** [June 18, 2024, 11:27am UTC](https://community.bluespice.com/t/problem-with-search-in-bluespice/56/13 "2024-06-18T11:27:10Z")

</div>

Thanks for the reply
