espressostreamdocs
On this page

FAQ and troubleshooting

Recording

My terminal is in a strange state after a recording. espresso resets the terminal modes the recorded program left on, even after a crash or a signal. If something is still off (it happens after kill -9 of espresso itself), run reset.

Will my passwords end up in the recording? Text you type is not recorded unless you pass --record-input. But whatever the screen shows is recorded, including a secret that a command prints or that you type as a command argument. Run espresso scan file.cast before you share a recording, and mask secrets with espresso edit in.cast out.cast --redact-default or --redact-str 'the secret'.

How do I cut out a part? espresso edit in.cast out.cast --cut 1:20-1:45. Times are measured in the original recording; you can pass several --cut flags.

A long pause makes the recording boring. Record with --idle-limit 2 (players shorten pauses longer than 2 seconds), or shorten them for good with espresso edit in.cast out.cast --idle-limit 2.

Can I record on Windows? Not yet. Recording needs ConPTY support, which is still to be written, so espresso rec reports "not yet supported". play, cat, convert, edit, scan, upload and auth build for Windows but have not been tested there.

--trace-exec says ptrace isn't allowed. Your system blocks ptrace (some containers, a Yama ptrace_scope of 3, or a seccomp profile). The recording continues without the trace. In Docker, --cap-add SYS_PTRACE or a seccomp profile that allows ptrace helps.

Command markers don't appear. Add the shell integration snippet to your shell's startup file and start a new recording. In bash you need version 4.4 or newer. Check that you didn't pass --no-shell-marks.

Uploading

not logged in to … Run espresso auth login --server https://your.server and paste a token from the server's Settings page.

401 Unauthorized The token was revoked or mistyped. Log in again with a new token.

413 when uploading The recording is over the server's limits: 50 MB uncompressed, 6 hours, the event limit or your quota. Cut parts out with espresso edit --cut (this makes the file smaller), or split a long session into several recordings.

422 when uploading The file isn't a valid asciicast v2/v3 file. espresso play file.cast usually shows where it breaks. Files truncated by a crash are fine; only the last line is dropped.

The upload says "Not uploaded: --yes refuses when likely secrets are found". The scan found something that looks like a secret. Mask it with espresso edit --redact-default, or, if it is a false alarm, add --allow-secrets.

Playing

Box-drawing characters have gaps in the browser. The web player uses WebGL to draw them exactly. Without WebGL (some locked-down or very old browsers) it falls back to the browser's font, which can leave small gaps.

Images (Sixel, iTerm2) don't show on my own page. Your Content-Security-Policy has to allow 'wasm-unsafe-eval' in script-src. Everything else plays without it.

The recording looks wrong at the start. Before playback starts, the player shows the first frame that has something on screen. To pick a different frame, set the poster time on the recording's page (owners only).

Server

The server says it's listening, but I can't reach it. In Docker, the example compose file publishes the port on 127.0.0.1 only, for a reverse proxy on the same machine. Change ports: to reach it from elsewhere.

Links in API responses point to http:// or the wrong host. Set ESPRESSO_BASE_URL to the public URL. Behind a proxy, also set ESPRESSO_TRUSTED_PROXIES to the proxy's address (e.g. 127.0.0.1/32).

Live streams disconnect after a minute. Your reverse proxy closes idle WebSocket connections. Raise its read timeout (nginx: proxy_read_timeout 1h) and make sure it forwards the Upgrade header.

I lost the admin password. espresso-server admin set-password NAME on the server sets a new one and signs that user out everywhere.

How do I move the server to another machine? espresso-server backup file.tar.zst on the old one, then espresso-server restore file.tar.zst into an empty data directory on the new one. See Self-hosting → Backups.

Can admins watch private recordings? No. Private recordings are visible only to their owner.