Help Resetting Password of a Docker App within CasaOS #1350
Replies: 3 comments
-
|
I should have stated (ABSOLUTE BEGINNING) |
Beta Was this translation helpful? Give feedback.
-
|
The Answer is in the Message: |
Beta Was this translation helpful? Give feedback.
-
|
Awesome when a plan works |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
(1) LOVE CASAOS as Easy as Umbrel YET more powerful. ( I do wish it had a by docker image list for memory/cpu/io ).
(2) I install UptimeKuma (easily by the AWESOME ) "Custom Install" button
Unfortunately it was 2 am when I was finishing up and forgot to put the stupid user/password in my password safe.
<< I KNOW Don't Compute While under-the-influence or dead-tired ! >> Believe me was kicking myself for a few there.
I looked up how others using docker did it and found the right commands and FIxed my-own-problem! Here is the solution:
(A) Found Data Folder and Database (in-case you need to backup-it-up) -> "ls- la /DATA/AppData/uptimekuma/app/data/"
root@casaos02: cd /DATA/AppData/uptimekuma/app/data
root@casaos02:/DATA/AppData/uptimekuma/app/data# ls -la
total 6024
drwxrwxrwx 4 root root 4096 Aug 23 16:23 .
drwxr-xr-x 3 root root 4096 Aug 23 16:23 ..
-rwxr-xr-x 1 root root 1871872 Aug 24 09:13 kuma.db
-rwxr-xr-x 1 root root 32768 Aug 24 09:16 kuma.db-shm
-rwxr-xr-x 1 root root 32768 Aug 23 16:23 kuma.db-shm.bak0
-rwxr-xr-x 1 root root 4152992 Aug 24 09:16 kuma.db-wal
-rwxr-xr-x 1 root root 0 Aug 23 16:23 kuma.db-wal.bak0
-rwxr-xr-x 1 root root 61440 Aug 23 16:23 kuma.db.bak0
drwxr-xr-x 2 root root 4096 Aug 23 16:23 plugins
drwxr-xr-x 2 root root 4096 Aug 23 16:23 upload
(B) List Running Docker apps -> "docker ps"
root@casaos02:/DATA/AppData/uptimekuma/app/data# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a29df6df51de linuxserver/heimdall:latest "/init" 12 hours ago Up 12 hours 0.0.0.0:7392->80/tcp, :::7392->80/tcp, 0.0.0.0:7443->443/tcp, :::7443->443/tcp funny_antonio-main_app-1
aa6087ee95d1 louislam/uptime-kuma:1.20.2-alpine "/usr/bin/dumb-init …" 17 hours ago Up 17 hours (healthy) 0.0.0.0:3001->3001/tcp, :::3001->3001/tcp uptimekuma
093bc580cbb6 linuxserver/webtop:latest "/init" 4 days ago Up 4 days 3001/tcp, 0.0.0.0:3030->3000/tcp, :::3030->3000/tcp successful_anuj-main_app-1
42c50e1fdc73 gitea/gitea:1.19.3 "/usr/bin/entrypoint…" 4 days ago Up 4 days 0.0.0.0:222->22/tcp, :::222->22/tcp, 0.0.0.0:3002->3000/tcp, :::3002->3000/tcp gitea
62c12706a8be vaultwarden/server:1.28.1 "/start.sh" 4 days ago Up 4 days (healthy) 3012/tcp, 0.0.0.0:10380->80/tcp, :::10380->80/tcp vaultwarden
root@casaos02:/DATA/AppData/uptimekuma/app/data# docker exec -it uptimekuma bash npm run reset-password
OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown
root@casaos02:/DATA/AppData/uptimekuma/app/data# docker exec -it uptimekuma bash
OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown
(C) Ran Password Reset -> "docker exec -it uptimekuma npm run reset-password"
root@casaos02:/DATA/AppData/uptimekuma/app/data# docker exec -it uptimekuma npm run reset-password
== Uptime Kuma Reset Password Tool ==
Connecting the database
2023-08-24T14:28:44+00:00 [DB] INFO: Data Dir: ./data/
Found user: <>
New Password: <>
Confirm New Password: <>
Password reset successfully.
2023-08-24T14:29:48+00:00 [DB] INFO: Closing the database
2023-08-24T14:29:50+00:00 [DB] INFO: SQLite closed
Finished.
npm notice
npm notice New major version of npm available! 8.1.2 -> 9.8.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.8.1
npm notice Run npm install -g npm@9.8.1 to update!
npm notice
root@casaos02:/DATA/AppData/uptimekuma/app/data#
(D) Login to Web-Gui Using Reset Username and Password!
Beta Was this translation helpful? Give feedback.
All reactions