1
0
Fork 0
mirror of https://github.com/louislam/dockge.git synced 2026-03-03 02:06:55 -05:00

Password reset #214

Open
opened 2026-02-20 13:12:15 -05:00 by deekerman · 4 comments
Owner

Originally created by @shahab-cl on GitHub (Jun 9, 2025).

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

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

I just installed dockge a few weeks ago and wanted to reset my password but got the following output after running the recomended steps.

docker exec dockge-dockge-1 npm run reset-password

dockge@1.5.0 reset-password
tsx ./extra/reset-password.ts

== Dockge Reset Password Tool ==
2025-06-09T16:27:02Z [SERVER] INFO: NODE_ENV: production
2025-06-09T16:27:02Z [SERVER] INFO: Server Type: HTTP
Connecting the database
2025-06-09T16:27:02Z [DB] INFO: Database Type: sqlite
2025-06-09T16:27:02Z [SERVER] INFO: Connected to the database
Found user: skhan
Error: readline was closed
2025-06-09T16:27:02Z [DB] INFO: Closing the database
2025-06-09T16:27:04Z [DB] INFO: Database closed
Finished.
npm notice
npm notice New major version of npm available! 10.9.2 -> 11.4.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.4.1
npm notice To update run: npm install -g npm@11.4.1
npm notice

Not sure if the password was supposed to show in the output. I only had version 1.5 so didnt upgrade from a previous version.

Also I am running this as a proxmox container using https://community-scripts.github.io/ProxmoxVE/scripts?id=dockge

👟 Reproduction steps

Login to LXC via pve console -> Container name -> console and execute the command

docker exec dockge-dockge-1 npm run reset-password

👀 Expected behavior

I was hoping to get a password returned back for the dashboard

😓 Actual Behavior

dockge@1.5.0 reset-password
tsx ./extra/reset-password.ts

== Dockge Reset Password Tool ==
2025-06-09T16:27:02Z [SERVER] INFO: NODE_ENV: production
2025-06-09T16:27:02Z [SERVER] INFO: Server Type: HTTP
Connecting the database
2025-06-09T16:27:02Z [DB] INFO: Database Type: sqlite
2025-06-09T16:27:02Z [SERVER] INFO: Connected to the database
Found user: skhan
Error: readline was closed
2025-06-09T16:27:02Z [DB] INFO: Closing the database
2025-06-09T16:27:04Z [DB] INFO: Database closed
Finished.
npm notice
npm notice New major version of npm available! 10.9.2 -> 11.4.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.4.1
npm notice To update run: npm install -g npm@11.4.1
npm notice

Dockge Version

1.5

💻 Operating System and Arch

not sure

🌐 Browser

Chrome / firefox

🐋 Docker Version

28.2.2, build e6534b4

🟩 NodeJS Version

based upon container

📝 Relevant log output

See above
Originally created by @shahab-cl on GitHub (Jun 9, 2025). ### ⚠️ Please verify that this bug has NOT been reported before. - [x] I checked and didn't find similar issue ### 🛡️ Security Policy - [x] I agree to have read this project [Security Policy](https://github.com/louislam/dockge/security/policy) ### Description I just installed dockge a few weeks ago and wanted to reset my password but got the following output after running the recomended steps. > # docker exec dockge-dockge-1 npm run reset-password > > > dockge@1.5.0 reset-password > > tsx ./extra/reset-password.ts > > == Dockge Reset Password Tool == > 2025-06-09T16:27:02Z [SERVER] INFO: NODE_ENV: production > 2025-06-09T16:27:02Z [SERVER] INFO: Server Type: HTTP > Connecting the database > 2025-06-09T16:27:02Z [DB] INFO: Database Type: sqlite > 2025-06-09T16:27:02Z [SERVER] INFO: Connected to the database > Found user: skhan > Error: readline was closed > 2025-06-09T16:27:02Z [DB] INFO: Closing the database > 2025-06-09T16:27:04Z [DB] INFO: Database closed > Finished. > npm notice > npm notice New major version of npm available! 10.9.2 -> 11.4.1 > npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.4.1 > npm notice To update run: npm install -g npm@11.4.1 > npm notice > Not sure if the password was supposed to show in the output. I only had version 1.5 so didnt upgrade from a previous version. Also I am running this as a proxmox container using https://community-scripts.github.io/ProxmoxVE/scripts?id=dockge ### 👟 Reproduction steps Login to LXC via pve console -> Container name -> console and execute the command > docker exec dockge-dockge-1 npm run reset-password ### 👀 Expected behavior I was hoping to get a password returned back for the dashboard ### 😓 Actual Behavior > dockge@1.5.0 reset-password > tsx ./extra/reset-password.ts == Dockge Reset Password Tool == 2025-06-09T16:27:02Z [SERVER] INFO: NODE_ENV: production 2025-06-09T16:27:02Z [SERVER] INFO: Server Type: HTTP Connecting the database 2025-06-09T16:27:02Z [DB] INFO: Database Type: sqlite 2025-06-09T16:27:02Z [SERVER] INFO: Connected to the database Found user: skhan Error: readline was closed 2025-06-09T16:27:02Z [DB] INFO: Closing the database 2025-06-09T16:27:04Z [DB] INFO: Database closed Finished. npm notice npm notice New major version of npm available! 10.9.2 -> 11.4.1 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.4.1 npm notice To update run: npm install -g npm@11.4.1 npm notice ### Dockge Version 1.5 ### 💻 Operating System and Arch not sure ### 🌐 Browser Chrome / firefox ### 🐋 Docker Version 28.2.2, build e6534b4 ### 🟩 NodeJS Version based upon container ### 📝 Relevant log output ```shell See above ```
Author
Owner

