[BUG] Whishper not doing anything
mikele1976 opened this issue · comments
Description
Whishper not doing anything
To Reproduce
Steps to reproduce the behavior:
- just essay to use the web ui with local mp3 files or youtube urls
Environment
- OS: debian 12
- Browser: firefox
- Version: 120
- Hosting: local
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
PASTE LOGS HERE
whisper-libretranslate | Updating language models
whisper-libretranslate | Found 84 models
whisper-libretranslate | Keep 4 models
whisper-libretranslate | Downloading English → French (1.9) ...
whisper-libretranslate | Downloading English → Spanish (1.0) ...
whisper-libretranslate | Downloading French → English (1.9) ...
whisper-libretranslate | Downloading Spanish → English (1.0) ...
whisper-libretranslate | Loaded support for 3 languages (4 models total)!
whisper-libretranslate | Running on http://0.0.0.0:5000
whishper | 2023-12-08 13:16:48,413 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 | 2023-12-08 13:16:48,419 INFO supervisord started with pid 1
whishper | 2023-12-08 13:16:49,423 INFO spawned: 'backend' with pid 7
whishper | 2023-12-08 13:16:49,434 INFO spawned: 'frontend' with pid 8
whishper | 2023-12-08 13:16:49,446 INFO spawned: 'nginx' with pid 9
whishper | 2023-12-08 13:16:49,464 INFO spawned: 'transcription' with pid 10
whishper | 2023-12-08 13:16:51,132 INFO success: backend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
whishper | 2023-12-08 13:16:51,133 INFO success: frontend entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
whishper | 2023-12-08 13:16:51,134 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
whishper | 2023-12-08 13:16:51,134 INFO success: transcription entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.503+00:00"},"s":"I", "c":"SHARDING", "id":4784902, "ctx":"SignalHandler","msg":"Shutting down the WaitForMajorityService"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.504+00:00"},"s":"I", "c":"CONTROL", "id":4784903, "ctx":"SignalHandler","msg":"Shutting down the LogicalSessionCache"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.504+00:00"},"s":"I", "c":"NETWORK", "id":20562, "ctx":"SignalHandler","msg":"Shutdown: going to close listening sockets"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"NETWORK", "id":23017, "ctx":"listener","msg":"removing socket file","attr":{"path":"/tmp/mongodb-27017.sock"}}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"NETWORK", "id":4784905, "ctx":"SignalHandler","msg":"Shutting down the global connection pool"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"CONTROL", "id":4784906, "ctx":"SignalHandler","msg":"Shutting down the FlowControlTicketholder"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"-", "id":20520, "ctx":"SignalHandler","msg":"Stopping further Flow Control ticket acquisitions."}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"CONTROL", "id":4784908, "ctx":"SignalHandler","msg":"Shutting down the PeriodicThreadToAbortExpiredTransactions"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"REPL", "id":4784909, "ctx":"SignalHandler","msg":"Shutting down the ReplicationCoordinator"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"SHARDING", "id":4784910, "ctx":"SignalHandler","msg":"Shutting down the ShardingInitializationMongoD"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"REPL", "id":4784911, "ctx":"SignalHandler","msg":"Enqueuing the ReplicationStateTransitionLock for shutdown"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"-", "id":4784912, "ctx":"SignalHandler","msg":"Killing all operations for shutdown"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"-", "id":4695300, "ctx":"SignalHandler","msg":"Interrupted all currently running operations","attr":{"opsKilled":3}}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"TENANT_M", "id":5093807, "ctx":"SignalHandler","msg":"Shutting down all TenantMigrationAccessBlockers on global shutdown"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"ASIO", "id":22582, "ctx":"TenantMigrationBlockerNet","msg":"Killing all outstanding egress activity."}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"ASIO", "id":6529201, "ctx":"SignalHandler","msg":"Network interface redundant shutdown","attr":{"state":"Stopped"}}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"ASIO", "id":22582, "ctx":"SignalHandler","msg":"Killing all outstanding egress activity."}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"COMMAND", "id":4784913, "ctx":"SignalHandler","msg":"Shutting down all open transactions"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"REPL", "id":4784914, "ctx":"SignalHandler","msg":"Acquiring the ReplicationStateTransitionLock for shutdown"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"INDEX", "id":4784915, "ctx":"SignalHandler","msg":"Shutting down the IndexBuildsCoordinator"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"NETWORK", "id":4784918, "ctx":"SignalHandler","msg":"Shutting down the ReplicaSetMonitor"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.509+00:00"},"s":"I", "c":"SHARDING", "id":4784921, "ctx":"SignalHandler","msg":"Shutting down the MigrationUtilExecutor"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"ASIO", "id":22582, "ctx":"MigrationUtil-TaskExecutor","msg":"Killing all outstanding egress activity."}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"COMMAND", "id":4784923, "ctx":"SignalHandler","msg":"Shutting down the ServiceEntryPoint"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"CONTROL", "id":4784927, "ctx":"SignalHandler","msg":"Shutting down the HealthLog"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"CONTROL", "id":4784928, "ctx":"SignalHandler","msg":"Shutting down the TTL monitor"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"INDEX", "id":3684100, "ctx":"SignalHandler","msg":"Shutting down TTL collection monitor thread"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"INDEX", "id":3684101, "ctx":"SignalHandler","msg":"Finished shutting down TTL collection monitor thread"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"CONTROL", "id":6278511, "ctx":"SignalHandler","msg":"Shutting down the Change Stream Expired Pre-images Remover"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"CONTROL", "id":4784929, "ctx":"SignalHandler","msg":"Acquiring the global lock for shutdown"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"CONTROL", "id":4784930, "ctx":"SignalHandler","msg":"Shutting down the storage engine"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"STORAGE", "id":22320, "ctx":"SignalHandler","msg":"Shutting down journal flusher thread"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"STORAGE", "id":22321, "ctx":"SignalHandler","msg":"Finished shutting down journal flusher thread"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"STORAGE", "id":22322, "ctx":"SignalHandler","msg":"Shutting down checkpoint thread"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"STORAGE", "id":22323, "ctx":"SignalHandler","msg":"Finished shutting down checkpoint thread"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"STORAGE", "id":22261, "ctx":"SignalHandler","msg":"Timestamp monitor shutting down"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"STORAGE", "id":20282, "ctx":"SignalHandler","msg":"Deregistering all the collections"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"STORAGE", "id":22317, "ctx":"SignalHandler","msg":"WiredTigerKVEngine shutting down"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"STORAGE", "id":22318, "ctx":"SignalHandler","msg":"Shutting down session sweeper thread"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.510+00:00"},"s":"I", "c":"STORAGE", "id":22319, "ctx":"SignalHandler","msg":"Finished shutting down session sweeper thread"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.518+00:00"},"s":"I", "c":"STORAGE", "id":4795902, "ctx":"SignalHandler","msg":"Closing WiredTiger","attr":{"closeConfig":"leak_memory=true,use_timestamp=false,"}}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.578+00:00"},"s":"I", "c":"STORAGE", "id":4795901, "ctx":"SignalHandler","msg":"WiredTiger closed","attr":{"durationMillis":60}}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.578+00:00"},"s":"I", "c":"STORAGE", "id":22279, "ctx":"SignalHandler","msg":"shutdown: removing fs lock..."}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.578+00:00"},"s":"I", "c":"-", "id":4784931, "ctx":"SignalHandler","msg":"Dropping the scope cache for shutdown"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.578+00:00"},"s":"I", "c":"FTDC", "id":20626, "ctx":"SignalHandler","msg":"Shutting down full-time diagnostic data capture"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.581+00:00"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"SignalHandler","msg":"Now exiting"}
whishper-mongo-1 | {"t":{"$date":"2023-12-08T13:16:56.581+00:00"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"SignalHandler","msg":"Shutting down","attr":{"exitCode":0}}
whishper-mongo-1 |
whishper-mongo-1 | MongoDB init process complete; ready for start up.
whishper-mongo-1 |
Docker Compose File
PASTE YOUR DOCKER-COMPOSE.YML FILE HERE
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
Hi, did you solve this problem?
I installed also on a Debian 12, with Nvidia drivers.
The website loads, but then nothing happens when I add a file. In the console I see this:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:8082/api/transcriptions. (Reason: CORS request did not succeed). Status code: (null).
TypeError: NetworkError when attempting to fetch resource. app.2d54f27f.js:1:6256
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:8082/api/transcriptions. (Reason: CORS request did not succeed). Status code: (null).
Uncaught (in promise) TypeError: NetworkError when attempting to fetch resource.
I am also getting a CORS error. I am accessing the machine remotely as opposed to running this on localhost. I suspect that the problem is related to lack of testing outside of localhost
CORS domain might need to be set to ["*"] as there is no way for the project to predict where a user might want to run this. Either that or the setup script needs to ask the user and/or interrogate the host and make a dynamic change when the pods start up
@Saphar there is a .env
file with the WHISHPER_HOST=http://127.0.0.1:8082
set. If you edit this file and either add the address of the host or its hostname (depending on how you are accessing the UI) the CORS message issue is resolved
Thanks that fixed it