Skip to content

Cannot Log in? #243

@hc128168

Description

@hc128168

Hi,

I followed the wiki page to install:

pip install cookiecutter
cookiecutter https://github.com/tiangolo/full-stack-fastapi-postgresql

And then set first_superuser and first_superuser_password (this step I just created my own secret key and password without using the generator as suggested by wiki, does it matter?).

But when I open http://localhost/login, and enter the user name and password, it keeps saying 'Incorrect email or password'.

I checked the frontend log in my container:

172.19.0.6 - - [07/Aug/2020:06:40:29 +0000] "GET /login HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36" "172.19.0.1"
172.19.0.6 - - [07/Aug/2020:06:40:29 +0000] "GET /service-worker.js HTTP/1.1" 304 0 "http://localhost/login" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36" "172.19.0.1"
172.19.0.6 - - [07/Aug/2020:06:40:29 +0000] "GET /img/icons/android-chrome-192x192.png HTTP/1.1" 304 0 "http://localhost/login" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36" "172.19.0.1"
172.19.0.6 - - [07/Aug/2020:06:40:31 +0000] "GET /service-worker.js HTTP/1.1" 304 0 "http://localhost/service-worker.js" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36" "172.19.0.1"
172.19.0.6 - - [07/Aug/2020:06:40:31 +0000] "GET /precache-manifest.c37eea1a941046fa837fbb856740aa22.js HTTP/1.1" 304 0 "http://localhost/service-worker.js" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36" "172.19.0.1"
172.19.0.6 - - [07/Aug/2020:06:40:49 +0000] "POST /api/v1/login/access-token HTTP/1.1" 404 556 "http://localhost/login" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36" "172.19.0.1"

I don't see anything obvious.

Idea?

Does first_superuser have to be an email address?

I set pgadmin_default_user to the same username, and I can log onto pgadmin tho.

I also noticed that there was another ticket last year for similar issue.

I have tried to access http://localhost/docs (as suggested by the ticket), but an "404" error is returned.

And the ticket seems to suggest that I should have backend/.env but it doesn't exist.

And I noticed that there is no container for the backend?

$ sudo docker container ls
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                                        NAMES
0d321b949356        dpage/pgadmin4      "/entrypoint.sh"         4 minutes ago       Up 3 minutes        80/tcp, 443/tcp, 0.0.0.0:5050->5050/tcp      whitequeen_pgadmin_1
25050127ada8        mher/flower         "flower --broker=amq…"   4 minutes ago       Up 3 minutes        0.0.0.0:5555->5555/tcp                       whitequeen_flower_1
d7ed26bf41ba        postgres:12         "docker-entrypoint.s…"   4 minutes ago       Up 3 minutes        5432/tcp                                     whitequeen_db_1
6b35cf6fee0b        frontend:latest     "nginx -g 'daemon of…"   4 days ago          Up 3 minutes        80/tcp                                       whitequeen_frontend_1
cda08343db76        rabbitmq:3          "docker-entrypoint.s…"   4 days ago          Up 3 minutes        4369/tcp, 5671-5672/tcp, 25672/tcp           whitequeen_queue_1
7b96dd3dcb5d        traefik:v2.2        "/entrypoint.sh --pr…"   4 days ago          Up 3 minutes        0.0.0.0:80->80/tcp, 0.0.0.0:8090->8080/tcp   whitequeen_proxy_1

Is it normal?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions