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

Can't reset password #755

Open
2 tasks done
Aerya opened this issue Mar 13, 2025 · 2 comments
Open
2 tasks done

Can't reset password #755

Aerya opened this issue Mar 13, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@Aerya
Copy link

Aerya commented Mar 13, 2025

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

Hi,

I use Dockge on multiple servers/desktops but I recently encountered a problem on one server (Ubuntu): after a server reboot I couldn't log in. I followed the steps to reset the pwd but it still don't work...
#194
#426

I tried with actual pwd, new one, "easy one" like 1234abcd. None worked.

Tried 1.4.2, latest, base, nightly.

👟 Reproduction steps

root@UsenetBox:/home/aerya/docker/dockge# docker exec -e USER=aerya -it dockgeusenetbox npm run reset-password

> [email protected] reset-password
> tsx ./extra/reset-password.ts

== Dockge Reset Password Tool ==
2025-03-13T08:22:39Z [SERVER] INFO: NODE_ENV: production
2025-03-13T08:22:39Z [SERVER] INFO: Server Type: HTTP
Connecting the database
2025-03-13T08:22:39Z [DB] INFO: Database Type: sqlite
2025-03-13T08:22:39Z [SERVER] INFO: Connected to the database
Found user: aerya
New Password: ***
Confirm New Password: ***
Password reset successfully.
Connecting to ws://localhost:5001 to disconnect all other socket clients
Logged in.
2025-03-13T08:22:47Z [DB] INFO: Closing the database
2025-03-13T08:22:49Z [DB] INFO: Database closed
Finished.
npm notice
npm notice New major version of npm available! 9.6.7 -> 11.2.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.2.0
npm notice Run npm install -g [email protected] to update!
npm notice
root@UsenetBox:/home/aerya/docker/dockge# docker restart dockgeusenetbox
dockgeusenetbox

👀 Expected behavior

Pwd reset and working.

😓 Actual Behavior

Seems like pwd did not reset.

Dockge Version

1.4.2

💻 Operating System and Arch

Ubuntu 24.04.1 LTS

🌐 Browser

Firefox, Chromium, Brave

🐋 Docker Version

No response

🟩 NodeJS Version

No response

📝 Relevant log output

2025-03-13T08:22:47Z [SERVER] INFO: Socket disconnected!
2025-03-13T08:22:59Z [SERVER] INFO: Shutdown requested
2025-03-13T08:22:59Z [SERVER] INFO: Called signal: SIGTERM
2025-03-13T08:22:59Z [DB] INFO: Closing the database
2025-03-13T08:22:59Z [SERVER] INFO: Socket disconnected!
2025-03-13T08:22:59Z [SERVER] INFO: Socket disconnected!
2025-03-13T08:23:01Z [DB] INFO: Database closed
2025-03-13T08:23:01Z [SERVER] INFO: Graceful shutdown successful!
2025-03-13T08:23:02Z [SERVER] INFO: Welcome to dockge!
2025-03-13T08:23:02Z [SERVER] INFO: NODE_ENV: production
2025-03-13T08:23:02Z [SERVER] INFO: Server Type: HTTP
2025-03-13T08:23:02Z [SERVER] INFO: Data Dir: ./data/
2025-03-13T08:23:02Z [DB] INFO: Database Type: sqlite
2025-03-13T08:23:03Z [SERVER] INFO: Connected to the database
2025-03-13T08:23:03Z [SERVER] INFO: Listening on 5001
2025-03-13T08:23:04Z [AUTH] INFO: Origin is not set, IP: ::ffff:192.168.1.107
2025-03-13T08:23:04Z [SERVER] INFO: Socket connected (direct)
2025-03-13T08:23:05Z [AUTH] INFO: Origin is not set, IP: ::ffff:192.168.1.107
2025-03-13T08:23:05Z [SERVER] INFO: Socket connected (direct)
2025-03-13T08:23:08Z [SERVER] INFO: Socket disconnected!
2025-03-13T08:23:14Z [AUTH] INFO: Origin is not set, IP: ::ffff:192.168.1.107
2025-03-13T08:23:14Z [SERVER] INFO: Socket connected (direct)
2025-03-13T08:23:20Z [AUTH] INFO: Login by username + password. IP=192.168.1.107
2025-03-13T08:23:20Z [RATE-LIMIT] INFO: remaining requests: 19
2025-03-13T08:23:20Z [AUTH] WARN: Incorrect username or password for user aerya. IP=192.168.1.107
2025-03-13T08:23:22Z [AUTH] INFO: Login by username + password. IP=192.168.1.107
2025-03-13T08:23:22Z [RATE-LIMIT] INFO: remaining requests: 18.594
2025-03-13T08:23:22Z [AUTH] WARN: Incorrect username or password for user aerya. IP=192.168.1.107
2025-03-13T08:25:45Z [SERVER] INFO: Socket disconnected!
@Aerya Aerya added the bug Something isn't working label Mar 13, 2025
@DomiiBunn
Copy link
Contributor

For a bad workaround you can do rm -rf /opt/dockge/data but keep in mind that this will also delete any dockge relaed configuration.

You docker stacks will be Ok

Make sure to first stop dockge

cd /opt/dockge
docker compose down
rm -rf /opt/dockge/data
docker compose up

you will loose the linked nodes if you have any.

Other than that you should be good.

@Aerya
Copy link
Author

Aerya commented Mar 14, 2025

Thanks for kind help but i'm looking for a way not to lose any of my compose.
I edited the SQLite DB but couldn't find them...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants