CIS - Web interface - Randomly logs you out

  • 7024858
  • 09-Oct-2020
  • 09-Oct-2020

Environment

Open Enterprise Server 2018 (OES 2018) Linux

Situation

Log in to the web interface and begin to manage the product. It will randomly log you out and take you back to login screen. It doesn't matter what you're doing, you lose whatever it was.  It happens consistently within 3-5 minutes of login.

Resolution

Make sure that the time on the machine where you are running the web interface in is sync with the time on the server being managed.

Cause

If the time is off between the two machines then the token timeout can be reached.
As a result the authentication is not valid anymore.

Additional Information

In the cis*.log files you may see something like this:

2020-09-28T21:04:38-10:00    cis-repcollector    {"source":"stderr","log":"2020/09/28 21:04:38 Authentication failed: zk: session has been expired by the server"

If managing policies you may see something like this:
2020-09-30T03:45:20-10:00	cis-policy	{"container_id":"854f520d56908baac84bb64e66641a2f06c52aab0e8c6dfec65f3882efcb5a05","container_name":"/cis-policy","source":"stdout","log":"time=\"
2020-09-30T03:45:20.920564360-10:00\" level=error msg=\"[/api/v1/config/user/getagtgconfig Bearer
<Token here>"
Cname=CIS-Policy status=\"ErrTokenInvalidOrExpired: Token validataion failed,ErrTokenInvalidOrExpired:
User provided token invalid, Token is expired\""}