Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't log in to the Admin Panel #47

Open
VlaK0r opened this issue Jul 17, 2023 · 13 comments
Open

I can't log in to the Admin Panel #47

VlaK0r opened this issue Jul 17, 2023 · 13 comments

Comments

@VlaK0r
Copy link

VlaK0r commented Jul 17, 2023

Hello!
Thank you for your program.

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

@zigazajc007
Copy link
Member

Hello,

Can you try to shutdown your Passky server with:

docker-compose down

and start it again with:

docker-compose up -d

@VlaK0r
Copy link
Author

VlaK0r commented Jul 17, 2023

I did this, it didn't help

@VlaK0r
Copy link
Author

VlaK0r commented Jul 17, 2023

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

@zigazajc007
Copy link
Member

Do you see any errors if you execute?

docker logs passky-server

@VlaK0r
Copy link
Author

VlaK0r commented Jul 24, 2023

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
Copy link
Author

VlaK0r commented Jul 24, 2023

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
Copy link
Author

VlaK0r commented Jul 24, 2023

What does it mean?

@zigazajc007
Copy link
Member

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.

@NOXITB
Copy link

NOXITB commented Aug 21, 2023

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

@devneok
Copy link

devneok commented Apr 24, 2024

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.

@zigazajc007
Copy link
Member

zigazajc007 commented Apr 24, 2024

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.

@eric2788
Copy link

eric2788 commented Sep 19, 2024

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

@zigazajc007
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants