troubleshooting.asciidoc 2.3 KB

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