github ventura8/Whisper-Pro-ASR v1.5.1
Release v1.5.1 - Bazarr uploads without media mounts

58 minutes ago

Release v1.5.1 - Bazarr uploads without media mounts

Summary

Fixes the production failure mode where every Bazarr job returned No audio source provided when media volumes were not mounted and /tmp/whisper was not writable by the service user (Portainer/custom compose with tmpfs size but missing mode=1777).

Media mounts remain an optional zero-copy optimisation. The upload path is the supported default.

Fixes

  • Unwritable TEMP_DIR fallback: resolve_temp_dir / _temp_dir now check writability before free space and fall back to PERSISTENT_TEMP_DIR (or system temp) instead of silently failing materialization.
  • Approved roots for persistent temp: get_approved_roots() includes PERSISTENT_TEMP_DIR so materialized uploads that landed there are accepted.
  • Trust server-materialized uploads: MaterializedUploadPath is used without re-applying the caller-facing approved-roots gate (avoids a crash when re-copying a path we just wrote).
  • Clearer materialization errors: failed upload writes log the real cause instead of collapsing into No audio source provided.

Tests

  • New e2e module tests/integration/test_bazarr_upload_without_mounts_e2e.py: detect-language and ASR with unresolvable video_file, plus unwritable TEMP_DIR fallback.
  • Unit coverage for writability fallback in resolve_temp_dir / get_temp_dir.
  • Compose pin: tmpfs must be /tmp/whisper:size=2G,mode=1777.

Ops note

If you deploy outside the repo compose (e.g. Portainer), keep:

tmpfs:
  - /tmp/whisper:size=2G,mode=1777

size=2G alone is not enough after a compose restart.

Dependency sweep (audit gate)

npm: eslint 10.15.0, markdownlint-cli2 0.24.1, overrides for markdown-it 15.0.3, minimatch 11.0.9, undici 8.12.4, fast-uri 4.2.3, glob 14.0.6.

Python: certifi, filelock, msgpack, opentelemetry-api, pillow, setuptools bumped to clear current pip-audit findings.

Verification

  • Focused Docker pytest: mount helpers, SSD/temp selection, Bazarr wire format, upload-without-mounts e2e — passed.
  • npm audit --audit-level=low and pip-audit — clean.
  • Intel NUC: recreated with tmpfs mode=1777; Bazarr-shaped /detect-language upload without /tv mounts returned language_code=en.

Don't miss a new Whisper-Pro-ASR release

NewReleases is sending notifications on new releases.