Could not run anomaly detection plugin locally

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

Describe the issue:
Hi team, I am trying to run anomaly detection plugin dashboard locally but when I try to create the detector, there is this error:

error "no handler found for uri [/_plugins/_anomaly_detection/detectors/_search] and method [POST]"

The opensearch problem is not the cause because when I run the dashboard in docker, everything looks good. Only when I run the dashboard with yarn locally from the repo checked out from github, this error happens. Any idea what setup am I missing pls?

Configuration:
I bring up the opensearch container by using docker compose under opensearch-dashboards/docs/docker-dev

Relevant Logs or Screenshots:

It seems that the opensearch cluster doesn’t have the anomaly-detection backend plugin installed so the related APIs don’t exist, you can check if the backend plugin is installed by calling GET _cat/plugins.

1 Like

It turns out that I am using wrong version of the plugin, it is 2.x version while the dashboard is 3.0.

Thank you so much @gaobinlong :folded_hands: