Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question.
Don’t forget to select tags to help index your topic!
1. Describe your incident:
Following the Installation instructions for 22.04 Ubuntu I get an error after completing all the steps. LXC has 2 cores, 20GB of space and 9GB of ram.
2. Describe your environment:
- OS Information:
Ubuntu 23.10 - Package Version:
latest opensearch as of 12/10/23 - Service logs, configurations, and environment variables:
root@Greylog:~# systemctl status opensearch.service
x opensearch.service - OpenSearch
Loaded: loaded (/lib/systemd/system/opensearch.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sat 2023-12-16 01:19:30 UTC; 2 days ago
Docs: https://opensearch.org/
Process: 756 ExecStart=/usr/share/opensearch/bin/systemd-entrypoint -p ${PID_DIR}/opensearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 756 (code=exited, status=1/FAILURE)
CPU: 3.037s
Dec 16 01:19:30 Greylog systemd-entrypoint[756]: at com.fasterxml.jackson.dataformat.yaml.YAMLParser.nextToken(YAMLParser.java:482)
Dec 16 01:19:30 Greylog systemd-entrypoint[756]: at org.opensearch.common.xcontent.json.JsonXContentParser.nextToken(JsonXContentParser.java:66)
Dec 16 01:19:30 Greylog systemd-entrypoint[756]: at org.opensearch.common.settings.Settings.fromXContent(Settings.java:660)
Dec 16 01:19:30 Greylog systemd-entrypoint[756]: at org.opensearch.common.settings.Settings.fromXContent(Settings.java:629)
Dec 16 01:19:30 Greylog systemd-entrypoint[756]: at org.opensearch.common.settings.Settings$Builder.loadFromStream(Settings.java:1142)
Dec 16 01:19:30 Greylog systemd-entrypoint[756]: ... 9 more
Dec 16 01:19:30 Greylog systemd[1]: opensearch.service: Main process exited, code=exited, status=1/FAILURE
Dec 16 01:19:30 Greylog systemd[1]: opensearch.service: Failed with result 'exit-code'.
Dec 16 01:19:30 Greylog systemd[1]: Failed to start opensearch.service - OpenSearch.
Dec 16 01:19:30 Greylog systemd[1]: opensearch.service: Consumed 3.037s CPU time.
root@Greylog:~# sudo timedatectl set-timezone UTC
root@Greylog:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic
root@Greylog:~# journalctl -xeu opensearch.service
Dec 16 01:19:30 Greylog systemd-entrypoint[756]: at com.fasterxml.jackson.core.json.JsonReadContext._checkDup(JsonReadContext.java:243)
Dec 16 01:19:30 Greylog systemd-entrypoint[756]: at com.fasterxml.jackson.core.json.JsonReadContext.setCurrentName(JsonReadContext.java:237)
GNU nano 7.2 /etc/opensearch/jvm.options
GNU nano 7.2 /etc/opensearch/opensearch.yml
# ======================== OpenSearch Configuration =========================
#
# NOTE: OpenSearch comes with reasonable defaults for most settings.
# Before you set out to tweak and tune the configuration, make sure you
# understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
# https://www.opensearch.org
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
#cluster.name: my-application
cluster.name: graylog
#node.name: ${HOSTNAME}
path.data: /var/lib/opensearch
path.logs: /var/log/opensearch
discovery.type: single-node
network.host: 0.0.0.0
action.auto_create_index: false
plugins.security.disabled: true
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
#node.name: node-1
#
root@Greylog:~# sudo systemctl daemon-reload
root@Greylog:~# sudo systemctl start opensearch
Job for opensearch.service failed because the control process exited with error code.
See "systemctl status opensearch.service" and "journalctl -xeu opensearch.service" for details.
root@Greylog:~# ```
**3. What steps have you already taken to try and solve the problem?**
https://go2docs.graylog.org/5-0/downloading_and_installing_graylog/ubuntu_installation.html
double checking steps and config files.
**4. How can the community help?**
**Helpful Posting Tips:** https://community.graylog.org/t/tips-for-posting-questions-that-get-answers/21828 [Hold down CTRL and link on link to open tips documents in a separate tab]