Skip to content

Reset password not working #1855

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

Open
richardARPANET opened this issue May 9, 2025 · 2 comments
Open

Reset password not working #1855

richardARPANET opened this issue May 9, 2025 · 2 comments

Comments

@richardARPANET
Copy link

To Reproduce

  1. Have running dokploy
  2. It randomly stops working with your correct user/pass
  3. Reset to new one
  4. Login fails "Invalid email or password"
root@Ubuntu-2404-noble-amd64-base ~ # docker exec -it 64e25692bfda bash  -c "pnpm run reset-password"

> [email protected] reset-password /app
> node -r dotenv/config dist/reset-password.mjs

Password reset successful
New password:  <redacted>

Then tried to login, does not work. Now my site is down, customers will be mad, but I cannot login to fix it. How to resolve this a asap? thanks

Current vs. Expected behavior

Should not break itself randomly, password reset should also work.

Provide environment information

root@Ubuntu-2404-noble-amd64-base ~ # docker ps|grep dokploy
cff2732a8482   redis:7                                               "docker-entrypoint.s…"   7 minutes ago   Up 7 minutes                    6379/tcp                                                                         dokploy-redis.1.bpubuk0lzsss8a367ie4i39fz
4f045ecaf58c   postgres:16                                           "docker-entrypoint.s…"   7 minutes ago   Up 7 minutes                    5432/tcp                                                                         dokploy-postgres.1.9skim2znhjgy4lhmupa3uwryn
c1cbdb9ce359   traefik:v3.1.2                                        "/entrypoint.sh trae…"   7 minutes ago   Up 7 minutes                    0.0.0.0:80->80/tcp, [::]:80->80/tcp, 0.0.0.0:443->443/tcp, [::]:443->443/tcp     dokploy-traefik.1.k3budscz5qyk206ajw9dgt215
ae5f76e502c8   dokploy/dokploy:latest                                "docker-entrypoint.s…"   7 minutes ago   Up 7 minutes                    0.0.0.0:3000->3000/tcp, [::]:3000->3000/tcp                                      dokploy.1.wpb76ayerh0xb8tastqfpopf3

Which area(s) are affected? (Select all that apply)

Installation

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

No

@richardARPANET
Copy link
Author

richardARPANET commented May 9, 2025

To temp workaround this terrible problem, I have connected my server to https://app.dokploy.com/, however, I need to manually re-add dozens of sites, which will take me up to 1 week of work.

I would prefer to restore the setup that has seemingly broken itself. There are still all the various containers also running (dangling around), which is a problem and could cause conflicts.

I can also see some very very strange things in the dokploy DB on that server. "users' DB table has only 1 column 'user', for example.

@richardARPANET
Copy link
Author

before running reset pass, psql:

dokploy=# select account_id, updated_at from account;
            account_id            |       updated_at
----------------------------------+-------------------------
 YXR73m0kWen2SEZ5hyakafQhByxRdmhf | 2025-04-09 20:34:41.047
 YXR73m0kWen2SEZ5hyakafQhByxRdmhf | 2025-04-09 20:34:41.047

run:

root@Ubuntu-2404-noble-amd64-base ~ # docker exec -it 620b9975568c  bash  -c "pnpm run reset-password"

> [email protected] reset-password /app
> node -r dotenv/config dist/reset-password.mjs

Password reset successful
New password:  redacted

after:

dokploy=# select account_id, updated_at from account;
            account_id            |       updated_at
----------------------------------+-------------------------
 YXR73m0kWen2SEZ5hyakafQhByxRdmhf | 2025-04-09 20:34:41.047
 YXR73m0kWen2SEZ5hyakafQhByxRdmhf | 2025-04-09 20:34:41.047

updated_at does not change...

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

No branches or pull requests

1 participant