﻿---
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://www.elastic.co/elastic/docs-builder/docs/3028/troubleshoot/elasticsearch/security/trb-security-internalserver
products:
  - Elasticsearch
applies_to:
  - Self-managed Elastic deployments: Generally available
---

# 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://www.elastic.co/elastic/docs-builder/docs/3028/deploy-manage/stack-settings). Otherwise, Kibana cannot connect to Elasticsearch.