'superset Invalid login. Please try again

i installed superset in aws ec2 follwed this link https://superset.apache.org/docs/installation/installing-superset-from-scratch/ after 2 months the server was down and i restarted the machine but i am getting the error while login as admin it shows me Invalid login. Please try again. i am using the same credentials and checked for typo also please help. i need dashboards also and pleSe help with the backup of all those thanks. i am using default db in .superset/superset.db i didt changed anything but creds was wrong



Solution 1:[1]

Reinitiliase the database to recreate the users table.

superset db upgrade
superset fab create-admin  . # To create admin user.
superset init  # Create default roles and permissions

Solution 2:[2]

Use this to resolve the problem

flask fab  list-users  ## To view all the users
flask fab  reset-password   ## To reset user password

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Lenin
Solution 2 Lenin