SSM shows ConnectionLost and commands stay Pending / Delayed
The instance has probably lost outbound HTTPS. Look at the security
group's egress rules. Some organisations run security tooling that removes
any all-protocol rule to 0.0.0.0/0, which is why egress is port-specific (see
Design decisions).
terraform apply restores the intended rules. The agent reconnects within
a few minutes.
aws: Your session has expired or Unable to locate credentials
Your workstation credentials have expired or aren't set. Refresh them
(for example aws sso login), check AWS_PROFILE, and retry.
set: Illegal option -o pipefail from aws ssm send-command
AWS-RunShellScript runs commands with sh, which is dash on Ubuntu.
Wrap the script as bash -c '...' or write it to a file and run it with
bash.
warning: ... is on the root volume, not the instance store
/mnt/nvme isn't mounted, which usually means the host was stopped and
started. Run mount-instance-store.sh and start the run again.
manifest has no ... column or --uri-column ... isn't a manifest column (or --id-column, --reference-column)
The manifest's header doesn't have the default column names. Name the
columns with --id-column, --uri-column or --reference-column
(Inputs and manifests).
manifest has duplicate ... values or manifest line N: empty ...
Clip IDs must be unique, and every row needs an ID and a media path.
With the default columns, check that the ID column picked (clip_id,
uid, id or name, first found) is the one you meant.
--where names unknown column
The column isn't in the manifest's header. Names are case-sensitive.
no manifest rows left after the filters
--where, --require-reference, --sample or --limit removed every
row. --where matches values exactly, including case. Check the values
with cut -d, -f<n> clips.csv | sort | uniq -c.
input_error and <clip>: skipped in the output
A manifest clip couldn't be staged, probed or decoded. The run carries
on without it and exits non-zero. A FileNotFoundError usually means a
path on another machine: map it with --rewrite, or check a relative
path against the manifest's own directory or S3 prefix.
no input could be staged and decoded
Every manifest clip was skipped. Look at the first input_error: the
cause is usually the same for all of them, such as a path prefix that
needs --rewrite.
reference_error (<clip>: reference not loaded in the output), and the clip's streams have no word_errors
The clip was measured but not scored. unrecognised transcript JSON
names the file's top-level keys; isn't in this Ego4D AV file means the
clip ID isn't a clip_uid in that file; is a whole Ego4D video means
the row names a video rather than one of its AV clips
(Accuracy).
target_error with a connect error
Check that vLLM is up (systemctl status vllm on the host), that the IP in
targets.toml matches terraform output private_ips, and that the peering
routes exist. The client moves on to the next target.
response_error with status 400
Look at body in the event. Typical causes are a language the model
doesn't accept, or a vLLM build that rejects stream_include_usage /
stream_continuous_usage_stats.
response_json instead of sse_events
The server ignored stream=true and sent a single JSON body. The client
handles this, but ttft_seconds then equals the full response time.
sse_unparsed
The server sent a data: line that isn't JSON. The raw line is logged.
run-local.sh stops with No targets file at .../deploy/client/targets.toml
A run through SSM,
or run-local.sh started by hand, uses the host's own
deploy/client/targets.toml, and it's missing. Create it
(Configuration), sync the code
to S3 and run again. An --on-host run sends its own targets file, so it
doesn't need one.
Run fails with IsADirectoryError for /etc/snap-asr-bench/targets.toml
An older run-local.sh started with deploy/client/targets.toml missing,
so Docker mounted an empty directory in its place. On that host, remove it
(sudo rmdir ~/snap-asr-bench/deploy/client/targets.toml), then run again.
The host runs a sidecar from before the network baseline. Reinstall it
from sidecar/asr_log_sidecar.py (Log sidecar)
and restart asr-log-sidecar.
sidecar_error with a 500 status
The sidecar could not start the command. On the host, run
journalctl -u asr-log-sidecar and try the command by hand
(for example journalctl -u vllm.service -o json -n 1).
Journal stream is empty
With --journal-from service-start the sidecar follows the unit's current
InvocationID. If vllm.service isn't running, there is nothing to
follow. Check systemctl show -p InvocationID vllm.service.
Permission denied reading the journal
The sidecar unit needs SupplementaryGroups=systemd-journal. Check it was
installed from deploy/systemd/asr-log-sidecar.service.
Error: No such image and the service restarts every 10 s
start-vllm.sh never pulls. Pull (docker pull "$IMAGE") or build the
image named in /etc/snap-asr-bench/vllm.env, then
sudo systemctl restart vllm. make install-vllm-nvidia and
make install-vllm-trn2 pull it for you.
could not select device driver "" with capabilities: [[gpu]]
Docker has no NVIDIA runtime. Run sudo nvidia-ctk runtime configure
--runtime=docker and sudo systemctl restart docker.
The container name "/vllm" is already in use
A container was left from an unclean stop. The unit removes it before each
start. To clear it by hand, run docker rm -f vllm.
Every transcription returns 400 Unable to serialize unknown type: <class 'starlette.datastructures.UploadFile'>
vLLM's request logging can't serialize the uploaded audio (seen with
vLLM 0.33.0). Remove --enable-log-requests and --enable-log-outputs
from VLLM_ARGS and restart.
vLLM refuses to start because of an unknown argument
Flags change between vLLM versions. Remove the flag from VLLM_ARGS in
/etc/snap-asr-bench/vllm.env (--enable-log-outputs is the most likely
one) and restart.
g4dn: Bfloat16 is only supported on GPUs with compute capability of at least 8.0
The env file must set --dtype half.
g4dn: out of memory at start-up
Lower --max-model-len or --gpu-memory-utilization. Copy the whole
VLLM_ARGS line from g4dn.env into deploy/nvidia/g4dn.local.env,
change it there (it replaces the shipped line), then reinstall and
restart.
trn2: start-up takes a very long time
The first start compiles every bucket. Watch progress with
journalctl -u vllm -f.
trn2: Timed out waiting for engine core processes to start
The engine took longer than VLLM_ENGINE_READY_TIMEOUT_S (600 s by
default) to compile and warm up. trn2.env sets it to 3600. Don't expect
the next start to be quicker: so far every start has recompiled for about
520 s, and neuron-compile-cache stays empty (see
Limitations).
trn2: No EFA device found at /sys/bus/pci/devices/.../infiniband
trn2.3xlarge has no EFA. trn2.env sets NEURON_SKIP_EFA_AFFINITY=1, which
skips the fork's EFA CPU affinity.
trn2: ecr:GetDownloadUrlForLayer access denied on docker pull
The instance role needs the ecr-trn2-image policy from
terraform/iam.tf. Run terraform apply.
trn2: every transcription returns 400 Invalid or unsupported audio file
The image has no soundfile or av. Use an image built from the current
Dockerfile (a tag ending -audio).
trn2: RuntimeError: Encoder cache full, then every request fails to connect
The fork's on-device encoder cache filled up and the engine died. systemd
restarts it, which takes about 10 minutes. trn2.env sets
encoder_cache_num_blocks to 1025 in encoder_neuron_config so this can't
happen. See Trainium host.
trn2: H2D DMA notification capture is not supported by the installed driver
A warning, not an error. The DLAMI's Neuron driver (2.25.4) is older than
the SDK 2.33 runtime in the image expects.
trn2: TTFT is 5 to 10 times higher than expected
Check OMP_NUM_THREADS=1 is set. The fork documents this as required on
trn2.3xlarge.