ERR_CONNECTION_REFUSED basic configuration

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.12.0
VPS Linux VC4-8 (vz) - Server
Ubuntu 24.04
Apache2.4
PHP8.3
MySQL8.0
ufw-Firewall

Windows10/Chrome

I installed OpenSearch 2.12.0 and OpenSearch-Dashbaords 2.12.0 via APT-Repository

##OpenSearch 2.12.0###

sudo apt-get update && sudo apt-get -y install lsb-release ca-certificates curl gnupg2

curl -o- https://artifacts.opensearch.org/publickeys/opensearch.pgp | sudo gpg --dearmor --batch --yes -o /usr/share/keyrings/opensearch-keyring

echo “deb [signed-by=/usr/share/keyrings/opensearch-keyring] https://artifacts.opensearch.org/releases/bundle/opensearch/2.x/apt stable main” | sudo tee /etc/apt/sources.list.d/opensearch-2.x.list

sudo apt-get update

sudo apt list -a opensearch

sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=XXXXXXXXXXXXX apt-get install opensearch=2.12.0

sudo systemctl enable opensearch

sudo systemctl start opensearch

sudo systemctl status opensearch

curl -X GET https://localhost:9200 -u ‘admin:XXXXXXXXXXXXX’ --insecure

curl -X GET https://localhost:9200/_cat/plugins?v -u ‘admin:7JPAbb5kRd4sSvZ’ --insecure

Status:

mos@ubuntu:~$ sudo systemctl status opensearch
[sudo] password for mos:
● opensearch.service - OpenSearch
Loaded: loaded (/usr/lib/systemd/system/opensearch.service; enabled; preset: enabled)
Active: active (running) since Thu 2024-11-07 16:09:28 UTC; 38min ago
Docs: https://opensearch.org/
Main PID: 21720 (java)
Tasks: 83 (limit: 9432)
Memory: 1.3G (peak: 1.3G)
CPU: 1min 5.765s
CGroup: /system.slice/opensearch.service
└─21720 /usr/share/opensearch/jdk/bin/java -Xshare:auto -Dopensearch.networkaddress.cache.ttl=60 -Dopensearch.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Df>

Nov 07 16:09:16 ubuntu systemd-entrypoint[21720]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.OpenSearch (file:/usr/share/opensearch/lib/opensearch-2.12.0.jar)
Nov 07 16:09:16 ubuntu systemd-entrypoint[21720]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.OpenSearch
Nov 07 16:09:16 ubuntu systemd-entrypoint[21720]: WARNING: System::setSecurityManager will be removed in a future release
Nov 07 16:09:17 ubuntu systemd-entrypoint[21720]: Nov 07, 2024 4:09:17 PM sun.util.locale.provider.LocaleProviderAdapter
Nov 07 16:09:17 ubuntu systemd-entrypoint[21720]: WARNING: COMPAT locale provider will be removed in a future release
Nov 07 16:09:17 ubuntu systemd-entrypoint[21720]: WARNING: A terminally deprecated method in java.lang.System has been called
Nov 07 16:09:17 ubuntu systemd-entrypoint[21720]: WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/usr/share/opensearch/lib/opensearch-2.12.0.jar)
Nov 07 16:09:17 ubuntu systemd-entrypoint[21720]: WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security
Nov 07 16:09:17 ubuntu systemd-entrypoint[21720]: WARNING: System::setSecurityManager will be removed in a future release
Nov 07 16:09:28 ubuntu systemd[1]: Started opensearch.service - OpenSearch.
lines 1-21/21 (END)

mos@ubuntu:~$ curl -X GET https://localhost:9200 -u ‘admin:XXXXXXXXXXXXX’ --insecure
{
“name” : “ubuntu”,
“cluster_name” : “opensearch”,
“cluster_uuid” : “l2o8ol3zSAK5sjoBR_ZjrA”,
“version” : {
“distribution” : “opensearch”,
“number” : “2.12.0”,
“build_type” : “deb”,
“build_hash” : “2c355ce1a427e4a528778d4054436b5c4b756221”,
“build_date” : “2024-02-20T02:18:31.541484890Z”,
“build_snapshot” : false,
“lucene_version” : “9.9.2”,
“minimum_wire_compatibility_version” : “7.10.0”,
“minimum_index_compatibility_version” : “7.0.0”
},
“tagline” : “The OpenSearch Project: https://opensearch.org/
}

