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

[APM] Enable watcher error reports fails with permissions error in Cloud 7.7 #66867

Closed
danielharada opened this issue May 16, 2020 · 1 comment · Fixed by #68465
Closed

[APM] Enable watcher error reports fails with permissions error in Cloud 7.7 #66867

danielharada opened this issue May 16, 2020 · 1 comment · Fixed by #68465
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:APM All issues that need APM UI Team support v7.8.0

Comments

@danielharada
Copy link

Describe the bug
The "Enable watcher error reports" action fails with pop-up saying "Watch creation failed. Make sure your user has permission to create watches." in version 7.7 on Cloud instances. This was done with the elastic super user. I confirmed that this user was able to create watches via API that successfully sent an email to the same address used in the APM watcher.

I tested the same action in 7.6.2 and 7.5.2, both succeed following the same steps. I only tested Cloud instances, I have not tested any local versions.

In my Chrome network tab I see that the response to the call to /api/watcher/watch/apm-b1cf90c4-6e06-47ed-973e-1f39175d3694 is {"statusCode":400,"error":"Bad Request","message":"[request body.isNew]: expected value of type [boolean] but got [undefined]"}.

Javascript console shows the following error when executing this action:

PUT /api/watcher/watch/apm-b1cf90c4-6e06-47ed-973e-1f39175d3694 400 (Bad Request)
Error: Bad Request
    at Fetch._callee3$ (commons.bundle.js:3)
    at l (kbn-ui-shared-deps.js:288)
    at Generator._invoke (kbn-ui-shared-deps.js:288)
    at Generator.forEach.e.<computed> [as next] (kbn-ui-shared-deps.js:288)
    at asyncGeneratorStep (commons.bundle.js:3)
    at _next (commons.bundle.js:3)

To Reproduce
Steps to reproduce the behavior:

  1. Setup APM in Elasticsearch Service deployment running version 7.7
  2. Go to Kibana > APM > Click into your service > Integrations > Enable watcher error reports
  3. Leave default Trigger and Condition, enable Send Email action and enter valid email. Click "Create watch"
  4. See error

Expected behavior
Watch successfully created. This happens in 7.5.2 and 7.6.2

Actual Behavior
Pop-up saying "Watch creation failed. Make sure your user has permission to create watches."
400 error in Kibana logs, e.g.:
PUT /api/watcher/watch/apm-3bde3644-8490-489c-ab88-5f33ddcdcd0d 400 53ms - 9.0B
No errors in ES logs, nothing shown in ES proxy logs

@axw axw transferred this issue from elastic/apm May 18, 2020
@axw axw changed the title Enable watcher error reports fails with permissions error in Cloud 7.7 [APM] Enable watcher error reports fails with permissions error in Cloud 7.7 May 18, 2020
@axw axw added the Team:APM All issues that need APM UI Team support label May 18, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@axw axw added the bug Fixes for quality problems that affect the customer experience label May 18, 2020
@ogupte ogupte self-assigned this Jun 5, 2020
ogupte added a commit to ogupte/kibana that referenced this issue Jun 6, 2020
ogupte added a commit that referenced this issue Jun 8, 2020
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
ogupte added a commit to ogupte/kibana that referenced this issue Jun 8, 2020
…68465)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
ogupte added a commit to ogupte/kibana that referenced this issue Jun 8, 2020
…68465)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
gmmorris added a commit to gmmorris/kibana that referenced this issue Jun 8, 2020
* master:
  [ML] DFAnalytics results: ensure ml result fields are shown in data grid (elastic#68305)
  [security_solution] enable react-hooks/exhaustive-deps (elastic#68470)
  Closes elastic#66867 by adding missing, requried API params (elastic#68465)
  [Telemetry] collect number of visualization saved in the past 7, 30 and 90 days (elastic#67865)
  [Logs UI] View in context tweaks (elastic#67777)
  Kibana developer examples landing page (elastic#67049)
  Bump decompress package version (elastic#68386)
  fix elastic#66185 (elastic#66186)
  Bump pdfmake package version (elastic#68395)
  Unskip embeddables/adding_children suite (elastic#68111)
  Add embed mode options in the Share UI (elastic#58435)
  Adding key to avoid react warning (elastic#68491)
ogupte added a commit that referenced this issue Jun 8, 2020
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
ogupte added a commit that referenced this issue Jun 8, 2020
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:APM All issues that need APM UI Team support v7.8.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants