Operating the server
Recovering administrator access
Whoever has root access to the server can always get back into the instance. There are three situations: no account was created yet, an administrator forgot their password, or you want to start from scratch. All three are under Administrator access and Erase everything in the memex menu.
No account was created yet
The admin key printed by the installer is single-use: it creates the first administrator and is destroyed. If the key or the setup link was lost before an account was created:
sudo memex admin-keyIt prints a fresh setup key and link. This only works while no account exists; afterwards, use a password-reset link.
An administrator forgot their password
sudo memex reset --password-linkIt prints a single-use link to choose a new password. When there are several administrators, --email selects the one concerned. Changing or resetting a password closes every session of that account.
An ordinary member who forgot their password does not need the server: with an e-mail channel configured they use the reset link of the sign-in page; without one, an administrator generates the link in the app and passes it on.
Starting from scratch
sudo memex reset --eraseThis deletes every brain, account and setting after two confirmations (non-interactively: --yes --confirm ERASE). A backup is taken first, to backups/pre-erase-<timestamp>.tar.gz, unless --no-backup is given.
Check that it worked
Open the printed link in a browser, choose the password, and sign in. If the link opens a page of the wrong address (for example http:// instead of https://), the public_url setting is wrong: see Configuration.
Reference: install.md and security.md.