Passky-Server icon indicating copy to clipboard operation
Passky-Server copied to clipboard

I can't log in to the Admin Panel

Open VlaK0r opened this issue 2 years ago • 13 comments

Hello! Thank you for your program.

I enter the account details, press enter and nothing happens.

VlaK0r avatar Jul 17 '23 09:07 VlaK0r

Hello,

Can you try to shutdown your Passky server with:

docker-compose down

and start it again with:

docker-compose up -d

zigazajc007 avatar Jul 17 '23 09:07 zigazajc007

I did this, it didn't help

VlaK0r avatar Jul 17 '23 10:07 VlaK0r

The server itself is working and I can go to its page. But I can't log in to the admin panel.

VlaK0r avatar Jul 17 '23 10:07 VlaK0r

Do you see any errors if you execute?

docker logs passky-server

zigazajc007 avatar Jul 17 '23 15:07 zigazajc007

Do you see any errors if you execute?

docker logs passky-server

Linux; Android 13; SM-A525F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobil e Safari/537.36" 127.0.0.1 - - [24/Jul/2023:17:51:01 +0000] "GET /cron.php HTTP/1.1" 200 31 "-" "curl/7.81. 0" 5.142.42.106 - - [24/Jul/2023:17:51:05 +0000] "POST /website/actions/login.php HTTP/1.1" 3 02 5 "-" "Mozilla/5.0 (Linux; Android 13; SM-A525F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36" 5.142.42.106 - - [24/Jul/2023:17:51:05 +0000] "GET / HTTP/1.1" 200 2413 "-" "Mozilla/5.0 ( Linux; Android 13; SM-A525F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobil e Safari/537.36"

VlaK0r avatar Jul 24 '23 17:07 VlaK0r

5.142.42.106 - - [24/Jul/2023:17:56:37 +0000] "POST /website/actions/login.php HTTP/1.1" 3 02 5 "-" "Mozilla/5.0 (Linux; Android 13; SAMSUNG SM-A525F) AppleWebKit/537.36 (KHTML, lik e Gecko) SamsungBrowser/22.0 Chrome/111.0.5563.116 Mobile Safari/537.36" 5.142.42.106 - - [24/Jul/2023:17:56:37 +0000] "GET / HTTP/1.1" 200 2413 "-" "Mozilla/5.0 ( Linux; Android 13; SAMSUNG SM-A525F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser /22.0 Chrome/111.0.5563.116 Mobile Safari/537.36" 127.0.0.1 - - [24/Jul/2023:17:57:01 +0000] "GET /cron.php HTTP/1.1" 200 31 "-" "curl/7.81. 0"

VlaK0r avatar Jul 24 '23 18:07 VlaK0r

What does it mean?

VlaK0r avatar Jul 24 '23 18:07 VlaK0r

Hello,

There aren't any errors here.

Can you contact me on a Discord: ziga.zajc007 or email: [email protected]

We had similar issue before, so I have deployed a test VPS and let him deploy Passky Server on their own. But this time it worked for him. So he had an issue that I don't remember on his local network.

We can try this as well.

zigazajc007 avatar Jul 25 '23 08:07 zigazajc007

Their is an issue for non signed certs on the admin panel because it tries to verify https connection

NOXITB avatar Aug 21 '23 00:08 NOXITB

Docker or Self hosting cannot connect to database, therefore you cannot login into Admin. Check database you will find nothing in there, I cannot connect to DB during install as well. network host I'm looking for a fix as well.

devneok avatar Apr 24 '24 05:04 devneok

Docker or Self hosting cannot connect to database, therefore you cannot login into Admin. Check database you will find nothing in there, I cannot connect to DB during install as well. network host I'm looking for a fix as well.

Note that Passky will not create the database or the user, it will only create the tables when /cron.php endpoint gets executed.

  1. Make sure that you have created MySQL user as well as database. Created user needs to have permissions to manage created database.
  2. If you deploy passky server in a docker container, API endpoint /cron.php will get executed every minute. For manual Passky Server deployment you would need to manually execute /cron.php API endpoint (automating this task is recommended -> curl https://domain.com/cron.php)

Also make sure that you can connect to a database with the same credentials provided to Passky using mysql client / command.

zigazajc007 avatar Apr 24 '24 06:04 zigazajc007

I have created database and no connection error message in the log, still didn't auto create tables using docker container too when I login it said cannot connect to database

edit: and finally I can login after clear redis cache (admin panel still cannot, but browser extension i can

eric2788 avatar Sep 19 '24 08:09 eric2788

I have created database and no connection error message in the log, still didn't auto create tables using docker container too when I login it said cannot connect to database

edit: and finally I can login after clear redis cache (admin panel still cannot, but browser extension i can

Hello,

Can you check if username or password in your .env file contain any special characters that aren't correctly escaped?

zigazajc007 avatar Sep 19 '24 16:09 zigazajc007