1
0

troubleshooting.asciidoc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [[watcher-troubleshooting]]
  2. == {xpack} {watcher} Troubleshooting
  3. ++++
  4. <titleabbrev>{xpack} {watcher}</titleabbrev>
  5. ++++
  6. [float]
  7. === Dynamic Mapping Error When Trying to Add a Watch
  8. If you get the _Dynamic Mapping is Disabled_ error when you try to add a watch,
  9. verify that the index mappings for the `.watches` index are available. You can
  10. do that by submitting the following request:
  11. [source,js]
  12. --------------------------------------------------
  13. GET .watches/_mapping
  14. --------------------------------------------------
  15. // CONSOLE
  16. // TEST[setup:my_active_watch]
  17. If the index mappings are missing, follow these steps to restore the correct
  18. mappings:
  19. . Stop the Elasticsearch node.
  20. . Add `xpack.watcher.index.rest.direct_access : true` to `elasticsearch.yml`.
  21. . Restart the Elasticsearch node.
  22. . Delete the `.watches` index:
  23. +
  24. [source,js]
  25. --------------------------------------------------
  26. DELETE .watches
  27. --------------------------------------------------
  28. // CONSOLE
  29. // TEST[skip:index deletion]
  30. +
  31. . Disable direct access to the `.watches` index:
  32. .. Stop the Elasticsearch node.
  33. .. Remove `xpack.watcher.index.rest.direct_access : true` from `elasticsearch.yml`.
  34. .. Restart the Elasticsearch node.
  35. [float]
  36. === Unable to Send Email
  37. If you get an authentication error indicating that you need to continue the
  38. sign-in process from a web browser when Watcher attempts to send email, you need
  39. to configure Gmail to
  40. https://support.google.com/accounts/answer/6010255?hl=en[Allow Less Secure Apps to access your account].
  41. If you have two-step verification enabled for your email account, you must
  42. generate and use an App Specific password to send email from {watcher}. For more
  43. information, see:
  44. - Gmail: https://support.google.com/accounts/answer/185833?hl=en[Sign in using App Passwords]
  45. - Outlook.com: http://windows.microsoft.com/en-us/windows/app-passwords-two-step-verification[App passwords and two-step verification]
  46. [float]
  47. === {watcher} Not Responsive
  48. Keep in mind that there's no built-in validation of scripts that you add to a
  49. watch. Buggy or deliberately malicious scripts can negatively impact {watcher}
  50. performance. For example, if you add multiple watches with buggy script
  51. conditions in a short period of time, {watcher} might be temporarily unable to
  52. process watches until the bad watches time out.