netgroup-polito / CrownLabs

Kubernetes-based Remote Laboratories
https://crownlabs.polito.it
Apache License 2.0
105 stars 41 forks source link

The dashboard fails to open if the local wall clock is not correct #374

Closed giorio94 closed 2 years ago

giorio94 commented 3 years ago

Describe the bug It is impossible to access the CrownLabs dashboard in case the local time (i.e. wall clock) is not configured correctly (e.g. one hour back). This is probably related to the validity of the log-in token. However, the dashboard remains stuck displaying a white page, and no error messages are displayed to the user pointing out the problem.

To Reproduce Steps to reproduce the behavior:

  1. Change the local time to an incorrect value (e.g. one hour back). E.g., from a CrownLabs VM:
    sudo timedatectl set-ntp 0
    sudo timedatectl set-time hh:mm
  2. Go to crownlabs.polito.it
  3. Log-in as usual
  4. The dashboard remains stuck in the callback (i.e. displaying a white page)

Expected behavior The dashboard should either work correctly or a clear error message should displayed to the user.

Additional context

giorio94 commented 2 years ago

Closing, as the new frontend does not seem to be affected by this bug.