Recovery
This page is a collection of remedies for issues that can occur with ViewTube.
Lost access to admin account
- Create a new account you would like to use as an admin
- Set the environment variable
VIEWTUBE_ADMIN_USER
to your the username of your new account - Restart ViewTube
If have registration disabled and cannot create an account, continue reading.
Disabled registration and lost access to admin account
- Start a shell session inside the mongodb container
docker exec -it <YOUR-MONGODB-CONTAINER-NAME-HERE> bash
- Start the mongo shell
mongosh
- Select the viewtube database
use viewtube
- Execute the following command to allow registration
db['server-settings'].updateOne({version:1},{$set: {registrationEnabled:true}})
Now you can create a new admin user according to the topic above.