﻿---
title: Internal server error in Kibana
description: Symptoms: In 5.1.1, an UnhandledPromiseRejectionWarning occurs and Kibana displays an Internal Server Error.Resolution: If the Security plugin is enabled...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4046/troubleshoot/elasticsearch/security/trb-security-internalserver
products:
  - Elasticsearch
---

# Internal server error in Kibana
**Symptoms:**
- In 5.1.1, an `UnhandledPromiseRejectionWarning` occurs and Kibana displays an Internal Server Error.

**Resolution:**
If the Security plugin is enabled in Elasticsearch but disabled in Kibana, you must still set `elasticsearch.username` and `elasticsearch.password` in [`kibana.yml`](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4046/deploy-manage/stack-settings). Otherwise, Kibana cannot connect to Elasticsearch.