Dashboard keeps asking for login

Debian 11
Opensearch 3.1.0

I have successfully installed both opensearch and opensearch-dashboards on my local debian system using apt (not docker). Since this is only for local dev/testing purposes I don’t need the extra security (TLS and login). I followed all the the hints on the web on how to disable security and login but nothing seems to work. Whenever I try to access the dashboard I get redirected to a login page.

opensearch.yml

cluster.name: opensearch
node.name: node-1
network.host: 0.0.0.0
http.port: 9201

discovery.type: single-node
plugins.security.disabled: true

node.max_local_storage_nodes: 3

path.data: /var/lib/opensearch
path.logs: /var/log/opensearch

Since I am also running elasticsearch on this machine, I moved the port to 9201.

opensearch-dashboard.yml

server.host: "0.0.0.0"
opensearch.hosts: ["http://localhost:9201"]

Both services are running fine according to systemctl.

What am I doing wrong?

Thank you

@OSMedia did you remove security plugin on OSD? You can use the docs for more details.

Can you also check if you can successfully curl to http endpoint directly?

curl -X GET http://localhost:9201/

{
  "name" : "node-1",
  "cluster_name" : "opensearch",
  "cluster_uuid" : "ss-lqjNLRdGUylrf9ZluYg",
  "version" : {
    "distribution" : "opensearch",
    "number" : "3.1.0",
    "build_type" : "deb",
    "build_hash" : "8ff7c6ee924a49f0f59f80a6e1c73073c8904214",
    "build_date" : "2025-06-21T08:05:38.757936053Z",
    "build_snapshot" : false,
    "lucene_version" : "10.2.1",
    "minimum_wire_compatibility_version" : "2.19.0",
    "minimum_index_compatibility_version" : "2.0.0"
  },
  "tagline" : "The OpenSearch Project: https://opensearch.org/"
}

And yes, I followed the doc’s instructions to the T.

After a little back and forth with ChatGPT i had an epiphany. I checked the ownership of /var/log/opensearch-dashboards/. It was set to opensearch-dashboards:adm. I changed that to opensearch-dashboards:opensearch-dashboards and restarted the service.
All of a sudden it worked.

2 Likes