Password Recovery & Backups
Because MusicOrbit is 100% self-hosted with no external email service or cloud account, password recovery is intentionally handled through safe local controls.
Resetting a member’s password
Section titled “Resetting a member’s password”Any Admin can reset a non-admin user’s password directly in the web UI:
- Open Users in the sidebar.
- Click Reset Password next to the member’s account.
- Enter a temporary password (minimum 8 characters). All of that user’s existing sessions are immediately revoked.
The member can sign in and change their password anytime from the key icon in the bottom-left account card.
Resetting a lost Admin password (Host CLI)
Section titled “Resetting a lost Admin password (Host CLI)”If you lose access to the Admin account (or any account when locked out), run MusicOrbit’s host-only password-reset CLI directly on the server or inside the Docker container:
Docker container
Section titled “Docker container”docker exec -it musicorbit npm run reset-password -- adminLocal / bare-metal install
Section titled “Local / bare-metal install”npm run reset-password -- adminSecurity guarantees
Section titled “Security guarantees”- Never accepts passwords as CLI arguments — prevents passwords from leaking into shell history or
psprocess listings. - Hidden TTY prompt with confirmation check.
- Salted
scrypthashing identical to the web API. - Immediate session revocation — deletes all active rows in
sessionsfor that user inside a SQLite transaction. - Audit trail — records a
warnentry inactivity_logsnoting the host CLI reset.
If you aren’t sure of the exact username, running the command with a typo prints the list of existing usernames and roles.
Backing up MusicOrbit
Section titled “Backing up MusicOrbit”All MusicOrbit state lives in two clean places:
DATA_DIR(default./dataor/datain Docker):musicorbit.db(SQLite database — users, library index, playlists, settings, activity logs)covers/(SHA-256 cached album art)artist-images/(cached artist portraits)- (Optional to exclude:
transcode-cache/can always be regenerated automatically.)
MUSIC_DIR(and any isolated member folders underlibraries/):- Your actual audio files,
.lrclyrics sidecars, and.m3u8playlists.
- Your actual audio files,
Safe live SQLite backup
Section titled “Safe live SQLite backup”Because SQLite runs in WAL mode, use SQLite’s online backup command (or stop the container briefly) rather than copying musicorbit.db alone while active writes are occurring:
sqlite3 ./data/musicorbit.db ".backup './musicorbit-backup-$(date +%F).db'"