10.1. Lost Password

Question: I lost my password and got locked out of the Dashboard

Answer:

To recover access to a single account, and you still have Dashboard access via another user, resolve by recreating the Dashboard account.

If you no longer have access to the Dashboard from any account, you can use the fact that if the users.json file does not exist at startup, the Dashboard will recreate the default user for you as long as the default admin user and password environment variables exist.

Perform the following steps to remove all user accounts and revert to the default admin user:

  1. Verify that you've set default admin user and default admin passwords environment variables into the docker-compose or .env file available to it.

  2. SSH to the dashboard container.

  3. Navigate to config directory (by default app/persistent/)

  4. Delete the users.json file.

  5. Exit from the container

  6. Restart the container

    For Docker:

    • Shutdown the docker container by running docker-compose down

    • Restart the container with docker-compose up -d

    For kubernetes / helm:

    • kubectl delete pod -n tungsten-dashboard {pod-name}

When the user file does not exist the Dashboard will recreate the default user for you when it restarts, use this to recover access