##OpenSearch Dashboards###

sudo apt-get update && sudo apt-get -y install lsb-release ca-certificates curl gnupg2

curl -o- https://artifacts.opensearch.org/publickeys/opensearch.pgp | sudo gpg --dearmor --batch --yes -o /usr/share/keyrings/opensearch-keyring

echo “deb [signed-by=/usr/share/keyrings/opensearch-keyring] https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/2.x/apt stable main” | sudo tee /etc/apt/sources.list.d/opensearch-dashboards-2.x.list

sudo apt-get update

sudo apt list -a opensearch-dashboards

sudo apt-get install opensearch-dashboards=2.12.0

sudo systemctl enable opensearch-dashboards

sudo systemctl start opensearch-dashboards

sudo systemctl status opensearch-dashboards

sudo ufw allow 5601

Status Dashboard

mos@ubuntu:~$ sudo systemctl status opensearch-dashboards
[sudo] password for mos:
● opensearch-dashboards.service - “OpenSearch Dashboards”
Loaded: loaded (/usr/lib/systemd/system/opensearch-dashboards.service; enabled; preset: enabled)
Active: active (running) since Thu 2024-11-07 16:20:32 UTC; 29min ago
Main PID: 23974 (node)
Tasks: 11 (limit: 9432)
Memory: 164.6M (peak: 279.8M)
CPU: 7.947s
CGroup: /system.slice/opensearch-dashboards.service
└─23974 /usr/share/opensearch-dashboards/node/bin/node /usr/share/opensearch-dashboards/src/cli/dist

