Error when uploading model: unable to find valid certification path to requested target

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
2.4.1

Describe the issue:
Hi I’m setting up OpenSearch on local by docker-compose to test semantic search, but I got the error about certificate. Any quick ways to disable this?

Configuration:
docker-compose.yml
version: “3”
services:
opensearch-node:
image: opensearchproject/opensearch:2.4.1
container_name: opensearch-node
environment:
- discovery.type=single-node
- “DISABLE_INSTALL_DEMO_CONFIG=true”
- “DISABLE_SECURITY_PLUGIN=true”
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200

opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.4.1
container_name: opensearch-dashboards
ports:
- 5601:5601
expose:
- “5601”
environment:
- “DISABLE_SECURITY_DASHBOARDS_PLUGIN=true”
- “OPENSEARCH_HOSTS=http://opensearch-node:9200

upload model request
POST /_plugins/_ml/models/_upload
{
“name”: “all-MiniLM-L6-v2”,
“version”: “1.0.0”,
“description”: “test model”,
“model_format”: “TORCH_SCRIPT”,
“model_config”: {
“model_type”: “bert”,
“embedding_dimension”: 384,
“framework_type”: “sentence_transformers”
},
“url”: “https://github.com/opensearch-project/ml-commons/raw/2.x/ml-algorithms/src/test/resources/org/opensearch/ml/engine/algorithms/text_embedding/all-MiniLM-L6-v2_torchscript_sentence-transformer.zip?raw=true
}

Relevant Logs or Screenshots:

I think that error is related with the cluster setup. Can you explain the detail steps to reproduce the error?

BTW, 2.4 is very old version. Have you tried the latest version 2.9 which we GA released this feature?

Some useful links

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.