Skip to content

Deployment Plan kodo version expired


Problem Description

After the deployment is complete, the first login to the backend management interface requires resetting the admin password. If the password is not recorded and forgotten after a long period, you will be unable to log in to the backend management. The following two methods can be used to resolve this.

Solution

Option 1: Reset password via another administrator

If multiple administrators exist, another administrator can log in to the backend management and reset the password for the admin whose password was forgotten.

Option 2: Modify database data

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

kubectl -n forethought-core get po |grep front-backend
kubectl -n forethought-core exec -it pod_name bash

Run the following commands to obtain the encrypted password:

python
from werkzeug.security import generate_password_hash
generate_password_hash('admin')

Connect to the MySQL database using a MySQL client and execute the SQL:

-- The passwd value is the value generated in the previous step
update df_core.main_manage_account set password = 'passwd' where username= 'admin';

Feedback

Is this page helpful?