@cyril59310 commented on GitHub (Jun 10, 2025):

You need to connect directly to the container using:

docker exec -it dockge-dockge-1 bash
Then, run the following command:

npm run reset-password

It will ask you to enter a new password and then confirm it. Once done, your password should be changed. You can then exit the container by typing:

exit

Image

@cyril59310 commented on GitHub (Jun 10, 2025): You need to connect directly to the container using: `docker exec -it dockge-dockge-1 bash` Then, run the following command: `npm run reset-password` It will ask you to enter a new password and then confirm it. Once done, your password should be changed. You can then exit the container by typing: `exit` ![Image](https://github.com/user-attachments/assets/af54bfc7-62bd-4f4b-9e0b-63c47d17791e)
Author
Owner

@shahab-cl commented on GitHub (Jun 10, 2025):

Can this be added to a readme. I was not able to find this command
anywhere. The ony command I found was the one mentioned above.

Shahab Khan
Cubicle Logic
Main: 571-636-1200
Cell: +1-703-861-6397
Email: @.***

Bringing people and technology together

PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING

On Tue, Jun 10, 2025 at 11:48 AM Cyril59310 @.***>
wrote:

cyril59310 left a comment (louislam/dockge#814)
https://github.com/louislam/dockge/issues/814#issuecomment-2959786299

You need to connect directly to the container using:

docker exec -it dockge-dockge-1 bash
Then, run the following command:

npm run reset-password

It will ask you to enter a new password and then confirm it. Once done,
your password should be changed. You can then exit the container by typing:

exit

image.png (view on web)
https://github.com/user-attachments/assets/af54bfc7-62bd-4f4b-9e0b-63c47d17791e


Reply to this email directly, view it on GitHub
https://github.com/louislam/dockge/issues/814#issuecomment-2959786299,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAE64ZRYWGYASSIXPFKY7ZT3C346XAVCNFSM6AAAAAB65MTGGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNJZG44DMMRZHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

@shahab-cl commented on GitHub (Jun 10, 2025): Can this be added to a readme. I was not able to find this command anywhere. The ony command I found was the one mentioned above. Shahab Khan Cubicle Logic Main: 571-636-1200 Cell: +1-703-861-6397 Email: ***@***.*** Bringing people and technology together ----------------------------- PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING On Tue, Jun 10, 2025 at 11:48 AM Cyril59310 ***@***.***> wrote: > *cyril59310* left a comment (louislam/dockge#814) > <https://github.com/louislam/dockge/issues/814#issuecomment-2959786299> > > You need to connect directly to the container using: > > docker exec -it dockge-dockge-1 bash > Then, run the following command: > > npm run reset-password > > It will ask you to enter a new password and then confirm it. Once done, > your password should be changed. You can then exit the container by typing: > > exit > > image.png (view on web) > <https://github.com/user-attachments/assets/af54bfc7-62bd-4f4b-9e0b-63c47d17791e> > > — > Reply to this email directly, view it on GitHub > <https://github.com/louislam/dockge/issues/814#issuecomment-2959786299>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAE64ZRYWGYASSIXPFKY7ZT3C346XAVCNFSM6AAAAAB65MTGGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNJZG44DMMRZHE> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@Djeex commented on GitHub (Oct 2, 2025):

Can this be added to a readme. I was not able to find this command
anywhere. The ony command I found was the one mentioned above.

Shahab Khan
Cubicle Logic
Main: 571-636-1200
Cell: +1-703-861-6397
Email: @.***

Bringing people and technology together

PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING

You should ad -it parameter for interactive shell :

docker exec -it dockge-dockge-1 npm run reset-password

-it means interactive: the command results are forwarded from the container to your shell until the end of the command.

There is no need to directly use bash in the container.

@Djeex commented on GitHub (Oct 2, 2025): > Can this be added to a readme. I was not able to find this command > anywhere. The ony command I found was the one mentioned above. > > Shahab Khan > Cubicle Logic > Main: 571-636-1200 > Cell: +1-703-861-6397 > Email: ***@***.*** > > Bringing people and technology together > ----------------------------- > PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING > […](#) You should ad `-it` parameter for interactive shell : ```bash docker exec -it dockge-dockge-1 npm run reset-password ``` `-it` means interactive: the command results are forwarded from the container to your shell until the end of the command. There is no need to directly use bash in the container.
Author
Owner

@toluLikesToCode commented on GitHub (Jan 18, 2026):

npm run reset-password

just ran into the same issue and this fixed it, thank you

@toluLikesToCode commented on GitHub (Jan 18, 2026): > npm run reset-password just ran into the same issue and this fixed it, thank you
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dockge-louislam#214
No description provided.