henrygd / beszel

Lightweight server monitoring hub with historical data, docker stats, and alerts.
MIT License
2.42k stars 73 forks source link

reset password via console not working #127

Closed xavier-hernandez closed 2 months ago

xavier-hernandez commented 2 months ago

Using unraid...

repo: henrygd/beszel:latest

Trying to go to the console to reset my password is not working.

:~# docker exec -it beszel bash OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown

:~# docker exec -it beszel sh OCI runtime exec failed: exec failed: unable to start container process: exec: "sh": executable file not found in $PATH: unknown

henrygd commented 2 months ago

It's a scratch container with no shell, but the command below should work with docker. You need to mount your current data directory / volume so it can update the record in the database.

docker run --rm -v ./beszel_data:/beszel_data henrygd/beszel admin update youremail@example.com newpassword

Note that this updates your admin login to PocketBase. If you also want to update your Beszel user's password, do that through PocketBase after logging in with your admin account.