Nov 07 16:20:36 ubuntu opensearch-dashboards[23974]: [agentkeepalive:deprecated] options.freeSocketKeepAliveTimeout is deprecated, please use options.freeSocketTimeout instead
Nov 07 16:20:36 ubuntu opensearch-dashboards[23974]: {“type”:“log”,“@timestamp”:“2024-11-07T16:20:36Z”,“tags”:[“info”,“savedobjects-service”],“pid”:23974,“message”:“Waiting until all OpenSearch nodes are compatible >
Nov 07 16:20:37 ubuntu opensearch-dashboards[23974]: {“type”:“log”,”@timestamp":“2024-11-07T16:20:37Z”,“tags”:[“info”,“savedobjects-service”],“pid”:23974,“message”:“Starting saved objects migrations”}
Nov 07 16:20:37 ubuntu opensearch-dashboards[23974]: {“type”:“log”,“@timestamp”:“2024-11-07T16:20:37Z”,“tags”:[“info”,“savedobjects-service”],“pid”:23974,“message”:“Creating index .kibana_1.”}
Nov 07 16:20:37 ubuntu opensearch-dashboards[23974]: {“type”:“log”,“@timestamp”:“2024-11-07T16:20:37Z”,“tags”:[“info”,“savedobjects-service”],“pid”:23974,“message”:“Pointing alias .kibana to .kibana_1.”}
Nov 07 16:20:37 ubuntu opensearch-dashboards[23974]: {“type”:“log”,“@timestamp”:“2024-11-07T16:20:37Z”,“tags”:[“info”,“savedobjects-service”],“pid”:23974,“message”:“Finished in 129ms.”}
Nov 07 16:20:37 ubuntu opensearch-dashboards[23974]: {“type”:“log”,“@timestamp”:“2024-11-07T16:20:37Z”,“tags”:[“warning”,“cross-compatibility-service”],“pid”:23974,“message”:“Starting cross compatibility service”}
Nov 07 16:20:37 ubuntu opensearch-dashboards[23974]: {“type”:“log”,“@timestamp”:“2024-11-07T16:20:37Z”,“tags”:[“info”,“plugins-system”],“pid”:23974,“message”:“Starting [52] plugins: [usageCollection,opensearchDashbo>
Nov 07 16:20:37 ubuntu opensearch-dashboards[23974]: {“type”:“log”,”@timestamp":“2024-11-07T16:20:37Z”,“tags”:[“listening”,“info”],“pid”:23974,“message”:“Server running at http://localhost:5601”}
Nov 07 16:20:37 ubuntu opensearch-dashboards[23974]: {“type”:“log”,“@timestamp”:“2024-11-07T16:20:37Z”,“tags”:[“info”,“http”,“server”,“OpenSearchDashboards”],“pid”:23974,“message”:"http server running at http://loca>
lines 1-20/20 (END)

I checked it in the Chrome-Browser

http://XXX.XXX.XXX.X:5601/

output:

"Die Website ist nicht erreichbar
XXX.XXX.XXX.X hat die Verbindung abgelehnt.
Versuche Folgendes:

Verbindung prüfen
Proxy und Firewall prüfen
ERR_CONNECTION_REFUSED"

"The website is unavailable
XXX.XXX.XXX.X refused the connection.
Try the following:

check connection
check proxy & fierwall
ERR_CONNECTION_REFUSED"

I don’t configured the /etc/opensearch/opensearch.yml and other files. It is a fresh installation.

Until now I installed all 100 times, last 14 days, and can’t find the right configuiration, 'cause I ask you for your help. I don’t know what to do next. :pensive:

Thank you very much. :smiling_face:

Hi @SoEgal,

Could you share your opensearch.yml and opensearch_dashboards.yml?
Also outputs of the following:
sudo ufw status verbose
sudo netstat -ntlp

best,
mj

Thanks for your quick answer. :blush:

At this installation I do not changed something. They are original.
All I did bevor failed.

I want to use it at the same server.

PS: the fingerprint was never displayed during installation

# ======================== 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

#

# ------------------------------------ Node ------------------------------------

#

# Use a descriptive name for the node:

#

#node.name: node-1

#

# Add custom attributes to the node:

#

#node.attr.rack: r1

#

# ----------------------------------- Paths ------------------------------------

#

# Path to directory where to store the data (separate multiple locations by comma):

#

path.data: /var/lib/opensearch

#

# Path to log files:

#

path.logs: /var/log/opensearch

#

# ----------------------------------- Memory -----------------------------------

#

# Lock the memory on startup:

#

#bootstrap.memory_lock: true

#

# Make sure that the heap size is set to about half the memory available

# on the system and that the owner of the process is allowed to use this

# limit.

#

# OpenSearch performs poorly when the system is swapping the memory.

#

# ---------------------------------- Network -----------------------------------

#

# Set the bind address to a specific IP (IPv4 or IPv6):

#

#network.host: 192.168.0.1

#

# Set a custom port for HTTP:

#

#http.port: 9200

#

# For more information, consult the network module documentation.

#

# --------------------------------- Discovery ----------------------------------

#

# Pass an initial list of hosts to perform discovery when this node is started:

# The default list of hosts is ["127.0.0.1", "[::1]"]

#

#discovery.seed_hosts: ["host1", "host2"]

#

# Bootstrap the cluster using an initial set of cluster-manager-eligible nodes:

#

#cluster.initial_cluster_manager_nodes: ["node-1", "node-2"]

#

# For more information, consult the discovery and cluster formation module documentation.

#

# ---------------------------------- Gateway -----------------------------------

#

# Block initial recovery after a full cluster restart until N nodes are started:

#

#gateway.recover_after_nodes: 3

#

# For more information, consult the gateway module documentation.

#

# ---------------------------------- Various -----------------------------------

#

# Require explicit names when deleting indices:

#

#action.destructive_requires_name: true

#

# ---------------------------------- Remote Store -----------------------------------

# Controls whether cluster imposes index creation only with remote store enabled

# cluster.remote_store.enabled: true

#

# Repository to use for segment upload while enforcing remote store for an index

# node.attr.remote_store.segment.repository: my-repo-1

#

# Repository to use for translog upload while enforcing remote store for an index

# node.attr.remote_store.translog.repository: my-repo-1

#

# ---------------------------------- Experimental Features -----------------------------------

# Gates the visibility of the experimental segment replication features until they are production ready.

#

#opensearch.experimental.feature.segment_replication_experimental.enabled: false

#

# Gates the functionality of a new parameter to the snapshot restore API

# that allows for creation of a new index type that searches a snapshot

# directly in a remote repository without restoring all index data to disk

# ahead of time.

#

#opensearch.experimental.feature.searchable_snapshot.enabled: false

#

#

# Gates the functionality of enabling extensions to work with OpenSearch.

# This feature enables applications to extend features of OpenSearch outside of

# the core.

#

#opensearch.experimental.feature.extensions.enabled: false

#

#

# Gates the optimization of datetime formatters caching along with change in default datetime formatter

# Once there is no observed impact on performance, this feature flag can be removed.

#

#opensearch.experimental.optimization.datetime_formatter_caching.enabled: false

######## Start OpenSearch Security Demo Configuration ########

# WARNING: revise all the lines below before you go into production

plugins.security.ssl.transport.pemcert_filepath: esnode.pem

plugins.security.ssl.transport.pemkey_filepath: esnode-key.pem

plugins.security.ssl.transport.pemtrustedcas_filepath: root-ca.pem

plugins.security.ssl.transport.enforce_hostname_verification: false

plugins.security.ssl.http.enabled: true

plugins.security.ssl.http.pemcert_filepath: esnode.pem

plugins.security.ssl.http.pemkey_filepath: esnode-key.pem

plugins.security.ssl.http.pemtrustedcas_filepath: root-ca.pem

plugins.security.allow_unsafe_democertificates: true

plugins.security.allow_default_init_securityindex: true

plugins.security.authcz.admin_dn: ['CN=kirk,OU=client,O=client,L=test,C=de']

plugins.security.audit.type: internal_opensearch

plugins.security.enable_snapshot_restore_privilege: true

plugins.security.check_snapshot_restore_write_privileges: true

plugins.security.restapi.roles_enabled: [all_access, security_rest_api_access]

plugins.security.system_indices.enabled: true

plugins.security.system_indices.indices: [.plugins-ml-config, .plugins-ml-connector,

.plugins-ml-model-group, .plugins-ml-model, .plugins-ml-task, .plugins-ml-conversation-meta,

.plugins-ml-conversation-interactions, .plugins-ml-memory-meta, .plugins-ml-memory-message,

.opendistro-alerting-config, .opendistro-alerting-alert*, .opendistro-anomaly-results*,

.opendistro-anomaly-detector*, .opendistro-anomaly-checkpoints, .opendistro-anomaly-detection-state,

.opendistro-reports-*, .opensearch-notifications-*, .opensearch-notebooks, .opensearch-observability,

.ql-datasources, .opendistro-asynchronous-search-response*, .replication-metadata-store,

.opensearch-knn-models, .geospatial-ip2geo-data*, .plugins-flow-framework-config,

.plugins-flow-framework-templates, .plugins-flow-framework-state]

node.max_local_storage_nodes: 3

######## End OpenSearch Security Demo Configuration ########
---

# Copyright OpenSearch Contributors

# SPDX-License-Identifier: Apache-2.0

# Description:

# Default configuration for OpenSearch Dashboards

# OpenSearch Dashboards is served by a back end server. This setting specifies the port to use.

# server.port: 5601

# Specifies the address to which the OpenSearch Dashboards server will bind. IP addresses and host names are both valid values.

# The default is 'localhost', which usually means remote machines will not be able to connect.

# To allow connections from remote users, set this parameter to a non-loopback address.

# server.host: "localhost"

# Enables you to specify a path to mount OpenSearch Dashboards at if you are running behind a proxy.

# Use the `server.rewriteBasePath` setting to tell OpenSearch Dashboards if it should remove the basePath

# from requests it receives, and to prevent a deprecation warning at startup.

# This setting cannot end in a slash.

# server.basePath: ""

# Specifies whether OpenSearch Dashboards should rewrite requests that are prefixed with

# `server.basePath` or require that they are rewritten by your reverse proxy.

# server.rewriteBasePath: false

# The maximum payload size in bytes for incoming server requests.

# server.maxPayloadBytes: 1048576

# The OpenSearch Dashboards server's name. This is used for display purposes.

# server.name: "your-hostname"

# The URLs of the OpenSearch instances to use for all your queries.

# opensearch.hosts: ["http://localhost:9200"]

# OpenSearch Dashboards uses an index in OpenSearch to store saved searches, visualizations and

# dashboards. OpenSearch Dashboards creates a new index if the index doesn't already exist.

# opensearchDashboards.index: ".opensearch_dashboards"

# The default application to load.

# opensearchDashboards.defaultAppId: "home"

# Setting for an optimized healthcheck that only uses the local OpenSearch node to do Dashboards healthcheck.

# This settings should be used for large clusters or for clusters with ingest heavy nodes.

# It allows Dashboards to only healthcheck using the local OpenSearch node rather than fan out requests across all nodes.

#

# It requires the user to create an OpenSearch node attribute with the same name as the value used in the setting

# This node attribute should assign all nodes of the same cluster an integer value that increments with each new cluster that is spun up

# e.g. in opensearch.yml file you would set the value to a setting using node.attr.cluster_id:

# Should only be enabled if there is a corresponding node attribute created in your OpenSearch config that matches the value here

# opensearch.optimizedHealthcheckId: "cluster_id"

# If your OpenSearch is protected with basic authentication, these settings provide

# the username and password that the OpenSearch Dashboards server uses to perform maintenance on the OpenSearch Dashboards

# index at startup. Your OpenSearch Dashboards users still need to authenticate with OpenSearch, which

# is proxied through the OpenSearch Dashboards server.

# opensearch.username: "opensearch_dashboards_system"

# opensearch.password: "pass"

# Enables SSL and paths to the PEM-format SSL certificate and SSL key files, respectively.

# These settings enable SSL for outgoing requests from the OpenSearch Dashboards server to the browser.

# server.ssl.enabled: false

# server.ssl.certificate: /path/to/your/server.crt

# server.ssl.key: /path/to/your/server.key

# Optional settings that provide the paths to the PEM-format SSL certificate and key files.

# These files are used to verify the identity of OpenSearch Dashboards to OpenSearch and are required when

# xpack.security.http.ssl.client_authentication in OpenSearch is set to required.

# opensearch.ssl.certificate: /path/to/your/client.crt

# opensearch.ssl.key: /path/to/your/client.key

# Optional setting that enables you to specify a path to the PEM file for the certificate

# authority for your OpenSearch instance.

# opensearch.ssl.certificateAuthorities: [ "/path/to/your/CA.pem" ]

# To disregard the validity of SSL certificates, change this setting's value to 'none'.

# opensearch.ssl.verificationMode: full

# Time in milliseconds to wait for OpenSearch to respond to pings. Defaults to the value of

# the opensearch.requestTimeout setting.

# opensearch.pingTimeout: 1500

# Time in milliseconds to wait for responses from the back end or OpenSearch. This value

# must be a positive integer.

# opensearch.requestTimeout: 30000

# List of OpenSearch Dashboards client-side headers to send to OpenSearch. To send *no* client-side

# headers, set this value to [] (an empty list).

# opensearch.requestHeadersWhitelist: [ authorization ]

# Header names and values that are sent to OpenSearch. Any custom headers cannot be overwritten

# by client-side headers, regardless of the opensearch.requestHeadersWhitelist configuration.

# opensearch.customHeaders: {}

# Time in milliseconds for OpenSearch to wait for responses from shards. Set to 0 to disable.

# opensearch.shardTimeout: 30000

# Logs queries sent to OpenSearch. Requires logging.verbose set to true.

# opensearch.logQueries: false

# Specifies the path where OpenSearch Dashboards creates the process ID file.

# pid.file: /var/run/opensearchDashboards.pid

# Enables you to specify a file where OpenSearch Dashboards stores log output.

# logging.dest: stdout

# Set the value of this setting to true to suppress all logging output.

# logging.silent: false

# Set the value of this setting to true to suppress all logging output other than error messages.

# logging.quiet: false

# Set the value of this setting to true to log all events, including system usage information

# and all requests.

# logging.verbose: false

# Set the interval in milliseconds to sample system and process performance

# metrics. Minimum is 100ms. Defaults to 5000.

# ops.interval: 5000

# Specifies locale to be used for all localizable strings, dates and number formats.

# Supported languages are the following: English - en , by default , Chinese - zh-CN .

# i18n.locale: "en"

# Set the allowlist to check input graphite Url. Allowlist is the default check list.

# vis_type_timeline.graphiteAllowedUrls: ['https://www.hostedgraphite.com/UID/ACCESS_KEY/graphite']

# Set the blocklist to check input graphite Url. Blocklist is an IP list.

# Below is an example for reference

# vis_type_timeline.graphiteBlockedIPs: [

# //Loopback

# '127.0.0.0/8',

# '::1/128',

# //Link-local Address for IPv6

# 'fe80::/10',

# //Private IP address for IPv4

# '10.0.0.0/8',

# '172.16.0.0/12',

# '192.168.0.0/16',

# //Unique local address (ULA)

# 'fc00::/7',

# //Reserved IP address

# '0.0.0.0/8',

# '100.64.0.0/10',

# '192.0.0.0/24',

# '192.0.2.0/24',

# '198.18.0.0/15',

# '192.88.99.0/24',

# '198.51.100.0/24',

# '203.0.113.0/24',

# '224.0.0.0/4',

# '240.0.0.0/4',

# '255.255.255.255/32',

# '::/128',

# '2001:db8::/32',

# 'ff00::/8',

# ]

# vis_type_timeline.graphiteBlockedIPs: []

# opensearchDashboards.branding:

# logo:

# defaultUrl: ""

# darkModeUrl: ""

# mark:

# defaultUrl: ""

# darkModeUrl: ""

# loadingLogo:

# defaultUrl: ""

# darkModeUrl: ""

# faviconUrl: ""

# applicationTitle: ""

# Set the value of this setting to true to capture region blocked warnings and errors

# for your map rendering services.

# map.showRegionBlockedWarning: false%

# Set the value of this setting to false to suppress search usage telemetry

# for reducing the load of OpenSearch cluster.

# data.search.usageTelemetry.enabled: false

# 2.4 renames 'wizard.enabled: false' to 'vis_builder.enabled: false'

# Set the value of this setting to false to disable VisBuilder

# functionality in Visualization.

# vis_builder.enabled: false

# 2.4 New Experimental Feature

# Set the value of this setting to true to enable the experimental multiple data source

# support feature. Use with caution.

# data_source.enabled: false

# Set the value of these settings to customize crypto materials to encryption saved credentials

# in data sources.

# data_source.encryption.wrappingKeyName: 'changeme'

# data_source.encryption.wrappingKeyNamespace: 'changeme'

# data_source.encryption.wrappingKey: [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]

# 2.6 New ML Commons Dashboards Feature

# Set the value of this setting to true to enable the ml commons dashboards

# ml_commons_dashboards.enabled: false

# 2.12 New experimental Assistant Dashboards Feature

# Set the value of this setting to true to enable the assistant dashboards

# assistant.chat.enabled: false

opensearch.hosts: [https://localhost:9200]

opensearch.ssl.verificationMode: none

opensearch.username: kibanaserver

opensearch.password: kibanaserver

opensearch.requestHeadersWhitelist: [authorization, securitytenant]

opensearch_security.multitenancy.enabled: true

opensearch_security.multitenancy.tenants.preferred: [Private, Global]

opensearch_security.readonly_mode.roles: [kibana_read_only]

# Use this setting if you are running opensearch-dashboards without https

opensearch_security.cookie.secure: false

mos@ubuntu:~$ sudo ufw status verbose
[sudo] password for mos:
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

To Action From


22/tcp ALLOW IN Anywhere
80,443/tcp (Apache Full) ALLOW IN Anywhere
5601 ALLOW IN Anywhere
22/tcp (v6) ALLOW IN Anywhere (v6)
80,443/tcp (Apache Full (v6)) ALLOW IN Anywhere (v6)
5601 (v6) ALLOW IN Anywhere (v6)

mos@ubuntu:~$ sudo netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 17488/mysqld
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 537/systemd-resolve
tcp 0 0 127.0.0.1:33060 0.0.0.0:* LISTEN 17488/mysqld
tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 23974/node
tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN 537/systemd-resolve
tcp 0 0 127.0.0.1:42581 0.0.0.0:* LISTEN 1788/code-f1e16e1e6
tcp6 0 0 ::1:9300 :::* LISTEN 21720/java
tcp6 0 0 :::22 :::* LISTEN 1/init
tcp6 0 0 :::80 :::* LISTEN 19983/apache2
tcp6 0 0 ::1:9200 :::* LISTEN 21720/java
tcp6 0 0 127.0.0.1:9200 :::* LISTEN 21720/java
tcp6 0 0 127.0.0.1:9300 :::* LISTEN 21720/java

sorry, I don’t know what happened that all is bold. What can I do to post it as code?
I used

Blockquote

@SoEgal, I can see you have opensearch.hosts defined as http://localhost:9200 and https://localhost:9200 can you make sure it’s https://localhost:9200 as:

best,
mj

I don’t have https at the moment on this server, because I’m testing the installation.

Do I need ssl/https or can I use http before I go public?

no, you are correct, misread the config file, the HTTP one was commented out.

Could you test with server.host: '0.0.0.0' in your opensearch_dashboards.yml

Best,
mj

I do not make any editing in this file.
In many installations I set many configurations, via Youtube-videos and sites, but nothing works, because I’m here. The last station I have to get help.

I don’t want to connect from an other Server. All should run at the same.

I think this is the block to edit in opensearch_dashboards.yml.
What do I have to do there? As I said, I edited nothing. It’s blank from the installation. I don’t wanted to destroy something again and searching for the errors with you.

Thank you for your commitment. :blush:

What I could do, I could set the changes via video at the opensearch.yml and then it would be fine, we make the editing at the opensearch_dashboards.yml.

These are the changes I took via video, right now.
I restart Opensearch but the Dashbord doesn’t open.

Now I found a site, that give some more information about the settings.
I tried it and what can I say? Now it works.
The settings I did:

/etc/opensearch/opensearch.yml

cluster.name: a nice name
network.host: localhost
http.port: 9200

discovery.type: single-node
node.name: ${HOSTNAME}

plugins.security.disabled: false
plugins.security.ssl.http.enabled: false

/etc/opensearch-dashboards/opensearch_dashboards.yml

server.host: "0.0.0.0"

server.ssl.enabled: false

opensearch.hosts: ["http://localhost:9200"] -->**Attention: This setting you have to edit in line 203**

I don’t know if these configuration is correct?
If not, could you help to set it right.

Thanks a lot.

1 Like

@SoEgal, yes, everything looks okay for a single-node cluster with no security.

If you plan to use a cluster in prod, I would say, you want to incorporate some resistance (multi-node) and introduce some security with SSL(encryption) and a security plugin (authentication/authorization).

Here are some good sources to start with:

And of course, the community is always here if you need any help.

Best,
mj

1 Like

To be honest, I don’t know what to do with the clusters yet.
This is the first time I’ve worked with OpenSearch and I still have a lot to learn.
When I’ve figured out how I have to install all the applications, I’ll add an SSL certificate to the server and take care of the security settings.

Thanks for the links and thank you very much for your help. :blush:

1 Like