-
Notifications
You must be signed in to change notification settings - Fork 277
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] Opensearch 2.17.0 Fails to start on Ubuntu 22.04.5 LTS (Jammy Jellyfish) #5121
Comments
I have also verified that /etc/opensearch/jvm.options has the following settings: |
Here are the /etc/opensearch/opensearch.yml contents:
|
I mis-spoke when I said that it installed with no issues. I just rebooted and noticed this: Setting up opensearch (2.17.1) ... |
I thought that the issue might be because I forgot to set an admin password at: /etc/environment I added the following line to it and rebooted: OPENSEARCH_INITIAL_ADMIN_PASSWORD=StrongPassword but I am still getting the error. |
So I thought that maybe I had to define the environment variable while installing opensearch, so I removed opensearch, then purged opensearch, and tried to reinstall with this command: sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=StrongPassword apt install opensearch same errors... isn't there an easier way to enforce a password be set while installing? |
|
Same results: Running OpenSearch Post-Installation Script |
I'm assuming the @cwperks any ideas? |
If the post-installation script fails, you should be able to manually run it as well. The demo security configuration installer is located at |
I dont have an environment for 22.04.5 for now. |
No issues on the latest 2.17.1:
|
|
Test 2.17.0, cleanup /etc/opensearch beforehand:
|
No issues with the default settings, able to install both 2.17.0 and 2.17.1 on Ubuntu 22.04.5 and start cluster without issues. Thanks. |
@dbwiddis you are correct about the error coming from /var/log/opensearch/install_demo_configuration.log. I cleaned up a bunch of artifacts from previous install attempts and ran the install again with: sudo -E env OPENSEARCH_INITIAL_ADMIN_PASSWORD=StrongPassword apt install opensearch. This time, I got a different error: Running OpenSearch Post-Installation Script I think I am going to start from scratch and rebuild the virtual host. |
I appreciate everyone's input! I tried again after a fresh install of Ububtu Server, and this time it installed w/o any issues... go figure. |
Describe the bug
I have a "fresh" install of Ubuntu 22.04.5 LTS (Jammy Jellyfish), openjdk version "11.0.24", and installed Opensearch 2.17.0 (amd64) via APT. It installed with no errors but when I try to start it via "sudo systemctl start opensearch" it results in this error:
× opensearch.service - OpenSearch
Loaded: loaded (/lib/systemd/system/opensearch.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2024-10-21 17:30:43 UTC; 9min ago
Docs: https://opensearch.org/
Process: 628 ExecStart=/usr/share/opensearch/bin/systemd-entrypoint -p ${PID_DIR}/opensearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 628 (code=exited, status=1/FAILURE)
CPU: 19.110s
Oct 21 17:30:43 graylog systemd-entrypoint[889]: Error: A fatal exception has occurred. Program will exit.
Oct 21 17:30:43 graylog systemd-entrypoint[889]: at org.opensearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:125)
Oct 21 17:30:43 graylog systemd-entrypoint[889]: at org.opensearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:87)
Oct 21 17:30:43 graylog systemd-entrypoint[889]: at org.opensearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:70)
Oct 21 17:30:43 graylog systemd-entrypoint[889]: at org.opensearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:150)
Oct 21 17:30:43 graylog systemd-entrypoint[889]: at org.opensearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:108)
Oct 21 17:30:43 graylog systemd[1]: opensearch.service: Main process exited, code=exited, status=1/FAILURE
Oct 21 17:30:43 graylog systemd[1]: opensearch.service: Failed with result 'exit-code'.
Oct 21 17:30:43 graylog systemd[1]: Failed to start OpenSearch.
Oct 21 17:30:43 graylog systemd[1]: opensearch.service: Consumed 19.110s CPU time.
Related component
Build
To Reproduce
Expected behavior
Opensearch should start and run w/o any errors.
Additional Details
Plugins
none
Screenshots
Host/Environment (please complete the following information):
Additional context
none
The text was updated successfully, but these errors were encountered: