Kibana 401 unauthorized error

I meet the same issue, first time is fine, but got the error message after restart:
{“statusCode”:401,“error”:“Unauthorized”,“message”:“Unauthorized”}

the opensearch version is 2.1