-
Notifications
You must be signed in to change notification settings - Fork 159
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
Cannot Start Opensearch Dashboard #1954
Comments
@anh2001ht |
Thanks for reply, when I change OPENSEARCH_PASSWORD into mypasswordStrong123! I got this error |
|
I see, do you have security dashboard plugin under plugins directory? it's used for login since OpenSearch has security enabled. alternatively, you could disable security of OpenSearch and using default config of opensearch_dashboard.yml file. |
yes, I have install dashboard plugin already , this is the file opensearch_dashboard.yml after I build security plugin opensearch.hosts: ["https://localhost:9200"] opensearch.ssl.verificationMode: none opensearch.username: "admin" opensearch.password: "admin" i18n.locale: "ja-JP" opensearch.requestHeadersWhitelist: [ authorization,securitytenant ] opensearch_security.multitenancy.enabled: true opensearch_security.multitenancy.tenants.preferred: ["Private", "Global"] opensearch_security.readonly_mode.roles: ["kibana_read_only"] opensearch_security.cookie.secure: false |
`StatusCodeError: Authorization Exception at respond (/home/ntq/DemoPlugin/OpenSearch-Dashboards/node_modules/elasticsearch/src/lib/transport.js:349:15) at checkRespForFailure (/home/ntq/DemoPlugin/OpenSearch- Dashboards/node_modules/elasticsearch/src/lib/transport.js:306:7) at HttpConnector. (/home/ntq/DemoPlugin/OpenSearch- Dashboards/node_modules/elasticsearch/src/lib/connectors/http.js:173:7) at IncomingMessage.wrapper (/home/ntq/DemoPlugin/OpenSearch-Dashboards/node_modules/lodash/lodash.js:4991:19) at IncomingMessage.emit (events.js:412:35) at IncomingMessage.emit (domain.js:475:12) at endReadableNT (internal/streams/readable.js:1333:12) at processTicksAndRejections (internal/process/task_queues.js:82:21) { status: 403, displayName: ‘AuthorizationException’, path: ‘/_plugins/_security/tenantinfo’, query: {}, body: undefined, statusCode: 403, response: ‘’, toString: [Function (anonymous)], toJSON: [Function (anonymous)] }` I got the new error 403 after I apply security plugin |
@opensearch-project/admin can you re-route this to security dashboards plugin repo? |
Hello, I am using docker compose to run Opensearch, and use source code Opensearch-Dashboard then yarn start to run dashboard (to use plugin i18n). I have a problem that I can not access to dashboard Url (port 5601) because of this error :
Here is my docker-compose.yaml
version: '3'
services:
opensearch:
image: opensearchproject/opensearch:2.12.0
container_name: opensearch
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- compatibility.override_main_response_version=true
- "OPENSEARCH_SECURITY_ENABLED=true"
- "OPENSEARCH_SECURITY_AUDIT_ENABLED=true"
- "OPENSEARCH_INITIAL_ADMIN_PASSWORD=mypasswordStrong123!"
# - "DISABLE_INSTALL_DEMO_CONFIG=true"
# - "DISABLE_SECURITY_PLUGIN=true"
volumes:
- ./data:/usr/share/opensearch/data
- ./config/opensearch.yml:/usr/share/opensearch/config/opensearch.yml
- ./certs/root-ca.pem:/usr/share/opensearch/config/root-ca.pem
- ./certs/node1.pem:/usr/share/opensearch/config/node1.pem
- ./certs/node1-key.pem:/usr/share/opensearch/config/node1-key.pem
ports:
- 9200:9200
- 9600:9600
networks:
- opensearch-net
networks:
opensearch-net:
driver: bridge
file config opensearch.yml:
`
network.host: 0.0.0.0
plugins.security.ssl.transport.pemcert_filepath: node1.pem
plugins.security.ssl.transport.pemkey_filepath: node1-key.pem
plugins.security.ssl.transport.pemtrustedcas_filepath: root-ca.pem
plugins.security.ssl.transport.enforce_hostname_verification: true
plugins.security.ssl.http.enabled: false
plugins.security.ssl.http.pemcert_filepath: node1.pem
plugins.security.ssl.http.pemkey_filepath: node1-key.pem
plugins.security.ssl.http.pemtrustedcas_filepath: root-ca.pem
plugins.security.allow_unsafe_democertificates: false
plugins.security.allow_default_init_securityindex: true
plugins.security.nodes_dn:
'CN=node1.dns.a-record,OU=UNIT,O=ORG,L=TORONTO,ST=ONTARIO,C=CA'
file config opensearch_dashboards.yml
server.host: "0.0.0.0"
opensearch.username: "admin"
opensearch.password: "admin"
opensearch.hosts: ["http://localhost:9200/"]
i18n.locale: "ja-JP"
Can someone help me please, I can run dashboard and opensearch with docker compose sucessfully but I run dashboard with yarn start and docker compose opensearch I can not work. this is the file docker compose that both opensearch and opensearch dashboard work :
version: '3'
services:
opensearch:
image: opensearchproject/opensearch:2.12.0
container_name: opensearch
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- compatibility.override_main_response_version=true
- "OPENSEARCH_SECURITY_ENABLED=true"
- "OPENSEARCH_SECURITY_AUDIT_ENABLED=true"
# - "DISABLE_SECURITY_PLUGIN=true"
- "OPENSEARCH_INITIAL_ADMIN_PASSWORD=mypasswordStrong123!"
volumes:
- ./data:/usr/share/opensearch/data
- ./config/opensearch.yml:/usr/share/opensearch/config/opensearch.yml
- ./certs/root-ca.pem:/usr/share/opensearch/config/root-ca.pem
- ./certs/node1.pem:/usr/share/opensearch/config/node1.pem
- ./certs/node1-key.pem:/usr/share/opensearch/config/node1-key.pem
- ./certs/admin.pem:/usr/share/opensearch/config/admin.pem
- ./certs/admin-key.pem:/usr/share/opensearch/config/admin-key.pem
- ./logs/log.log:/usr/share/opensearch/logs/opensearch.log
ports:
- 9200:9200
networks:
- opensearch-net
kibana:
image: opensearchproject/opensearch-dashboards:2.12.0
container_name: kibana
ports:
- 5601:5601
- 5603:5603
stdin_open: true
tty: true
expose:
- "5601"
- "5603"
environment:
- 'OPENSEARCH_HOSTS=["http://localhost:9200/"]'
- 'SERVER_HOST="0.0.0.0"'
- "OPENSEARCH_USERNAME=admin"
- "OPENSEARCH_PASSWORD=admin"
networks:
- opensearch-net
networks:
opensearch-net:
driver: bridge
The text was updated successfully, but these errors were encountered: