Unable to update users and roles (primary shard is not active Timeout)

Hi Team,

I am using elasticsearch with searchguard 2.3.4 and testing for 1 node only. Whenever I tried to create and update new user and roles it says clustertimed out. Please find below elasticsearch logs and help me in undesrtanding those errors

UnavailableShardsException[[auditlog][2] primary shard is not active Timeout: [1m], request: [index {[auditlog][auditlog][AVbPoPfFVOSyDPZ_6Rka], source[{"audit_remote_address":"127.0.0.1:53626","audit_request_headers":"[]","audit_request_class":"class org.elasticsearch.action.search.SearchRequest","audit_principal":null,"audit_details":"null","audit_date":"Sun Aug 28 00:30:48 CDT 2016","audit_reason":"indices:data/read/search","audit_request_context":"[_sg_ssl_cipher=>TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, _sg_remote_address=>127.0.0.1:53626, _sg_user=>User [name=kibanaserver, roles=[]], _sg_ssl_protocol=>TLSv1.2]","audit_category":"AUTHENTICATED","audit_request_user":"kibanaserver"}]}]]
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.retryBecauseUnavailable(TransportReplicationAction.java:596)
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.doRun(TransportReplicationAction.java:465)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$2.onTimeout(TransportReplicationAction.java:558)
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:236)
at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:804)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Java heapsize details

java -XX:+PrintFlagsFinal -version | grep -iE 'HeapSize|PermSize|ThreadStackSize'
intx CompilerThreadStackSize = 0 {pd product}
uintx ErgoHeapSizeLimit = 0 {product}
uintx HeapSizePerGCThread = 87241520 {product}
uintx InitialHeapSize := 130023424 {product}
uintx LargePageHeapSizeThreshold = 134217728 {product}
uintx MaxHeapSize := 2053111808 {product}
intx ThreadStackSize = 1024 {pd product}
intx VMThreadStackSize = 1024 {pd product}
java version "1.8.0_73"
Java(TM) SE Runtime Environment (build 1.8.0_73-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.73-b02, mixed mode)

Hi team I am getting below error in elasticsearch logs can you please help.

Also when I try to open Kibana quite often I get heapsize error and Kibana loses connection to Elasticsearch.

RAM 8GB and Harddisk is of 1 TB.

#################################################################
UnavailableShardsException[[auditlog][2] primary shard is not active Timeout: [1m], request: [index {[auditlog][auditlog][AVbjP7iPnbALBV65h4ln], source[{"audit_remote_address":"127.0.0.1:53066","audit_request_headers":"[]","audit_request_class":"class org.elasticsearch.action.bulk.BulkShardRequest","audit_principal":null,"audit_details":"null","audit_date":"Wed Aug 31 19:56:59 CDT 2016","audit_reason":"indices:data/write/bulk[s]","audit_request_context":"[_sg_ssl_cipher=>TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256, _sg_user=>User [name=logstash, roles=[]], _sg_remote_address=>127.0.0.1:53066, _sg_ssl_protocol=>TLSv1.2]","audit_category":"AUTHENTICATED","audit_request_user":"logstash"}]}]]
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.retryBecauseUnavailable(TransportReplicationAction.java:596)
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.doRun(TransportReplicationAction.java:465)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$2.onTimeout(TransportReplicationAction.java:558)
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:236)
at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(InternalClusterService.java:804)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)