Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Data Files, Backups and Logs

OpenStream TV stores its access key, administrator password hash, device identity and provider session tokens in the runtime data directory. The Rust source resolves its default data directory to a per-user OpenStream TV location; an OpenWrt package can use a different configured path. Set OPENSTREAM_PATH_PREFIX (or TOML path_prefix) to choose another writable location.

Files may include:

FilePurpose
store_v4.tomlPersistent state, tokens, access key and password hash. Sensitive.
epg.xml.gzGenerated XMLTV guide when enabled.
epg.xml.gz.context.jsonIdentity metadata for current account/source EPG cache.
.openstream.pidPID from background start; .jiotv.pid is still recognized for migration.
tls/Generated self-signed certificate and key when HTTPS is enabled.

Collect logs

If OpenStream TV is running in your terminal, inspect the output there. For a short diagnostic run you can use:

OPENSTREAM_DEBUG=true OPENSTREAM_LOG_TO_STDOUT=true ost serve

Reproduce the problem once, then read the messages locally before sharing. Redact cookies, tokens, access-key URLs, OTPs, device identifiers and private server addresses. OPENSTREAM_LOG_PATH exists in the config schema but does not currently implement file output.

For platform-specific log commands, a report template, and the complete sanitization checklist, see Collect logs and report a problem safely.

For systemd or a container, see background services and Docker maintenance.

Safe backup and restore

  1. Stop OpenStream TV so files are not changing while you copy them.
  2. Copy the whole configured data directory into a private location; preserve its permissions.
  3. Restore that directory to the same path_prefix before starting OpenStream TV.
  4. Test the admin login, account status and IPTV playlist link.
  5. If restoring to another host, check network settings and rotate the playlist key if its URL may have escaped.

Never store these backups in public Git repositories. See Backup and restore.