Skip to content

Deployment Plan kodo Version Expired


Problem Description

After the first login to the backend management interface following deployment, you need to reset the admin password. If the new password is not recorded and forgotten after a long time, you will be unable to log in to the backend management. This can be handled through the following two methods.

Problem Resolution

Solution One: Reset Password via Another Administrator

If multiple administrators exist, you can log in to the backend management using another administrator account and reset the forgotten password for the affected administrator account.

Solution Two: Modify Database Data

Enter the pod and execute the Python command to generate an encrypted string, then modify the database field value.

kubectl -n forethought-core get po | grep front-backend
kubectl -n forethought-core exec -it pod_name bash
Execute the following commands to obtain the encrypted password value:
python
from werkzeug.security import generate_password_hash
generate_password_hash('admin')
Connect to the MySQL database using the MySQL client and execute the SQL command:
-- Replace 'passwd' with the value generated from the previous step
update df_core.main_manage_account set password = 'passwd' where username= 'admin';

Feedback

Is this page helpful? ×