Es and kibana install x-pack

hi,I encountered a problem,i had installed x-pack on es and kibana,but it dosen't work(there is not a login page but i can still use es and kibana normally).I had added 'xpack.security.enabled: true' to the elasticsearch.yml,but it is useless.All versions are 5.5.3.
What's more,when the es starting,the log printed the fllowing error:

> [2020-01-02T15:18:26,494][ERROR][o.e.x.m.c.n.NodeStatsCollector] [node-1] collector [node-stats] failed to collect data
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> 	at java.util.ArrayList.rangeCheck(ArrayList.java:657) ~[?:1.8.0_231]
> 	at java.util.ArrayList.get(ArrayList.java:433) ~[?:1.8.0_231]
> 	at org.elasticsearch.xpack.monitoring.collector.node.NodeStatsCollector.doCollect(NodeStatsCollector.java:83) ~[x-pack-5.5.3.jar:5.5.3]
> 	at org.elasticsearch.xpack.monitoring.collector.Collector.collect(Collector.java:83) [x-pack-5.5.3.jar:5.5.3]
> 	at org.elasticsearch.xpack.monitoring.MonitoringService$MonitoringExecution$1.doRun(MonitoringService.java:195) [x-pack-5.5.3.jar:5.5.3]
> 	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) [elasticsearch-5.5.3.jar:5.5.3]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_231]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_231]
> 	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:569) [elasticsearch-5.5.3.jar:5.5.3]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_231]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_231]
> 	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_231]
> [2020-01-02T15:18:30,771][INFO ][o.e.t.TransportService   ] [node-1] publish_address {192.168.16.128:9300}, bound_addresses {192.168.16.128:9300}

What should i do,thank you very much.