Skip to content
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

"No handler found for uri /_plugins/_reports/on_demand" when running OpenSearch in Kubernetes #302

Open
pmhanaga opened this issue Feb 2, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@pmhanaga
Copy link

pmhanaga commented Feb 2, 2024

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

opensearch-dashboards:v2.3.0

Describe the issue:

All OpenSearch pods are up and running:

But OpenSearch dashboards report generate is not working

When try to generate report we are seeing attached error screen and attached logs.

In pod we are seeing error like “no handler found for uri [/_plugins/_reports/on_demand” as below.

[“error”,“plugins”,“reportsDashboards”],“pid”:7,“message”:"Failed to generate report: no handler found for uri [/_plugins/_reports/on_demand]

We are just trying to understand is there any configuration missing while installing occne or open search.

Or is there any pre-request steps need to do before generating report.

even Create report definition also giving same kind of error.
Open Search dashboard pod logs.txt
OpenSearch Error Screen

@pmhanaga pmhanaga added bug Something isn't working untriaged labels Feb 2, 2024
@AMoo-Miki
Copy link
Contributor

@opensearch-project/admin please help move this issue to dashboards-reporting.

@bbarani bbarani transferred this issue from opensearch-project/OpenSearch-Dashboards Feb 19, 2024
@Swiddis
Copy link
Collaborator

Swiddis commented Mar 26, 2024

Are all of the plugins installed on the OpenSearch pods? This is a somewhat generic error that roughly equates "Reporting isn't installed", it's hard to debug without more information about the setup.

@Swiddis Swiddis changed the title OpenSearch dashboards report generate is not working "No handler found for uri /_plugins/_reports/on_demand" when running OpenSearch in Kubernetes Mar 26, 2024
@Swiddis Swiddis removed the untriaged label Mar 27, 2024
@pburkholder
Copy link

Hi -- Same error, different setup.

I'm doing the setup following DEVELOPER_GUIDE.md for OpenSearch, OpenSearch Dashboards, and dashboards-reporting, so I have the following checked out:

OpenSearch
OpenSearch-Dashboards
├── plugins
├──────dashboards-reporting

I then run OpenSearch with

./gradlew run
=======================================
OpenSearch Build Hamster says Hello!
  Gradle Version        : 8.10.2
  OS Info               : Mac OS X 14.7.2 (aarch64)
  JDK Version           : 21 (Eclipse Temurin JDK)
  JAVA_HOME             : /Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home
  Random Testing Seed   : 60656472541EC171
  In FIPS 140 mode      : false
=======================================

And OpenSearch Dashboards with

❯ yarn start
yarn run v1.22.22
$ scripts/use_node scripts/opensearch_dashboards --dev

From there, I'm able to use load sample weblog data at http://0.0.0.0:5603/xoy, and save a search. When I go to the "Reporting Menu" I have valid options for downloading a CSV:

image

but when I try to do so I get this error in the Dashboards log:

server    log   [20:59:32.050] [error][plugins][reportsDashboards] Failed to generate report: no handler found for uri [/_plugins/_reports/on_demand] and method [PUT] :: {"path":"/_plugins/_reports/on_demand","query":{},"body":"{\"beginTimeMs\":1735246771996,\"endTimeMs\":1735851571996,\"reportDefinitionDetails\":{\"id\":\"76d9d6e0-c94c-11ef-b18d-314511f86852\",\"lastUpdatedTimeMs\":1735851572046,\"createdTimeMs\":1735851572046,\"reportDefinition\":{\"name\":\"On_demand_report\",\"isEnabled\":true,\"source\":{\"description\":\"In-context report download\",\"type\":\"SavedSearch\",\"id\":\"498539a0-c94c-11ef-a12b-77ad3f2669a3\",\"origin\":\"http://0.0.0.0:5603/xoy\"},\"format\":{\"duration\":\"PT168H\",\"fileFormat\":\"Csv\",\"limit\":10000},\"trigger\":{\"triggerType\":\"Download\"},\"delivery\":{\"configIds\":[\"\"],\"title\":\"\",\"textDescription\":\"\",\"htmlDescription\":\"\"}}},\"status\":\"Success\",\"inContextDownloadUrlPath\":\"/app/data-explorer/discover#/view/498539a0-c94c-11ef-a12b-77ad3f2669a3?_q=(filters:!(),query:(language:kuery,query:''))&_a=(discover:(columns:!(agent),isDirty:!f,savedSearch:'498539a0-c94c-11ef-a12b-77ad3f2669a3',sort:!()),metadata:(indexPattern:'90943e30-9a47-11e8-b64d-95841ca0b247',view:discover))&_g=(filters:!(),refreshInterval:(pause:!f,value:900000),time:(from:'2024-12-26T20:59:31.999Z',to:'2025-01-02T20:59:31.999Z'))\"}","statusCode":400,"response":"{\"error\":\"no handler found for uri [/_plugins/_reports/on_demand] and method [PUT]\"}"}
server    log   [20:59:32.051] [error][plugins][reportsDashboards] StatusCodeError: no handler found for uri [/_plugins/_reports/on_demand] and method [PUT]
    at respond (/Users/peterdburkholder/Projects/misc/OpenSearch-Dashboards/node_modules/elasticsearch/src/lib/transport.js:349:15)
    at checkRespForFailure (/Users/peterdburkholder/Projects/misc/OpenSearch-Dashboards/node_modules/elasticsearch/src/lib/transport.js:306:7)
    at HttpConnector.<anonymous> (/Users/peterdburkholder/Projects/misc/OpenSearch-Dashboards/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
    at IncomingMessage.wrapper (/Users/peterdburkholder/Projects/misc/OpenSearch-Dashboards/node_modules/lodash/lodash.js:4991:19)
    at IncomingMessage.emit (node:events:529:35)
    at IncomingMessage.emit (node:domain:489:12)
    at endReadableNT (node:internal/streams/readable:1400:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21) {
  status: 400,
  displayName: 'BadRequest',
  path: '/_plugins/_reports/on_demand',
  query: {},
  body: {
    error: 'no handler found for uri [/_plugins/_reports/on_demand] and method [PUT]'
  },
  statusCode: 400,
  response: '{"error":"no handler found for uri [/_plugins/_reports/on_demand] and method [PUT]"}',
  toString: [Function (anonymous)],
  toJSON: [Function (anonymous)]

So: is there something I should be doing different to get the reporting plugin to work when in a developer environment? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants