Skip to content

[BUG] Whishper does nothing when you add a transcription #162

@NicholasFletcher

Description

@NicholasFletcher

Description

When trying to run a transcription from a fresh install, whishper does absolutely nothing.

To Reproduce

Steps to reproduce the behavior:

  1. Go to whishper UI from fresh install according to documentation and try to do a transcription.

Expected behavior

I expected Whishper to work as intended following the install documentation.

Environment

  • OS: Linux/Docker
  • Browser: Firefox
  • Version: [e.g., 22]
  • Hosting: running on VM and accessing from client machine

Logs and Configuration

Docker Compose Logs

Run the following command in the project folder, force the error, and paste the logs below: docker compose logs -f --tail 50

WARN[0000] /home/whiterabbit/whishper/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
whishper                | 2025-07-08 13:01:31,111 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
whishper                | 2025-07-08 13:01:31,113 INFO supervisord started with pid 1
whishper                | 2025-07-08 13:01:32,115 INFO spawned: 'backend' with pid 7
whishper                | 2025-07-08 13:01:32,117 INFO spawned: 'frontend' with pid 8
whishper                | 2025-07-08 13:01:32,118 INFO spawned: 'nginx' with pid 9
whishper                | 2025-07-08 13:01:32,120 INFO spawned: 'transcription' with pid 10
whishper                | 2025-07-08 13:01:33,273 INFO success: backend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
whishper                | 2025-07-08 13:01:33,273 INFO success: frontend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
whishper                | 2025-07-08 13:01:33,273 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
whishper                | 2025-07-08 13:01:33,273 INFO success: transcription entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
mongo-1                 | {"t":{"$date":"2025-07-08T13:01:30.764Z"},"s":"I",  "c":"CONTROL",  "id":20697,   "ctx":"main","msg":"Renamed existing log file","attr":{"oldLogPath":"/var/log/mongodb/mongod.log","newLogPath":"/var/log/mongodb/mongod.log.2025-07-08T13-01-30"}}
whisper-libretranslate  | Updating language models
whisper-libretranslate  | Found 96 models
whisper-libretranslate  | Keep 2 models
whisper-libretranslate  | Loaded support for 3 languages (2 models total)!
whisper-libretranslate  | Running on http://*:5000

I managed to find this error as well:

An error occured while synchronizing the model Systran/faster-whisper-tiny from the Hugging Face Hub:
Cannot find an appropriate cached snapshot folder for the specified revision on the local disk and outgoing traffic has been disabled. To enable repo look-ups and downloads online, pass 'local_files_only=False' as input.
Trying to load the model directly from the local cache, if it exists.
/usr/local/lib/python3.11/site-packages/huggingface_hub/file_download.py:1204: UserWarning: `local_dir_use_symlinks` parameter is deprecated and will be ignored. The process to download files to a local folder has been updated and do not rely on symlinks anymore. You only need to pass a destination folder as`local_dir`.
For more details, check out https://huggingface.co/docs/huggingface_hub/main/en/guides/download#download-files-to-local-folder.
  warnings.warn(
Traceback (most recent call last):
  File "/app/transcription/main.py", line 44, in <module>
    m = FasterWhisperBackend(model_size=model)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/transcription/backends/fasterwhisper.py", line 16, in __init__
    self.__post_init__()
  File "/app/transcription/backends/backend.py", line 40, in __post_init__
    raise ValueError(f"model must be one of {self.supported_model_sizes()}")
ValueError: model must be one of ['tiny', 'tiny.en', 'small', 'small.en', 'base', 'base.en', 'medium', 'medium.en', 'large-v2', 'large-v3']
An error occured while synchronizing the model Systran/faster-whisper-tiny from the Hugging Face Hub:
Cannot find an appropriate cached snapshot folder for the specified revision on the local disk and outgoing traffic has been disabled. To enable repo look-ups and downloads online, pass 'local_files_only=False' as input.
Trying to load the model directly from the local cache, if it exists.
/usr/local/lib/python3.11/site-packages/huggingface_hub/file_download.py:1204: UserWarning: `local_dir_use_symlinks` parameter is deprecated and will be ignored. The process to download files to a local folder has been updated and do not rely on symlinks anymore. You only need to pass a destination folder as`local_dir`.
For more details, check out https://huggingface.co/docs/huggingface_hub/main/en/guides/download#download-files-to-local-folder.
  warnings.warn(
Traceback (most recent call last):
  File "/app/transcription/main.py", line 44, in <module>
    m = FasterWhisperBackend(model_size=model)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/transcription/backends/fasterwhisper.py", line 16, in __init__
    self.__post_init__()
  File "/app/transcription/backends/backend.py", line 40, in __post_init__
    raise ValueError(f"model must be one of {self.supported_model_sizes()}")
ValueError: model must be one of ['tiny', 'tiny.en', 'small', 'small.en', 'base', 'base.en', 'medium', 'medium.en', 'large-v2', 'large-v3']

Docker Compose File

version: "3.9"

services:
  mongo:
    image: mongo
    env_file:
      - .env
    restart: unless-stopped
    volumes:
      - ./whishper_data/db_data:/data/db
      - ./whishper_data/db_data/logs/:/var/log/mongodb/
    environment:
      MONGO_INITDB_ROOT_USERNAME: ${DB_USER:-whishper}
      MONGO_INITDB_ROOT_PASSWORD: ${DB_PASS:-whishper}
    expose:
      - 27017
    command: ['--logpath', '/var/log/mongodb/mongod.log']

  translate:
    container_name: whisper-libretranslate
    image: libretranslate/libretranslate:latest
    restart: unless-stopped
    volumes:
      - ./whishper_data/libretranslate/data:/home/libretranslate/.local/share
      - ./whishper_data/libretranslate/cache:/home/libretranslate/.local/cache
    env_file:
      - .env
    tty: true
    environment:
      LT_DISABLE_WEB_UI: True
      LT_UPDATE_MODELS: True
    expose:
      - 5000
    networks:
      default:
        aliases:
          - translate
    healthcheck:
      test: ['CMD-SHELL', './venv/bin/python scripts/healthcheck.py']
      interval: 2s
      timeout: 3s
      retries: 5

  whishper:
    pull_policy: always
    image: pluja/whishper:${WHISHPER_VERSION:-latest}
    env_file:
      - .env
    volumes:
      - ./whishper_data/uploads:/app/uploads
      - ./whishper_data/logs:/var/log/whishper
    container_name: whishper
    restart: unless-stopped
    networks:
      default:
        aliases:
          - whishper
    ports:
      - 8082:80
    depends_on:
      - mongo
      - translate
    environment:
      PUBLIC_INTERNAL_API_HOST: "http://127.0.0.1:80"
      PUBLIC_TRANSLATION_API_HOST: ""
      PUBLIC_API_HOST: ${WHISHPER_HOST:-}
      PUBLIC_WHISHPER_PROFILE: cpu
      WHISPER_MODELS_DIR: /app/models
      UPLOAD_DIR: /app/uploads
      CPU_THREADS: 4

I'm also adding a recording of what happens:

whishper.error.mp4

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions