Resetting the Owncast Admin PW in a Docker Container
So I did a dumb. I lost/misplaced/forgot/ate my Owncast server's admin password. Note for myself (and other who might need to know this), here is how to fix that when you are using the Docker container.
Pop into the docker container's shell.
sudo docker exec -it <container_id> /bin/sh
Run the owncast
command with the -adminpassword
flag.
./owncast -adminpassword <securepw>
At this point, I think Owncast tries to restart itself. You will probably get a message like this:
INFO[2024-11-11T20:57:14Z] Admin password changed
FATA[2024-11-11T20:57:14Z] listen tcp :1935: bind: address already in use
This is fine. Do not panic.
Exit the shell and restart the container. You're getting that error because the service is already running. Restarting the container will reset all the things.
Go to https://yourserver/admin and log in with the new password.