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.
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.
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.
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?
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.
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.