facebook

Administrator matching query does not exist in CyberPanel

You have successfully debugged CyberPanel and executed the upgrade script. As a result, the main page is now operational; however, you are currently unable to log in for an unknown reason. If you take a moment to open the response section in your browser’s developer tools, you may observe the following console log:

{userID: 0, loginStatus: 0, error_message: “Administrator matching query does not exist.”}
1. error_message: “Administrator matching query does not exist.”

The error message “Administrator matching query does not exist” generally signifies that there is no admin user present in the database, or the credentials of the existing admin user do not match.

To resolve this issue, you will need to create a new admin user. You can accomplish this by following these steps:

1. Navigate to the CyberPanel directory:

cd /usr/local/CyberCP

2. Execute the command to create a superuser:

python manage.py createsuperuser

After running the command, you will be prompted to create a new user. You will have the opportunity to select both the username and password, which will allow you to regain access to your admin dashboard.

You will be requested for the information as follows:
– Username (leave blank to use ‘root’):
– Email address:
– Password:
– Password (again):

Once you complete these steps, you should see the message: “Superuser created successfully.” Afterward, restart the lscpd service to apply the changes:

systemctl restart lscpd

This process will enable you to log back into your admin dashboard with the newly created credentials.

 

This article is part of a bigger article:

-> Debugging User Authentication Issues in CyberPanel

You may wish to read it as well.