-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Report: Java Cgroup Detection Fails in wodby/solr on some cgroupv2 systems #22
Comments
Are you running it with zookeeper (solr cloud mode)? Could you try testing with newly built |
Thanks Chingis, Yes we're running zookeeper although I believe this error occurs before any connection to zookeeper is attempted. 9-5.0.0.0 does not show the Cgroup error but it seems to suffer from other problems:
|
Could you please clarify how exactly you're running it. Do you run init action after Solr startup (this actually creates the default collection)? What env vars do you set for Solr? Where did you get this error from? From admin UI? |
We are using the following command:
Error can be seen in the container logs. |
I got same error.
|
ok, first of all you should add a new env to Solr service to enable lib directive, otherwise configset upload won't work from drupal
after solr and zookeeper both started you should run |
Thanks Chingis, however I'm still seeing issues with 9-5.1.0. This command: results in:
|
My bad, I pushed the tag without pushing fixes first. Released 5.1.1 |
regarding your command – which would probably still fail with 5.1.1 – that's not how this image designed to enable auth see init action for how we do it:
whatever you're writing to |
Testing 9-5.1.1 I found the following issues:
|
Thank you for testing, I released two tags:
Now, what changed is Solr API Solr released a new module version and now it's necessary to add the following env var to Solr: SOLR_MODULES: extraction,langid,ltr,analysis-extras But still, before all these fixed the default collection created for me without any issues during the init action, please note you have to manually call init action locally since we cannot tell when both zookeeper and solr fully started. This is how I test:
$ docker compose exec solr sh -c 'make init -f /usr/local/bin/actions.mk'
init_solr localhost
No collections found, creating a default collection
make[1]: Entering directory '/opt/solr-9.8.0'
echo "Creating collection default with default config"
Creating collection default with default config
curl -sIN "http://localhost:8983/solr/admin/collections?action=CREATE&name=default&numShards=1&collection.configName=_default" | head -n 1 | awk '{print $2}' | grep -q 200
make[1]: Leaving directory '/opt/solr-9.8.0'
neither jattach nor jstack in /opt/java/openjdk could be found, so no thread dumps are possible. Continuing.
Neither --zk-host or --solr-url parameters provided so assuming solr url is http://localhost:8983.
Copying from 'file:/security.json' to 'zk:/security.json'. ZooKeeper at zookeeper:2181
|
Thanks Chingis, 5.1.2 is looking good here. Looks like the |
correct |
wodby/solr:8-4.18.2 fails to detect cgroups properly on cgroupv2 systems, causing Java to throw a NullPointerException:
as a temporary work around
-XX:-UseContainerSupport
can be used:Seen on Arch linux.
The text was updated successfully, but these errors were encountered: