Incorrect Username or Password

cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect Username or Password

L1 Bithead

Hello all. I have just installed Expedition but am unable to log in. I get the "Incorrect Username or Password" error.

 

I have run php /var/www/html/OS/startup/restore/restoreAdmin.php and got the expected reply:

✓ Connected successfully to the database
✓ Admin user found
✓ Admin password restored to: 'paloalto'

 

Still I cannot log in. Any suggestions? Thanks in advance.

 

Terry

1 ACCEPTED SOLUTION

Accepted Solutions

L1 Bithead

Figured it out. Simple problem, the 'root@localhost' didn't have a password in MySQL. Added one and it magically started working! Thank you @lychiang for helping.

 

Terry

View solution in original post

5 REPLIES 5

L5 Sessionator

Hi @TerryDes ,

Couple things you can check:.

1. Make sure you HD has enough space , if there is no space left in / folder , it will prevent you to login.

2. Follow the solution in this article to re-install Expedition: https://live.paloaltonetworks.com/t5/expedition-discussions/incorrect-user-or-password-when-logging-...

We have enough space, and tried the second suggestion and it still does not work.

Please follow the steps below to troubleshoot, after each of the steps , try to login to GUI , if you are able to login , you do not need to continue the remaining steps. 
 
1. Delete the cookies on your browser , and refresh the browser 
 
2. login to CLI to verify mysql service is up and running by issue below command:
sudo service mysql status 
You should see mysql service is "active(running) , if not , trying to restart the mysql by issue below command:
sudo service mysql restart
If you encounter an error, pelase follow the instructions to view more details on why mysql is not started.
 
3. Follow the below article to remove tc.log:
 
4. Verify if all php package are 7.0 by issuing below command:
 
apt list --installed | grep php 
 
If there are versions other than 7.0 installed, you will need to re-install the ubuntu VM from scratch.
 

Thank you for the prompt replies!

 

1. Have done after every attempt to fix, hasn't worked. Tried different browsers as well (Edge, Chrome)

2. Reply from server:

mariadb.service - MariaDB 10.5.15 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: active (running) since Mon 2022-05-16 16:26:52 UTC; 54min ago
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
Main PID: 1114 (mariadbd)
Status: "Taking your SQL requests now..."
Tasks: 11 (limit: 4612)
Memory: 105.9M
CGroup: /system.slice/mariadb.service
└─1114 /usr/sbin/mariadbd

3. Completed, no change.

4. Reply from server:

libapache2-mod-php7.0/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]
php-common/focal,now 2:92+ubuntu20.04.1+deb.sury.org+2 all [installed,automatic]
php7.0-bcmath/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]
php7.0-bz2/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]
php7.0-cli/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,automatic]
php7.0-common/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,automatic]
php7.0-curl/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]
php7.0-gd/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]
php7.0-json/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,automatic]
php7.0-ldap/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]
php7.0-mbstring/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]
php7.0-mcrypt/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]
php7.0-mysql/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]
php7.0-opcache/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]
php7.0-radius/focal,now 1.4.0~b1-22+ubuntu20.04.1+deb.sury.org+10 amd64 [installed]
php7.0-readline/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed,automatic]
php7.0-soap/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]
php7.0-xml/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]
php7.0-zip/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 amd64 [installed]
php7.0/focal,now 7.0.33-57+ubuntu20.04.1+deb.sury.org+1 all [installed]

L1 Bithead

Figured it out. Simple problem, the 'root@localhost' didn't have a password in MySQL. Added one and it magically started working! Thank you @lychiang for helping.

 

Terry

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!